Application Development and Automation 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: 
Read only

ABAP - Debugging

Former Member
0 Likes
1,351

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
Read only

Former Member
0 Likes
1,306

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
Read only

Former Member
0 Likes
1,306

Andy,

Try hard coding the break point using BREAK-POINT.

Regards,

Ravi

Read only

Former Member
0 Likes
1,306

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

Read only

Former Member
0 Likes
1,306

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.

Read only

nishanthbhandar
Contributor
0 Likes
1,306

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

Read only

Former Member
0 Likes
1,306

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.

Read only

0 Likes
1,306

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

Read only

Former Member
0 Likes
1,307

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.

Read only

0 Likes
1,306

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

and after seting braekpoint 1st refresh the used transaction

Read only

Former Member
0 Likes
1,306

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

Read only

Former Member
0 Likes
1,306

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?