CA BAPI RFC Used the same way in S/4HANA

BAPI_CLASS_CREATE Create Class

Creates a class of the classification system with basic data, descriptions and assigned characteristics, like transaction CL01. It is used to transfer class master data between systems or to set up classification during a rollout. Create the characteristics first (for example with BAPI_CHARACT_CREATE), pass at least CLASSBASICDATA and CLASSDESCRIPTIONS, then check RETURN and call BAPI_TRANSACTION_COMMIT.

Function group
CLBP
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
CLASSNUMNEWBAPI_CLASS_KEY-CLASSNUMClassYes
CLASSTYPENEWBAPI_CLASS_KEY-CLASSTYPEClass typeYes
CHANGENUMBERBAPI1003_KEY-CHANGENUMBERChange number—
CLASSBASICDATABAPI1003_BASICBasic dataYes
CLASSDOCUMENTBAPI1003_DOCUDocument information—
CLASSADDITIONALBAPI1003_ADDAdditional data—
CLASSSTANDARDBAPI1003_STANDStandards data—

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRET2Return messagesYes
CLASSDESCRIPTIONSBAPI1003_CATCHClass descriptions and keywordsYes
CLASSLONGTEXTSBAPI1003_LONGTEXTLong texts—
CLASSCHARACTERISTICSBAPI1003_CHARACTAssigned characteristics—
CHARACTOVERWRITEBAPI1003_CHARACT_OVERWROverwritten characteristic attributes—
CHARACTVALUEOVERWRITEBAPI1003_CHARACT_VALUE_OVROverwritten characteristic values—
CHARACTVALUETEXTOVRBAPI1003_CHARVALTEXTOverwritten value descriptions—

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_CREATE'
  EXPORTING
    classnumnew = lv_classnumnew
    classtypenew = lv_classtypenew
    classbasicdata = lv_classbasicdata
  TABLES
    return = lt_return
    classdescriptions = lt_classdescriptions
    classlongtexts = lt_classlongtexts
    classcharacteristics = lt_classcharacteristics
    charactoverwrite = lt_charactoverwrite
    charactvalueoverwrite = lt_charactvalueoverwrite
    charactvaluetextovr = lt_charactvaluetextovr.

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