<?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: How trigger keys programmatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171983#M1979050</link>
    <description>&lt;P&gt;... because the scanner driver is a keyboard driver and simulates real keystrokes. You can't do this within ABAP.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2020 14:17:54 GMT</pubDate>
    <dc:creator>UweFetzer_se38</dc:creator>
    <dc:date>2020-03-10T14:17:54Z</dc:date>
    <item>
      <title>How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171980#M1979047</link>
      <description>&lt;P&gt;I know this sounds weired, but is there a command that executes keyboard-keypresses? &lt;/P&gt;
  &lt;P&gt;Like i got some code (Dynpro pai) and after its execution i need to press enter to continue. If i could execute the enter-command automatically the usability would increase. (Since i dont have full access to the System i cant change that the entercommand is needed.)&lt;/P&gt;
  &lt;P&gt;Is there a way to do this?&lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 20:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171980#M1979047</guid>
      <dc:creator>former_member1335393</dc:creator>
      <dc:date>2020-03-09T20:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171981#M1979048</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm afraid an automatic enter is not possible from within ABAP. It wouldn't make any sense as well. Because the system would never know when the user is done with entering his value.&lt;/P&gt;&lt;P&gt;For example if your input field would be an order number, valid order numbers are 1,11,111,1111. There's no way you can ever determine when the system needs to trigger the enter command.&lt;/P&gt;&lt;P&gt;There is however one exception, in case this is a transaction for an RF scanner. The scanner can be programmed to scan a barcode, enter the value in the field and trigger an enter command. But all of that is programmed in the scanners itself.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Geert-Jan Klaps&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 20:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171981#M1979048</guid>
      <dc:creator>geert-janklaps</dc:creator>
      <dc:date>2020-03-09T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171982#M1979049</link>
      <description>&lt;P&gt;Yes. It's been discussed a "lot" in the forum. There are several solutions. Search things like refresh screen automatically, or CL_GUI_TIMER, SET USER-COMMAND, CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 00:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171982#M1979049</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-03-10T00:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171983#M1979050</link>
      <description>&lt;P&gt;... because the scanner driver is a keyboard driver and simulates real keystrokes. You can't do this within ABAP.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171983#M1979050</guid>
      <dc:creator>UweFetzer_se38</dc:creator>
      <dc:date>2020-03-10T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171984#M1979051</link>
      <description>&lt;P&gt;Please put the following code - to force enter key as you asked. (in the user-command section)&lt;/P&gt;&lt;P&gt;I am using this for the same situation you asked for&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;        WHEN 'XXXX'.
             CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE'
            EXPORTING
              functioncode = '='.
          IF sy-subrc &amp;lt;&amp;gt; 0.
*           Implement suitable error handling here
          ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will force the enter key internally&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171984#M1979051</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2020-03-10T14:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171985#M1979052</link>
      <description>&lt;P&gt;I agree - in dynpro, to trigger pai you have to press either &amp;lt;enter&amp;gt; or &amp;lt;function key&amp;gt;.  The requirement doesn't make sense or we don't understand it. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 21:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171985#M1979052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-03-10T21:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How trigger keys programmatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171986#M1979053</link>
      <description>&lt;P&gt;It has to be combined with CL_GUI_TIMER or aRFC so that to execute it automatically at regular intervals to refresh the screen every X second(s).&lt;/P&gt;&lt;P&gt;Note that SAPGUI_SET_FUNCTIONCODE is equivalent to the officially-released method CL_GUI_CFW=&amp;gt;SET_NEW_OK_CODE.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 01:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-trigger-keys-programmatically/m-p/12171986#M1979053</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-03-11T01:35:04Z</dc:date>
    </item>
  </channel>
</rss>

