<?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: Specific Enter Event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050525#M1899962</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;you can use ABAP keyword GET CURSOR in an ABAP module or PERFORM to get the "selected" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE ON INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in flow logic, first check in the module the right field. Or in a CHAIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 8pt; font-family: courier new,courier;"&gt;PROCESS AFTER INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; CHAIN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODULE GET_CURSOR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD A MODULE DO_A ON INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD B MODULE DO_B ON INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; ENDCHAIN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can find the "selected" field in module GET_CURSOR and check for it in modules DO_A and DO_B at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2015 09:21:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-07T09:21:15Z</dc:date>
    <item>
      <title>Specific Enter Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050522#M1899959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;I created a dynpro with some input-fields for my application.&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;I want to run a method each time the users hits the "ENTER"-Button and this runs fine,&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;but in relation to the input-field which the user has "selected" (the text-field which is focused) a different method should be called.&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;I don't know how I can check IF a field is focused and WHICH is focused?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: sans-serif; font-size: 13.6960000991821px;"&gt;Thank you for your answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050522#M1899959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T07:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Enter Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050523#M1899960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the flow logic of your module pool screen you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ... MODULE ON INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ... MODULE ON REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PAI for your issue. Maybe also a CHAIN ... ENDCHAIN will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050523#M1899960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Enter Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050524#M1899961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your anwer. This is very close to the solution of my problem.&lt;/P&gt;&lt;P&gt;The problem of MODULE ON INPUT/OUTPUT is, that if an other field is selected by the user the code is executed anyway.&lt;/P&gt;&lt;P&gt;I want the to execute the code only if the input-field is "selected" like you can see in the picture for the field "Serialn."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050524#M1899961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T09:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Enter Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050525#M1899962</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;you can use ABAP keyword GET CURSOR in an ABAP module or PERFORM to get the "selected" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE ON INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in flow logic, first check in the module the right field. Or in a CHAIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 8pt; font-family: courier new,courier;"&gt;PROCESS AFTER INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; CHAIN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODULE GET_CURSOR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD A MODULE DO_A ON INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD B MODULE DO_B ON INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; ENDCHAIN.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can find the "selected" field in module GET_CURSOR and check for it in modules DO_A and DO_B at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050525#M1899962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T09:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Specific Enter Event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050526#M1899963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank your for the answer, it works fine now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 10:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/specific-enter-event/m-p/11050526#M1899963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T10:02:37Z</dc:date>
    </item>
  </channel>
</rss>

