Skip to Content
author's profile photo
Former Member

MOdule Pool - Pressing Enter on Keyboard

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 11, 2007 at 01:33 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 12, 2007 at 04:44 AM

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

    Add comment
    10|10000 characters needed characters exceeded

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

  • author's profile photo
    Former Member
    Oct 11, 2007 at 01:33 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 11, 2007 at 01:41 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Aug 04, 2016 at 04:15 PM

    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


    Capture.PNG (6.1 kB)
    Capture1.PNG (24.4 kB)
    Add comment
    10|10000 characters needed characters exceeded