ABAP Coding Standards to Improve Quality of Programming
ABAP Coding Standards to Improve Quality of Programming
In this post,i am sharing Coding Standards which every ABAP developer should learn to improve quality of programming performance.So Performance tuning which technically improves the fast execution of ABAP application .By following the coding standards ,we can write better programming which client need .Now let us learn the some coding tips or coding guidelines in SAP ABAP.
SE30 (Run time analysis):Use this tool to analyse the performance of ABAP program or any Transaction.
SQL Trace (ST05):Use this tool to analyse the Data Base Calls made in Reports.
Use the Code Inspector Tool to check static ABAP coding and DDIC objects.
SAT transaction is the replacement of SE30 which provides Functions as SE30.
ST12 is a combination of STO5 and SAT which is very powerful tool.
Use where clause in your Select Statement to restrict the volume of data fetching.
Design the query to use as many as many index fields as possible from left to right in the where statement to fetch data fast.
Use For all entries in your select statement to select the matching records at a time.
Index speeds up the the performance .
Avoid using nested select statement and select within loops.
Define the table as buffer to reduce the process time.
Use sorted tables when nested loops are required.
Use field symbols for dynamic data assignment.
Use READ TABLE BINARY SEARCH for large standard tables to speed up the search ,But before this Sort the internal table.
Joins are recommended till 5 joins.
Avoid using select* and select only required fields from the table.
Avoid using Into corresponding fields ,instead use the into table.
To check existence records ,use select up to 1 rows.
Use check statement instead of IF/ENDIF.
Use case statement instead of IF/ENDIF.
Do not use join statement if standard views exist.
At last ,we learnt ABAP coding standards to improve quality of SAP programming also read more interview tips from the below posts.
Comments
Post a Comment