ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Internal Tables → Internal Tables - Overview → Table Keys → Secondary Table Key
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 for which it does not make sense to use secondary keys. Secondary keys are therefore not supported for those operand positions.
The use of tables with secondary keys causes syntax or runtime errors for the following operand positions:
- An internal table as an actual parameter for a
TABLES
parameter for RFC can have any table type but no secondary key.
- Only standard tables without secondary keys are possible for the following:
rspar
for SUBMIT WITH rspar andrtab
forSUBMIT WITH sel IN rtab
itab
for FIND IN TABLE itab andREPLACE IN TABLE itab
result_tab
forSPLIT INTO TABLE result_tab
cond_syntax
forWHERE
expr_syntax
forUPDATE
IN
-,OUT
-,INOUT
parameter forEXEC SQL - EXECUTE
itab
for GENERATE SUBROUTINE POOL itab, READ REPORT INTO itab, INSERT REPORT FROM itab, andSYNTAX-CHECK FOR itab
.
itab
forEDITOR-CALL FOR itab
itab
forWRITE TO itab