2008 Jul 05 1:12 AM
Hi , all
The results are different while debugging a program with breakpoint and without breakpoint . why is that? Any suggustion is welcome and helpful .
Thanks in Advance
Thomas .
2008 Jul 06 8:26 AM
use
delay 1 second.
after your database commit ( i.e.after ur call transaction)
as i am not having my sap system at home so i could not give u example code sorry for that.
when you are in debugging mode you are explicitly giveing system some time so it is working.
Edited by: S.r.v.r.Kumar on Jul 6, 2008 12:57 PM
use
delay 1 second.
after your database commit ( i.e.after ur call transaction)
as i am not having my sap system at home so i could not give u example code sorry for that.
when you are in debugging mode you are explicitly giveing system some time so it is working.
Edited by: S.r.v.r.Kumar on Jul 6, 2008 12:57 PM
2008 Jul 05 1:24 AM
2008 Jul 05 1:42 AM
I have found that you can get different results as well. I have also seen instances where, while in the debugger, you saw entries in a table that didn't exist. The bottom line is you really can't trust the debugger 100%.
2008 Jul 05 1:46 AM
I use a perform in the METHOD handle_hotspot_click_hipo of alv_grid . the perform is used to exc a SQL statement . It seems to run the perform while debugging with a breakpoint . and without a breakpoint , it doesn't run the perform .
2008 Jul 05 6:51 AM
hi,
i think before perform you need to use commit work for sometime..
is that perform workin on any condition??
let me know...
2008 Jul 05 12:57 PM
hi in some of the performs if you put the break points it will give dump..some times it will stop..it will not run ...some of the standard performs will not allows us to debug means we had no authorisation to debugg it....
2008 Jul 05 12:59 PM
Hi,
Use COMMIT WORK statement where ever necessary like after using function module and after subroutine and check..
Hope this would solve your issue..
Regards
Narin Nandivada.
2008 Jul 05 3:00 PM
Hi,
Is the method that you call somewhere inside a RFC FM. If so then it is possible.
Please let me know the details and then I can comment.
Regards,
Saurabh
2008 Jul 05 4:55 PM
CASE e_column_id.
WHEN 'VBELN'.
SET PARAMETER ID 'AUN' FIELD ls_outtab-VBELN.
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
PERFORM GETDATA_NONDEAL.
CLEAR:INTAB,INTAB[].
CALL METHOD grid->refresh_table_display.
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = grid.
CALL METHOD cl_gui_cfw=>flush.
ENDCASE.
above is the source code . the perform is a select-sql statement,not insert or update statement . i need to
re-select the data from vbak while a SO changed . and then re-show the data in a grid . the most funny thing is that it runs the perform while pressing F5/F6 to debug the code.it doesn't while pressing F8 .
2008 Jul 06 8:57 AM
Hi,
In debugg there is a delay in database update,
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
wait up to 3 seconds.
PERFORM GETDATA_NONDEAL.
Hope this should sove your problem...
If the hint is usefulu2026 Say thanks by rewardu2026.
Regards,
Prabhu Rajesh
2008 Jul 05 4:59 PM
hi
debugging is line by line till break point so it ll check all syntax and performance issues til ur break point ..when u remove break point some syntax errors as object doesn't used and all will be removed because the compiler will checks (debugs) entire program..
rate me if u felt it is helpful..
keep using F1 it is the best guide ...
2008 Jul 05 8:07 PM
2008 Jul 06 3:00 AM
2008 Jul 06 8:07 AM
2008 Jul 06 8:26 AM
use
delay 1 second.
after your database commit ( i.e.after ur call transaction)
as i am not having my sap system at home so i could not give u example code sorry for that.
when you are in debugging mode you are explicitly giveing system some time so it is working.
Edited by: S.r.v.r.Kumar on Jul 6, 2008 12:57 PM
2008 Jul 06 11:37 AM
Thanks S.r.v.r.Kumar , Prabhu Rajesh and Everyone ! the problem was solved . Add code " wait up to
X seconds, just as S.r.v.r.Kumar , Prabhu Rajesh said in the threat . Thanks again !
Thanks®ard
Thomas
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |