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
TABLESparameter for RFC can have any table type but no secondary key.
- Only standard tables without secondary keys are possible for the following:
rsparin SUBMIT WITH rspar andrtabinSUBMIT WITH sel IN rtab
itabin FIND IN TABLE itab andREPLACE IN TABLE itab
result_tabinSPLIT INTO TABLE result_tab
column_syntaxin the SELECT list, in GROUP BY, and inORDER BY
cond_syntaxinWHERE
source_syntaxinSELECT
expr_syntaxinUPDATE
IN,OUT,INOUTparameters inEXEC SQL - EXECUTE
itabin GENERATE SUBROUTINE POOL itab, READ REPORT INTO itab, INSERT REPORT FROM itab, andSYNTAX-CHECK FOR itab.
itabinEDITOR-CALL FOR itab
itabinWRITE TO itab