‎2007 Apr 03 2:31 PM
Hi All,
I called one Method in my program. If I put a break point at method in my program, control is not going inside the method even i am using F5.
Could any body help me.
Regards,
Sai
‎2007 Apr 03 2:48 PM
Hi,
Try to debug with any of the following method.
<b>1.</b> Before executing program, enter '/h' command. ( you enter this command where you enter transaction code). This trun the debugger on. Now as soon as you execute your program (F8), it will start debugging.
<b>2.</b> Put a statement BREAP-POINT or BREAK uname ( here uname is your user id with which you login into SAP ). Put this statement at the place from where you want to start debugging. Once you do this and execute your program, it will stop at this statement. In your case you can put this statement before your method and inside methdo.
<b>3.</b> Go to SE38/SE24 and display your code. Now hit breakpoint button ( the button with STOP sign or Ctrl + Shift + F12 ). This will set the break-point on the very first line of your souce code. When you will execute your report, it will start debugger from very first line. Do this in both your program and inside code of your debugger.
Also, when you reach at a point of calling a method, trun on the system debuggin ( command '/hs' or in the "setting tab" select the box 'system debugging' ) and see if it goes into your code.
Let me know if you still have a problem.
Regards,
RS
‎2007 Apr 03 2:34 PM
Hi!
Try to write the following command before the method call:
BREAK-POINT.
You might try to write the following:
BREAK username.
Regards
Tamá
‎2007 Apr 03 2:36 PM
have you put the breakpoint in a method like this
http://help.sap.com/saphelp_47x200/helpdata/en/78/677f77727d11d4b3060050dadfafba/content.htm
‎2007 Apr 03 2:37 PM
‎2007 Apr 03 2:40 PM
use /H & goto Debugging mode.
now in the Menu bar goto Breakpoints->Breakpoint At
Here u can see
1.Statement
2.Subroutine
3.Function Module
4.Methods etc...
Now click the method & specify ur method name to breakpoint
Now a message will be displayed that break-point is set.
‎2007 Apr 03 2:43 PM
Hi chendrasekhar,
Thank you,
That way we can put break point at all methods.But at my break point program is stopping, but control is not going inside the method, insted directly going to sy-subrc checking in my program, which i have written after calling the method.
Regards,
Sai
‎2007 Apr 03 2:44 PM
Write a endless loop before your method. In SM50 process overview select your process id, in the menu go to Program/session and select debugging.
This will stop at your endless loop.
Thanks,
Santosh
‎2007 Apr 03 2:48 PM
Hi,
Try to debug with any of the following method.
<b>1.</b> Before executing program, enter '/h' command. ( you enter this command where you enter transaction code). This trun the debugger on. Now as soon as you execute your program (F8), it will start debugging.
<b>2.</b> Put a statement BREAP-POINT or BREAK uname ( here uname is your user id with which you login into SAP ). Put this statement at the place from where you want to start debugging. Once you do this and execute your program, it will stop at this statement. In your case you can put this statement before your method and inside methdo.
<b>3.</b> Go to SE38/SE24 and display your code. Now hit breakpoint button ( the button with STOP sign or Ctrl + Shift + F12 ). This will set the break-point on the very first line of your souce code. When you will execute your report, it will start debugger from very first line. Do this in both your program and inside code of your debugger.
Also, when you reach at a point of calling a method, trun on the system debuggin ( command '/hs' or in the "setting tab" select the box 'system debugging' ) and see if it goes into your code.
Let me know if you still have a problem.
Regards,
RS
‎2007 Apr 03 2:53 PM
HI sai,
You need to put the break point in the Debuging only, while doing the Debugging, put a break point at Method,
While debugging, click on the Break Point --> Break Point at --> then give your method.
Regards
Sudheer
‎2007 Apr 03 3:00 PM
Hi all,
Thanks U very much for ur support, Issue Resolved.
After reaching the break point at method i entered " command '/hs' ".
Then going inside the method ( Ref: RS poting).
Thnx RS.
Regards,
Sai