I wanted to edit a sales Order By Deleting its Item, Schedule, basic Price Details And reinserting the same.
I had written a program for that but it gives me an error while commiting the insert.
Hence I am trying to simulate the same by running the BAPI_SALESORDER_CHANGE.
I made a test sequence of the below to maintain the transaction in a single LUW
I am filling the OrderHeaderInx, OrderLineItems, OrderLineItemsX, ScdeduleLines,ScdeduleLinesX with UpdateFlag = D
2.BAPI_TRANSACTION_COMMIT-For Commitng the Delete
I am filling Wait=X
I am filling the OrderHeaderInx, OrderLineItems, OrderLineItemsX, ScdeduleLines,ScdeduleLinesX, condtypes, condtypesX with UpdateFlag = I
4.BAPI_TRANSACTION_COMMIT-For Commitng the Insert
I am filling Wait
Everything works fine but at step 4, I get error 150 in the return structure of BAPI_TRANSACTION_COMMIT.
(Updating could not be completed)
Also the server puts a Message 'Updating was terminated ' in the inbox.
what could be the reason?