Update route in sales order
I have requirement on updating route value in sales order during creation and change.
When we enter special processing indicator(SDABW) in va01 or va02 tcode and press save button, it need to trigger the user exit and update the route value from ztable based on SDABW.
Please let me know about the same
chandra mohan replied
In USEREXIT_SAVE_DOCUMENT_PREPARE only I can do the code part. I chekd in debug mode. but b4 I just changing the route value directly means XVBAP-ROUTE. We need to change the route field for evry line item, so change the value under XVBAP-ROUTE in debug mode for line item 1, same for line item2, 3 4, etc.... But in coding we can do normal coding like loop for XVBAP and modify XVBAP.
1. Goto MV45AFZZ-> userexit_save_document_prepare
Here do the code part.
2. Check sales org, Disb channel and doc type, then check the special processing indicator(SDABW) = 'specific Value'.
Update the route field from custom table.I.E. Loop for XVBAP, Modify XVBAP