We have a program using BAPI_SALESORDER_CHANGE that is working for update and inserting new items. However, the insert for a new line item does not work for the below scenario.
SO has two commercial items with bonus items:
10 - Commercial 1
11 - Bonus 1
20 - Commercial 2
21 - Bonus 2
We are changing line item 10 where the quantity does not meet the minimum order for a bonus item. As a result line item 11 is being deleted automatically. At the same time, we're inserting another item 12 for line item 10 which is not working. The return table does not return any warning or error messages and line item 10 is being updated correctly.
But this is working fine if I changed the POSNR from 12 to 22 and UEPOS to 10 to 20.
Are we missing something?