‎2006 Nov 28 9:10 PM
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
‎2006 Nov 28 9:15 PM
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
‎2006 Nov 28 9:12 PM
Hi,
Put a break point in your program and execute it..
Thanks,
Naren
‎2006 Nov 28 9:13 PM
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
‎2006 Nov 28 9:13 PM
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
‎2006 Nov 28 9:15 PM
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