Skip to Content
0
Former Member
Jun 23, 2005 at 05:46 AM

Unable to update Sales Order.

277 Views

Dear All,

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

1.BAPI_SALESORDER_CHANGE-For Deletion

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

3.BAPI_SALESORDER_CHANGE-For Insert

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?