You are on page 1of 2

SAP Note No. 481102 16.05.

2003 Page 1
________________________________________________________________________

Number 481102
Version 2 from 20.12.2001
Status Released for Customer
Set on 20.12.2001

Language EN
Master language DE
Short text BAPI_SALESORDER_CREATEFROMDAT2 & configuration

Responsible SAP AG
Component SD-SLS-GF-VA
SD BOM, Variant processing
________________________________________________________________________

Long text

Symptom
You create a sales order by means of function module
BAPI_SALESORDER_CREATEFROMDAT2. In the sales order, the characteristic
valuation of the configuration deviates from the characteristic
valuation specified for the BAPI.

Additional key words


BAPI, configuration, material variant, reconfigure

Cause and preconditions


This problem occurs if the entered material is a material variant
(storage type) for which the 'Cnfg'flag is set to ' * ' in the
requirements class, that is, a configuration is possible, but not
mandatory. In addition, a pricing reference material is maintained in
the material master.

During the creation of the order in the R/3 System by means of


Transaction VA01, the system would run the configuration in the
background first and use the valuation of the material variant from the
material master. With the 'Configuration' button on the item overview,
you could then call the configuration in the foreground and carry out a
reconfiguration of the material variant. As you can see, these are two
substeps.

Solution
Therfore, two steps must be carried out in the BAPI scenario as in the
VA01online scenario. First, you must create the sales order by means of
BAPI_SALESORDER_CREATEFROMDAT2. Then you can carry out the
reconfiguration in the generated document by means of
BAPI_SALESORDER_CHANGE.

This procedure is necessary for all scenarios in which the configuration


must be called manually during the creation in Transaction VA01.

For the case described here, you have also the option to break down the
two-step scenario into a one-step scenario by setting the 'Cnfg' flag to
'+' in the requirements class, that is, a configuration is mandatory.
In the sales order (VA01), the configuration would then be called in the
foreground already during the creation of the material, and the material
variant could be reconfigured.
The same applies to the BAPI scenario. In this way, the creation and
Page 2

reconfiguration can be carried out in one step with function module


BAPI_SALESORDER_CREATEFROMDAT2.

________________________________________________________________________

Note is release independent


Further components

SD-SLS-GF-IF
Sales Documents BAPI's
________________________________________________________________________

Reference to related Notes

Number Short text


____________________________________________________________
366265 How should I fill the BAPI parameters?
550431 FAQ: BAPI in sales - general questions

________________________________________________________________________

You might also like