2010 Apr 05 6:16 PM
Hi,
i unable to updating quantity field using the BAPI_SALESORDER_CHANGE.
I think may be problem with schedule lines.If Possible please tell me what are fields data is mandatory while changing sales order quantity.
Regards,
suresh
2010 Apr 06 5:35 AM
To update the quantity, update quantity in both Item and schedule line structures.
Try below code
order_item_in-itm_number = <item number>
order_item_inx-itm_number = <item number>.
order_item_inx-updateflag = 'U.
order_item_in-target_qty = wa_vbap-kwmeng.
order_item_inx-target_qty = 'X'.
schedule_lines-itm_number = <item number>
schedule_lines-sched_line = <Schedule LIne No> .
schedule_lines-req_qty = <Quantity>.
schedule_linesx-itm_number = <item number>
schedule_linesx-sched_line = <Schedule LIne no>
schedule_linesx-updateflag = 'U'.
schedule_linesx-req_qty = 'X'.Regards
Vinod
Hi,
i unable to updating quantity field using the BAPI_SALESORDER_CHANGE.
I think may be problem with schedule lines.If Possible please tell me what are fields data is mandatory while changing sales order quantity.
Regards,
suresh
2010 Apr 05 6:20 PM
Hi,
Just a small tip which we some time miss, Commit after calling BAPI.
Also mark the field as X which you want to change.
2010 Apr 05 6:40 PM
Hi Suresh,
You have set the update mode(UPD) as 'U' and need to set 'X' for the target_qty in the X structure of the BAPI.
in BAPISDITM
set TARGET_QTY = 2. " what ever the qty you need
In BAPISDITMX structure
for UPDATEFLAG set 'U'
and for TARGET_QTY = 'X'.
hope this helps
Thanks,
Srini.
2010 Apr 06 5:35 AM
To update the quantity, update quantity in both Item and schedule line structures.
Try below code
order_item_in-itm_number = <item number>
order_item_inx-itm_number = <item number>.
order_item_inx-updateflag = 'U.
order_item_in-target_qty = wa_vbap-kwmeng.
order_item_inx-target_qty = 'X'.
schedule_lines-itm_number = <item number>
schedule_lines-sched_line = <Schedule LIne No> .
schedule_lines-req_qty = <Quantity>.
schedule_linesx-itm_number = <item number>
schedule_linesx-sched_line = <Schedule LIne no>
schedule_linesx-updateflag = 'U'.
schedule_linesx-req_qty = 'X'.Regards
Vinod
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |