Application Development and Automation 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: 
Read only

BAPI_SALESORDER_CHANGE

Former Member
0 Likes
401

Hi all,

I am adding one condition type using BAPI_SALESORDER_CHANGE.

It is notworking as expected. Sometime it is working and sometimes not.

Please let me know. Is there any reason

Thank you,

Varma

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
368

hey,

we use that BAPI to create a new line item. You enter the details of the material in the table ORDER_ITEM_IN and set the item number of the new line item in the ITM_NUMBER and the update flag as "I" (for insert) in ORDER_ITEM_INX.

The "U" (for update) needs to set in the ORDER_HEADER_INX so that the entire document gets updated.

In addition, make sure you have a look at the SAP Note 1079521.

Regards,

Midhun Abraham

2 REPLIES 2
Read only

Former Member
0 Likes
369

hey,

we use that BAPI to create a new line item. You enter the details of the material in the table ORDER_ITEM_IN and set the item number of the new line item in the ITM_NUMBER and the update flag as "I" (for insert) in ORDER_ITEM_INX.

The "U" (for update) needs to set in the ORDER_HEADER_INX so that the entire document gets updated.

In addition, make sure you have a look at the SAP Note 1079521.

Regards,

Midhun Abraham

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
368

It's like telling a doctor that "something hurts sometimes"... There could be thousand and one reason. Could you be more specific?

Look at the messages that are returned by BAPI in the RETURN table, most likely an explanation will be there. Locking errors are the most common, in my experience.