Archived discussions are read-only. Learn more about SAP Q&A

Update route in sales order

Hi All,

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

Thanks,

Mohan

replied

Hi Puneeth,

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[1]-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.

Steps:

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

Thanks,

Mohan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question