CA BAPI RFC Used the same way in S/4HANA

BAPI_OBJCL_CHANGE Classification: Change Object Assignment

Changes the characteristic values of an existing class assignment of an object. Developers use it for mass updates of classification data such as batch characteristics or material attributes. The value tables replace the complete current valuation, so read the existing values with BAPI_OBJCL_GETDETAIL first, change them and pass the full set back; then check RETURN and call BAPI_TRANSACTION_COMMIT.

Function group
CLBPA
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
OBJECTKEYBAPI1003_KEY-OBJECTObject key (concatenated)—
OBJECTTABLEBAPI1003_KEY-OBJECTTABLEObject tableYes
CLASSNUMBAPI1003_KEY-CLASSNUMClassYes
CLASSTYPEBAPI1003_KEY-CLASSTYPEClass typeYes
STATUSBAPI1003_KEY-STATUSClassification status—
STANDARDCLASSBAPI1003_KEY-STDCLASSStandard class indicator—
CHANGENUMBERBAPI1003_KEY-CHANGENUMBERChange number—
KEYDATEBAPI1003_KEY-KEYDATEKey date—
NO_DEFAULT_VALUESBAPI1003_KEY-FLAGDo not set default values—
KEEP_SAME_DEFAULTSBAPI1003_KEY-FLAGKeep the same default values—
OBJECTKEY_LONGBAPI1003_KEY-OBJECT_LONGObject key (long form)—

Exporting parameters

ParameterTypeDescription
CLASSIF_STATUSBAPI1003_KEY-STATUSResulting classification status

Tables parameters

ParameterTypeDescriptionRequired
ALLOCVALUESNUMNEWBAPI1003_ALLOC_VALUES_NUMNew numeric, date and time valuesYes
ALLOCVALUESCHARNEWBAPI1003_ALLOC_VALUES_CHARNew character valuesYes
ALLOCVALUESCURRNEWBAPI1003_ALLOC_VALUES_CURRNew currency valuesYes
RETURNBAPIRET2Return messagesYes

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'BAPI_OBJCL_CHANGE'
  EXPORTING
    objecttable = lv_objecttable
    classnum = lv_classnum
    classtype = lv_classtype
  IMPORTING
    classif_status = lv_classif_status
  TABLES
    allocvaluesnumnew = lt_allocvaluesnumnew
    allocvaluescharnew = lt_allocvaluescharnew
    allocvaluescurrnew = lt_allocvaluescurrnew
    return = lt_return.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report