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
| Parameter | Type | Description | Required |
|---|---|---|---|
| OBJECTKEY | BAPI1003_KEY-OBJECT | Object key (concatenated) | — |
| OBJECTTABLE | BAPI1003_KEY-OBJECTTABLE | Object table | Yes |
| CLASSNUM | BAPI1003_KEY-CLASSNUM | Class | Yes |
| CLASSTYPE | 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 | — |
| KEEP_SAME_DEFAULTS | BAPI1003_KEY-FLAG | Keep the same default values | — |
| OBJECTKEY_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 |
|---|---|---|---|
| ALLOCVALUESNUMNEW | BAPI1003_ALLOC_VALUES_NUM | New numeric, date and time values | Yes |
| ALLOCVALUESCHARNEW | BAPI1003_ALLOC_VALUES_CHAR | New character values | Yes |
| ALLOCVALUESCURRNEW | BAPI1003_ALLOC_VALUES_CURR | New currency values | Yes |
| 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_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.