Following is the piece of code to copy a Sales order from backend
declare
l_return_status varchar2(1);
l_order_number_from number :=XYZ; — Sample order
l_order_source_id number :=1041;
begin
oe_debug_pub.debug_on;
oe_debug_pub.initialize;
oe_debug_pub.add(‘Before oe_inf_populate_pub call’,1);
oe_inf_populate_pub.populate_interface ( p_api_version_number => 1.0 , x_return_status => l_return_status ,
p_order_number_from => l_order_number_from , p_order_source_id => l_order_source_id );
oe_debug_pub.add(‘Before oe_inf_populate_pub call’,1);
end;