Ansicht
Dokumentation

BS01_SALESDOCUMENT_CREATE - Creation of a Sales Document with BOS

BS01_SALESDOCUMENT_CREATE - Creation of a Sales Document with BOS

BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this method you can create customer sales and distribution documents.

The minimum input parameters for this are:

  • Order header data (via the structure SALES_HEADER_IN) and
  • Partner data (via the table SALES_PARTNERS)

You provide the item data via the table SALES_ITEMS_IN.

There are two ways to assign the item numbers:

  • Manual - you complete the relevant fields
  • Automatic - the relevant fields remain blank or 0. The item number is in this case assigned according to the customizing settings.

If they are configurable items you have to provide configuration data in the following tables:

  • SALES_CFGS_REF
  • SALES_CFGS_INST
  • SALES_CFGS_PART_OF
  • SALES_CFGS_VALUE

Via the structure BAPICCARD, credit card data can be transferred - this is data on card identification and on authorization that took place on an external system.

After creation of the sales order has been effected, you get back the document number (field SALESDOCUMENT) and details via the participating partner (via the structures SOLD_TO_PARTY, SHIP_TO_PARTY and BILLING_PARTY).

Errors that may arise are notified via the parameter RETURN.





Parameters

BEHAVE_WHEN_ERROR
BINARY_RELATIONSHIPTYPE
BUSINESS_OBJECT
COSTINGVARIANT
EXTENSIONIN
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
PARTNERADDRESSES
RETURN
SALESDOCUMENT
SALESDOCUMENT_EX
SALES_CCARD
SALES_CFGS_BLOB
SALES_CFGS_INST
SALES_CFGS_PART_OF
SALES_CFGS_REF
SALES_CFGS_REFINST
SALES_CFGS_VALUE
SALES_CFGS_VK
SALES_CONDITIONS_IN
SALES_CONTRACT_IN
SALES_CONTRACT_INX
SALES_HEADER_IN
SALES_HEADER_INX
SALES_ITEMS_IN
SALES_ITEMS_INX
SALES_KEYS
SALES_PARTNERS
SALES_SCHEDULES_IN
SALES_SCHEDULES_INX
SALES_SERVICES
SALES_SERVICES_COND
SALES_SERVICES_COST_ITEMS
SALES_SERVICES_COST_MODEL
SALES_SERVICES_MODEL_VAL
SALES_SERVICES_TEXT
SALES_TEXT
SENDER
TESTRUN

Exceptions

Function Group

BOS01

General Material Data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 4294 Date: 20240523 Time: 184305     sap01-206 ( 43 ms )