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 bapi

Former Member
0 Likes
406

Hi,

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order BAPI.

it is created succesfully but line items are not create, only header data I am able to see.

Apart from line items table is there any other mandatory internal table that we need to pass to BAPI.Came to know that pricing condition table is mandatory plz confirm.

Regards

Rakesh

Hi,

I am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order BAPI.

it is created succesfully but line items are not create, only header data I am able to see.

Apart from line items table is there any other mandatory internal table that we need to pass to BAPI.Came to know that pricing condition table is mandatory plz confirm.

Regards

Rakesh

2 REPLIES 2
Read only

Former Member
0 Likes
344

Hi,

I guess u gotta fill this table as well...ORDER_PARTNERS. Try executing the BAPI again. In case u face any problems, use this function module, SD_order_create_www.

Read only

Former Member
0 Likes
344

Hi Rakesh

While creating sales order using FM: <b>BAPI_SALESORDER_CREATEFROMDAT2</b>, please make sure ORDER_ITEMS_IN, ORDER_ITEMS_INX, ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX.

Pricing Conditions will not be mandatory to create a sales order via BAPI.

As you were saying, you can create a sales order but not with items. Do populate the internal tables that i have specified above.

Also try to pass the item number internally, this will help you in identifying the schedule lines.

Kind Regards

Eswar