Page 1 of 4
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
Generic ABAP Types
Generic Data Type Meaning Compatible Data
Type
Fully Generic Any Any type Any
Data Any data type Any
Elementry flat Simple Any flat structure or any Any
data type or character
type structure
Numeric Numeric Numeric data type I, f, p, Decfloat16,
decfloat34
decfloat Numeric type Decfloat16, decfloat34
Evolvement Consulting Services
Amol Akolkar 9160143355
Page 2 of 4
Charactet Type clike Character data type C,n,d,t,string
Csequence Text data type C, string
Hexadecimal Xsequence Byte data type X, xstring
Generic Table Type
Table Type Compatible Type Mainly Access
Any table Any table type Index
Index table Standerd or Sorted Index
Standard table Only standard Key or index, mainly Fully Specified
index access
Sorted table Only Sorted Key or index, mainly key
access
Hashed table Only Hashed Key Fully Specified
Possible Table Definations –
1. DATA itab TYPE <Table Type>
2. DATA itab TYPE STANDARD/ANY/HASHED/SORDED/INDEX TABLE OF <Stucture Type> WITH
NON-UNIQUE/UNIQUE KEY ....
3. DATA itab TYPE TABLE OF <Structure Type>
4. DATA itab TYPE TABLE OF <DDIC table>
Operations on Internal Table –
APPEND
INSERT
READ
MODIFY
DELETE
Local Table type Defination –
TYPES gty_tb TYPE
STANDARD/ANY/HASHED/SORDED/INDEX TABLE OF <Stucture Type> WITH NON-
UNIQUE/UNIQUE KEY ....
Evolvement Consulting Services
Amol Akolkar 9160143355
Page 3 of 4
Local Structure Type Defination –
TYPES: BEGIN OF gty_struct,
Var1 type i,
Var2 type c(4),
.................................,
END OF gty_stuct.
Structure Variable Defination, called work area –
DATA wa type <structure_type>
Generic Type declarations,
DATA gty_lbl. “gty_lbi is declared with type C, which has initial length as 1
Modularation
Modularation
Local Global
Methods of Function Methods of
Subroutines
Local Classes Modules Global Classes
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
Evolvement Consulting Services
Amol Akolkar 9160143355
Page 4 of 4
4. Call to Subroutine is as PERFORM <FORM_NAME> <PARAMETERS>
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(..........)
3. INSTANCE Method call
a. CALL OBJECT_NAME->METHOD_NAME
b. OBJECT_NAME->METHOD_NAME(..........)
Remember: Generic types are not applied to TYPE REF TO
Evolvement Consulting Services
Amol Akolkar 9160143355