2011 May 18 2:34 PM
Hi Experts,
Trying to Change(ME32K) Contract outline agreements using BAPI_CONTRACT_CHANGE in LSMW. Have set the value ITEM_CONDITION-CHANGE_ID = 'U' and filled all the X structures also.
The data is being posted without any errors but instead of changing the existing line items, it is appending the
line items to the given Purchasing document number.
Not sure why this is happening. Does anyone know why this is happening? Is it a bug or am I doing something wrong? Please share your ideas.
Thanks.
2011 May 19 6:56 AM
Solved on my own. Please find the solution below (hope it might help some one in future)
There is a field called ITEM_NO in all the structures (Item, Account, Item_Condition.....). Due to wrong field mapping, this ITEM_NO is not filled in some structures properly due to which it is appending a new Item instead of modifying the existing one.
Thanks.