Monday 5 March 2018

Data Types

Data Types
 
 The following predefined data types are used in ABAP programs:
  1. Predefined ABAP types
  2. Generic ABAP types

Predefined ABAP types: (Complete Types):

Predefined data types also known as complete data type. Complete data type are not generic .Following table illustrate the complete data types.

Properties

Type
Name
Length
d
Date
8 byte
T
Time
6 byte
i
Integer
4 byte
Int8
Integer
8 byte
decfloat16
Decimal floating point number with 16 places
8 byte
f
Binary floating point number with 17 places
8 byte
decfloat34
Decimal floating point number with 34 places
16 byte
String
String
Variable
XString
Byte String
Variable


Predefined Numeric Types:

The data objects of the numeric data types are used to handle number values.

Properties
Type
Name
Length
b
1-byte integer (internal)
1 byte
s
2-byte integer (internal)
2 byte
i
4-byte integer
4 byte
int8
8-byte integer
8 byte
p
Packed number
1 to 16 bytes
decfloat16
Decimal floating point number with 16 places
8 byte
decfloat34
Decimal floating point number with 34 places
16 byte
f
Binary floating point number with 17 places
8 byte




Generic ABAP Types :( Incomplete Data Types):

A generic data type is an incomplete type specification that includes multiple complete type specifications.

Type
Description
any
Any data type
any table
Internal table with any table category
c
Text field with a generic length
clike
Character-like (c, n, and string plus the date/time types d, t and character-like flat structures)
csequence
Text-like (c, string)
data
Any data type
decfloat
Decimal floating point number (decfloat16, decfloat34)
hashed table
Hashed table
index table
Index table
n
Numeric text with generic length
numeric
Numeric ((b, s), i, int8, p, decfloat16, decfloat34, f)
object
Any object type (root class of the inheritance hierarchy)
p
Packed number with generic length and generic number of decimal places
simple
Elementary data type including structured types with exclusively character-like flat components
sorted table
Sorted table
standard table
Standard table
table
Standard table
x
Byte field with generic length
xsequence
Byte-like (x, xstring)

No comments:

Post a Comment

Code Inspector

The Code Inspector tests single objects or object sets (programs, function groups, classes, interfaces, Dictionary objects) for performanc...