Fonction SAP ALE_CHARACT_CREATE - BAPI -> IDoc: ALE_CHARACT_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
SERIAL_ID SERIAL-CHNUM N 4 '0' X

Paramètre Reférence Long. Facultatif Description
APPLICATION_OBJECTS SWOTOBJID 100 X
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
COMMUNICATION_DOCUMENTS SWOTOBJID 100 X
RECEIVERS BDI_LOGSYS 10

Exception Description
ERROR_CREATING_IDOCS

Functionality
This BAPI creates a characteristic that does not yet exist.
Entries must be made in the following fields:

  • 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 has priority. If there is more than one entry in anylanguage, the last entry is relevant.
    Values must be in the values table for the appropriate data type:numeric, time, and date values in CharactValuesNum, characterand boolean values in CharactValuesChar, and currency values inCharactValuesCurr. Value descriptions for all data types are intable CharactValuesDescr.
    Check tables are in table CharactReferences, and restrictions toclass 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 do this, call BAPIBapiService.TransactionCommit afterward.

    Description
    Change number

    Description
    Characteristic attributes
    Required entries: see function module documentation

    Description
    Date

    Default
    System date

    Description
    Characteristic description
    Required entries: 1 entry in the system language

    Description
    Entries for reference characteristics

    Description
    Restrictions to class types

    Description
    Allowed values for CHAR characteristics
    Required entry: VALUE_CHAR

    Description
    Allowed values for currency characteristics
    Required entries: VALUE_FROM and VALUE_RELATION

    Description
    Descriptions for characteristic values

    Description
    Allowed values for numeric characteristics
    Required entry: VALUE_FROM and VALUE_RELATION