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

order with BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
729

Hi.

i am making a sales order with the bapi BAPI_SALESORDER_CREATEFROMDAT2. the order is created but the items haven't any quantity.

i fill the fields for items: itm_number, material, target_qty and TARGET_QU.

i don't know if i need to fill any more fields for items.

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
662

Hi,

fill the ORDER_ITEMS_INX. Give item numbers like increments of 10 or so.. and try..

ORDER_ITEMS_IN STRUCTURE BAPISDITM OPTIONAL ORDER_ITEMS_INX STRUCTURE BAPISDITMX OPTIONAL These have to be filled to reflect the line items..

Also ensure that you are using BAPI_TRANSACTION_COMMIT.

Edited by: Renjith Michael on Jun 17, 2009 4:35 PM

Read only

Former Member
0 Likes
662

Hi,

Refer the link

http://www.sap-img.com/abap/bapi-salesorder-createfromdat2.htm

Please make sure to pass posnr and quantity in ORDER_SCHEDULES_IN ( ITM_NUMBER and REQ_QTY fileds).

Read only

Former Member
0 Likes
662

Hi,

I think you need to give REQ_QTY in ORDER_SCHEDULES_IN structure. i.e., you have to give required quantity at schedule line level.

Thank you.

Read only

Former Member
0 Likes
662

thanks all.