SAP Note 48230 - Parameters for the SELECT ... FOR ALL ENTRIES statement

Component : DB Independent Database Interface - Invoice Verification

Solution : https://service.sap.com/sap/support/notes/48230 (SAP Service marketplace login required)

Summary :
This SAP Note addresses performance issues related to the "SELECT ... FOR ALL ENTRIES ..." construct in ABAP's Open SQL, explaining the parameters to optimize its execution. The statement is a non-standard SQL enhancement allowing a join between internal ABAP tables and database tables. Since it lacks a direct SQL counterpart, ABAP's database interface adapts it into semantically equivalent SQL statements. Key profile parameters such as rsdb/prefer_join, rs have been outlined, with specific settings to either implement joins, use IN clauses with UNION or control how many table entries are processed simultaneously, impacting execution efficiency. Given the global effect of these parameters, SAP recommends a thorough analysis before implementing changes to avoid unintended system-wide issues.

Key words :
linked partial statements/conditions represents, symptom performance problems occur, semantically equivalent select statements, ]  %_hints oracle '&prefer_in_itab_opt 1&&prefer_fix_blocking -1&', technical maximum blocking factor, heading database interface hints, terms for_all_entries reason, experienced sap consultants, -negated eq condition, ms sql server

Related Notes :

1500503BI quantity conversion: Access optimization
1456251DB6: Complex SQL statements due to many UNION ALL with FAE
1417305Dynamic changing of FAE parameters
1091419DB6: Poor Performance for queries with FOR ALL ENTRIES
881083Blocking factors on Oracle-based systems
869006Composite SAP note: ORA-04031
819324FAQ: SAP MaxDB SQL optimization
766349FAQ: Oracle SQL optimization
652634FOR ALL ENTRIES performance with Microsoft SQL Server
634263Selects with FOR ALL ENTRIES
620361Data loading performance/Admin. data target, many requests
70964DB2/390: Performance