‎2006 Feb 10 11:53 AM
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!!!!!!!
‎2006 Feb 10 1:50 PM
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
‎2006 Feb 10 12:01 PM
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
‎2006 Feb 10 12:06 PM
Hello,
did you assign the ENTER button a function code in the menu painter?
Regards,
Michael
‎2006 Feb 10 12:17 PM
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
‎2006 Feb 10 1:50 PM
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