Data Types in ABAP
Data Types in ABAP
Standard Complete
Predefined Type Name in ABAP Description Length
DATS D Date 8
TIMS T Time 6
INT4 I Integer 4
FLTP F Floating Point 8
STRING STRING Dynamic Character Variable, But Initially 1
Sequence
RAWSTRING XSTRING Dynamic BYTE Sequence Variable, But Initially 1
DECFLOAT16 Can have 16 Decimal 8
Places
SECFLOAT34 Can have 34 Decimal 16
Places
Standard InComplete
Predefined Type Name in ABAP Description Length
CHAR C Character Length not Specified,
Initially 1
NUMC N Numeric Character Length not Specified,
Initially 1
X Hexadecimal Sting Length not Specified,
Initially 1
DEC P Packed Number, with Length not Specified,
Decimal Points Initially 8
DATA gty_lbl. “gty_lbi is declared with type C, which has initial length as 1
Modularation
Modularation
Local Global
Subroutines
1. Introduced with FORM ....... ENDFORM
2. Can have parameters
a. USING
b. CHANGING
3. If VALUE is prefix to parameter then its call by VALUE
Function Module
1. Contains data object, subroutines, screens
2. Can have any number of PARAMETERS
a. IMPORT
b. EXPORT
c. CHANGING
d. EXCEPTION
5.
Call by CALL FUNCTION ‘FUNCTION_MODULE_NAME <PARAMETERS>
Local /Global Methods
1. Call methods after CREATE Object
2. STATIC Method call
a. CALL CLASS_NAME=>METHOD_NAME
b. CLASS_NAME=>METHOD_NAME(..........)