Entering content frameOperations for Index Tables Locate the document in its SAP Library structure

The operations listed below are only permitted for index tables (sorted and standard tables). Some of them are restricted to standard tables. Since it is quicker to access a table by index than by key, you should always use specific index operations when you know that a particular internal table is an index table.

In particular, the quickest way to fill a table line by line is to append lines to a standard table, since a standard table cannot have a unique key and therefore appends the lines without having to check the existing lines in the table. If you can either accommodate duplicate entries in a table, or exclude them in a different way, it can be quicker to fill a standard table and then sort it or assign it to a sorted table if the data does not have to be inserted into the table in the correct sort sequence.

Furthermore, the performance of operations that change the internal linear index has been improved in Release 4.5A. Previously, index manipulation costs for inserting and deleting liens in standard tables and sorted tables increased in linear relation to the number of lines. From Release 4.5A, the index manipulation costs only increase logarithmically with the number of lines, since the table indexes are now maintained as a tree structure. This makes insertion and deletion operations efficient, even in very large standard and sorted tables.

Appending Lines

Inserting Lines

Inserting Lines Using the Index

Reading Lines Using the Index

Binary Search in Standard Tables

Finding Character Strings in Internal Tables

Changing Lines Using the Index

Deleting Lines Using the Index

Specifying the Index in Loops

 

 

 

Leaving content frame