SAP DDIC BUILTIN TYPES



Get Example source ABAP code based on a different SAP table
  


NO •

ABAP_DDIC - Overview of All Built-In Dictionary Types
The following tables show the built-in types in ABAP Dictionary and their fundamental technical properties. For each built-in data type in ABAP Dictionary, the last column specifies the built-in ABAP type to which the built-in dictionary type is mapped when used as type reference in an ABAP program. Most built-in dictionary types are assigned an initial value. These initial values are applied, for example,
BEGIN_SECTION VERSION 5 OUT when initial dynpro fields are displayed,
END_SECTION VERSION 5 OUT when database fields are initialized , and in the AB-SQL condition IS INITIAL. The initial value of ABAP Dictionary types is not used for data objects declared in ABAP programs when referring to these types. Here, the initial value of the mapped built-in ABAP types is used.

General Types
Built-in dictionary data types without special semantic properties.
• DEC ABAP_DDIC_BUILTIN_TYPE
• DECFLOAT16 ABAP_DDIC_BUILTIN_TYPE
• DECFLOAT34 ABAP_DDIC_BUILTIN_TYPE
• DF16_RAW ABAP_DDIC_BUILTIN_TYPE
• DF34_RAW ABAP_DDIC_BUILTIN_TYPE
• DF16_DEC ABAP_DDIC_BUILTIN_TYPE
• DF34_DEC ABAP_DDIC_BUILTIN_TYPE
• FLTP ABAP_DDIC_BUILTIN_TYPE
• INT1 ABAP_DDIC_BUILTIN_TYPE
• INT2 ABAP_DDIC_BUILTIN_TYPE
• INT4 ABAP_DDIC_BUILTIN_TYPE
• INT8 ABAP_DDIC_BUILTIN_TYPE

Numeric Types TypeValid Places mDecimal Places n Initial ValueMeaningABAP Type INT13-01-byte integer, 0 to 255 b INT25-02-byte integer, -32,768 to 32,767s INT410-04-byte integer, -2,147,483,648 to +2,147,483,647i INT819-08-byte integer, -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807int8 DEC1-310-m, maximum 140Packed number in BCD formatp, length m DIV 2 + 1, decimal places n DECFLOAT1616-0Decimal floating point number decfloat16 DF16_DEC1-150-m, maximum 140Decimal floating point number stored in BCD formatdecfloat16 DF16_RAW16-0Decimal floating point number stored in binary formatdecfloat16 DECFLOAT3434-0Decimal floating point number decfloat34 DF34_DEC1-310-m, maximum 140Decimal floating point number stored in BCD formatdecfloat34 DF34_RAW34-0Decimal floating point number stored in binary formatdecfloat34 FLTP16160 Binary floating point numberf
See Integers, Packed Numbers, Binary Floating Point Numbers and Decimal Floating Point Numbers.
• CHAR ABAP_DDIC_BUILTIN_TYPE
• LCHR ABAP_DDIC_BUILTIN_TYPE
• SSTRING ABAP_DDIC_BUILTIN_TYPE
• STRING ABAP_DDIC_BUILTIN_TYPE

Character-Like Types TypeValid Places mInitial Value MeaningABAP Type CHAR1-30000, maximum of 1333 for table fieldsm blanksStringc, length m LCHR256-32000NoneLong character stringc, length m SSTRING1-1333Empty stringCharacter stringstring STRING256-...Empty stringCharacter string (CLOB) string
See Character-Like Types and Byte-Like Types.
• LRAW ABAP_DDIC_BUILTIN_TYPE
• RAW ABAP_DDIC_BUILTIN_TYPE
• RAWSTRING ABAP_DDIC_BUILTIN_TYPE

Byte-Like Types TypeValid Places mInitial Value MeaningABAP Type RAW1-32000 maximum of 255 for table fieldsNoneByte stringx, length m LRAW256-32000NoneLong byte stringx, length m RAWSTRING256-...Empty stringByte string (BLOB) xstring
See Character-Like Types and Byte-Like Types.

Special Types
Built-in data types with special semantic properties.
• ACCP ABAP_DDIC_BUILTIN_TYPE
• DATS ABAP_DDIC_BUILTIN_TYPE
• TIMS ABAP_DDIC_BUILTIN_TYPE
• UTCLONG ABAP_DDIC_BUILTIN_TYPE
• DATN ABAP_DDIC_BUILTIN_TYPE
• TIMN ABAP_DDIC_BUILTIN_TYPE

Date Fields, Time Fields, and Time Stamp Fields TypeValid Places mInitial Value MeaningABAP Type DATN8 0Date in internal format of database d DATS8 00000000Date in the format YYYYMMDD d TIMN60Time in internal format of database t TIMS6000000Time in the format HHMMSS t ACCP66 blanksPosting period in the format YYYYMM n, length 6 UTCLONG270Time stamp (exact to 100 ns) utclong
See Date Fields, Time Fields, and Time Stamp Fields.
• CLNT ABAP_DDIC_BUILTIN_TYPE
• LANG ABAP_DDIC_BUILTIN_TYPE
• NUMC ABAP_DDIC_BUILTIN_TYPE

Character-Like Types with Special Semantics TypeValid Places mInitial Value MeaningABAP Type NUMC1-255m zeros Numeric text n, length m CLNT3000Clientc, length 3 LANG1BlankLanguage keyc, length 1
See Special Character-Like Types.
• CUKY ABAP_DDIC_BUILTIN_TYPE
• CURR ABAP_DDIC_BUILTIN_TYPE
• QUAN ABAP_DDIC_BUILTIN_TYPE
• UNIT ABAP_DDIC_BUILTIN_TYPE

Currency Fields and Quantity Fields TypeValid Places mDecimal Places n Initial ValueMeaningABAP Type CURR1-311-m, maximum 140 Currency field in BCD formatp , length m DIV 2 + 1, decimal places n CUKY5-5 blanksCurrency key for currency fieldsc , length 5 QUAN1-310-m, maximum 140 Quantity field in BCD format p, length m DIV 2 + 1, decimal places n UNIT2-3-2 or 3 blanksUnit key of a quantity field c, length m
See Currency Fields and Quantity Fields.
• GEOM_EWKB ABAP_DDIC_BUILTIN_TYPE

Geodata Types TypeValid Places mInitial Value MeaningABAP Type GEOM_EWKB-Empty stringGeometric data in EWKB representation xstring
See Geodata Types.
BEGIN_SECTION VERSION 5 OUT
• DF16_SCL ABAP_DDIC_BUILTIN_TYPE
• DF34_SCL ABAP_DDIC_BUILTIN_TYPE
• VARC ABAP_DDIC_BUILTIN_TYPE
• PREC ABAP_DDIC_BUILTIN_TYPE

Obsolete Types TypeValid Places mInitial Value MeaningABAP Type DF16_SCL160Decimal floating point number stored in binary format with scaling specified (obsolete)decfloat16 DF34_SCL340Decimal floating point number stored in binary format with scaling specified (obsolete)decfloat34 PREC20Obsolete data types VARC1-...NoneObsolete data typec, length m
See Obsolete Types.
END_SECTION VERSION 5 OUT