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

BAPI_SALESORDER_CREATEFROMDAT1

Former Member
0 Likes
399

Hi Experts,

I m using BAPI_SALESORDER_CREATEFROMDAT1 to create a sale order but the quantity is not getting updated in the sale order.

I passed target qty field but not getting updated

Regards,Prem

1 ACCEPTED SOLUTION
Read only

ferry_lianto
Active Contributor
0 Likes
371

Hi,

Please check this link for sample codes.

https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Simpleprogramtocreatesalesorderusing+BAPI

Regards,

Ferry Lianto

2 REPLIES 2
Read only

ferry_lianto
Active Contributor
0 Likes
372

Hi,

Please check this link for sample codes.

https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-Simpleprogramtocreatesalesorderusing+BAPI

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
371

See below code

data : so_item like BAPISDITM occurs 0 with header line.

data : S_ORDER_SCHEDULES_IN LIKE BAPISCHDL OCCURS 0 WITH HEADER LINE.

so_item-TARGET_QTY = '10'.

append so_item.

S_ITEM_IN-REQ_QTY = '10'.

append s_item.

Hope this help you

Reward points if it is helpful

Thanks

Seshu