<?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: events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772407#M646066</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;Event Blocks for Function Codes PF&amp;lt;nn&amp;gt; (Obsolete)&lt;/P&gt;&lt;P&gt;When the user chooses a function code PF&amp;lt;nn&amp;gt; (&amp;lt;nn&amp;gt; can be between 01 and 24), the system always triggers the AT PF&amp;lt;nn&amp;gt; event. In the standard list status, the function keys F&amp;lt;nn&amp;gt; that are not reserved for predefined system functions all have the function code PF&amp;lt;nn&amp;gt; as long as a corresponding event block is defined in the program.&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;These event blocks are executed when the user chooses the corresponding function key. The&lt;/P&gt;&lt;P&gt;position of the cursor in the list is irrelevant.&lt;/P&gt;&lt;P&gt;If you use these event blocks at all, it should only be for temporary test versions. In&lt;/P&gt;&lt;P&gt;production programs, you should only use AT USER-COMMAND with a dialog status&lt;/P&gt;&lt;P&gt;of your own to assign function codes to function keys. When you use your own interfaces, the&lt;/P&gt;&lt;P&gt;system displays a function text explaining what the function does. This does not happen when&lt;/P&gt;&lt;P&gt;you use AT PF&amp;lt;nn&amp;gt; event blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;nn&amp;gt; (obsolete)&lt;/P&gt;&lt;P&gt;All function keys of the keyboard F&amp;lt;nn&amp;gt; that are not used for predefined system functions,&lt;/P&gt;&lt;P&gt;are set to the function codes PF&amp;lt;nn&amp;gt;, where &amp;lt;nn&amp;gt; is a number between 01 and 24. During&lt;/P&gt;&lt;P&gt;list processing, the function codes PF&amp;lt;nn&amp;gt; are linked to the events AT PF&amp;lt;nn&amp;gt;. Choosing&lt;/P&gt;&lt;P&gt;PF&amp;lt;nn&amp;gt; always triggers AT PF&amp;lt;nn&amp;gt;. You should no longer use event blocks for PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;REPORT demo_list_at_pf.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.&lt;/P&gt;&lt;P&gt;AT pf5.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf6.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf7.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf8.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;FORM out.&lt;/P&gt;&lt;P&gt;WRITE: 'Secondary List by PF-Key Selection',&lt;/P&gt;&lt;P&gt;/ 'SY-LSIND =', sy-lsind,&lt;/P&gt;&lt;P&gt;/ 'SY-UCOMM =', sy-ucomm.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;After executing the program, the system displays the basic list. The user can press the&lt;/P&gt;&lt;P&gt;function keys F5, F6, F7, and F8 to create secondary lists. If, for example, the 14th&lt;/P&gt;&lt;P&gt;key the user presses is F6, the output on the displayed secondary list looks as follows:&lt;/P&gt;&lt;P&gt;Secondary List by PF-Key Selection&lt;/P&gt;&lt;P&gt;SY-LSIND = 14&lt;/P&gt;&lt;P&gt;SY-UCOMM = PF06&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 12:00:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T12:00:30Z</dc:date>
    <item>
      <title>events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772404#M646063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any body tell me about event  AT PF detial please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772404#M646063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772405#M646064</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;at pF&amp;lt;key&amp;gt; :  is used in interactive list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function key from F5 to F12 to perform interactive action on the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772405#M646064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772406#M646065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;KEY&amp;gt; it is triggered when the user selects a Function key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF6. "When F6 Is pressed.&lt;/P&gt;&lt;P&gt;note: F1 TO F4 are reserved Function keys.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this event is not Generally used.&lt;/P&gt;&lt;P&gt;Instead use AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772406#M646065</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-05T11:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772407#M646066</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;Event Blocks for Function Codes PF&amp;lt;nn&amp;gt; (Obsolete)&lt;/P&gt;&lt;P&gt;When the user chooses a function code PF&amp;lt;nn&amp;gt; (&amp;lt;nn&amp;gt; can be between 01 and 24), the system always triggers the AT PF&amp;lt;nn&amp;gt; event. In the standard list status, the function keys F&amp;lt;nn&amp;gt; that are not reserved for predefined system functions all have the function code PF&amp;lt;nn&amp;gt; as long as a corresponding event block is defined in the program.&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;These event blocks are executed when the user chooses the corresponding function key. The&lt;/P&gt;&lt;P&gt;position of the cursor in the list is irrelevant.&lt;/P&gt;&lt;P&gt;If you use these event blocks at all, it should only be for temporary test versions. In&lt;/P&gt;&lt;P&gt;production programs, you should only use AT USER-COMMAND with a dialog status&lt;/P&gt;&lt;P&gt;of your own to assign function codes to function keys. When you use your own interfaces, the&lt;/P&gt;&lt;P&gt;system displays a function text explaining what the function does. This does not happen when&lt;/P&gt;&lt;P&gt;you use AT PF&amp;lt;nn&amp;gt; event blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;nn&amp;gt; (obsolete)&lt;/P&gt;&lt;P&gt;All function keys of the keyboard F&amp;lt;nn&amp;gt; that are not used for predefined system functions,&lt;/P&gt;&lt;P&gt;are set to the function codes PF&amp;lt;nn&amp;gt;, where &amp;lt;nn&amp;gt; is a number between 01 and 24. During&lt;/P&gt;&lt;P&gt;list processing, the function codes PF&amp;lt;nn&amp;gt; are linked to the events AT PF&amp;lt;nn&amp;gt;. Choosing&lt;/P&gt;&lt;P&gt;PF&amp;lt;nn&amp;gt; always triggers AT PF&amp;lt;nn&amp;gt;. You should no longer use event blocks for PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example for AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;REPORT demo_list_at_pf.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE 'Basic List, Press PF5, PF6, PF7, or PF8'.&lt;/P&gt;&lt;P&gt;AT pf5.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf6.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf7.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;AT pf8.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;FORM out.&lt;/P&gt;&lt;P&gt;WRITE: 'Secondary List by PF-Key Selection',&lt;/P&gt;&lt;P&gt;/ 'SY-LSIND =', sy-lsind,&lt;/P&gt;&lt;P&gt;/ 'SY-UCOMM =', sy-ucomm.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;After executing the program, the system displays the basic list. The user can press the&lt;/P&gt;&lt;P&gt;function keys F5, F6, F7, and F8 to create secondary lists. If, for example, the 14th&lt;/P&gt;&lt;P&gt;key the user presses is F6, the output on the displayed secondary list looks as follows:&lt;/P&gt;&lt;P&gt;Secondary List by PF-Key Selection&lt;/P&gt;&lt;P&gt;SY-LSIND = 14&lt;/P&gt;&lt;P&gt;SY-UCOMM = PF06&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772407#M646066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772408#M646067</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 go thru the below documentation and code, which is available in help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PFn. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Event in interactive reporting &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, n stands for a numeric value between 0 and 99. &lt;/P&gt;&lt;P&gt;This event is executed whenever the user presses a function key that contains the function code PFn in the interface definition. The default status for lists contains some of these functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, the effect is as for the variant AT LINE-SELECTION. The cursor can be on any line. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;To ensure that the chosen function is executed only for valid lines, you can check the current HIDE information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variant should be used only for test or prototyping purposes, since the default status is not normally used. Instead, you should set a program-specific status with SET PF-STATUS. This should not contain any function codes beginning with "PF". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA NUMBER LIKE SY-INDEX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  DO 9 TIMES. &lt;/P&gt;&lt;P&gt;    WRITE: / 'Row', (2) SY-INDEX. &lt;/P&gt;&lt;P&gt;    NUMBER = SY-INDEX. &lt;/P&gt;&lt;P&gt;    HIDE NUMBER. &lt;/P&gt;&lt;P&gt;  ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF8. &lt;/P&gt;&lt;P&gt;  CHECK NOT NUMBER IS INITIAL. &lt;/P&gt;&lt;P&gt;  WRITE: / 'Cursor was in row', (2) NUMBER. &lt;/P&gt;&lt;P&gt;  CLEAR NUMBER. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772408#M646067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772409#M646068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the user chooses a function code PF&amp;lt;nn&amp;gt; (&amp;lt;nn&amp;gt; can be between 01 and 24), the system always triggers the AT PF&amp;lt;nn&amp;gt; event. In the standard list status, the function keys F&amp;lt;nn&amp;gt;  that are not reserved for predefined system functions all have the function code PF&amp;lt;nn&amp;gt; as long as a corresponding event block is defined in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These event blocks are executed when the user chooses the corresponding function key. The position of the cursor in the list is irrelevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use these event blocks at all, it should only be for temporary test versions. In production programs, you should only use AT USER-COMMAND with a dialog status of your own to assign function codes to function keys. When you use your own interfaces, the system displays a function text explaining what the function does. This does not happen when you use AT PF&amp;lt;nn&amp;gt; event blocks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 12:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2772409#M646068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T12:09:12Z</dc:date>
    </item>
  </channel>
</rss>

