Fonction SAP BAPI_CHARACT_CREATE - BAPI for Characteristics - Create

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHANGENUMBER BAPICHARACTKEY-CHANGENUM C 12 X Change Number
CHARACTDETAIL BAPICHARACTDETAIL u 254 Characteristic Attributes
KEYDATE BAPICHARACTKEY-KEYDATE D 8 SY-DATUM X Date

Paramètre Reférence Long. Facultatif Description
CHARACTDESCR BAPICHARACTDESCR 93 Characteristic Descriptions
CHARACTREFERENCES BAPICHARACTREFERENCES 60 X Entries for Reference Characteristics
CHARACTRESTRICTIONS BAPICHARACTRESTRICTIONS 3 X Restrictions to Class Types
CHARACTVALUESCHAR BAPICHARACTVALUESCHAR 94 X Allowed Values for CHAR Characteristics
CHARACTVALUESCURR BAPICHARACTVALUESCURR 72 X Allowed Values for CURR Characteristics
CHARACTVALUESDESCR BAPICHARACTVALUESDESCR 63 X Value Descriptions
CHARACTVALUESNUM BAPICHARACTVALUESNUM 64 X Allowed Values for NUM Characteristics
RETURN BAPIRET2 548 Error Messages

Functionality
This BAPI creates a characteristic that does not yet exist.
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 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.
    • The values must be entered in the following values tables, according to
    • data type: numeric, time, and date values in CharactValuesNum
      , character and boolean values in CharactValuesChar, andcurrency values in CharactValuesCurr. The value descriptions arein table CharactValuesDescr, regardless of data type.
      Check tables are entered in table CharactReferences andrestrictions to class types are in table CharactRestrictions.
      If the BAPI runs successfully, table RETURN contains no messages oftype 'E'.

      Caution
      This BAPI does not change the database. To change the database, callBAPI BapiService.TransactionCommit afterwards.