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
| Parameter | Type | Description | Required |
|---|---|---|---|
| OBJECTKEYNEW | BAPI1003_KEY-OBJECT | Object key (concatenated) | — |
| OBJECTTABLENEW | BAPI1003_KEY-OBJECTTABLE | Object table (for example MARA) | Yes |
| CLASSNUMNEW | BAPI1003_KEY-CLASSNUM | Class | Yes |
| CLASSTYPENEW | BAPI1003_KEY-CLASSTYPE | Class type | Yes |
| STATUS | BAPI1003_KEY-STATUS | Classification status | — |
| STANDARDCLASS | BAPI1003_KEY-STDCLASS | Standard class indicator | — |
| CHANGENUMBER | BAPI1003_KEY-CHANGENUMBER | Change number | — |
| KEYDATE | BAPI1003_KEY-KEYDATE | Key date | — |
| NO_DEFAULT_VALUES | BAPI1003_KEY-FLAG | Do not set default values | — |
| OBJECTKEYNEW_LONG | BAPI1003_KEY-OBJECT_LONG | Object key (long form) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| CLASSIF_STATUS | BAPI1003_KEY-STATUS | Resulting classification status |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ALLOCVALUESNUM | BAPI1003_ALLOC_VALUES_NUM | Numeric, date and time values | — |
| ALLOCVALUESCHAR | BAPI1003_ALLOC_VALUES_CHAR | Character values | — |
| ALLOCVALUESCURR | BAPI1003_ALLOC_VALUES_CURR | Currency values | — |
| RETURN | BAPIRET2 | Return messages | Yes |
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.