Tuesday, July 17, 2007

Processing Internal Tables

Internal Table is a main part of ABAP programming. In ABAP, internal tables fulfill the function of arrays. It is a data that have a structure and could contain more than one row.

Please refer to Data declaration for creating an internal table.

These are how to process internal table.

1. Sort Internal Table

SORT inttab BY field1 field2 ... field-n.

2. Loop At internal Table
LOOP AT inttab.
ENDLOOP.

3. Modify
3.1. Modify in a LOOP.
LOOP AT inttab.
MOVE ... TO inttab-field1.
MODIFY inttab.
ENDLOOP.

3.2. MODIFY BY index
MODIFY inttab INDEX int_index.

3.3. MODIFY BY condition
MODIFY inttab WHERE field1 = ....

4. Insert / Append
APPEND inttab.

5. Delete
Delete have variant similar to modify, delete in a loop, delete by index, and delete by criteria.

3 comments:

ADmin said...

it just makes a considerable measure of sense to configuration the template in this path, to the point that the members http://bestessaywriting.org/dissertation-writing-help.php can openly and genuinely voice out their accurate sentiments and assumptions in the vicinity of a certain item or administration.

Anonymous said...

great) www.masterpapers.com liked everything very much) keep it up and dont stop)

Anonymous said...

Thanks for the post ! http://www.online-essay-writer.org/ So informatively for me!