04-13-2006 2:58 PM
Hi Guyz
the problem is same
Actually whenever i am debuggin a program that include any include program, logical db or function module,,
than smthing else is displaying
i tried to leave that program using F6 key but its not working..
can anybody plz tell me the reason and solution for this
Thanks in Advance
04-13-2006 3:04 PM
Rashmi,
You will have to F5, F6, F7 and F8 carefully.
F5 - Debugs and executes every statement of your code.
F6 - completes the execution of the current subroutine / function, without getting into it.
F7 - If you inside a sub routine / function, you want to get back to the place where you came from without continuing further, then use this.
F8 - Continue execution, without anymore debugging.
If you are calling any functions, GET statements of LDB, then standard programs will get executed, and I think that is what you are seeing.
Regards,
Ravi
Note : Please mark the helpful posts.
04-13-2006 3:01 PM
In debuugin mode by presing f5 you are debuugin step by step
and then going into incldes fm;s and so on. Press f6 before going into it it will make step with no going into it.. If you already are in that includ fm ore something press F7 to leave it and go to main program.
BR, Jacek
04-13-2006 3:04 PM
Rashmi,
You will have to F5, F6, F7 and F8 carefully.
F5 - Debugs and executes every statement of your code.
F6 - completes the execution of the current subroutine / function, without getting into it.
F7 - If you inside a sub routine / function, you want to get back to the place where you came from without continuing further, then use this.
F8 - Continue execution, without anymore debugging.
If you are calling any functions, GET statements of LDB, then standard programs will get executed, and I think that is what you are seeing.
Regards,
Ravi
Note : Please mark the helpful posts.
04-13-2006 3:19 PM
Thanks for your responses
actually the prgaram i m debuggin is having LDB as well as include program and from the startng itself m getting anotther code
Plz help me in solving the problem
Thanks in Advance
04-13-2006 3:23 PM
Rashmi,
In that case, I suggest you place break point in your program in SE38. Then at run time it will automatically stop at each of these break points by pressing F8. That way it will not debug the stadard programs at all. You can even hard code the BREAK POINT with BREAK-POINT statement.
Regards,
Ravi
Note : Please mark all the helpful answers in your threads.
04-13-2006 3:07 PM
04-13-2006 3:19 PM
Hello,
if you in some other module or include press F7 to come out to source module.
Regards,
Naimesh
04-13-2006 3:22 PM
04-13-2006 3:27 PM
Rashmi,
That happens when you press F7 while you are in the main program.
Regards,
Ravi
04-13-2006 3:29 PM
04-14-2006 6:16 AM
Hi Everybody
I am back
yesterday ther was sm problem with the system so left in between.. sorry for that
But problem is as it is
The program that am trying to debug is demo program thatz SAPBC405_LDBS_2
Plz solve the problem
Thanks in advance
04-14-2006 6:22 AM
Rashmi,
This program does not exist in my 4.6C / 4.7 systems. Which version you are working on.
What kind of a program is this?
Regards,
Ravi
04-14-2006 6:38 AM
I am on training working on IDES (4.7 C)
THis program is from exercise of Unit 15
in 1st certication book
Thanks
Message was edited by: Rashmi Agrawal
04-14-2006 9:36 AM
04-13-2006 3:27 PM
Rashmi
if u need further info u can go with these links
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
Debugging Document.
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
i think u r problem is solved now
if so please award points and close the thread
if u have any further doubts let us know Rashmi
Regards
naveen
04-14-2006 6:31 AM
Activate the Debugger before executing your ABAP program
System -> Utilities -> Debug ABAP/4
The purpose of the debugger is to allow you to execute your program line by line. It also allow you display the data as you execute the program. (double click on the varaible field name and it will be display)
or after program have been executed,
Run transaction SM66 and find your work process.
Select the line of your work process and double click on it
Click the debugging option.
If this is a custom program, you can put a wait statement in the code to buy yourself some time.
-
1) To understand the Watchpoint, you have to play with it.
a) Debug your program.
b) Place your cursor on the field you want to watch
c) Press Shift+F8, or click the Create Watchpoint button
d) Select the LOCAL WATCHPOINT checkbox if you want the watchpoint to be active for the immediate program only (and not includes etc. By default, you want to leave this unchecked).
e) Drop down on the relational operator, and choose one. They are self-explanatory. (For this example, use '=')
f) Select the COMPARISON FIELD checkbox if you want to check the field against another field, else leave unchecked if you want to check your field against a static value.
g) Enter your comparison field (if you checked the previous box) or your check value in the last box. Once your selected field equals the selected value, the program will break as if a breakpoint was reached. It is possible that the program never breaks, meaning your watchpoint criteria was never satisfied (For example if you check Itab-Field = VALUEA, if Itab-field never have a value equal to VALUEA the program will NOT break.)
regards
vinod
04-14-2006 7:53 AM
Hi Rashmi,
We use the following keys while debugging:
F5 - For step by step code execution.
F6 - For execution of the current subroutine/function module etc. without getting inside it.
F7 - If you find yourself stuck inside a subroutine/function module/loop press F7 to come out of it and continue with the next statement following the calling subroutine/function module/endloop statement.
F8 - Displays output by stopping debugging. Similar to Debugging off.
If you are getting stuck then you can put a break-point on the statement from where you want to debug. On execution, the debugger will directly come to your statement where you have set the breakpoint.
Regards,
Sangeeta.
04-14-2006 7:55 AM
Hi Rashmi,
Follow this steps:
1. Goto SE38 & open the source code of SAPBC405_LDBS_2
Initial few lines of code must be as follow:
&----
*& Report SAPBC405_LDBS_2 *
&----
include bc405_ldbs_2top.
&----
*& Event GET SPFLI
&----
<b>get spfli.</b>
Data output SPFLI
format color col_heading intensified off.
write: / sy-vline, spfli-carrid,
spfli-connid,
2. Set a break-point on the line marked bold above.
3. Press F8.
4. Press F8 Once again.
5. Now you will enter into debugging mode.
Actually if you enter into debugging directly without setting the break-point, because of LDB has its own
Selection screen, initially you will enter into that code which will lead you to the selection screen.
So after entering the selection parameters(or you may leave it blank), the actual code of report
SAPBC405_LDBS_2 starts.
I think you want to debug this code.
SAP automatically adds the code of selection screen, once you have opted to use LDB.
Hope this will help you.
IF this helps to solve your problem,
Close this thread & mark points for it
Regards,
Vaibhav