10 best ABAP programming standards for performance tuning

Best ABAP programming standards for performance tuning, increase performance of an ABAP application

+ -

Below are the most common and best programming standards for developing ABAP applications.

SAP ABAP Coding standards

  1. When reading data from database table, never use SELECT *, always use select with list of fields.
  2. Always specify key fields in where conditions of SELECT statements, because these will have primary index.
  3. Sometimes we may need to use non-key fields in where conditions of SELECT statements, in that case create secondary indexes and use.
  4. Never use select with corresponding in SELECT statements.
  5. Always use read table with binary search and make you have sorted the internal table in ascending order before using read table binary search.
  6. Never use select joins for more than 3 tables.
  7. Always use select for all entries for more than 3 tables.
  8. Always check whether the parent internal table is initial or not before using for all entries.
  9. Never use nested loops, instead use parallel cursor .
  10. Never use select statements inside loops, instead use for all entries.

Also read performance truing in SAP ABAP programming , binary search mechanism in SAP ABAP

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 53 People out of 55 think this lesson helpful


    Lesson Navigation

    ←Previous Chapter
    Next Lesson → Control break statements in sap abap