SAP Note 481102 - BAPI_SALESORDER_CREATEFROMDAT2 & configuration

Component : SD BOM, Variant processing - Sales Documents BAPI's

Solution : https://service.sap.com/sap/support/notes/481102 (SAP Service marketplace login required)

Summary :
When utilizing BAPI_SALESORDER_CREATEFROMDAT2 to create a sales order, discrepancies may arise between the characteristic valuation pre-set in the BAPI and the one used after order creation. This issue occurs if the material involved is a configurable variant where configuration is optional, indicated by a 'Cnfg' flag set as '*', and a pricing reference material is also set in the material master. A solution requires applying a two-step process similar to transaction VA01: initially create the order using BAPI_SALESORDER_CREATEFROMDAT2 and subsequently perform reconfiguration with BAPI_SALESInspector_CHANGE. Alternatively, forcing mandatory configuration by setting the 'Cnfg' flag to '+' simplifies this into a single-step process.

Key words :
function module bapi_salesorder_createfromdat2, pricing reference material, material variant, entered material, material master, sales order, characteristic valuation, terms bapi, reconfigure reason, problem occurs

Related Notes :

774346Composite SAP Note: Material variants
550431FAQ: BAPI in sales - general questions
366265How should I fill the BAPI parameters?