2008 Dec 04 9:00 AM
Hi,
I have a requirement to use a Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng), which one (Function Module or BAPI) should I use? is there any sample codes?
Thanks a lot!!
2008 Dec 04 9:04 AM
Hi,
Use BAPI BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
Reagrds,
Prashant
2008 Dec 04 9:03 AM
Hi,
Please go thru this link of sdn:
YOU can also go thrugh this link for a list of BAPI:
http://channy.textcube.com/29:
You will get the answer.
Hope it helps.
Rahul
Edited by: Rahul Kumar Sinha on Dec 4, 2008 10:06 AM
2008 Dec 04 9:04 AM
Hi,
Use BAPI BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
Reagrds,
Prashant
2008 Dec 04 9:05 AM
Try using this BAPI .
BAPI_SALESORDER_CHANGE
BAPI_SALESORDER_SIMULATE
RV_SALES_DOCUMENT_UPDATE_DIA
2008 Dec 04 9:05 AM
Hi,
Try using BAPI_SALESORDER_CHANGE
Hope this helps.
Regards,
Raj
2008 Dec 04 9:09 AM
Hi,
BAPI - BAPI_SALESORDER_CHANGE can be used to change the individual item order quantity.
Thanks,
Lakshmi
2008 Dec 04 9:13 AM
2008 Dec 04 9:27 AM
Hi,
&----
*& Report ZTEST
&----
*&
*&
&----
REPORT ztest.
DATA : wa_header TYPE bapisdh1x,
i_item TYPE TABLE OF bapisditm WITH HEADER LINE,
i_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,
i_return TYPE TABLE OF bapiret2.
wa_header-updateflag = 'U'.
i_item-itm_number = '000010'.
i_item-target_qty = '4'.
APPEND i_item.
i_itemx-itm_number = '000010'.
i_itemx-updateflag = 'U'.
i_itemx-target_qty = 'X'.
APPEND i_itemx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = '1234567890'
order_header_inx = wa_header
TABLES
return = i_return
order_item_in = i_item
order_item_inx = i_itemx
.
Hope this will help you.
Regards,
Anand.
2014 Mar 02 1:52 PM
I tried the above code , the bapi returns a success msg but the data is not reflected in db table.
2016 Jul 29 3:56 PM