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

Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng)

Former Member
0 Likes
4,598

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!!

1 ACCEPTED SOLUTION
Read only

former_member386202
Active Contributor
0 Likes
2,229

Hi,

Use BAPI BAPI_SALESORDER_CHANGE Sales order: Change Sales Order

Reagrds,

Prashant

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!!

9 REPLIES 9
Read only

Former Member
0 Likes
2,229

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

Read only

former_member386202
Active Contributor
0 Likes
2,230

Hi,

Use BAPI BAPI_SALESORDER_CHANGE Sales order: Change Sales Order

Reagrds,

Prashant

Read only

Former Member
0 Likes
2,229

Try using this BAPI .

BAPI_SALESORDER_CHANGE

BAPI_SALESORDER_SIMULATE

RV_SALES_DOCUMENT_UPDATE_DIA

Read only

Former Member
0 Likes
2,229

Hi,

Try using BAPI_SALESORDER_CHANGE

Hope this helps.

Regards,

Raj

Read only

Former Member
0 Likes
2,229

Hi,

BAPI - BAPI_SALESORDER_CHANGE can be used to change the individual item order quantity.

Thanks,

Lakshmi

Read only

Former Member
0 Likes
2,229

Hi Qiwei Yin,

Use below BAPI

BAPI_SALESORDER_CHANGE

also have a look on below threads... pls use search functionality of forum before posting...

For more Example of how to use it search forum

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

Read only

Former Member
0 Likes
2,229

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.

Read only

0 Likes
2,229

I tried the above code , the bapi returns a success msg but the data is not reflected in db table.

Read only

Former Member
0 Likes
2,229

This message was moderated.