Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP - Debugging

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

former_member215188
Participant
0 Kudos

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.

10 REPLIES 10

Former Member
0 Kudos

Andy,

Try hard coding the break point using BREAK-POINT.

Regards,

Ravi

former_member927251
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

nishanthbhandar
Contributor
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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

former_member215188
Participant
0 Kudos

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.

0 Kudos

make sure that u did not put breakpoint inside the loop.

and after seting braekpoint 1st refresh the used transaction

Former Member
0 Kudos

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

Former Member
0 Kudos

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?