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: 

Automatic update of Sales Order Quantity with FM

Former Member
0 Kudos
174

Hey all,

I am searching for a function module which allows me to update the quantity in a sales order as long as the user creates the sales order.

We have here a requirement to update the sales order quantity and if it is less than the minimum sales order quantity calculated (depends on specific VC configurations) for this product it should be automatically changed to the minimum quantity.

I really appreciate every answer on this question. Of course points will be rewarded to helping answers.

Thank you and best regards

Maik

4 REPLIES 4

Former Member
0 Kudos
48

Or of course another possibility to do this?

0 Kudos
48

Please refer the BAPI_SALESORDER_CHANGE.....

0 Kudos
48

Sharad gave you the appropriate BAPI and if you need an example please check SAP Note 562124.Yet, you must put an 'X' in the "po_itm_no" field of the "order_item_inx" parameter table in order to work properly.

Former Member
0 Kudos
48

Thanks a lot for your answer. Unfortunately this FM requires an already saved Sales Order. As this should be done before the sales order is saved, this FM doesnt work for me. I want to update the sales order quantity (incl. determining new schedule lines) when I leave VC and go back to the sales order.