SAP Function BAPI_CHARACT_CHANGE - BAPI for Characteristics - Change

Parameter Reference Type Length Default Optional Text
CHANGENUMBER BAPICHARACTKEY-CHANGENUM C 12 X Change Number
CHARACTNAME BAPICHARACTKEY-CHARACTNAME C 30 Characteristic Name
KEYDATE BAPICHARACTKEY-KEYDATE D 8 SY-DATUM X Date

Parameter Reference Length Optional Text
CHARACTDESCRNEW BAPICHARACTDESCR 93 X Characteristic Descriptions: New
CHARACTDETAILNEW BAPICHARACTDETAIL 254 Characteristic Attributes: New
CHARACTREFERENCESNEW BAPICHARACTREFERENCES 60 X Entries for Reference Characteristics: New
CHARACTRESTRICTIONSNEW BAPICHARACTRESTRICTIONS 3 X Restrictions to Class Types: New
CHARACTVALUESCHARNEW BAPICHARACTVALUESCHAR 94 X Allowed Values for CHAR Characteristics: New
CHARACTVALUESCURRNEW BAPICHARACTVALUESCURR 72 X Allowed Values for CURR Characteristics: New
CHARACTVALUESDESCRNEW BAPICHARACTVALUESDESCR 63 X Value Descriptions: New
CHARACTVALUESNUMNEW BAPICHARACTVALUESNUM 64 X Allowed Values for NUM Characteristics: New
RETURN BAPIRET2 548 Error Messages

Functionality
This BAPI changes a characteristic, if the characteristic exists. Ifthe characteristic does not exist, the BAPI creates the characteristic.
The following fields must contain data:

  • Charact_name (characteristic name)

  • Data_type (data type)

  • Length (number of characters)

  • Decimals (number of decimal places)

  • Status (status) in structure CharactDetail

  • Description (description) in structure CharactDescription

  • Either field Language_Int (internal language format, 1 character) or
  • Language_ISO (external language format, 2 characters)
    ISO format overrides internal format. If there is more than one entryfor the same language, the last is relevant.
    • According to data type, the values must be entered in the relevant
    • values table: numeric, time, and date values in CharactValuesNum
      , character and boolean values in CharactValuesChar, andcurrency values in CharactValuesCurr.
      The value descriptions are in table CharactValuesDescr,regardless of data type. Check tables are entered in tableCharactReferences and restrictions to class types are in tableCharactRestrictions.
      If the BAPI runs successfully, table RETURN contains no messages oftype 'E'.

      Caution
      The BAPI transfers all information as new, replacing the oldinformation completely. This means that a blank field means "deleteentry", not "no change".
      This BAPI does not change the database. To change the database, callBAPI BapiService.TransactionCommit afterwards.