Ansicht
Dokumentation

BAPI_SALESDOCU_CREATEFROMDATA - Creating a Sales and Distribution Document

BAPI_SALESDOCU_CREATEFROMDATA - Creating a Sales and Distribution Document

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this method, you can create sales documents.

Sales document type is checked with sales and distribtion document type.

You must at least enter order header data (using the structure ORDER_HEADER_IN) and partner data (using the table ORDER_PARTNERS).

Furthermore, you must enter the business object for which the sales document is to be created:

- BUS2030 for inquiries
- BUS2031 for quotations
- BUS2032 for sales orders

Enter the item data in the table ORDER_ITEMS_IN. The item numbers can be assigned manually, by filling in the relevant fields, or automatically, according to Customizing, by leaving the relevant fields blank.

In the case of configurable data, you must enter this in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.

Credit card data can be transferred, using the BAPICARD structure, on the one hand, data for card identification, on the other, data for an authorization which has taken place in an external system.

Once you have created the sales documents successfully, you will receive the document number (SALESDOCUMENT field) and detailed data for the partners involved will also be sent back (via the SOLD_TO_PARTY, SHIP_TO_PARTY and BILLING_PARTY). Any errors that may occur will be announced via the RETURN parameter. In order to make a statement regarding price and availability situation, you will receive detailed information in the ORDER_ITEMS_OUT table.

Example

Notes

Further information





Parameters

BILLING_PARTY
BUSINESS_OBJECT
CONVERT_PARVW_AUART
ORDER_CCARD
ORDER_CFGS_BLOB
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_REF
ORDER_CFGS_VALUE
ORDER_HEADER_IN
ORDER_ITEMS_IN
ORDER_ITEMS_OUT
ORDER_PARTNERS
ORDER_SCHEDULE_EX
REFRESH_V45I
RETURN
SALESDOCUMENT
SHIP_TO_PARTY
SOLD_TO_PARTY
WITHOUT_COMMIT

Exceptions

Function Group

2032

RFUMSV00 - Advance Return for Tax on Sales/Purchases   General Material Data  
This documentation is copyright by SAP AG.

Length: 3420 Date: 20240523 Time: 183522     sap01-206 ( 47 ms )