Application Development and Automation 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: 
Read only

How to debug an abap code

Former Member
0 Likes
2,002

Please send me the details of how to debug an abap code ? with screen shots.

Thanks

8 REPLIES 8
Read only

Former Member
0 Likes
1,235

give /h in command line.....and execute program......

use break-point or break <user name> in program if u need to debug particular part of code.....

create a session break point by placing cursor on line where debugging should start and click button break point.

info on watch points...

For required field value you need to use watch points.

Check this link:

http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cd9e68c11d2b2ab080009b43351/frameset.htm

you can either set a watch point for that field or, execute single step till that field is populated and double click on the variable so that you can see its contents in the debugger screen itself. Double click on the variable and do single step execution so you can see its contents throughout its execution. If you want to see the contents of a table, there is a tab called tables in the debugger. Go to that and enter the name of the table there. You will see all its contents. Hope this helps.

Regards

vasu

Read only

Former Member
0 Likes
1,235

OPen the code dat u want 2 debug in SE38

put a<b> /h</b> cmd in the cmd window

then run using F8..

else activate the prog..keep da cursor on the stmt from the point where u want 2 debug from..then click on breakpoint in toolbar..then press F8

Hope dis helps..reward if it does

Read only

Former Member
0 Likes
1,235

Hi

To debug an ABAP code type /h in command space,press enter and press execute.

Thanks

Vasudha

Read only

Former Member
0 Likes
1,235

use /h in command field and execute

or from se38 screen pess debug button

Read only

Former Member
0 Likes
1,235

hi Friend.

chk this blog

/people/thomas.weiss/blog/2007/05/20/abap-trial-version-for-newbies-part-12-debugging-in-abap

Siva

Read only

Former Member
0 Likes
1,235

Hi,

You can debug the entire code or particular statement.

If you want to debug the entire program. Run the program, enter values in selection screen and input /h. By doing this you can debug the entire program.

If you want to know how the values are coming etc. then keep the break point at that place and click on the Debug point or press CTRLSHIFTF12.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,235

Hi,

Method 1) In the SE38, after entering the program name, click on Execute in Debugging Mode Button

Method 2) on the command field hit "/H", then, Debugging switched on, end execute the program

Method 3) In the ABAP code, some where insert the statement, Break-point,

when the control comes to that statement, the program turns into debugging.

Try this,

KC

Read only

Former Member
0 Likes
1,235

> Please send me the details of how to debug an abap

> code ? with screen shots.

>

> hanks

Hi,

There are two methods to debug ABAP code

1) Execute program by <b>F8</b> , give /h in command line and press Enter.

2) If you want to Debug pariticular part of the code then put <b>Break point</b> on this particular code and Execute code by F8

One more thing is that,

you can place any number of break points during debugging.

Thanks,

Aparna