CA
BAPI
RFC
Used the same way in S/4HANA
BAPI_CLASS_GETDETAIL Get Class Details
Reads the basic data, descriptions, long texts and assigned characteristics with their values of one class. It is used in reports and interfaces that need to know which characteristics belong to a class, for example to build dynamic input forms. Pass class and class type, optionally a language, and check RETURN before evaluating the tables.
- Function group
- CLBP
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| CLASSTYPE | BAPI_CLASS_KEY-CLASSTYPE | Class type | Yes |
| CLASSNUM | BAPI_CLASS_KEY-CLASSNUM | Class | Yes |
| KEYDATE | BAPI_KEY_DATE-KEY_DATE | Valid-from date | — |
| LANGUISO | BAPI_LANGUAGE-LANGUAGE_ISO | Language (ISO) | — |
| LANGUINT | BAPI_LANGUAGE-LANGUAGE_INT | Language (SAP format) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return message |
| CLASSBASICDATA | BAPI1003_BASIC | Basic data |
| CLASSDOCUMENT | BAPI1003_DOCU | Document information |
| CLASSADDITIONAL | BAPI1003_ADD | Additional data |
| CLASSSTANDARD | BAPI1003_STAND | Standards data |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| CLASSDESCRIPTIONS | BAPI1003_CATCH_R | Descriptions and keywords | — |
| CLASSLONGTEXTS | BAPI1003_LONGTEXT_R | Long texts | — |
| CLASSCHARACTERISTICS | BAPI1003_CHARACT_R | Characteristics | — |
| CLASSCHARVALUES | BAPI1003_CHAR_VAL_R | Characteristic values | — |
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_CLASS_GETDETAIL'
EXPORTING
classtype = lv_classtype
classnum = lv_classnum
IMPORTING
return = lv_return
classbasicdata = lv_classbasicdata
classdocument = lv_classdocument
classadditional = lv_classadditional
classstandard = lv_classstandard
TABLES
classdescriptions = lt_classdescriptions
classlongtexts = lt_classlongtexts
classcharacteristics = lt_classcharacteristics
classcharvalues = lt_classcharvalues.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.