Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_CONTRACT_CHANGE

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.