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

Sales Order Creation using bapi BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
1,662

Please help me..

I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order

can you please tell me in which field the quantity(of items) is to be populated.

i am populating in BAPISDITM-TARGET_QTY but i am not getting quantity field after sales order is created.

i also tried with BAPISDITM-TRG_QTY_NO but i am not getting .

and also if i provide ship to number it is automatically taking the adress but if i want to give my own adress in which structure i have to populate

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,233

Hi,

You have to pass the quantity in the scheduleline parameter..

Check this link for a sample code..

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

Thanks,

Naren

10 REPLIES 10
Read only

Former Member
0 Likes
1,234

Hi,

You have to pass the quantity in the scheduleline parameter..

Check this link for a sample code..

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

Thanks,

Naren

Read only

Former Member
0 Likes
1,233

Hi,

Please try populate BAPISDITMX-TARGET_QTY = 'X' as well as BAPISDITMX-ITM_NUMBER and BAPISDITMX-UPDATEFLAG.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,233

Hi,

Did you try using the following tables/structures:

BAPISCHDL and BAPISCHDLX

Regards,

Sumant.

Read only

Former Member
0 Likes
1,233

Why is the use in passing all bapis (ORDER_ITEMS_INX , ORDER_HEADER_INX) with all fields as 'X'.

Read only

Former Member
0 Likes
1,233

Hi,

I believe SAP will be defaulting the values if we don' t pass the X for the corresponding field..

If you pass the value and pass X in its corresponding X structure..Sap will consider that input otherwise it will put a default value...

Thanks,

Naren

Read only

0 Likes
1,233

From which structure we get the sub items for the corresponding line items while using this bapi for creating sales order

i want these fields to be displayed in o/p

SubItem KOMV KBETR CURRENCY(11,2)

This is a price, or price adjustment. Positive or Negative.

SubItem KOMV KWERT CURRENCY(13,2)

This is the extended price or adjustment. ExtAmount

Read only

Former Member
0 Likes
1,233

Hi,

Do you want to get the conditions after the sales order is created??

Then use the table KONV to get the conditions after the sales order is created..

The link is KONV-KNUMV = VBAK-KNUMV.

Thanks,

Naren

Read only

0 Likes
1,233

Thank you very much

Where r u from

tell me abt urself.

I am from hyderabad

Read only

Former Member
0 Likes
1,233

Hi,

My personal email address is there in my business card..Please send me an email..

Thanks,

Naren

Read only

Former Member
0 Likes
1,233

Please help me..

I am using BAPI_SALESORDER_CREATEFROMDAT2 for creating sales order for replace VA01,

can you please tell me in which field the amount KBETR (of items) is to be populated.

i thing that i will populate COND_VALUE in ORDER_CONDITIONS_IN with field kbetr but I don't know what will I populate field COND_TYPE ? the same problem I have with net value (NETWR).

Would you explain me what I will populate fields in differents fields of this BAPI ?