<?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 GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152863#M1977211</link>
    <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1783534-buttons-function-codes.png"&gt;buttons-function-codes.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/temp/1783535-buttons.png"&gt;buttons.png&lt;/A&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have a requirement in alv output screen to add standard menu button in alv output to display row wise history data and column wise history data. I have added that menu button on left top corner of ALV output.Now the issue is i have to use method GET_SELECTED_ROWS for row selection and for column GET_SELECTED_COLUMNS using this two method i can current selected and current column but in alv report method is blank but i press any application layer button i method giving selected row and column.&lt;/P&gt;
  &lt;P&gt;Anybody having idea how to get selected row and columns in ALV output and i am using CL_GUI_ALV_GRID alv.&lt;/P&gt;
  &lt;P&gt;I have attached here both menu button and application button screen shots for better understand purpose, Please help on this.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 12:35:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-02-14T12:35:22Z</dc:date>
    <item>
      <title>GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152863#M1977211</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1783534-buttons-function-codes.png"&gt;buttons-function-codes.png&lt;/A&gt;&lt;A href="https://answers.sap.com/storage/temp/1783535-buttons.png"&gt;buttons.png&lt;/A&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I have a requirement in alv output screen to add standard menu button in alv output to display row wise history data and column wise history data. I have added that menu button on left top corner of ALV output.Now the issue is i have to use method GET_SELECTED_ROWS for row selection and for column GET_SELECTED_COLUMNS using this two method i can current selected and current column but in alv report method is blank but i press any application layer button i method giving selected row and column.&lt;/P&gt;
  &lt;P&gt;Anybody having idea how to get selected row and columns in ALV output and i am using CL_GUI_ALV_GRID alv.&lt;/P&gt;
  &lt;P&gt;I have attached here both menu button and application button screen shots for better understand purpose, Please help on this.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 12:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152863#M1977211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-14T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152864#M1977212</link>
      <description>&lt;P&gt;What means "but in alv report method is blank"?&lt;/P&gt;&lt;P&gt;NB: there shouldn't be any difference in processing the ALV Grid, whatever the function is started from the ALV Grid toolbar or from the menu or the application toolbar (remember that in the latter case, the ALV Grid control is to be stored in a global variable so that to be able to interact with it).&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 13:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152864#M1977212</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-14T13:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152865#M1977213</link>
      <description>&lt;P&gt;Did you check out the test report BCALV_GRID_05 "Add a Self-Defined Button to the Toolbar", I think it does exactly what you need. I assume you have set up the event-handling appropriatly?&lt;/P&gt;&lt;P&gt;Logic from the report BCALV_GRID_05:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;adds a button "Detail" with function/user-command "BOOKINGS" to the ALV Toolbar&lt;/LI&gt;&lt;LI&gt;method handle_user_command within the calling programm  is registered for the event user_command from the ALV-Grid&lt;/LI&gt;&lt;LI&gt;When event user_command is triggered within ALV-Grid, the method handle_user_command is called and the programm checks for the user-command "BOOKINGS"&lt;/LI&gt;&lt;LI&gt;the selected rows are read (get_selected_rows) and displayed in another ALV-Grid (Pop-up)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1780566-alv-guid-bookings.png" /&gt;&lt;/P&gt;&lt;P&gt;If you go by that Demo-Report, you should get your problem solved. Otherwise, please be more specific with your issue.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 05:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152865#M1977213</guid>
      <dc:creator>michael_piesche</dc:creator>
      <dc:date>2020-02-15T05:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152866#M1977214</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Thanks for your reply issue was in my program, in method handle_change_finish FOR EVENT data_changed_finished my screen was getting refreshed, so i was not able to get the information from GET_SELECTED_ROW method.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 07:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152866#M1977214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-17T07:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: GET_SELECTED_ROWS ans COLUMNS method not working for menu function code in ALV outpt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152867#M1977215</link>
      <description>&lt;P&gt;Thanks. Please close your question (and mark the best answer if any).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 08:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-rows-ans-columns-method-not-working-for-menu-function-code-in/m-p/12152867#M1977215</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-17T08:56:06Z</dc:date>
    </item>
  </channel>
</rss>

