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

ABAP Debugging

Former Member
0 Likes
587

Hi

I am a student learning SAP ABAP. I am trying to debug a program using /h and when i execute it it takes me to some main program instead of my program.

How do i resolve this issue ?

Thanks

Mike

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
558

Try to put break point in ur program and then execute directly. The program will stop at break point and then onwards you can debug the program. You can put hard-coded break points also in your program by using statement break-point or break <your your id> also.

start-of-selection.

break-point.

  • here is ur hard coded breakpoint statement. or you can use the break point from application toolbar also.

select * from

4 REPLIES 4
Read only

Former Member
0 Likes
558

Hi,

Put a break point in your program and execute it..

Thanks,

Naren

Read only

Former Member
0 Likes
558

Hi Mike,

Welcome to SDN.

Perhaps you may want to code like this in your program.

BREAK <sy-uname>. <---- your logon ID

So when you are in debugging mode and hit continue button, the system will stop at your program.

Hope this will help.

Regards,

Ferry Lianto

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
558

When you do /H, this turns the debugger on immediatly, so you actually start by debugging the ABAP code of the system.

So go to SE38 and put a breakk point in your code. Put your cursor on a line and hit the "Stop" sign icon on the toolbar. Now run your program using F8, the program will stop in debug mode at your break point.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
559

Try to put break point in ur program and then execute directly. The program will stop at break point and then onwards you can debug the program. You can put hard-coded break points also in your program by using statement break-point or break <your your id> also.

start-of-selection.

break-point.

  • here is ur hard coded breakpoint statement. or you can use the break point from application toolbar also.

select * from