Ansicht
Dokumentation
BAPI_SALESORDER_CREATEBOS - Create Sales Order with BOS
TXBHW - Original Tax Base Amount in Local Currency Addresses (Business Address Services)This documentation is copyright by SAP AG.
Functionality
You can use this method to create a sales order with BOS.
Example
Notes
Minimum requirements for creating a sales order
The following parameters, at least, must be transferred:
- Order header data via parameter OrderHeaderIn
DOC_TYPE | sales document type |
SALES_ORG | sales organization |
DISTR_CHAN | distribution channel |
DIVISION | division |
- The sales document type must be entered in correspondance with the logon language.
- Partner data via parameter OrderPartners
PARTN_ROL | partner function AG (sold-to party) | |
PART_NUMB | customer number |
- If you do not enter a ship-to party, then ship-to party = sold-to party.
- The partner function must be consistent with the logon language.
Minimum entry requirements for creating a document item
- Document item data via parameter OrderItemsIn
ITM_NUMBER | item number |
MATERIAL | material number |
- There are two options for number assignment:
- If you choose external number assignemnt via parameter IntNumberAssignment, you must enter the item number in field ITM_NUMBER.
- If you choose internal number assignment via parameter IntNumberAssignment, the system assigns the item numbers according to your settings in Customizing. For internal number assignment, field ITM_NUMBER must remain initial.
Minimum entry requirements for creating a document item with BOS
In addition to the document items, you must also transfer the following parameters if you want to create a document item with BOS:
- The package number for the BOS PCKG_NO must be transferred via parameter OrderItemsIn. This must correspond to the PCKG_NO of the initial node (uppermost outline level with hierarchy level 0) in transfer parameter OrderServices/>.
There must be exactly one schedule line for a document item with BOS. You must set a quantity of 1. You enter the dtaes via the schedule line data.
You must enter the following data via parameter OrderSchedulesIn:
ITM_NUMBER | item number |
SCHED_LINE | schedule line number |
REQ_DATE | schedule line date |
REQ_QTY | order quantity in sales unit of measure |
Creating Services
You can transfer service data for the order item via parameters OrderServices and OrderServicesText and OrderServicesCond.
Customer fields - tables VBAK, VBAP, VBEP and ESLL can be transferred via parameter ExtensionIn.
Transfer of Configuration Data
If you are dealing with configurable data, you must transfer the configuation data in the following parameters:
OrderCfgsRef | configuration: reference data | |
OrderCfgsInst | configuration: instances | |
OrderCfgsPartOf | configuration: instances | |
OrderCfgsValue | configuration: characteristic values |
Commit Control
This method does not include a database commit. This means that the calling application must exit the commit so that changes can be made on the database. The following method is available for this: BAPI_TRANSACTION_COMMIT.
Return Values
After you have created the sales order successfully, the document number is returned via parameter SalesDocument.
If errors occur during processing, they are returned to table parameter Return. Information messages are also logged in this parameter.
Further information
SAP note number 93091 contains general information for BAPIs in Sales and Distribution (SD).
Parameters
BEHAVEWHENERRORBINARYRELATIONSHIPTYPE
COSTINGVARIANT
EXTENSIONIN
INTNUMBERASSIGNMENT
LOGICSWITCH
ORDERCCARD
ORDERCFGSBLOB
ORDERCFGSINST
ORDERCFGSPARTOF
ORDERCFGSREF
ORDERCFGSREFINST
ORDERCFGSVALUE
ORDERCFGSVK
ORDERCONDITIONSIN
ORDERCOSTITEMS
ORDERCOSTMODEL
ORDERHEADERIN
ORDERHEADERINX
ORDERITEMSIN
ORDERITEMSINX
ORDERKEYS
ORDERMODELVALUE
ORDERPARTNERS
ORDERSCHEDULESIN
ORDERSCHEDULESINX
ORDERSERVICES
ORDERSERVICESCOND
ORDERSERVICESTEXT
ORDERTEXT
PARTNERADDRESSES
RETURN
SALESDOCUMENT
SALESDOCUMENTIN
SENDER
TESTRUN
Exceptions
Function Group
2032001Addresses (Business Address Services) RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 10507 Date: 20240523 Time: 172440 sap01-206 ( 78 ms )