<?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 Interactive Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109865#M440771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can any one give examples on the following interactive report events&lt;/P&gt;&lt;P&gt;1) AT PF &amp;lt;nn&amp;gt; and&lt;/P&gt;&lt;P&gt;2) AT User Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points for sure for good examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;pls dont give any links&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2007 09:44:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-19T09:44:00Z</dc:date>
    <item>
      <title>Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109865#M440771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Can any one give examples on the following interactive report events&lt;/P&gt;&lt;P&gt;1) AT PF &amp;lt;nn&amp;gt; and&lt;/P&gt;&lt;P&gt;2) AT User Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points for sure for good examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;pls dont give any links&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109865#M440771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109866#M440772</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;If the user chooses a function code during list processing that is neither processed by the system, or PICK or PF&amp;lt;nn&amp;gt;, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this event block, you can use an IF or CASE structure to tell the function codes apart. They are available in the system field SY-UCOMM. There are further system fields that are filled in list events, such as SY-LSIND and SY-PFKEY, that allow you to make further case distinctions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At pf Event is for Funstional Keys, it is actually : 'AT PF1' for functional key F1, 'AT PF2' for F2....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO, U can use those events and write the code.&lt;/P&gt;&lt;P&gt;AT PF-XX is used with Function Codes of buttons/fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109866#M440772</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-04-19T09:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109867#M440773</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;1. Sample Code for At User Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'DOWNLOAD'.&lt;/P&gt;&lt;P&gt;      SY-LSIND = SY-LSIND - 1.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'LIST_DOWNLOAD'&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          LIST_DOWNLOAD_ERROR = 1&lt;/P&gt;&lt;P&gt;          OTHERS              = 2.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'BCK'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          TITLEBAR       = 'Save As'&lt;/P&gt;&lt;P&gt;          TEXT_QUESTION  = 'Do you Want to Save the Log'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          ANSWER         = W_ANSWER&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          TEXT_NOT_FOUND = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF W_ANSWER = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SY-LSIND = SY-LSIND - 1.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'LIST_DOWNLOAD'&lt;/P&gt;&lt;P&gt;          EXCEPTIONS&lt;/P&gt;&lt;P&gt;            LIST_DOWNLOAD_ERROR = 1&lt;/P&gt;&lt;P&gt;            OTHERS              = 2.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSEIF W_ANSWER = '2'.&lt;/P&gt;&lt;P&gt;        LEAVE TO SCREEN '0200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same way you have to use At PF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sangeetha.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109867#M440773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109868#M440774</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;Example for AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_list_at_pf.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;AT pf5.&lt;/P&gt;&lt;P&gt;  PERFORM out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT pf6.&lt;/P&gt;&lt;P&gt;  PERFORM out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT pf7.&lt;/P&gt;&lt;P&gt;  PERFORM out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT pf8.&lt;/P&gt;&lt;P&gt;  PERFORM out.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;After executing the program, the system displays the basic list. The user can press the function keys F5 , F6 , F7 , and F8 to create secondary lists. If, for example, the 14th key the user presses is F6 , the output on the displayed secondary list looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary List by PF-Key Selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-LSIND = 14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-UCOMM = PF06&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 for AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE: 'Basic List',&lt;/P&gt;&lt;P&gt;       / 'SY-LSIND:', sy-lsind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE 'Top-of-Page'.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  CASE sy-pfkey.&lt;/P&gt;&lt;P&gt;    WHEN 'TEST'.&lt;/P&gt;&lt;P&gt;      WRITE 'Self-defined GUI for Function Codes'.&lt;/P&gt;&lt;P&gt;      ULINE.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'TEST' EXCLUDING 'PICK'.&lt;/P&gt;&lt;P&gt;  PERFORM out.&lt;/P&gt;&lt;P&gt;  sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'FC1'.&lt;/P&gt;&lt;P&gt;      PERFORM out.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button FUN 1 was pressed'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC2'.&lt;/P&gt;&lt;P&gt;      PERFORM out.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button FUN 2 was pressed'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC3'.&lt;/P&gt;&lt;P&gt;      PERFORM out.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button FUN 3 was pressed'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC4'.&lt;/P&gt;&lt;P&gt;      PERFORM out.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button FUN 4 was pressed'.&lt;/P&gt;&lt;P&gt;    WHEN 'FC5'.&lt;/P&gt;&lt;P&gt;      PERFORM out.&lt;/P&gt;&lt;P&gt;      WRITE / 'Button FUN 5 was pressed'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM out.&lt;/P&gt;&lt;P&gt;  WRITE: 'Secondary List',&lt;/P&gt;&lt;P&gt;       / 'SY-LSIND:', sy-lsind,&lt;/P&gt;&lt;P&gt;       / 'SY-PFKEY:', sy-pfkey.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run the program, the system displays the following basic list with a the page header defined in the program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Courtesy SAP -HELP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109868#M440774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109869#M440775</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;Refer the sample program.&amp;lt;b&amp;gt;demo_list_at_pf&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;and &amp;lt;b&amp;gt;DEMO_LIST_AT_USER_COMMAND.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You would be able to understand it quite easily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the code for understanding the same.&lt;/P&gt;&lt;P&gt;once u execute the code and press F5 button on the code the cusror position and row gets displayed .&lt;/P&gt;&lt;P&gt;put a break point near AT PF5&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&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 PF5.&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;and see this also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event Block for User-Defined Function Codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user chooses a function code during list processing that is neither processed by the system, or PICK or PF&amp;lt;nn&amp;gt;, the system triggers the event AT USER-COMMAND. For this event, you must define your own GUI status for a list. To react to your own function codes in a program, you must define the following event block:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this event block, you can use an IF or CASE structure to tell the function codes apart. They are available in the system field SY-UCOMM. There are further system fields that are filled in list events, such as SY-LSIND and SY-PFKEY, that allow you to make further case distinctions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_list_at_user_command NO STANDARD PAGE HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE: 'Basic List',&lt;/P&gt;&lt;P&gt;/ 'SY-LSIND:', sy-lsind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;WRITE 'Top-of-Page'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;CASE sy-pfkey.&lt;/P&gt;&lt;P&gt;WHEN 'TEST'.&lt;/P&gt;&lt;P&gt;WRITE 'Self-defined GUI for Function Codes'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'TEST' EXCLUDING 'PICK'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'FC1'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;WRITE / 'Button FUN 1 was pressed'.&lt;/P&gt;&lt;P&gt;WHEN 'FC2'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;WRITE / 'Button FUN 2 was pressed'.&lt;/P&gt;&lt;P&gt;WHEN 'FC3'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;WRITE / 'Button FUN 3 was pressed'.&lt;/P&gt;&lt;P&gt;WHEN 'FC4'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;WRITE / 'Button FUN 4 was pressed'.&lt;/P&gt;&lt;P&gt;WHEN 'FC5'.&lt;/P&gt;&lt;P&gt;PERFORM out.&lt;/P&gt;&lt;P&gt;WRITE / 'Button FUN 5 was pressed'.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;sy-lsind = sy-lsind - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM out.&lt;/P&gt;&lt;P&gt;WRITE: 'Secondary List',&lt;/P&gt;&lt;P&gt;/ 'SY-LSIND:', sy-lsind,&lt;/P&gt;&lt;P&gt;/ 'SY-PFKEY:', sy-pfkey.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run the program, the system displays the following basic list with a the page header defined in the program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Rk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:48:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109869#M440775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109870#M440776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;REPORT ZTEJ_INTAB1 LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE&lt;/P&gt;&lt;P&gt;HEADING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TABLES DECLARATION&lt;/P&gt;&lt;P&gt;TABLES : KNA1, VBAK, VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT OPTIONS&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*INITIALIZATION&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;CUST_NO-LOW = '01'.&lt;/P&gt;&lt;P&gt;CUST_NO-HIGH = '5000'.&lt;/P&gt;&lt;P&gt;CUST_NO-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;CUST_NO-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;APPEND CUST_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECTION SCREEN VALIDATION&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON CUST_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;IF CUST_NO-LOW &amp;lt; 1 OR CUST_NO-HIGH &amp;gt; 5000.&lt;/P&gt;&lt;P&gt;MESSAGE E001(ZTJ1).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*BASIC LIST SELECTION&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KUNNR NAME1 ORT01 LAND1 INTO&lt;/P&gt;&lt;P&gt;(KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)&lt;/P&gt;&lt;P&gt;FROM KNA1&lt;/P&gt;&lt;P&gt;WHERE KUNNR IN CUST_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 SY-VLINE,&lt;/P&gt;&lt;P&gt;KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,&lt;/P&gt;&lt;P&gt;16 SY-VLINE,&lt;/P&gt;&lt;P&gt;KNA1-NAME1 UNDER 'NAME',&lt;/P&gt;&lt;P&gt;61 SY-VLINE,&lt;/P&gt;&lt;P&gt;KNA1-ORT01 UNDER 'CITY',&lt;/P&gt;&lt;P&gt;86 SY-VLINE,&lt;/P&gt;&lt;P&gt;KNA1-LAND1 UNDER 'COUNTRY',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIDE: KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SECONDARY LIST ACCESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT user-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UCOMM = 'IONE'.&lt;/P&gt;&lt;P&gt;PERFORM SALES_ORD.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF SY-UCOMM = 'ITWO'.&lt;/P&gt;&lt;P&gt;PERFORM ITEM_DET.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TOP OF PAGE&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;WRITE : 'CUSTOMER DETAILS'.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1 OFF.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3.&lt;/P&gt;&lt;P&gt;WRITE : 1 SY-VLINE,&lt;/P&gt;&lt;P&gt;3 'CUSTOMER NO.',&lt;/P&gt;&lt;P&gt;16 SY-VLINE,&lt;/P&gt;&lt;P&gt;18 'NAME',&lt;/P&gt;&lt;P&gt;61 SY-VLINE,&lt;/P&gt;&lt;P&gt;63 'CITY',&lt;/P&gt;&lt;P&gt;86 SY-VLINE,&lt;/P&gt;&lt;P&gt;88 'COUNTRY',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TOP OF PAGE FOR SECONDARY LISTS&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*TOP OF PAGE FOR 1ST SECONDARY LIST&lt;/P&gt;&lt;P&gt;IF SY-UCOMM = 'IONE'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;WRITE : 'SALES ORDER DETAILS'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1 OFF.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3.&lt;/P&gt;&lt;P&gt;WRITE : 1 SY-VLINE,&lt;/P&gt;&lt;P&gt;3 'CUSTOMER NO.',&lt;/P&gt;&lt;P&gt;16 SY-VLINE,&lt;/P&gt;&lt;P&gt;18 'SALES ORDER NO.',&lt;/P&gt;&lt;P&gt;40 SY-VLINE,&lt;/P&gt;&lt;P&gt;42 'DATE',&lt;/P&gt;&lt;P&gt;60 SY-VLINE,&lt;/P&gt;&lt;P&gt;62 'CREATOR',&lt;/P&gt;&lt;P&gt;85 SY-VLINE,&lt;/P&gt;&lt;P&gt;87 'DOC DATE',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 OFF.&lt;/P&gt;&lt;P&gt;*TOP OF PAGE FOR 2ND SECONDARY LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UCOMM = 'ITWO'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;WRITE : 'ITEM DETAILS'.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 1 OFF.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : 1 SY-VLINE,&lt;/P&gt;&lt;P&gt;3 'SALES ORDER NO.',&lt;/P&gt;&lt;P&gt;40 SY-VLINE,&lt;/P&gt;&lt;P&gt;42 'SALES ITEM NO.',&lt;/P&gt;&lt;P&gt;60 SY-VLINE,&lt;/P&gt;&lt;P&gt;62 'ORDER QUANTITY',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 OFF.&lt;/P&gt;&lt;P&gt;*END OF PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',&lt;/P&gt;&lt;P&gt;SY-PAGNO.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form SALES_ORD&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp; FIRST SECONDARY LIST FORM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SALES_ORD .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO&lt;/P&gt;&lt;P&gt;(VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)&lt;/P&gt;&lt;P&gt;FROM VBAK&lt;/P&gt;&lt;P&gt;WHERE KUNNR = KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:/1 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,&lt;/P&gt;&lt;P&gt;16 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,&lt;/P&gt;&lt;P&gt;40 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAK-ERDAT UNDER 'DATE',&lt;/P&gt;&lt;P&gt;60 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAK-ERNAM UNDER 'CREATOR',&lt;/P&gt;&lt;P&gt;85 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAK-AUDAT UNDER 'DOC DATE',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;HIDE : VBAK-VBELN.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDFORM. " SALES_ORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form ITEM_DET&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp; SECOND SECONDARY LIST FORM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ITEM_DET .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VBELN POSNR KWMENG INTO&lt;/P&gt;&lt;P&gt;(VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)&lt;/P&gt;&lt;P&gt;FROM VBAP&lt;/P&gt;&lt;P&gt;WHERE VBELN = VBAK-VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : /1 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAP-VBELN UNDER 'SALES ORDER NO.',&lt;/P&gt;&lt;P&gt;40 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAP-POSNR UNDER 'SALES ITEM NO.',&lt;/P&gt;&lt;P&gt;60 SY-VLINE,&lt;/P&gt;&lt;P&gt;VBAP-KWMENG UNDER 'ORDER QUANTITY',&lt;/P&gt;&lt;P&gt;103 SY-VLINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;ULINE.&lt;/P&gt;&lt;P&gt;ENDFORM. " ITEM_DET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Anji Reddy Vangala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109870#M440776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109871#M440777</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## &lt;/P&gt;&lt;P&gt;Syntax : AT PF## &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statemet defines an event block whose event is triggered by the ABAP runtime environment during list display - provided the screen cursor is on a list line and a function is selected using the function code PF##. Here ## stands for a number between 01 and 24. In the= standard list status, these function codes are assigned to the function keys of the input device. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Instead of AT PF## , AT USER-COMMAND should always be used and special function codes should be assigned to the required function keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Self-defined function codes are all those that include character combinations, except for the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function codes PICK and PF## ("##" stands for 01 to 24) do not cause the event AT USER-COMMAND, but the events AT LINE-SELECTION and AT PF##. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All function codes that start with the character "%" are interpreted as system functions and do not cause the event AT USER-COMMAND. The system functions for lists are listed in the following table 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function codes in the following table 2, likewise, do not cause the event AT USER-COMMAND, but are handled by the list processor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;This program works with a self-defined GUI status MYLIST. The function that is linked there with the function code MY_SELECTION causes the event AT USER-COMMAND during list display and also creates details lists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_at_user_command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MYLIST'. &lt;/P&gt;&lt;P&gt;  WRITE 'List line'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &lt;/P&gt;&lt;P&gt;  IF sy-lsind = 20. &lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'MYLIST' EXCLUDING 'MY_SELECTION'. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;  CASE sy-ucomm. &lt;/P&gt;&lt;P&gt;    WHEN 'MY_SELECTION'. &lt;/P&gt;&lt;P&gt;      WRITE: / 'You worked on list', sy-listi, &lt;/P&gt;&lt;P&gt;             / 'You are on list', sy-lsind. &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;  ENDCASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;reward points if useful&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;All the best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109871#M440777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109872#M440778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya Laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At pf:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;1. When the user chooses a function code PF&amp;lt;nn&amp;gt; (&amp;lt;nn&amp;gt; can be between 01 and 24), &lt;/P&gt;&lt;P&gt;    the system always triggers the AT PF&amp;lt;nn&amp;gt; event. &lt;/P&gt;&lt;P&gt;2. In the standard list status, the function keys F&amp;lt;nn&amp;gt;  that are not reserved for &lt;/P&gt;&lt;P&gt;    predefined system functions all have the function code PF&amp;lt;nn&amp;gt; as long as a &lt;/P&gt;&lt;P&gt;    corresponding event block is defined in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AT PF&amp;lt;nn&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;statements&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. These event blocks are executed when the user chooses the corresponding function &lt;/P&gt;&lt;P&gt;    key. The position of the cursor in the list is irrelevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.  If you use these event blocks at all, it should only be for temporary test versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5.  In production programs, you should only use AT USER-COMMAND with a dialog &lt;/P&gt;&lt;P&gt;     status of your own to assign function codes to function keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.  When you use your own interfaces, the system displays a function text explaining &lt;/P&gt;&lt;P&gt;     what the function does. This does not happen when you use AT PF&amp;lt;nn&amp;gt; event   &lt;/P&gt;&lt;P&gt;    blocks.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;At user command&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;1.  AT USER-COMMAND event is used in interactive reporting. &lt;/P&gt;&lt;P&gt;2. The code between the AT USER-COMMAND and the ENDAT command is executed &lt;/P&gt;&lt;P&gt;    when the user enters data into the OK code field(the upper-left entry field on the &lt;/P&gt;&lt;P&gt;    screen where you enter transactions). &lt;/P&gt;&lt;P&gt;3. The data entered into the OK code field is stored in the system field SY-UCOMM.&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 USER-COMMAND.&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'DETAIL'.&lt;/P&gt;&lt;P&gt;        SELECT * FROM BSEG WHERE BELNR = BKPF-BELNR.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ENDCASE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109872#M440778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109873#M440779</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 USER-COMMAND. &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;This event is executed whenever the user presses a function key in the list or makes an entry in the command field . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some functions are executed directly by the system and thus cannot be processed by programs. These include: &lt;/P&gt;&lt;P&gt;PICK See variant AT LINE-SELECTION PFn See variant AT PFn /... System command %... System command PRI Print BACK Back RW Cancel P... Scroll function (e.g.: P+ , P- , PP+3 , PS-- etc.) &lt;/P&gt;&lt;P&gt;Instead of this functions, you can use the SCROLL statement in programs. &lt;/P&gt;&lt;P&gt;Since many of these system functions begin with "P", you should avoid using this letter to start your own function codes. &lt;/P&gt;&lt;P&gt;Otherwise, the effect is as for AT LINE-SELECTION ; also, the current function code is stored in the system field SY-UCOMM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NUMBER1 TYPE I VALUE 20,&lt;/P&gt;&lt;P&gt;      NUMBER2 TYPE I VALUE  5,&lt;/P&gt;&lt;P&gt;      RESULT  TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  WRITE: / NUMBER1, '?', NUMBER2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'ADD'.&lt;/P&gt;&lt;P&gt;      RESULT = NUMBER1 + NUMBER2.&lt;/P&gt;&lt;P&gt;    WHEN 'SUBT'.&lt;/P&gt;&lt;P&gt;      RESULT = NUMBER1 - NUMBER2.&lt;/P&gt;&lt;P&gt;    WHEN 'MULT'.&lt;/P&gt;&lt;P&gt;      RESULT = NUMBER1 * NUMBER2.&lt;/P&gt;&lt;P&gt;    WHEN 'DIVI'.&lt;/P&gt;&lt;P&gt;      RESULT = NUMBER1 / NUMBER2.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      WRITE 'Unknown function code'.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Result:', RESULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After entry of a function code, the appropriate processing is performed under the event AT USER-COMMAND and the result is displayed in the details list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;AT PFn. &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;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. 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;Example&lt;/P&gt;&lt;P&gt;&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;Other than this, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  U can find numerous example programs in ABAPDOCU transaction code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help u.&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;U. Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109873#M440779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Interactive Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109874#M440780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   AT 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;Effect &lt;/P&gt;&lt;P&gt;This statemet defines an event block whose event is triggered by the ABAP runtime environment during list display - provided the screen cursor is on a list line and a function is selected using the function code PF##. Here ## stands for a number between 01 and 24. In the= standard list status, these function codes are assigned to the function keys of the input device. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Instead of AT PF## , AT USER-COMMAND should always be used and special function codes should be assigned to the required function keys. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND. &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;This statement defines an event block whose event is triggered by the ABAP runtime environment if, during the display of a screen list, a function with a self-defined function code was chosen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Self-defined function codes are all those that include character combinations, except for the following: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function codes PICK and PF## ("##" stands for 01 to 24) do not cause the event AT USER-COMMAND, but the events AT LINE-SELECTION and AT PF##. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All function codes that start with the character "%" are interpreted as system functions and do not cause the event AT USER-COMMAND. The system functions for lists are listed in the following table 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function codes in the following table 2, likewise, do not cause the event AT USER-COMMAND, but are handled by the list processor. &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;kiran kumar k&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 09:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-report/m-p/2109874#M440780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T09:55:14Z</dc:date>
    </item>
  </channel>
</rss>

