Get Example source ABAP code based on a different SAP table
ABAP_ITAB - Restrictions for Secondary Keys Internal tables with secondary keys can be used in all processing statements for internal tables> and other statements that work with internal tables. However, there are also operand positions for internal tables where the use of secondary keys does not make sense and is therefore not supported there. The use of tables with secondary keys causes syntax or runtime errors for the following operand positions: BEGIN_SECTION VERSION 5 OUT
Internal tables of any table type but without secondary keys are possible for the following:
itab> in SEARCH itab for ...>> (only index tables, no hashed tables).
Actual parameters for a TABLES>> parameter for RFC. END_SECTION VERSION 5 OUT
Only standard tables without secondary keys are possible for the following:
rspar> in SUBMIT WITH rspar>> and range_tab> in SUBMIT WITH sel IN range_tab> >
itab> in FIND IN TABLE itab>> and REPLACE IN TABLE itab>>
result_tab> in SPLIT INTO TABLE result_tab> >
column_syntax> in the SELECT> list>, in GROUP BY>>, and in ORDER BY>>