04-25-2006 7:33 AM
Hi everyone.
I am trying to set a break point in a piece of ABAP
code which calls a smartform. The code is invoked when
running DP90 which creates a billing request.
I have set both a 'break-point' and also a yellow break
point in the ABAP but nothing is happening.
Any ideas anyone??
Thanks
Andy
04-25-2006 7:59 AM
1) You cant set a break-point if the code isn't activated.
2) If you hardcode a break-point you need to activate the code after.
3) If it doesnt stop, chances are, it didn't pass through
that code.
4) do a test.. try putting the break-point at a more trivial location - somewhere that you are very sure
that it'll be executed. ie. start of the program. If it runs then, you're previous break-point is just in the wrong place.
04-25-2006 7:37 AM
Andy,
Try hard coding the break point using BREAK-POINT.
Regards,
Ravi
04-25-2006 7:37 AM
Hi Andy,
After setting the break point activate the code or you can set the hardcoded break point in the code it self.
E.G. break login_id.
Just see if it works.
Reward helpful answer.
Regards,
Amit Mishra
04-25-2006 7:38 AM
Hi Andy,
Are you sure that this piece of code is getting invoked.
Try debugging using "/h" and find whether that code is reached or not.
Regards,
Tanveer.
Mark helpful answers.
04-25-2006 7:44 AM
Andy,
Make sure that the code is activated.After putting the breakpoint please do a /n DP90 so that a new session is started with the active breakpoints.Also you can do a /h when you execute the DP90 transaction and check to see if the ABAP program is there in the call flow.If it's not then the breakpoint might not get triggered.So ensure that the above things are checked.
Cheers
Nishanth
04-25-2006 7:50 AM
Hello Andy,
There is no reason for not stopping at the break point, unless the piece of code before is cause it to take and alternate route.
Can u please share the piece of code where u have set the breakpoint? We can then probably give a better solution.
04-25-2006 7:54 AM
ok here we go.
FORM print_vms_advice_note USING return_code TYPE i
us_screen TYPE c.
*
If called via DP90 the data will be held in the
table NAST
IF so_vbeln IS INITIAL AND nast-objky IS NOT INITIAL.....
so_vbeln-sign = 'I'.
so_vbeln-option = 'EQ'.
so_vbeln-low = nast-objky.
APPEND so_vbeln.
ENDIF.
BREAK-POINT.
PERFORM main_processing.
ENDFORM. "PRINT_VMS_ADVICE_NOTE
04-25-2006 7:59 AM
1) You cant set a break-point if the code isn't activated.
2) If you hardcode a break-point you need to activate the code after.
3) If it doesnt stop, chances are, it didn't pass through
that code.
4) do a test.. try putting the break-point at a more trivial location - somewhere that you are very sure
that it'll be executed. ie. start of the program. If it runs then, you're previous break-point is just in the wrong place.
04-25-2006 8:06 AM
make sure that u did not put breakpoint inside the loop.
and after seting braekpoint 1st refresh the used transaction
04-25-2006 8:03 AM
HI
GOOD
YOU HAVE NOT GIVE CLEAR IDEA ABOUT YOUR REQUIREMENT,
IF YOU R RUNNING DP90 THAN YOU MUST HAVE CONVERT THE STARND REPORT TO ZREPORT THAN YOU MUST HAVE CALLING THE ABAP CODE THAT YOU WANT TO CALL.
IN THAT CASE FIRST YOUR HAVE TO IDENTIFY WHERE ACTUALLY YOU WANT TO SET THE BREAK POINT IN YOUR STANDARD REPORT OR YOUR ABAP REPORT THAT YOU HAVE WRITTEN TO CALL THE DP90.
I THINK YOU MUST HAVE IDEA ABOUT THE THE PROCESS OF DEBUGGING.TRY THEM OUT.
THANKS
MRUTYUN
04-25-2006 8:18 AM
Hello Andy,
Check if the Perform is not in any condition because of which it is skipping. Can u indicate in which include is this FORM?