Application Development and Automation 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: 
Read only

Status_Update Internal Buffer Issue

Former Member
0 Likes
1,141

Hi Experts,

We have a requirement where we need to update Sales Order User Status at Item and Header level. This will enhance Sales Order Header and Item statuses to be updated logically without User intervention. For this, we have written separate logic for all the statuses (ERPF, ERFN, CTPN etc. ) in Userexit_Save_Document in program MV45AFZZ.

We are updating statuses in JEST / JSTO tables using STATUS_UPDATE function module which is being called with the status based on our logic. But SAP AS IS standard process is calling STATUS_UPDATE FM again in the last (In Update Debugging) which in turn takes values from the Internal Buffer and overwrites our calculated Status.

Can anyone suggest how to avoid such scenario where Status_Update FM should not update the status from internal buffer ?

Thanks In Advance,

Shivam

1 REPLY 1
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
665

One of method you can use is as follow. Whenever order is changed check if change event is raised in SWEL then youbcan attach your function module as receiver function module in SWETYPV to update status