<?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: USER COMMAND FOR INTERACTIVE ALV REPORT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710153#M1296434</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 have to creat a new subroutine usercommand for second click...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2009 05:10:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-11T05:10:09Z</dc:date>
    <item>
      <title>USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710149#M1296430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am making an interactive alv report showing a cost center hierarchy. I could scuccessfully capture the first click event in the user command using  '&amp;amp;IC1'. Now i want to capture the second click event for the third hierarchy.&lt;/P&gt;&lt;P&gt;When i try to do that, the program flow keeps hitting the same user command time n again. I want to put in a different code for the different click events. What is the way to achieve this?&lt;/P&gt;&lt;P&gt;I searched ....there is nothing like '&amp;amp;IC2'. It does not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 04:22:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710149#M1296430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T04:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710150#M1296431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I would suggest you to make use of CASE on the SY-UCOMM field.&lt;/P&gt;&lt;P&gt;This is going to definately help you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 04:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710150#M1296431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T04:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710151#M1296432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Heyy Gaurav&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for the response. I am putting a case in the user command. The parameters i take are '&amp;amp;IC1' ...'&amp;amp;ic2' etc....but it does not take the second case. It keeps taking up '&amp;amp;ic1' everytime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 04:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710151#M1296432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T04:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710152#M1296433</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 try this for the first click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    WA_EVENT-FORM = 'USER_COMMAND'.&lt;/P&gt;&lt;P&gt;    MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME = WA_EVENT-NAME.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM       = G_REPID&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PF_STATUS_SET = C_PF         "'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;      I_GRID_TITLE             = G_TITLE&lt;/P&gt;&lt;P&gt;      IS_LAYOUT                = IST_LAYOUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = IST_FIELDCAT[]&lt;/P&gt;&lt;P&gt;      IT_SORT                  = IST_SORT&lt;/P&gt;&lt;P&gt;      I_SAVE                   = 'A'&lt;/P&gt;&lt;P&gt;      IT_EVENTS                = IST_EVENTS&lt;/P&gt;&lt;P&gt;      IS_PRINT                 = IST_PRNT&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      E_EXIT_CAUSED_BY_CALLER  = G_EXIT&lt;/P&gt;&lt;P&gt;      ES_EXIT_CAUSED_BY_USER   = IST_EXIT&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB                 = IST_FINAL "sodtl&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      PROGRAM_ERROR            = 1&lt;/P&gt;&lt;P&gt;      OTHERS                   = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND USING R_UCOMM TYPE SY-UCOMM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  RS_SELFIELD TYPE SLIS_SELFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your code....&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for second click&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE IST_EVENTS INTO WA_EVENT WITH KEY NAME = 'USER_COMMAND1'.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;    WA_EVENT-FORM = 'USER_COMMAND1'.&lt;/P&gt;&lt;P&gt;    MODIFY IST_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME = WA_EVENT-NAME.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PROGRAM       = G_REPID&lt;/P&gt;&lt;P&gt;      I_CALLBACK_PF_STATUS_SET = C_PF "'SET_PF_STATUS'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_USER_COMMAND  = 'USER_COMMAND1'&lt;/P&gt;&lt;P&gt;      I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;      I_GRID_TITLE             = G_TITLE&lt;/P&gt;&lt;P&gt;      IS_LAYOUT                = IST_LAYOUT&lt;/P&gt;&lt;P&gt;      IT_FIELDCAT              = IST_FIELDCAT[]&lt;/P&gt;&lt;P&gt;      I_SAVE                   = 'A'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_OUTTAB                 = IST_FINAL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 05:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710152#M1296433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T05:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710153#M1296434</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 have to creat a new subroutine usercommand for second click...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 05:10:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710153#M1296434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T05:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710154#M1296435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx a lot buddy. my problem has been solved.&lt;/P&gt;&lt;P&gt;the credit goes to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 05:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710154#M1296435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T05:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: USER COMMAND FOR INTERACTIVE ALV REPORT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710155#M1296436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the rs_selfield-fieldname , you can call the required transactions for diff clicks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 05:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command-for-interactive-alv-report/m-p/5710155#M1296436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-11T05:19:58Z</dc:date>
    </item>
  </channel>
</rss>

