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

Screen Programming

Former Member
0 Likes
537

If I hit the ENTER button while on a screen, how do I capture the code. I don't see it changing the OK_CODE.

Additionally, I have observed that htting ENTER does trigger PAI execution. Logically, I should have the ENTER code somewhere, in some variable!!!!!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
519

This works for all buttons:

Press the button. Keep your mousebutton "clicked in". The press F1 and release the mousebutton. voila: the OK_CODE

-


now something more to the point:

-


Start your program in debugmode and then enter "systemdebugging". When in the mainmenu I enter the handling of the enter event. SY-UCOMM = XXTRRF.

meaning of SY-UCOMM: SCREENS, dunctioncode which causes PAI

Message was edited by: Bas Jansen

Message was edited by: Bas Jansen

4 REPLIES 4
Read only

Former Member
0 Likes
519

Hi,

you need to set the Function code for ENTER button.

i mean Green TICK button for that you have to give Function code, then only you can see the effect,

change the PF-status, set the code for ENTER, and check it in PAI.

case sy-ucomm.
when 'ENTER'.

endcase.

regards

vijay

Read only

MichaelTe
Contributor
0 Likes
519

Hello,

did you assign the ENTER button a function code in the menu painter?

Regards,

Michael

Read only

abdul_hakim
Active Contributor
0 Likes
519

hi hem,

you need to set function code for ENTER by double clickin the SET PF STATUS <name>.You can give name like ENTER.

then in the program u can validate

CASE SY-UCOMM.

WHEN 'ENTER'.

<DO SOMETHING>.

ENDCASE.

Regards,

Abdul Hakim

Read only

Former Member
0 Likes
520

This works for all buttons:

Press the button. Keep your mousebutton "clicked in". The press F1 and release the mousebutton. voila: the OK_CODE

-


now something more to the point:

-


Start your program in debugmode and then enter "systemdebugging". When in the mainmenu I enter the handling of the enter event. SY-UCOMM = XXTRRF.

meaning of SY-UCOMM: SCREENS, dunctioncode which causes PAI

Message was edited by: Bas Jansen

Message was edited by: Bas Jansen