Fonction SAP BAPI_OBJCL_CREATE - Classification BAPI: Create Assignment

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPI1003_KEY-CHANGENUMBER C 12 X Change Number
CLASSNUMNEW BAPI1003_KEY-CLASSNUM C 18 Class Number
CLASSTYPENEW BAPI1003_KEY-CLASSTYPE C 3 Class Type
KEYDATE BAPI1003_KEY-KEYDATE D 8 SY-DATUM X Date
NO_DEFAULT_VALUES BAPI1003_KEY-FLAG C 1 SPACE X Default Values
OBJECTKEYNEW BAPI1003_KEY-OBJECT C 50 Object Key, Concatenated
OBJECTTABLENEW BAPI1003_KEY-OBJECTTABLE C 30 Object Table
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 Error Messages

Function
This BAPI creates a classification with assigned values if theclassification does not yet exist. The classification is defined by therequired fields object key (ObjectKeyNew), object table(ObjectTableNew), class name (AllocDetail-Class_Num), and class type(AllocDetail-Class_Type). The characteristics and their values aretransferred in different tables according to type. Numeric, time, anddate characteristics are transferred in table AllocValuesNum. Characterand boolean characteristics are transferred in table AllocValuesChar,and currency characteristics are transferred in table AllocValuesCurr.
If the BAPI runs successfully, table RETURN contains no messages oftype 'E'.

Note
The object key (ObjectKey) must be transferred in internal format,before conversion exits. For example, a material number must betransferred with leading zeros.

Caution
This BAPI does not change the database. To change the database, callBAPI BapiService.TransactionCommit afterwards.
This BAPI can only be used with objects that are not classes.
The values processed in this BAPI only affect classification, notconfiguration.

Description
Change number

Description
Class number

Description
Class type

Description
Date

Default
System date

Description
Object key, concatenated

Description
Object table

Description
Indicator: standard class

Description
Classification status

Default
1

Description
Assigned CHAR and BOOL value

Description
Assigned CURR values

Description
Assigned NUM, DATE, and TIME values

Description
Error messages

1581535Features of class type 026
631940BAPI_OBJCL_CHANGE: Default values are set
598921BAPI_OBJCL_CHANGE_KEY: Interface extended
597758BAPI_OBJCL_CHANGE: Termination RAISE_EXCEPTION