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
in SUBMIT WITH rspar andrtab
inSUBMIT WITH sel IN rtab
itab
in FIND IN TABLE itab andREPLACE IN TABLE itab
result_tab
inSPLIT INTO TABLE result_tab
column_syntax
in the SELECT list, in GROUP BY, and inORDER BY
cond_syntax
inWHERE
source_syntax
inSELECT
expr_syntax
inUPDATE
IN
,OUT
,INOUT
parameters inEXEC SQL - EXECUTE
itab
in GENERATE SUBROUTINE POOL itab, READ REPORT INTO itab, INSERT REPORT FROM itab, andSYNTAX-CHECK FOR itab
.
itab
inEDITOR-CALL FOR itab
itab
inWRITE TO itab