# BAPI_CHARACT_CREATE — Create Characteristic

> Creates a characteristic of the classification system with its attributes, descriptions and allowed values, like transaction CT04. It is used to transfer characteristics between systems or to create them in bulk from a template file. Fill CHARACTDETAIL (name, data type, length) and CHARACTDESCR, add allowed values in the CHAR/NUM/CURR tables, then check RETURN and call BAPI_TRANSACTION_COMMIT.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CHARACTDETAIL | BAPICHARACTDETAIL | Characteristic attributes | Yes |
| CHANGENUMBER | BAPICHARACTKEY-CHANGENUM | Change number | - |
| KEYDATE | BAPICHARACTKEY-KEYDATE | Key date | - |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| CHARACTDESCR | BAPICHARACTDESCR | Characteristic descriptions | Yes |
| CHARACTVALUESNUM | BAPICHARACTVALUESNUM | Allowed numeric values | - |
| CHARACTVALUESCHAR | BAPICHARACTVALUESCHAR | Allowed character values | - |
| CHARACTVALUESCURR | BAPICHARACTVALUESCURR | Allowed currency values | - |
| CHARACTVALUESDESCR | BAPICHARACTVALUESDESCR | Value descriptions | - |
| CHARACTREFERENCES | BAPICHARACTREFERENCES | Reference characteristic entries | - |
| CHARACTRESTRICTIONS | BAPICHARACTRESTRICTIONS | Restrictions to class types | - |
| RETURN | BAPIRET2 | Return messages | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_CHARACT_CREATE'
  EXPORTING
    charactdetail = lv_charactdetail
  TABLES
    charactdescr = lt_charactdescr
    charactvaluesnum = lt_charactvaluesnum
    charactvalueschar = lt_charactvalueschar
    charactvaluescurr = lt_charactvaluescurr
    charactvaluesdescr = lt_charactvaluesdescr
    charactreferences = lt_charactreferences
    charactrestrictions = lt_charactrestrictions
    return = lt_return.
```

## Related tables

CABN, CABNT, CAWN

