Fonction SAP BAPI_OBJCL_CREATE_KEY - BAPI for Classification: Create Assignment (Key)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPI1003_KEY-CHANGENUMBER C 12 X Change Number
CLASSNUM_NEW BAPI1003_KEY-CLASSNUM C 18 Class Number
CLOBJECTKEY_NEW BAPI1003_KEY-OBJECT_GUID N 18 Internal Object Number
KEYDATE BAPI1003_KEY-KEYDATE D 8 SY-DATUM X Date
NO_DEFAULT_VALUES BAPI1003_KEY-FLAG C 1 SPACE X Default Values
STANDARDCLASS BAPI1003_KEY-STDCLASS C 1 X Indicator: Standard Class
STATUS BAPI1003_KEY-STATUS C 1 '1' X Classification Status

Paramètre Reférence Type Long. Description
CLASSIF_STATUS BAPI1003_KEY-STATUS C 1 Classification Status

Paramètre Reférence Long. Facultatif Description
ALLOCVALUESCHAR BAPI1003_ALLOC_VALUES_CHAR 124 X Assigned CHAR and BOOL Values
ALLOCVALUESCURR BAPI1003_ALLOC_VALUES_CURR 104 X Assigned CURR Values
ALLOCVALUESNUM BAPI1003_ALLOC_VALUES_NUM 96 X Assigned NUM, DATE, and TIME Values
RETURN BAPIRET2 548 Return Parameters

Functionality
This BAPI creates a classification with assigned values, if it does notyet exist. The classification is defined by the required fields objectkey (ObjectKey) and class name (AllocDetail-Class_Num). Thecharacteristics and their values are transferred in different tables,according to type. Numeric, time, and date characteristics aretransferred in table AllocValuesNum, character and booleancharacteristics in table AllocValuesChar, and currency characteristicsin table AllocValuesCurr.
If the BAPI runs successfully, table RETURN contains no messages oftype 'E'.

Notes
The object key ObjctKey can be generated from the key fields object,object table, and class type by BAPIObjectClassification.GetKeyOfObject.
If these fields are defined and only one function module is to be used,use function module BAPI_OBJCL_CREATE. This skips the conversion to theobject key.

Caution
This BAPI does not change the database. To do this, BAPIBapiService.TransactionCommit must be called afterward.
This BAPI can only be used with objects that are not classes.
The values processed in this BAPI are for classification only, not forconfiguration.

Description
This is the classification status (standard 1,2,3, or 5) of theprocessed class-to-object assignment. If the BAPI has not transferredthe update due to an error, this parameter is empty.

Description
Change number

Description
Class number

Description
Date

Default
System date

Description
If the object to be classified does not yet have any assignedcharacteristic values, NO default values are set for new values.

Description
Standard class indicator

Description
Classification status

Description
Assigned values of types CHAR and BOOLEAN

Description
Assigned values of type CURR

Description
Assigned values of type NUM, DATE, and TIME

Description
Return parameters

598921BAPI_OBJCL_CHANGE_KEY: Interface extended