Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Do's and Dont's of ABAP Programming

Former Member
0 Kudos

Can anybody give me the list of Do's and Dont's of ABAP programmings

1 ACCEPTED SOLUTION

gopi_narendra
Active Contributor
7 REPLIES 7

gopi_narendra
Active Contributor

sreemsft
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Please find the check list on

<a href="http://www.sapdomain.com">http://www.sapdomain.com</a>

Former Member
0 Kudos

I got useful tips from various peoples. Thanks

0 Kudos

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.