‎2005 Dec 06 1:35 PM
Hello Friends.
In the module pool when the user presses the ENTER on any input field on the screen no function code will be placed in sy-ucomm.My requirement is i want to perform some action once the user presses the ENTER key.How can i assign a function code.Shall i go with
IF SY-UCOMM = SPACE condition..
Kindly clarify..
Thanks,
Abdul
‎2005 Dec 06 1:38 PM
Hi,
In your PF-STATUS definition, go to Standard Function Keys section and assign a function code to Enter Key..
For example, ENTR and then make sure nothing collides with that..
The first button (the GREEN check Icon next to SAVE Icon) in the Standarad Toolbar section is for Enter or Continue whatever you want to call it..
On another note, if it is for field validations in the screen then I would suggest you write your checks or other logic in PAI Module inside CHAIN. ENDCHAIN on the related fields..
For example,
PROCESS AFTER INPUT.
CHAIN.
FIELD: <all your related fields here>.
MODULE check_data ON CHAIN-REQUEST.
***Or CHAIN-INPUT if you want to check every time there are values in atleast one field mentioned above, CHAIN-REQUEST is triggered only if user changes a value in any of the fields mentioned above.
ENDCHAIN.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
‎2005 Dec 06 1:38 PM
Hi,
In your PF-STATUS definition, go to Standard Function Keys section and assign a function code to Enter Key..
For example, ENTR and then make sure nothing collides with that..
The first button (the GREEN check Icon next to SAVE Icon) in the Standarad Toolbar section is for Enter or Continue whatever you want to call it..
On another note, if it is for field validations in the screen then I would suggest you write your checks or other logic in PAI Module inside CHAIN. ENDCHAIN on the related fields..
For example,
PROCESS AFTER INPUT.
CHAIN.
FIELD: <all your related fields here>.
MODULE check_data ON CHAIN-REQUEST.
***Or CHAIN-INPUT if you want to check every time there are values in atleast one field mentioned above, CHAIN-REQUEST is triggered only if user changes a value in any of the fields mentioned above.
ENDCHAIN.
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni
‎2005 Dec 06 1:43 PM
‎2005 Dec 06 1:44 PM
Assign Function code to the Green Tick button which appears in Application tool bar.
say 'ENTER', and try enter it will work...
handle it in PAI...