Ansicht
Dokumentation
BAPI_QUOTATION_CREATEFROMDATA2 - Customer Quotation: Create Customer Quotation
BAL_S_LOG - Application Log: Log header data Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
Using this method, you can create customer quotations.
For this, you must enter at least header data (via the structure QUOTATION_HEADER_IN) and partner data (via the structure QUOTATION_PARTNERS) as input parameters.
Enter the item data via the table QUOTATION_ITEMS_IN. The item number can be entered manually, by filling out the relevant fields, or automatically, according to Customizing, by leaving the relevant fields blank.
If you are dealing with configurable items, you must enter the configuration data in the tables QUOTATION_CFGS_REF, QUOTATION_CFGS_INST, QUOTATION_CFGS_PART_OF and QUOTATION_CFGS_VALUE. When you have successfully created a customer quotation, you will
receive the document number (SALESDOCUMENT field). Any errors that might occur will be announced via the parameter RETURN.
Example
Notes
-
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
-
Ship-to party:
If no ship-to party is entered, use the following: Sold-to party = Ship-to party. -
Commit Control:
The BAPI does not have a Commit Database. This means that the relevant application must make sure that Commit carries out changes on the database. The following BAPI code is available: BAPI_TRANSACTION_COMMIT. BAPI_TRANSACTION_COMMIT
Parameters
BEHAVE_WHEN_ERRORBINARY_RELATIONSHIPTYPE
CONVERT
EXTENSIONEX
EXTENSIONIN
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
PARTNERADDRESSES
QUOTATION_CFGS_BLOB
QUOTATION_CFGS_INST
QUOTATION_CFGS_PART_OF
QUOTATION_CFGS_REF
QUOTATION_CFGS_REFINST
QUOTATION_CFGS_VALUE
QUOTATION_CFGS_VK
QUOTATION_CONDITIONS_IN
QUOTATION_CONDITIONS_INX
QUOTATION_HEADER_IN
QUOTATION_HEADER_INX
QUOTATION_ITEMS_IN
QUOTATION_ITEMS_INX
QUOTATION_KEYS
QUOTATION_PARTNERS
QUOTATION_SCHEDULES_IN
QUOTATION_SCHEDULES_INX
QUOTATION_TEXT
RETURN
SALESDOCUMENT
SALESDOCUMENTIN
SENDER
TESTRUN
Exceptions
Function Group
2031TXBHW - Original Tax Base Amount in Local Currency Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 5430 Date: 20240523 Time: 165207 sap01-206 ( 50 ms )