on ‎2020 May 02 2:13 AM
When I use BAPI_SALESORDER_CHANGE to change a Z field in VBAP via the extensionin table parameter it properly updates the field in question. This works for all lines on the order that I need to update. It also updates column VBAP-AEDAT (Change Date). The problem is that it is updating AEDAT for all of the rows in VBAP for this order instead of just the rows where I am updating the Z field. I need AEDAT to only update for rows where I am actually updating the Z field.
I am not passing all the VBAP lines into the extensionin table, just the ones I want to update by passing the populated structures of BAPE_VBAP and BAPE_VBAPX into the extensionin-valuepart1 and extensionin-valuepart2 as needed.
Any advice?
Thanks in advance
Request clarification before answering.
Hi Anthonay,
You might have used the extension variable (example)
WA_BAPE_VBAPX TYPE BAPE_VBAPX,In this wa_bape_vbax make sure you pass the appropriate POSNR also before pushing it in BAPI.
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anthony,
In BAPI_VBAPX, you have to commit this X for two fields one is AEDAT field and another one is POSNR. kindly confirm have you committed X for these two fields.
The same you have entered in BAPI_VBAP for AEDAT and POSNR, the same you have to commit in BAPI_VBAPX.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes - I've been doing that.
Thanks,
Tony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.