Showing posts with label Copy sales orders. Show all posts
Showing posts with label Copy sales orders. Show all posts

How to Copy a Sales order from backend

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;