Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

How to copy a SO B while save a SO A?

0 Kudos


I want to do a function: 'VA01' save a sales order, and then copy this order to create a new order automatically. I try to use userexit_save_document to save SO data to ABAP memory.BUT I am not sure the exit or badi to write 'call transation 'source.

BY the way,the customer doesn't want me to use userexit_refresh_document.

Thanks & Regards

Severa zhou


Active Contributor

It doesn't seem the right way to do it. You should not save the whole data of the Sales Order to the amemory, the only thing you need to get is its number, wait that it's written to the database (look for a user exit after the sales order has been written to database), and then copy it through CALL TRANSACTION (you can easily copy a sales order through VA01). I don't know Sales and Distribution (module SD) so maybe other people have better and more precise solutions.