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

ParameterTypeDescriptionRequired
OBJECTKEYBAPI1003_KEY-OBJECTObject key (concatenated)—
OBJECTTABLEBAPI1003_KEY-OBJECTTABLEObject tableYes
CLASSNUMBAPI1003_KEY-CLASSNUMClassYes
CLASSTYPEBAPI1003_KEY-CLASSTYPEClass typeYes
KEYDATEBAPI1003_KEY-KEYDATEKey date—
UNVALUATED_CHARSFLAGAlso return characteristics without values—
LANGUAGEBAPIFIELDSCACL-BAPILANGUALanguage—
OBJECTKEY_LONGBAPI1003_KEY-OBJECT_LONGObject key (long form)—

Exporting parameters

ParameterTypeDescription
STATUSBAPI1003_KEY-STATUSClassification status
STANDARDCLASSBAPI1003_KEY-STDCLASSStandard class indicator

Tables parameters

ParameterTypeDescriptionRequired
ALLOCVALUESNUMBAPI1003_ALLOC_VALUES_NUMNumeric valuesYes
ALLOCVALUESCHARBAPI1003_ALLOC_VALUES_CHARCharacter valuesYes
ALLOCVALUESCURRBAPI1003_ALLOC_VALUES_CURRCurrency valuesYes
RETURNBAPIRET2Return messagesYes

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.

Request a custom report