Wednesday, September 12, 2018

Performance tuning in ABAP Reports

To Improve Performance in SAP ABAP Reports
here are some tips:

  • Avoid SELECT *: Instead, select only the required fields to reduce unnecessary data retrieval and to speed up the report execution.

  • Use a WHERE clause: This limits the number of records retrieved and reduces the load on the database, improving performance.

  • Use internal tables: Storing data in internal tables instead of accessing database tables directly reduces the number of database accesses, which can improve performance.

  • Use field symbols: Using field symbols instead of data objects to access the data reduces memory consumption and can improve performance.

  • Avoid nested SELECT statements: Nested SELECT statements can increase the load on the database and negatively impact performance.

  • Use FOR ALL ENTRIES: Use the FOR ALL ENTRIES statement to retrieve data based on a set of keys instead of using nested SELECT statements, which can improve performance.

  • Optimize loops: Optimize loops to reduce the number of iterations, such as by using the LOOP AT … ASSIGNING statement instead of LOOP AT … INTO.

  • Use SORT and DELETE ADJACENT DUPLICATES: Use SORT and DELETE ADJACENT DUPLICATES statements to eliminate duplicates from internal tables, which can improve performance.

  • Use AT NEW and AT END statements: Use AT NEW and AT END statements to reduce the number of loops required to perform calculations on internal tables.

  • Use buffering: Use buffering to reduce database accesses by buffering data in memory, which can improve performance.

By implementing these tips, SAP ABAP reports can be improved to provide a better user experience.

Reset Launchpad and Applications Cache


Reset Launchpad and Applications Cache


  1. Transaction: /IWFND/CACHE_CLEANUP on Gateway
  2. Transaction: /IWBEP/CACHE_CLEANUP on Backend and Gateway
  3. Clear local browser cache
  4. Run report /UI2/CHIP_SYNCHRONIZE_CACHE
  5. Run report /UI2/DELETE_CACHE_AFTER_IMP
  6. Optional: Run report /UI2/DELETE_CACHE
  7. Optional: Run report /UI2/PAGE_CACHE_RESET
  8. Run report /UI2/INVALIDATE_GLOBAL_CACHES
  9. Run report /UI2/INVALIDATE_CLIENT_CACHES
  10. Run report /UI5/APP_INDEX_CALCULATE
  11. Run transaction SMICM -> HTTP Plug-In -> Server Cache -> Invalidate Locally
  12. Run transaction SMICM -> HTTP Plug-In -> Server Cache -> Invalidate Globally