CA
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- CTBP
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_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
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.