SAP LINE INDEX ABEXA

Get Example source ABAP code based on a different SAP table
  


ARTICLE

Internal Tables, Index Function
The example demonstrates the table function line_index.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Various row numbers in the same internal table as in used in Example of Specified Rows are read and inserted in an internal table, idx: The row number of a row in the primary table index found using a free search key. The number -1, since the secondary hash key id is used. The number 0, since no row is found (0 overrides -1 ). The row number of a row in the primary table index found using a different free search key. The row number of a row found in the associated secondary table index using the sorted table key cities. The number 0, since no row is found.