SAP Function BAPI_OBJCL_CHANGE - Classification BAPI: Change Assignment

Parameter Reference Type Length Default Optional Text
CHANGENUMBER BAPI1003_KEY-CHANGENUMBER C 12 X Change Number
CLASSNUM BAPI1003_KEY-CLASSNUM C 18 Class Number
CLASSTYPE 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
OBJECTKEY BAPI1003_KEY-OBJECT C 50 Object Key, Concatenated
OBJECTTABLE 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

Parameter Reference Type Length Text
CLASSIF_STATUS BAPI1003_KEY-STATUS C 1 Classification Status

Parameter Reference Length Optional Text
ALLOCVALUESCHARNEW BAPI1003_ALLOC_VALUES_CHAR 124 New Assigned CHAR and BOOL Values
ALLOCVALUESCURRNEW BAPI1003_ALLOC_VALUES_CURR 104 New Assigned CURR Values
ALLOCVALUESNUMNEW BAPI1003_ALLOC_VALUES_NUM 96 New NUM, DATE, and TIME Values
RETURN BAPIRET2 548 Error Messages

Functions
This BAPI changes an existing classification, or creates theclassification if it does not yet exist. The classification is definedby the required entry fields for the object key (ObjectKey), objecttable (ObjectTable), class name (AllocDetail-Class_Num), and class type(AllocDetail-Class_Type). The default value for the optional date field(KeyDate) is the system date, on which all classifications becomevalid. The new characteristics and/or values are transferred todifferent tables according to data type. Numeric, time, and datecharacteristics are transferred to table AllocValuesNumNew, characterand boolean characteristics are transferred to tableAllocValuesCharNew, and currency characteristics are transferred toAllocValuesCurrNew.

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

Results
If the BAPI runs without errors, table Return contains nomessages of type "E".
Assignment created:,,,,message CL735
Assignment changed:,,,,message CL737
Assignment not changed:,,,,message CL738

Caution
This BAPI only changes the parameters of an existing assignment (orcreates a whole new assignment), but it does not delete the assignmentto a class and replace it with an assignment to another class. If youwant to reassign an object, the old assignments must be read withBAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the newassignments must be created with BAPI_OBJCL_CREATE.
The information transferred by this BAPI replaces all old information.An empty field means "delete entry!", not "no change".
This BAPI does not change the database. To change the database, callBAPI BapiService.TransactionCommit afterwards.
You can only use this BAPI for objects that are not classes!
This BAPI only processes assigned values for classification - 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
Class type

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.

Default
Blank

Description
Object key, concatenated

Description
Object table

Description
Indicator: standard class

Description
Classification status

Default
1

Description
New assigned CHAR and BOOL values

Description
New assigned CURR values

Description
New assigned NUM, DATE, and TIME values

Description
Error messages

1581535Features of class type 026
1346360EWM: Notes for implementation (composite SAP Note)
1272566BAPI_OBJCL_CHANGE: Object for class type is not defined II
1226172MAM3.0: Extension to note 1224454
1021790MAM3.0-Characteristic Values are overwritten if not provided
631940BAPI_OBJCL_CHANGE: Default values are set
598921BAPI_OBJCL_CHANGE_KEY: Interface extended
597758BAPI_OBJCL_CHANGE: Termination RAISE_EXCEPTION
594658BAPI_OBJCL_CHANGE: Value not found (C1801)