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 Document Creation with SD_SALESDOCUMENT_CREATE

former_member445996
Participant
0 Likes
635

Hi All,

I am trying to create a Sales Order using FM SD_SALESDOCUMENT_CREATE. I have the following questions:

1). Do I need to specify the Line Item Numbers? If I don't need to then how does SAP know which line items in SALES_ITEMS_INX and SALES_SCHEDULES_IN tables are referring to the items in SALES_ITEMS_IN?

2). How do I add the pricing conditions? I see the table SALES_CONDITIONS_IN but what fields do I need to fill in?

Do I need to fill in the Step number, Condition Count, Condition Type, and Condition Value fields?

Any suggestions will be greatly appreciated.

Regards.

Hi All,

I am trying to create a Sales Order using FM SD_SALESDOCUMENT_CREATE. I have the following questions:

1). Do I need to specify the Line Item Numbers? If I don't need to then how does SAP know which line items in SALES_ITEMS_INX and SALES_SCHEDULES_IN tables are referring to the items in SALES_ITEMS_IN?

2). How do I add the pricing conditions? I see the table SALES_CONDITIONS_IN but what fields do I need to fill in?

Do I need to fill in the Step number, Condition Count, Condition Type, and Condition Value fields?

Any suggestions will be greatly appreciated.

Regards.

2 REPLIES 2
Read only

Former Member
0 Likes
553

Hi Aurag,

Why dont you use the BAPI "BAPI_SALESORDER_CREATEFROMDAT2" - the line item numbers can be assigned by you or system will assign them as per configuration setup. Look at the documentation for this BAPI and you will understand what needs to be populated.

Cheers

Read only

former_member445996
Participant
0 Likes
553

Thanks for the reply. I am actually creating a Sales Contract rather than a Sales Order.