Ansicht
Dokumentation

BS01_SALESORDER_CREATE - Sales Order: Create with BOS

BS01_SALESORDER_CREATE - Sales Order: Create with BOS

rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this function module to create customer orders that contain a BOS.

You must enter at least the following as input parameters:

  • Order header data (via structure ORDER_HEADER_IN) and
  • Partner data (via table ORDER_PARTNERS)

You enter the item data via table ORDER_ITEMS_IN.

There are two options for assigning item numbers:

  • Manually - you fill the appropriate fields.
  • Automatically - the appropriate fields remain initial (blank). Item number assignment then takes place according to the settings in Customizing.

If you are dealing with configurable materials, you must enter the configuration data in the following tables:

  • ORDER_CFGS_REF
  • ORDER_CFGS_INST
  • ORDER_CFGS_PART_OF
  • ORDER_CFGS_VALUE

Credit card data can be transferred via structure BAPICCARD; on the one hand credit card identification data and on the other hand data on an authorization that has taken place in an external system.

You can transfer BOS data for the order item in the following tables:

  • ORDER_SERVICES

ORDER_SERVICES_TEXT (service line texts)

ORDER_SERVICES_COND (service line conditions)

Customer fields in tables VBAK, VBAP, VBEP and ESLL can be transferred using structure EXTENSIONIN.

After the customer order has been created successfully. you receive its document number (parameter SALESDOCUMENT). Any errors that occur are returned via parameter RETURN.

Notes

  1. Required entries:

ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division

ORDER_PARTNERS : PARTN_ROLE Partner role, sold-to party
PARTN_NUMB Customer number

ORDER_ITEMS_IN : MATERIAL Material number
TARGET_QTY Target quantity in sales unit of
measure

ORDER_SCHEDULES : REQ_QTY Order quantity in sales unit of
measure

You only have to maintain one quantity:
target quantity or order quantity in sales unit of measure.

  1. Ship-to party:

If you do not enter a ship-to party, the following applies:
ship-to party = sold-to party

  1. Key words in German:

The following key words have to be entered in German irrespective of
the logon language:

  • DOC_TYPE
    Sales document type, for example TALV for "Terminauftrag mit
    Leistungsverzeichnis" = standard order with BOS

  • PARTN_ROLE
    Partner role, for example, WE for "Warenempfänger" = ship-to party

Further information

You can find further information in OSS. Note 93091 contains general information on BAPIs in SD.





Parameters

BEHAVE_WHEN_ERROR
BINARY_RELATIONSHIPTYPE
EXTENSIONIN
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
ORDER_CCARD
ORDER_CFGS_BLOB
ORDER_CFGS_INST
ORDER_CFGS_PART_OF
ORDER_CFGS_REF
ORDER_CFGS_REFINST
ORDER_CFGS_VALUE
ORDER_CFGS_VK
ORDER_CONDITIONS_IN
ORDER_HEADER_IN
ORDER_HEADER_INX
ORDER_ITEMS_IN
ORDER_ITEMS_INX
ORDER_KEYS
ORDER_PARTNERS
ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX
ORDER_SERVICES
ORDER_SERVICES_COND
ORDER_SERVICES_TEXT
ORDER_TEXT
RETURN
SALESDOCUMENT
SALESDOCUMENT_EX
SENDER
TESTRUN

Exceptions

Function Group

BOS01

General Material Data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 6516 Date: 20240523 Time: 160821     sap01-206 ( 52 ms )