Fonction SAP BAPI_OBJCL_CHANGE_KEY - Classification BAPI: Change Properties of Assignment (Key)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPI1003_KEY-CHANGENUMBER C 12 X Change Number
CLASSNUM BAPI1003_KEY-CLASSNUM C 18 Class Number
CLOBJECTKEY 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 X Default Values
STANDARDCLASS_NEW BAPI1003_KEY-STDCLASS C 1 X Indicator: Standard Class
STATUS_NEW 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_NEW BAPI1003_ALLOC_VALUES_CHAR 124 Assigned CHAR and BOOL Values
ALLOCVALUESCURR_NEW BAPI1003_ALLOC_VALUES_CURR 104 Assigned CURR Values
ALLOCVALUESNUM_NEW BAPI1003_ALLOC_VALUES_NUM 96 Assigned NUM, DATE, and TIME Values
RETURN BAPIRET2 548 Return Parameters

Functionality
This BAPI changes an existing classification, or creates it if it doesnot yet exist. The classification is defined by the required inputfields object key (ObjectKey) and class name (AllocDetail-ClassNum).The default value for optional parameter date (KeyDate) is the systemdate, on which all classifications are valid. The new characteristicsand/or values are transferred in different tables according to type.Numeric, time, and date characteristics are transferred in tableAllocValuesNumNew, character and boolean characteristics in tableAllocValuesCharNew, and currency characteristics in tableAllocValuesCurrNew.

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

Results
If the BAPI runs successfully, table Return contains no messages oftype 'E'.
Assignment was created:,,,,Message CL735
Assignment was changed:,,,,Message CL737
Assignment was not changed:,,,,Message CL738

Caution
This BAPI only changes the parameters of an existing assignment (orcreates a whole new assignment), but does not delete the assignment toa class and replace it with an assignment to another class. If you wantto reassign an object, the old assignments must be read byBAPI_OBJCL_GETCLASSES and deleted by BAPI_OBJCL_DELETE. Then you createthe new assignments with BAPI_OBJCL_CREATE.
The information transferred in this BAPI replaces the old informationcompletely. An empty field means "delete entry", not "no change".
This BAPI does not change the database. To do this, BAPIBapiService.TransactionCommit must be called afterward.
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
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 type 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