<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: for enter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026822#M1348632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ENTER key sy-ucomm value is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2009 05:14:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-24T05:14:39Z</dc:date>
    <item>
      <title>for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026817#M1348627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to use enter button instead of pushbutton for calling another screen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026817#M1348627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026818#M1348628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;normally the ok_code for Enter is 'ENTR'. So check sy-ucomm value equal to 'ENTR' and then call the required screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026818#M1348628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026819#M1348629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the GUI status -&amp;gt; Application Tool bar -&amp;gt; In the Enter button (a tick mark), assign a function code 'ENTER', check and activate the GUI status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now your sy-ucomm value for Enter is 'ENTER'. Start coding using this sy-ucomm value in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

      IF ( sy-ucomm EQ 'ENTER' ).
        CALL SCREEN 0120.
      ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026819#M1348629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026820#M1348630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; normally the ok_code for Enter is 'ENTR'. So check sy-ucomm value equal to 'ENTR' and then call the required screen.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Ankur Parab&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but this is not true. Normally pressing ENTER doesn't place any function code in &lt;EM&gt;sy-ucomm&lt;/EM&gt; . This is one of the reason why you in PAI we should store &lt;EM&gt;ok_code&lt;/EM&gt; in some &lt;EM&gt;save_code&lt;/EM&gt; variable and then clear it. Simply after pressing ENTER in next screen without first clearing content of &lt;EM&gt;ok_code&lt;/EM&gt; we might still have previous function code there, hence program logic would be wrong.&lt;/P&gt;&lt;P&gt;Refer for proof [Reading Function Codes|http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@ Priya.R&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you want to catch your ENTER, simply do the following&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ok_code like sy-ucomm,  "ok_code assigned to screen
          save_code like sy-ucomm.

MODULE pai INPUT.
   save_code = ok_code.  
   clear ok_code.
   
   if save_code = space.  "as said above ENTER will generate empty function code
    CALL SCREEN ...
   endif.     
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 13:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026820#M1348630</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-08-20T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026821#M1348631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  For handling enter button event, you create a pf-status. In your pf-status, there will be "tick" symbol ( OK ). Under that you create a function code and then if you press enter button, your sy-ucomm value will be the function code which you gave in your pf-status.&lt;/P&gt;&lt;P&gt;Try it. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2009 11:20:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026821#M1348631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-21T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026822#M1348632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ENTER key sy-ucomm value is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2009 05:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026822#M1348632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-24T05:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: for enter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026823#M1348633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, For Enter key, Function code is space.&lt;/P&gt;&lt;P&gt;use code like. &lt;/P&gt;&lt;P&gt;if sy-ucomm eq 'SPACE'.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2009 05:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-enter/m-p/6026823#M1348633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-23T05:38:25Z</dc:date>
    </item>
  </channel>
</rss>

