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

BAPI_OBJCL_CREATE Classification: Create Object Assignment

Assigns an object (for example a material, batch or equipment) to a class and stores its characteristic values, like the classification screen of the master data transactions. It is used in master data migration and in interfaces that classify new objects. Pass the object key (concatenated key or OBJECTKEYNEW_LONG), object table, class and class type, enter values in the CHAR/NUM/CURR tables, then check RETURN and call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
OBJECTKEYNEWBAPI1003_KEY-OBJECTObject key (concatenated)—
OBJECTTABLENEWBAPI1003_KEY-OBJECTTABLEObject table (for example MARA)Yes
CLASSNUMNEWBAPI1003_KEY-CLASSNUMClassYes
CLASSTYPENEWBAPI1003_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—
OBJECTKEYNEW_LONGBAPI1003_KEY-OBJECT_LONGObject key (long form)—

Exporting parameters

ParameterTypeDescription
CLASSIF_STATUSBAPI1003_KEY-STATUSResulting classification status

Tables parameters

ParameterTypeDescriptionRequired
ALLOCVALUESNUMBAPI1003_ALLOC_VALUES_NUMNumeric, date and time values—
ALLOCVALUESCHARBAPI1003_ALLOC_VALUES_CHARCharacter values—
ALLOCVALUESCURRBAPI1003_ALLOC_VALUES_CURRCurrency values—
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_CREATE'
  EXPORTING
    objecttablenew = lv_objecttablenew
    classnumnew = lv_classnumnew
    classtypenew = lv_classtypenew
  IMPORTING
    classif_status = lv_classif_status
  TABLES
    allocvaluesnum = lt_allocvaluesnum
    allocvalueschar = lt_allocvalueschar
    allocvaluescurr = lt_allocvaluescurr
    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