Ansicht
Dokumentation
BAPI_QUOTATION_CREATEBOS - Create Customer Quotation with BOS
CL_GUI_FRONTEND_SERVICES - Frontend Services ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
You can use this method to create a customer quotation with BOS.
Example
Notes
Minimum requirements for creating a customer quotation
The following parameters, at least, must be transferred:
- Quotation header data via parameter QuotationHeaderIn
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 QuotationPartners
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 QuotationItemsIn
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 QuotationItemsIn. This must correspond to the
PCKG_NO of the initial node (uppermost outline level with hierarchy level 0) in transfer parameter QuotationServices.
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 QuotationSchedulesIn:
ITM_NUMBER | item number |
SCHED_LINE | schedule line number |
REQ_DATE | schedule line date |
REQ_QTY | quotation quantity in sales unit of measure |
Creating Services
You can transfer service data for the quotation item via parameters QuotationServices and QuotationServicesText and QuotationServicesCond.
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:
QuotationCfgsRef | configuration: reference data | |
QuotationCfgsInst | configuration: instances | |
QuotationCfgsPartOf | configuration: instances | |
QuotationCfgsValue | 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 customer quotation 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
PARTNERADDRESSES
QUOTATIONCFGSBLOB
QUOTATIONCFGSINST
QUOTATIONCFGSPARTOF
QUOTATIONCFGSREF
QUOTATIONCFGSREFINST
QUOTATIONCFGSVALUE
QUOTATIONCFGSVK
QUOTATIONCONDITIONSIN
QUOTATIONCOSTITEMS
QUOTATIONCOSTMODEL
QUOTATIONHEADERIN
QUOTATIONHEADERINX
QUOTATIONITEMSIN
QUOTATIONITEMSINX
QUOTATIONKEYS
QUOTATIONMODELVALUE
QUOTATIONPARTNERS
QUOTATIONSCHEDULESIN
QUOTATIONSCHEDULESINX
QUOTATIONSERVICES
QUOTATIONSERVICESCOND
QUOTATIONSERVICESTEXT
QUOTATIONTEXT
RETURN
SALESDOCUMENT
SALESDOCUMENTIN
SENDER
TESTRUN
Exceptions
PROCESSING_ERRORFunction Group
2031001TXBHW - Original Tax Base Amount in Local Currency General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 10704 Date: 20240523 Time: 164628 sap01-206 ( 84 ms )