2006 Nov 06 9:27 PM
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.
2006 Nov 06 9:40 PM
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
2006 Nov 06 9:42 PM
Thanks for the reply. I am actually creating a Sales Contract rather than a Sales Order.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |