11-15-2006 4:40 AM
Can anybody give me the list of Do's and Dont's of ABAP programmings
11-15-2006 4:43 AM
11-15-2006 4:43 AM
11-15-2006 4:48 AM
Go to Transaction SE30 an press the button Tips & Tricks.
Also have a look at below links:
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
http://www.sapdevelopment.co.uk/perform/performhome.htm
http://www.erpgenie.com/abap/performance.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers
11-15-2006 4:50 AM
Hi Sachin,
Below are some Do's and Dont's there are many....
Do's:
1) Use Binary search while reading a table.
2) Check SY-SUBRC while Select single...
3) Give User friendly messages.
4) Clear variables and flags properly.
5) Use Select...Into table
Dont's:
1) Avoid using Select with in Loop.
2) Avoid using Select..End Select
3) Condition while looping.
4) Donot put statments which gives Performance problems.
Thanks,
Sreekanth Gollamudi
11-15-2006 4:50 AM
Hi Sachin,
Please go through the following link:
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_Introduction.asp
It's a nice write up on ABAP tips & tricks. Also u can go to transaction SE30 for runtime analysis & click on 'Tips & Tricks'. This would also be helpful.
Also please give me your mail id. I will forward you a nice write up on the same.
Regards,
Chetan.
PS:Reward points if this is helpful.
11-15-2006 5:35 AM
Please find the check list on
<a href="http://www.sapdomain.com">http://www.sapdomain.com</a>
11-16-2006 10:24 AM
11-16-2006 10:46 AM
Avoid internal tables with header lines
i.e. DONT
DATA: itab TYPE c OCCURS 0 WITH HEADER LINE.
LOOP AT itab.
*...
ENDLOOP.
i.e. DO
DATA: itab TYPE c OCCURS 0,
line LIKE LINE OF itab.
LOOP AT itab INTO line.
*...
ENDLOOP.