Fonction SAP BAPI_CFG_CREATE - Starts a new configuration (root item, initializes configurator)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CFG_HEADER_TO_BE_LOADED CUXE1CUCFG u 397 X Header of input data
DATE BAPICU-CFG_DATE D 8 SY-DATUM X Date
OBJECT_ID BAPICU-MATERIAL C 18
PLANT BAPIITEMIN-PLANT C 4 0001 X Plant
QUANTITY BAPICU-QUANTITY P 8 1 X Quantity
ROOT_NAME BAPICU-OBJKEY C 50 Object to be configured
ROOT_TYPE BAPICU-OBJTYP C 30 'MARA' X Object type of object to be configured

Paramètre Reférence Type Long. Description
CFG_HANDLE BAPICU-CFG_HANDLE N 18 Resulting pointer to configuration
ROOT_INSTANCE BAPICU-INSTANCE N 8 Top instance in configuration

Paramètre Reférence Long. Facultatif Description
INSTANCES_TO_BE_LOADED CUXE1CUINS 233 X Instance for input data
PART_OF_TO_BE_LOADED CUXE1CUPRT 123 X Component hierarchy of input data
VALUES_TO_BE_LOADED CUXE1CUVAL 276 X Assigned values for input data

Exception Description
ERROR An error has occurred

Functionality
You use this function module to start the configuration of an object.
The function module first initializes the configurator and deletes allglobal variables and tables of the configurator.
Then it creates an instance for the ROOT object and copies all defaultvalues to it.
If the interface already contains external input data, the functionmodule now sets this data for the instance. (This currently onlyapplies to the characteristic values of the ROOT object.)
The object dependencies of the instance are taken into account.
The function module returns the temporary identification of theinstance of the ROOT object.

Notes
Only one configuration profile can be maintained for the ROOT object.
An application (for example, SD01) must be maintained in the settingsfor the ROOT object.
Since this BAPI is called without a reference to environment data,configuration cannot be carried out, for example, for the data of anorder item or order header.

Further information
For information on the format of the configuration file, see the LOVariant Configuration Guide, Chapter 'EDI for Configurable Materials'.