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

Sales order not updated using BAPI

Former Member
0 Likes
799

Hi all,

I am using BAPI_SALESORDER_CHANGE. I want to change only material or Quantity of a sales order for that i pass it in ITEM Table and set the flag for these values in ITEMX table.

After executing BAPI it runs Successfully so i commit it by using BAPI_TRANSACTION_COMMIT.

Now my query is after commited BAPI it does not update related sales order in database.

Why is it occurs meantime it is possible manually by VA02.

Suggess what to do to solve this?

Points will be sured for helpful answers.

Thanks

Sanket sethi

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
474

Did you use the correct UPDATE FLAG?

Have a look at the documentation for this and the rest to see how to fill the BAPI.

When you say successfull, does that mean that you get a message TYPE = 'S' in the return table?

Read only

Former Member
0 Likes
474

Hi Sanketh,

If you want to change the quantity in a sales order item using BAPI_SALESORDER_CHANGE you have to pass the new quantity in the Schedule Lines (SCHEDULE_LINES) table to the BAPI. Then only the new quantity gets reflected at the item level.

I hope it is useful. Please let me know if u need any information.

Regards,

Suresh Linga.