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

Debugging in ABAP/4

Former Member
0 Likes
1,294

Hi all,

Could you help me on this?

What is the step-by-step procedure to debug a given module program? How can I see the value of the variables in the program after each step?

Couldn't understand anything much from the online links!

Thanks,

Indu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,256

Hi Indu,

Check the position at which you have to put the break-point.Activate the break point there CtrlaltF12.Execute the program.Now your program will go step by step in all the events.Now you can check the value of variable at each step.

12 REPLIES 12
Read only

Former Member
0 Likes
1,257

Hi Indu,

Check the position at which you have to put the break-point.Activate the break point there CtrlaltF12.Execute the program.Now your program will go step by step in all the events.Now you can check the value of variable at each step.

Read only

0 Likes
1,256

Hi Mukesh,

The break point is not getting activated the way you asked me to ! Is there any other way to activate it?

Thanks,

Indu

Read only

0 Likes
1,256

Type in BREAK-POINT in your program wherever you want to stop.

Just double click on the varialbe and you will be able to see the value of the same.

Regards,

Ravi

Read only

0 Likes
1,256

Hi Indu use ctrlshiftF12 instead of that.There is one red button(STOP) on the application bar that works for the Breakpoint you can press that also

Message was edited by: mukesh kumar

Read only

0 Likes
1,256

HI Indu,

Brekpts in system prgms are only observed in system debugging.You can't set breakpoint in the screen.If you wantto set it ..type <b> /h </b> in the command field and execute the prgram.

F5 : Line by Line Debugging

F6 : module level

F8 : control passes to other debugging

You double click the module user_command..and there in any of the code u place the cursor and click the <b> STOP </b> Icon and turn Session brkpnt.

Rgds,

Jothi.

Read only

0 Likes
1,256

Is this the procedure for module program too? Because I get an error message saying - ' is not a report program (type 'm') '.

Indu

Read only

0 Likes
1,256

The debugging procedure is same for all the programs. The message you are getting is becase you are trying to execute the program directly. Place the break point using the code like the way I have show in the previous answer and execute the program using teh transaction code.

Regards,

Ravi

Note : Please mark all the helpful answers

Read only

0 Likes
1,256

Place the break point at the specified position first and execute the module program it will work fine.

Read only

0 Likes
1,256

Hi Indu,

First of all u can't run Module Program directly.

U have to create a TCODE for it in SE80.

where u have to pass program name and screen name.

NOw activate the program and mark the break points.

Run the TCODE u have created for ur Module prog.

use following:-

F5 : Line by Line Debugging

F6 : module level

F8 : control passes to other debugging

Dobule click the variable for which u want values.

Regards

-


Sachin Dhingra

Read only

Former Member
0 Likes
1,256

You have to type '/h' in the transaction code. After that press execute button. Debug screen will open. Now you have go step by step. And you can see the value of the variables.

Regards,

Subhasish

Read only

Former Member
0 Likes
1,256

First u activate the program . Than only Break point will work.

Read only

Former Member
0 Likes
1,256

Hi Indu,

ways to debug..

1. Hardcode Break points using BREAK-POINT

2.Using /H when you Before Pressing Execute Button(F8).

3.Keep the Break points in the code , go to the line and using the CTRLSHFTF12 option .

Now Debugging Will start, and use F5,F6,F7 to Debug.

and double click the variable and see their values in runtime

Regards

vijay