# 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.

- Modules: CA
- Type: BAPI
- Function group: CLBP
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-class-create/

## 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)

```abap
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

KLAH, KSML

