Several nested INNER JOIN statements
can be inefficient
"Using several nested INNER JOIN statements can be inefficient and cause time out if the tables become too big in the future." Joins here (in ABAP) are not those Native SQL Joins. If you are talking about the Core RDBMS, which mean Oracle or SQL Server, then Undoubtedly Joins are the best. In ABAP, these joins are first split by the ABAP processor and then sent to the database, with the increase in DATA in production system, these joins tend to give way if your database keeps growing larger and larger. You should rather used "FOR ALL ENTRIES IN" (Tabular conditions), which is a much effecient way as far as performance is concerned. For example : DATA: BEGIN OF LINE,
LINE-CITYFROM = 'FRANKFURT'.
LINE-CITYFROM = 'NEW YORK'.
SELECT CARRID CONNID CITYFROM CITYTO
WRITE: / LINE-CARRID, LINE-CONNID, LINE-CITYFROM, LINE-CITYTO. ENDSELECT.
See Also
Get help for your ABAP problems
ABAP Books
More ABAP Tips
SAP Basis, ABAP Programming and Other IMG Stuff All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|