Introduction To Debugging In ABAP

April 20, 2005


ABAP is the programming language used in SAP R/3. This tutorial is an introduction to debugging a program in SAP R/3, using the G/L balances display (transaction FS10N) program.

You can get straight into the tutorial without any prior knowledge, but you will probably find it beneficial to first read an introduction to the ABAP debugger here.

For those interested in learning themselves, www.ct-software.com offers a good on-line course on debugging.

The following assumptions apply:
* Environment: SAP 4.6C
* User ID: Normal user ID with debug (/h) authorization

WARNING: Make sure that you are not logged into a production environment.

Basic Debugging:
* Execute transaction SE38
* Key in RFGLBALANCE in program field and execute

fig1.gif

* You will be brought to the selection screen. Key in valid parameters for G/L account, company code and fiscal year. Next type in /h in the command box and press enter
* You should get a message ‘Debugging switched on’

fig2.gif

* Click on the program execute button
* You will be brought into the main debugging screen
* Explore the various tabs ‘Fields’,'Table’ etc. by clicking on them
* Click back on the ‘Fields’ tab. Key in SO_SAKNR in the ‘Field names’ box and press enter. The value for that parameter will appear in the Field contents box

fig3.gif

* Advance through the code by clicking on one of the red navigation buttons at the top of the screen

fig4.gif

* Do not be afraid to explore and have fun!

Further resources:
- Download a collection of
ABAP tips compiled by Henrik Frank