CA
BAPI
RFC
Used the same way in S/4HANA
BAPI_OBJCL_GETDETAIL Classification: Read Object Classification
Reads the characteristic values that are assigned to an object in a given class, split into character, numeric and currency values. It is used in reports, label printing and interfaces that need batch or material characteristics. Pass the object key exactly as stored (for a batch: material, plant and batch concatenated according to the object type) and set UNVALUATED_CHARS to also see characteristics without values.
- 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 |
| KEYDATE | BAPI1003_KEY-KEYDATE | Key date | — |
| UNVALUATED_CHARS | FLAG | Also return characteristics without values | — |
| LANGUAGE | BAPIFIELDSCACL-BAPILANGUA | Language | — |
| OBJECTKEY_LONG | BAPI1003_KEY-OBJECT_LONG | Object key (long form) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| STATUS | BAPI1003_KEY-STATUS | Classification status |
| STANDARDCLASS | BAPI1003_KEY-STDCLASS | Standard class indicator |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ALLOCVALUESNUM | BAPI1003_ALLOC_VALUES_NUM | Numeric values | Yes |
| ALLOCVALUESCHAR | BAPI1003_ALLOC_VALUES_CHAR | Character values | Yes |
| ALLOCVALUESCURR | BAPI1003_ALLOC_VALUES_CURR | 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_GETDETAIL'
EXPORTING
objecttable = lv_objecttable
classnum = lv_classnum
classtype = lv_classtype
IMPORTING
status = lv_status
standardclass = lv_standardclass
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.