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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Changing sales office in sales office using save_document user exit

Former Member
0 Kudos

Hi,

My requirement is to change the sales office to 109 based on some conditions.

Here i am using FORM USEREXIT_SAVE_DOCUMENT user exit in the sales order to do it.

but it is not taking this value .

Can any one suggest me any other place i.e. user exit where we can change sales office depending on some conditions.

Thanks & regards

Manjari.

1 REPLY 1

former_member589029
Active Contributor
0 Kudos

You have to use userexit 'USEREXIT_SAVE_DOCUMENT_PREPARE' because when exit 'USEREXIT_SAVE_DOCUMENT' is called all the order data has already been submitted into update task. So if you want to change data in the order and have it saved with it you need to use 'USEREXIT_SAVE_DOCUMENT_PREPARE'.

Regards,

Michael