Skip to Content
0
May 02, 2020 at 01:13 AM

BAPI_SALESORDER_CHANGE extension update issue with AEDAT

186 Views

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