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

Reg:BAPI for sales order creation

Former Member
0 Likes
679

Dear All,

I am not able to populate Order Quantity in Sales Oder

from bapi BAPI_SALESORDER_CREATEFROMDAT2

in which structure the order quantity field will be there.

In the structure BAPISDITM there is a field TARGET_QTY but it is not populeting in Cumulative Order Quantity in Sales Units.

In the structure BAPISCHDL there is a field REQ_QTY

is it Cumulative Order Quantity in Sales Units.

please can you tell me which is the field for Order Quantity througn bapi in BAPI_SALESORDER_CREATEFROMDAT2.

thanks

mars

Dear All,

I am not able to populate Order Quantity in Sales Oder

from bapi BAPI_SALESORDER_CREATEFROMDAT2

in which structure the order quantity field will be there.

In the structure BAPISDITM there is a field TARGET_QTY but it is not populeting in Cumulative Order Quantity in Sales Units.

In the structure BAPISCHDL there is a field REQ_QTY

is it Cumulative Order Quantity in Sales Units.

please can you tell me which is the field for Order Quantity througn bapi in BAPI_SALESORDER_CREATEFROMDAT2.

thanks

mars

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
633

Hi,

Use 'target_qty' filed for order quantity and also make sure that you are

filling the sales_items_inx-req_qty with 'X'.

Read only

Former Member
0 Likes
633

I have tried putting X for all the fields of the structure ORDER_ITEMS_INX. But it is still not working.

Read only

Former Member
0 Likes
633

Pass the quantity in ORDER_SCHEDULES_IN-REQ_QTY. Also update the field ORDER_SCHEDULES_INX-REQ_QTY with value 'X'.

Regards

Vinod