Ansicht
Dokumentation

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

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

TXBHW - Original Tax Base Amount in Local Currency   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This BAPI changes an existing classification, or creates it if it does not yet exist. The classification is defined by the required input fields object key (ObjectKey) and class name (AllocDetail-ClassNum). The default value for optional parameter date (KeyDate) is the system date, on which all classifications are valid. The new characteristics and/or values are transferred in different tables according to type. Numeric, time, and date characteristics are transferred in table AllocValuesNumNew, character and boolean characteristics in table AllocValuesCharNew, and currency characteristics in table AllocValuesCurrNew.

Notes

The object key ObjctKey can be generated from key fields object, object table, and class type, by using BAPI ObjectClassification.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 the object key.

Results

If the BAPI runs successfully, table Return contains no messages of type '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 (or creates a whole new assignment), but does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read by BAPI_OBJCL_GETCLASSES and deleted by BAPI_OBJCL_DELETE. Then you create the new assignments with BAPI_OBJCL_CREATE.

The information transferred in this BAPI replaces the old information completely. An empty field means "delete entry", not "no change".

This BAPI does not change the database. To do this, BAPI BapiService.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 for configuration.





Parameters

ALLOCVALUESCHAR_NEW
ALLOCVALUESCURR_NEW
ALLOCVALUESNUM_NEW
CHANGENUMBER
CLASSIF_STATUS
CLASSNUM
CLOBJECTKEY
KEYDATE
NO_DEFAULT_VALUES
RETURN
STANDARDCLASS_NEW
STATUS_NEW

Exceptions

Function Group

CLBPA

General Data in Customer Master   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3486 Date: 20240523 Time: 155043     sap01-206 ( 56 ms )