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 - Pressing Enter on Keyboard

Former Member
0 Likes
10,108

Hi Gurus,

When i press Enter on Keyboard the sy-ucomm returns me a blank value.....

I need some other value other than blank....

How can i obtain it.........

I mean any other value in SY-UCOMM other then Blank......

Please Help!!

Regards,

Roshan Lilaram Wadhwani.

1 ACCEPTED SOLUTION
Read only

Former Member
4,504

You will have to set the Function Code in PF-Status to capture the sy-ucomm for Enter.

Hi Gurus,

When i press Enter on Keyboard the sy-ucomm returns me a blank value.....

I need some other value other than blank....

How can i obtain it.........

I mean any other value in SY-UCOMM other then Blank......

Please Help!!

Regards,

Roshan Lilaram Wadhwani.

8 REPLIES 8
Read only

Former Member
4,505

You will have to set the Function Code in PF-Status to capture the sy-ucomm for Enter.

Read only

0 Likes
4,504

where in PF-Status can i set something for the Enter Key???

Read only

Former Member
0 Likes
4,504

sy-ucomm in module pool program will usually be blank.

use okcode....for ur needs....

CHECK THIS LINK

http://www.sap-img.com/abap/sy-ucomm-and-ok-code-in-dialog-program.htm

Read only

Former Member
0 Likes
4,504

Hi Roshan,

The sy-ucomm always have a blank value.

Do ur desired coding on checking the sy-ucomm as blank.

Not a problem.

Thank you.

Read only

0 Likes
4,504

yeah its usually blank but cant i change it somewhere........

because when i am using scroll on my table control .......again the sy-ucomm is balnk and thus my select query are again getting fired..........

cant i change the sy-ucomm for Enter Key somewhere.........

REgards,

Roshan Lilaram Wadhwani.

Read only

Former Member
4,504

the very fist icon .......that green tick mark..........is used for enter key.....

Read only

0 Likes
4,504

Hi Roshan..

To avoid this problem there is no need to set any Function code for the ENTER key.

In the PBO Module set the OK_Code to Blank.

MODULE XXX OUTPUT.

CLEAR OK_CODE.

ENDMODULE.

Then in the PAI Module Check the condition for BLANK ok Code.

CASE OK_CODE.

WHEN SPACE. "Processing of Enter key

WHEN 'ABC'

SELECT QUERIES....

ENDCASE.

Reward if Helpful.

Read only

Mujeeb
Participant
0 Likes
4,504

Hi Roshan,

You can have some key in your standard toolbar like I have declared 'ENTER'; when you press enter in your selection screen you will get the OK_CODE value as 'ENTER' in your PAI section.

Rewards if helpful

Thanks

Mujeeb