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

break-point not triggering in dialog program

carlos_zhang3
Participant
0 Likes
1,306

Dear Guru ,

I am writing one dialog abap program . In this program , there has only 1 button in the application toolbar .

And i setup one breakpoint in PAI Modules , but it doesn't work ( screen & program has been activated ) .

Can you please let me know what is missing ? Thanks .

Flow logic in screen


PROCESS BEFORE OUTPUT.
 MODULE STATUS_2000.

PROCESS AFTER INPUT.
 MODULE CMD_2000.

*PAI *


*&---------------------------------------------------------------------*
*&      Module  CMD_2000  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE CMD_2000 INPUT.
   break HENNE .

  case OK_CODE .
      when 'EXEC' .

      when 'EXIT' .
         set screen 0 .
         leave screen .
      when 'ENTR' .

      when others .

  endcase .
ENDMODULE.                 " CMD_2000  INPUT

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
917

Hi Carlos,

Just use BREAK-POINT .

Even you can use /h and then click on a button and check your OK_CODE.

Regards,

Ankit.

6 REPLIES 6
Read only

Former Member
0 Likes
918

Hi Carlos,

Just use BREAK-POINT .

Even you can use /h and then click on a button and check your OK_CODE.

Regards,

Ankit.

Read only

deepak_dhamat
Active Contributor
0 Likes
917

Hi

carlos

Give breakpoint in main Driving program insted of in PAI or PBO

Or after executing trasaction code Press /h and then go step by step by Presing F5

Regards

Deepak.

Read only

Former Member
0 Likes
917

Hi,

You are using break HENNE, rather use Break-point Henne. Moreover if you want you can use session break point. Hope it will help you.

Regards!

Sheik

Read only

0 Likes
917

Hi all ,

It looks like that SAP didn't execute the PAI code ... because i setup the break-point before the 'case' statement and it doesn't work .

Thanks again .

Carlos

Read only

sarang_gujrati2
Explorer
0 Likes
917

Hi,

Aru sure when u click on the button it is going to PAI. Plz chk function code assigned to it properly. And also Chk declaration of ok_code in screen as well as in program.

Regards,

sarang

Read only

Former Member
0 Likes
917

Hi Carlos

first you need to check in which screen's PAI you are setting this break point.

best would be:

run the program and write /H in command prompt and then click on your button. it will execute the debugger for you.

else.

you need to check by which User name you are logged in.

just write Break <user name>.

remember it should be the same user name by which you are logged in or you can use break-point if you want to set the break point for all the users.

there is nothing like break point doesn't work in PAI.

Break point can work in PAI and PBO as well.

or what you can do.

open your program in SE80 and set a break point mannually at the line where you want to set the break point.

I hope this will work for you.

Thanks

Lalit Gutpa