<?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: problem in get_selected_rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843924#M358336</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 might ahve selected only one row from the ALV.&lt;/P&gt;&lt;P&gt;MAke sure whether you are using multiple selection of rows in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2007 13:38:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-09T13:38:19Z</dc:date>
    <item>
      <title>problem in get_selected_rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843920#M358332</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH gt_selected_rows.&lt;/P&gt;&lt;P&gt;      CALL METHOD g_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;        IMPORTING  et_index_rows = gt_selected_rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF  NOT gt_selected_rows[] IS INITIAL.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  textline1      = text-114&lt;/P&gt;&lt;P&gt;                  titel          = text-115                 "#EC NOTEXT&lt;/P&gt;&lt;P&gt;                  start_column   = 25&lt;/P&gt;&lt;P&gt;                  start_row      = 6&lt;/P&gt;&lt;P&gt;                  cancel_display = ''&lt;/P&gt;&lt;P&gt;             IMPORTING&lt;/P&gt;&lt;P&gt;                  answer         = lv_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF lv_flag EQ 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM selected_rows .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE WHEN NO LINES SELECTED!!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          MESSAGE i113(z2).&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this code my get_selected_row FM is gettin value onle once.Being in the same screen if i again select the rows the value returned by the FM is initial.....&lt;/P&gt;&lt;P&gt;wat should i do...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843920#M358332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: problem in get_selected_rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843921#M358333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neha ,&lt;/P&gt;&lt;P&gt;                  The get selected rows  should be in somewhere event please send me the whole code .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843921#M358333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem in get_selected_rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843922#M358334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;   actually wat i mdoin is i m usin cl_gui_alv_grid.its having reset button so after selecting the perticular field i press reset button it does some processin. so in this situation the get_selected works fine first time the next time witout exiting i select some more rows n press reset the get_selected is not workin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_reset_event_receiver DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS :&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To add new functional buttons to the ALV toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_toolbar_0100&lt;/P&gt;&lt;P&gt;          FOR EVENT toolbar OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;            IMPORTING e_object e_interactive,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; To implement user commands&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_user_command&lt;/P&gt;&lt;P&gt;          FOR EVENT user_command OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;             IMPORTING e_ucomm,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Double-click in screen 0100&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      handle_double_click&lt;/P&gt;&lt;P&gt;        FOR EVENT double_click OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;            IMPORTING e_row .&lt;/P&gt;&lt;P&gt;ENDCLASS.      "class lcl_reset_event_receiver definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===========================================================&lt;/P&gt;&lt;P&gt; CLASS lcl_reset_event_receiver IMPLEMENTATION .&lt;/P&gt;&lt;P&gt;   METHOD handle_toolbar_0100.&lt;/P&gt;&lt;P&gt;   ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   METHOD handle_user_command .&lt;/P&gt;&lt;P&gt;     CLEAR lv_flag.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get selected rows&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     REFRESH gt_selected_rows.&lt;/P&gt;&lt;P&gt;     CALL METHOD g_alv-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;       IMPORTING  et_index_rows = gt_selected_rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     IF  NOT gt_selected_rows[] IS INITIAL.&lt;/P&gt;&lt;P&gt;       CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;                 textline1      = text-114&lt;/P&gt;&lt;P&gt;                 titel          = text-115                  "#EC NOTEXT&lt;/P&gt;&lt;P&gt;                 start_column   = 25&lt;/P&gt;&lt;P&gt;                 start_row      = 6&lt;/P&gt;&lt;P&gt;                 cancel_display = ''&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;                 answer         = lv_flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       IF lv_flag EQ 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         PERFORM selected_rows USING    &lt;/P&gt;&lt;P&gt;                              CHANGING  gt_success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE WHEN NO LINES SELECTED!!!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         MESSAGE i113(z2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===========================================================&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'RESET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       SET HANDLER gv_event_handler-&amp;gt;handle_user_command FOR g_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.        "IF gt_selected_rows[] IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDMETHOD.&lt;/P&gt;&lt;P&gt;===============================================&lt;/P&gt;&lt;P&gt;plz help me wid this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 11:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843922#M358334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T11:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem in get_selected_rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843923#M358335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neha ,&lt;/P&gt;&lt;P&gt;         Your problem is solved I feel &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just change this code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;WHEN 'BACK' .&lt;/P&gt;&lt;P&gt;LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;********************Comment the code .&lt;/P&gt;&lt;P&gt;WHEN 'RESET'.      -&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;*************End comment &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;ENDMODULE. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF. "IF gt_selected_rows[] IS INITIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you have displayed the ALV GRID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AFTER that &lt;/P&gt;&lt;P&gt;write this code .&lt;/P&gt;&lt;P&gt;SET HANDLER gv_event_handler-&amp;gt;handle_user_command FOR g_alv.&lt;/P&gt;&lt;P&gt;so the solution you have code set handlet only once.&lt;/P&gt;&lt;P&gt;and in the method user_command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check e_ucomm = 'RESET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 12:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843923#M358335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem in get_selected_rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843924#M358336</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 might ahve selected only one row from the ALV.&lt;/P&gt;&lt;P&gt;MAke sure whether you are using multiple selection of rows in ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2007 13:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-get-selected-rows/m-p/1843924#M358336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-09T13:38:19Z</dc:date>
    </item>
  </channel>
</rss>

