<?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: OK_CODE for ENTER Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code-for-enter-button/m-p/7205957#M1521976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you press the ENTER key the PAI will be called but the OK_CODE will be empty.  If you specifically trap for OK_CODE = '' you can fill the table whenever the ENTER key is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
.
.
.
MODULE USER_COMMAND.

*Call to USER_COMMAND MODULE
MODULE USER_COMMAND INPUT.
  IF OK_CODE = ''.
*   Fill table when the ENTER key is pressed
  ENDIF.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the user presses the ENTER key the same code will be called so it could affect the speed of your program--depending on the size of the table you want to populate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm not even close on my response to your question, I apologize.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Aug 2010 19:43:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-19T19:43:18Z</dc:date>
    <item>
      <title>OK_CODE for ENTER Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code-for-enter-button/m-p/7205956#M1521975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i used the command : field XXXX module YYYY , to call the module when the data is given in the field. Now my boss told me that he wants to execute the filling of the table ( that is waht my program makes) even if i do not fill any field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get the ok_code when i press the enter button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 15:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code-for-enter-button/m-p/7205956#M1521975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE for ENTER Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code-for-enter-button/m-p/7205957#M1521976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you press the ENTER key the PAI will be called but the OK_CODE will be empty.  If you specifically trap for OK_CODE = '' you can fill the table whenever the ENTER key is pressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PROCESS AFTER INPUT.
.
.
.
MODULE USER_COMMAND.

*Call to USER_COMMAND MODULE
MODULE USER_COMMAND INPUT.
  IF OK_CODE = ''.
*   Fill table when the ENTER key is pressed
  ENDIF.
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever the user presses the ENTER key the same code will be called so it could affect the speed of your program--depending on the size of the table you want to populate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm not even close on my response to your question, I apologize.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Aug 2010 19:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code-for-enter-button/m-p/7205957#M1521976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-19T19:43:18Z</dc:date>
    </item>
  </channel>
</rss>

