‎2010 Sep 26 7:36 AM
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
‎2010 Sep 26 8:11 AM
Hi Carlos,
Just use BREAK-POINT .
Even you can use /h and then click on a button and check your OK_CODE.
Regards,
Ankit.
‎2010 Sep 26 8:11 AM
Hi Carlos,
Just use BREAK-POINT .
Even you can use /h and then click on a button and check your OK_CODE.
Regards,
Ankit.
‎2010 Sep 26 8:34 AM
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.
‎2010 Sep 26 8:40 AM
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
‎2010 Sep 26 9:37 AM
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
‎2010 Sep 26 10:32 AM
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
‎2010 Sep 27 5:23 AM
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