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 TypesType>Valid Places m>>Decimal Places n> >Initial Value>Meaning>ABAP Type> INT1>3-01-byte integer, 0 to 255 b>> INT2>5-02-byte integer, -32,768 to 32,767s>> INT4>10-04-byte integer, -2,147,483,648 to +2,147,483,647i>> INT8>19-08-byte integer, -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807int8> > DEC>1-310-m>, maximum 140Packed number in BCD> formatp>>, length m DIV> 2 + 1>, decimal places n> DECFLOAT16>16-0Decimal floating point number>decfloat16>> DF16_DEC>1-150-m>, maximum 140Decimal floating point number> stored in BCD> formatdecfloat16>> DF16_RAW>16-0Decimal floating point number> stored in binary formatdecfloat16>> DECFLOAT34>34-0Decimal floating point number>decfloat34>> DF34_DEC>1-310-m>, maximum 140Decimal floating point number> stored in BCD> formatdecfloat34>> DF34_RAW>34-0Decimal floating point number> stored in binary formatdecfloat34>> FLTP>16160 Binary floating point number>f>> 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 TypesType>Valid Places m>>Initial Value> Meaning>ABAP Type> CHAR>1-30000, maximum of 1333 for table fieldsm> blanksStringc>>, length m> LCHR>256-32000NoneLong character stringc>>, length m> SSTRING>1-1333Empty stringCharacter stringstring>> STRING>256-...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 TypesType>Valid Places m>>Initial Value> Meaning>ABAP Type> RAW>1-32000 maximum of 255 for table fieldsNoneByte stringx>>, length m> LRAW>256-32000NoneLong byte stringx>>, length m> RAWSTRING>256-...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 FieldsType>Valid Places m>>Initial Value> Meaning>ABAP Type> DATN>8 0Date in internal format of database d>> DATS>8 00000000Date in the format YYYYMMDD> d>> TIMN>60Time in internal format of database t>> TIMS>6000000Time in the format HHMMSS> t>> ACCP>66 blanksPosting period in the format YYYYMM> n>>, length 6 UTCLONG>270Time 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 SemanticsType>Valid Places m>>Initial Value> Meaning>ABAP Type> NUMC>1-255m> zeros Numeric text> n>>, length m> CLNT>3000Clientc>, length 3 LANG>1BlankLanguage 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 FieldsType>Valid Places m>>Decimal Places n> >Initial Value>Meaning>ABAP Type> CURR>1-311-m>, maximum 140 Currency field> in BCD> formatp >>, length m DIV> 2 + 1>, decimal places n> CUKY>5-5 blanksCurrency key > for currency fields>c> , length 5 QUAN>1-310-m>, maximum 140 Quantity field> in BCD> format p>>, length m DIV> 2 + 1>, decimal places n> UNIT>2-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 TypesType>Valid Places m>>Initial Value> Meaning>ABAP 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 TypesType>Valid Places m>>Initial Value> Meaning>ABAP Type> DF16_SCL>160Decimal floating point number> stored in binary format with scaling specified (obsolete)decfloat16>> DF34_SCL>340Decimal floating point number> stored in binary format with scaling specified (obsolete)decfloat34>> PREC>20Obsolete data types>> VARC>1-...NoneObsolete data typec>>, length m> See Obsolete Types>. END_SECTION VERSION 5 OUT