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

ParameterTypeDescriptionRequired
CHARACTDETAILBAPICHARACTDETAILCharacteristic attributesYes
CHANGENUMBERBAPICHARACTKEY-CHANGENUMChange number—
KEYDATEBAPICHARACTKEY-KEYDATEKey date—

Tables parameters

ParameterTypeDescriptionRequired
CHARACTDESCRBAPICHARACTDESCRCharacteristic descriptionsYes
CHARACTVALUESNUMBAPICHARACTVALUESNUMAllowed numeric values—
CHARACTVALUESCHARBAPICHARACTVALUESCHARAllowed character values—
CHARACTVALUESCURRBAPICHARACTVALUESCURRAllowed currency values—
CHARACTVALUESDESCRBAPICHARACTVALUESDESCRValue descriptions—
CHARACTREFERENCESBAPICHARACTREFERENCESReference characteristic entries—
CHARACTRESTRICTIONSBAPICHARACTRESTRICTIONSRestrictions to class types—
RETURNBAPIRET2Return messagesYes

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.

Request a custom report