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

ParameterTypeDescriptionRequired
CLASSTYPEBAPI_CLASS_KEY-CLASSTYPEClass typeYes
CLASSNUMBAPI_CLASS_KEY-CLASSNUMClassYes
KEYDATEBAPI_KEY_DATE-KEY_DATEValid-from date—
LANGUISOBAPI_LANGUAGE-LANGUAGE_ISOLanguage (ISO)—
LANGUINTBAPI_LANGUAGE-LANGUAGE_INTLanguage (SAP format)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRET2Return message
CLASSBASICDATABAPI1003_BASICBasic data
CLASSDOCUMENTBAPI1003_DOCUDocument information
CLASSADDITIONALBAPI1003_ADDAdditional data
CLASSSTANDARDBAPI1003_STANDStandards data

Tables parameters

ParameterTypeDescriptionRequired
CLASSDESCRIPTIONSBAPI1003_CATCH_RDescriptions and keywords—
CLASSLONGTEXTSBAPI1003_LONGTEXT_RLong texts—
CLASSCHARACTERISTICSBAPI1003_CHARACT_RCharacteristics—
CLASSCHARVALUESBAPI1003_CHAR_VAL_RCharacteristic 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.

Request a custom report