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

Change Order Quantity using BAPI_SALESORDER_CHANGE

Former Member
0 Likes
1,249

Hi,

I am trying to change the order quantity using Function Module "BAPI_SALESORDER_CHANGE". I would like to know if there is anyway to update the quanity without passing the schedule line information.

If I pass schedule line information as given below

SCHEDULE_LINES = I_SCHED

SCHEDULE_LINESX = I_SCHEDX

the order quantity is getting updated . I do not want schedule line information to be passed and update the order quantity..

Any suggestion????

6 REPLIES 6
Read only

Former Member
0 Likes
860

Hi Prabu,

Welcome to SDN.

Please check FM RV_COMMON_TABLE_UPDATE.

Regards,

Ferry Lianto

Read only

0 Likes
860

Hi,

Thanks for the reply but I dont have the necessary parameters to be passed to this FM.

Regards

Prabu

Read only

Former Member
0 Likes
860

Hi,

If you have any sample code which uses this FM..Please forward to prabu_sap@yahoo.com

Read only

Former Member
0 Likes
860

Hi,

You have to pass Schedule Line Details while changing an Order Quantity in BAPI_SALESORDER_CHANGE.

You have to pass follwing parameters along with SALESDOCUMENT, ORDER_HEADER_IN, ORDER_HEADER_INX.

<b>ORDER_ITEM_IN :</b> ITM_NUMBER, MATERIAL and TARGET_QTY

<b>ORDER_ITEM_INX :</b> ITM_NUMBER, UPDATEFLAG and TARGET_QTY

<b>SCHEDULE_LINES :</b> ITM_NUMBER, SCHED_LINE and REQ_QTY

<b>SCHEDULE_LINESX :</b> ITM_NUMBER, SCHED_LINE, UPDATEFLAG and REQ_QTY

Reward points if the answer is helpful.

Regards,

Mukul

Read only

0 Likes
860

Mukul,

Thanks for the reply..Is there any other way I can update the order quantity without changing the schedule line quantity,,I know its awkward, but my requirement is like that...

I know SAP will not allow the order quantity and schedule line quantity to be different...

Please let me know if you have any suggestions..

Read only

0 Likes
860

Hi,

I have tried without passing schedule line details but it hasn't worked in past for me. So, I think you will have to pass schedule line details. Which details you dont have ?

Reward points if the answer is helpful.

Regards,

Mukul