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
| Parameter | Type | Description | Required |
|---|---|---|---|
| CLASSNUMNEW | BAPI_CLASS_KEY-CLASSNUM | Class | Yes |
| CLASSTYPENEW | BAPI_CLASS_KEY-CLASSTYPE | Class type | Yes |
| CHANGENUMBER | BAPI1003_KEY-CHANGENUMBER | Change number | — |
| CLASSBASICDATA | BAPI1003_BASIC | Basic data | Yes |
| CLASSDOCUMENT | BAPI1003_DOCU | Document information | — |
| CLASSADDITIONAL | BAPI1003_ADD | Additional data | — |
| CLASSSTANDARD | BAPI1003_STAND | Standards data | — |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| RETURN | BAPIRET2 | Return messages | Yes |
| CLASSDESCRIPTIONS | BAPI1003_CATCH | Class descriptions and keywords | Yes |
| CLASSLONGTEXTS | BAPI1003_LONGTEXT | Long texts | — |
| CLASSCHARACTERISTICS | BAPI1003_CHARACT | Assigned characteristics | — |
| CHARACTOVERWRITE | BAPI1003_CHARACT_OVERWR | Overwritten characteristic attributes | — |
| CHARACTVALUEOVERWRITE | BAPI1003_CHARACT_VALUE_OVR | Overwritten characteristic values | — |
| CHARACTVALUETEXTOVR | BAPI1003_CHARVALTEXT | Overwritten 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.