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

Module Pool!!

abdul_hakim
Active Contributor
0 Likes
503

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
476

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

3 REPLIES 3
Read only

Former Member
0 Likes
477

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

Read only

0 Likes
476

Hi Srikanth..

Thanks a lot..

REgards,

Abdul

Read only

Former Member
0 Likes
476

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...