‎2007 Feb 13 5:38 PM
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????
‎2007 Feb 13 5:46 PM
Hi Prabu,
Welcome to SDN.
Please check FM RV_COMMON_TABLE_UPDATE.
Regards,
Ferry Lianto
‎2007 Feb 13 9:29 PM
Hi,
Thanks for the reply but I dont have the necessary parameters to be passed to this FM.
Regards
Prabu
‎2007 Feb 13 9:31 PM
Hi,
If you have any sample code which uses this FM..Please forward to prabu_sap@yahoo.com
‎2007 Feb 13 9:59 PM
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
‎2007 Feb 14 1:49 PM
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..
‎2007 Feb 14 1:56 PM
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