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: 

How to change the material Quantity by using BAPI_SALESORDER_CHANGE

Former Member
0 Kudos
88

Hi All,

How to change the sales order material Quantity by using BAPI_SALESORDER_CHANGE.

Regarrds

Deekshitha.

1 REPLY 1

Former Member
0 Kudos
43

When changing line-items there are a few conditions...

The following are mentioned in the function module documentation:

1. Minimum entry:

You must enter the order number in the SALESDOCUMENT structure.

You must always enter key fields for changes.

You must always specify the update indicator in the ORDER_HEADER_INX.

2. Commit control:

The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

<b>But... What's not mentioned is that you also MUST pass the material number to the internal table for line-items (BAPISDITM).</b>

Hope it helps!