Wednesday, April 10, 2013

SAP ABAP TABLES



Internal Tables - These are used to store the temp data inside the program. 

  1. Standerd Table
  2. Sorted Table
  3. Hashed Table

Standerd Table - We can reuse them as many time, KEY of the standerd table always non unique and duplication are allowed and possible.

Syntax- DATA <ITAB> THE STANDARD TABLE OF <TY>.

Sorted Table - Recored are always sorted 
We can add data using INSERT command to these tables.
Records can be accessed through in two ways INDEX and with KEY(Condition).
Once sorted Internal tables cannot be sorted again.

Syntax - DATA <ITAB> TYPE SORTED TABLE OF <TY> WITH UNIQUE/NON-UNIQUE KEY <Function 1 ><Function 2>

Hashed Table - We can access any data directly using KEY
Hash tables always must have a uniq KEY

Syntax - DATA <ITAB> TYPE HASHED TABLE OF <TY> UNIQUE/NON-UNIQUE KEY <F1><F2>…
We not able to cannot access a hashed table using its INDEX.

No comments:

Post a Comment