<?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: Issue in method {get_selected_rows} No index select when return frm screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616666#M1569919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the program BCALV_GRID_05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jan 2011 06:37:32 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2011-01-10T06:37:32Z</dc:date>
    <item>
      <title>Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616664#M1569917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program displays an idoc list(screen 100). Then if user selects any row in the method  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD g1_grid-&amp;gt;get_selected_rows
          IMPORTING
            et_index_rows = gi_index_rows.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; gets the index no and details of that idoc are displayed in another screen(screen 200) .User can make changes in that screen and then processing should be return to the idoc list again(screen 100) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI Screen 200 I have written  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN '100'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The control returns to screen 100 idoc list.But now if we select any row the below method does not give any row no. even if we select a row.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD g1_grid-&amp;gt;get_selected_rows
          IMPORTING
            et_index_rows = gi_index_rows.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row is not getting selected the second time after returning to that screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 05:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616664#M1569917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T05:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616665#M1569918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ujjwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO module : &lt;/P&gt;&lt;P&gt;CALL METHOD g1_grid-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 06:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616665#M1569918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T06:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616666#M1569919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the program BCALV_GRID_05?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 06:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616666#M1569919</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-10T06:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616667#M1569920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I have used this too CALL METHOD g1_grid-&amp;gt;refresh_table_display in PBO but it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 07:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616667#M1569920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T07:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616668#M1569921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ujjwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the statement CALL METHOD g1_grid-&amp;gt;refresh_table_display is NOT inside condition IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;Code should be something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF g_custom_container IS INITIAL.
              .........
endif.
CALL METHOD g1_grid-&amp;gt;refresh_table_display&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 12:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616668#M1569921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-10T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616669#M1569922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dsouzajovito ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried that it didn't help.&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 04:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616669#M1569922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T04:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616670#M1569923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try CL_GUI_CFW=&amp;gt;FLUSH after the call to &lt;STRONG&gt;get_selected_rows&lt;/STRONG&gt; method? (Check line 132 of program BCALV_GRID_05)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 04:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616670#M1569923</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-11T04:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616671#M1569924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried this but didn't help. I checked the report BCALV_GRID_05 compared my code could not find any difference.&lt;/P&gt;&lt;P&gt;Hence pasting my code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen 100 PBO block &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*****Some unwanted code lines deleted***************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  IF ok_code EQ 'BACK'.&lt;/P&gt;&lt;P&gt;    LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS 'MAIN100'.&lt;/P&gt;&lt;P&gt;    SET TITLEBAR 'MAIN100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read data and create objects&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IF go_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Read data from datbase table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM get_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Create objects for container and ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          container_name = 'DISPLAY_IDOCS_100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  Create object for event_receiver class&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  and set handlers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;      SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR go_grid.&lt;/P&gt;&lt;P&gt;      SET HANDLER o_event_receiver-&amp;gt;handle_toolbar      FOR go_grid.&lt;/P&gt;&lt;P&gt;      SET HANDLER o_event_receiver-&amp;gt;handle_double_click FOR go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM exclude_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****Some unwanted code lines deleted***************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Grid setup for first display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_structure_name     = 'LISTEDIDC'&lt;/P&gt;&lt;P&gt;          is_variant           = l_layout&lt;/P&gt;&lt;P&gt;          i_save               = 'A'&lt;/P&gt;&lt;P&gt;          is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;          it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          it_fieldcatalog      = lt_fcat&lt;/P&gt;&lt;P&gt;          it_outtab            = gi_edidc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- End of grid setup -&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Raise event toolbar to show the modified toolbar&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;set_toolbar_interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Set focus to the grid. This is not necessary in this&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  example as there is only one control on the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL METHOD cl_gui_control=&amp;gt;set_focus&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          control = go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_gui_cfw=&amp;gt;flush.&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;   CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;   CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD cl_gui_control=&amp;gt;set_focus&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        control = go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;The screen 200 from where control returns
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0200  OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;MODULE status_0200 OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Some unwanted code lines deleted&lt;/STRONG&gt;**************&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'MAIN200'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR  'MAIN200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF ok_code NE 'EDIT'.&lt;/P&gt;&lt;P&gt;    IF ok_code NE 'ERROR'.&lt;/P&gt;&lt;P&gt;      IF ok_code NE 'BACK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Some code lines deleted&lt;/STRONG&gt;**************&lt;/P&gt;&lt;P&gt;        CREATE OBJECT go_docking&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            dynnr     = '200'&lt;/P&gt;&lt;P&gt;            extension = 65&lt;/P&gt;&lt;P&gt;            side      = cl_gui_docking_container=&amp;gt;dock_at_top.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_parent = go_docking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*§1.Set status of all cells to editable using the layout structure.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         gs_layout-edit = 'X'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CREATE OBJECT o_event_receiver.&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_user_command FOR go_grid.&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_toolbar      FOR go_grid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       SET HANDLER o_event_receiver-&amp;gt;handle_double_click FOR go_grid.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_data_changed1 FOR go_grid.&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_data_changed_finished&lt;/P&gt;&lt;P&gt;                                                          FOR go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        PERFORM build_fieldcatalogs_bkpf_200.&lt;/P&gt;&lt;P&gt;        PERFORM exclude_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;        PERFORM exclude_more_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR lv_gridtitle.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'Header Data' space '-' space&lt;/P&gt;&lt;P&gt;                    gi_edidd-docnum INTO lv_gridtitle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       gs_layout-grid_title = 'Header Data'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        gs_layout-grid_title = lv_gridtitle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;            it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            it_fieldcatalog      = fieldcatalog1&lt;/P&gt;&lt;P&gt;            it_outtab            = gi_e1fikpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_data_changed1 FOR go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*§2.Use SET_READY_FOR_INPUT to allow editing initially.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  (state "editable and ready for input").&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_ready_for_input = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CREATE OBJECT go_custom_container&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            container_name = 'DISPLAY_IDOC_CONTENT_200'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_parent = go_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CLEAR lt_exclude.&lt;/P&gt;&lt;P&gt;        PERFORM exclude_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;        PERFORM build_fieldcatalogs_bseg_200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        gs_layout-grid_title = 'Line Item Data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;            it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            it_fieldcatalog      = fieldcatalog1&lt;/P&gt;&lt;P&gt;            it_outtab            = gi_e1fiseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_data_changed2 FOR go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF NOT gi_e1finbu[] IS INITIAL.&lt;/P&gt;&lt;P&gt;*&amp;amp;--Add E1FINBU at the bottom of the screen&lt;/P&gt;&lt;P&gt;          CREATE OBJECT go_docking&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              dynnr     = '200'&lt;/P&gt;&lt;P&gt;              extension = 65&lt;/P&gt;&lt;P&gt;              side      = cl_gui_docking_container=&amp;gt;dock_at_bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CREATE OBJECT go_grid&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_parent = go_docking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          PERFORM build_fieldcatalogs_bnbu_200.&lt;/P&gt;&lt;P&gt;          PERFORM exclude_more_tb_functions CHANGING lt_exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          gs_layout-grid_title = 'Vendor Line Item Data'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL METHOD go_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              is_layout            = gs_layout&lt;/P&gt;&lt;P&gt;              it_toolbar_excluding = lt_exclude&lt;/P&gt;&lt;P&gt;            CHANGING&lt;/P&gt;&lt;P&gt;              it_fieldcatalog      = fieldcatalog1&lt;/P&gt;&lt;P&gt;              it_outtab            = gi_e1finbu.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        SET HANDLER o_event_receiver-&amp;gt;handle_data_changed3 FOR go_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;        CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                    "status_0200 OUTPUT&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PAI of screen 100
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&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;STRONG&gt;Some  code lines deleted&lt;/STRONG&gt;**************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'CHANGE'.&lt;/P&gt;&lt;P&gt;      DATA: l_valid TYPE c.&lt;/P&gt;&lt;P&gt;      REFRESH gi_index_rows.&lt;/P&gt;&lt;P&gt;      CLEAR   g_selected_row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_valid = l_valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read index of selected rows&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF l_valid EQ 'X'.&lt;/P&gt;&lt;P&gt;        CALL METHOD go_grid-&amp;gt;get_selected_rows ****this is the place where value comes out 0 after cback from screen 200&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            et_index_rows = gi_index_rows.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM change_idoc.&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;PRE&gt;&lt;CODE&gt;

PAI of screen 200 where screen 100 is called.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0200  INPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;MODULE user_command_0200 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Some  code lines deleted&lt;/STRONG&gt;**************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'EDIT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Refresh grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       CALL METHOD go_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;       CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;        LEAVE TO SCREEN '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Some  code lines deleted&lt;/STRONG&gt;**************&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;ENDMODULE.                 " USER_COMMAND_0200  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ujjwal_d15 on Jan 11, 2011 6:38 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ujjwal_d15 on Jan 11, 2011 6:39 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ujjwal_d15 on Jan 11, 2011 6:40 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 05:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616671#M1569924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T05:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616672#M1569925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course there is a difference. There is a &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; instead of SCREEN '100' as in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if this is the cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 05:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616672#M1569925</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-01-11T05:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616673#M1569926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , that is only for back condition. The code is fine.&lt;/P&gt;&lt;P&gt;The issue is not yet solved ....Whether it's related with the object name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 05:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616673#M1569926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T05:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616674#M1569927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All plz reply the issue is not yet solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 06:58:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616674#M1569927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T06:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616675#M1569928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ujjwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove these lines.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
MODULE status_0100 OUTPUT.

*****Some unwanted code lines deleted***************
  *IF ok_code EQ 'BACK'. "Comment
  * LEAVE TO SCREEN 0. "Comment
  *ELSE. "Comment this and corresponding END IF
    SET PF-STATUS 'MAIN100'. "Continue from here
    SET TITLEBAR 'MAIN100'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 09:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616675#M1569928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T09:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616676#M1569929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , commenting those lines didn't work....kindly guide.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 11:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616676#M1569929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616677#M1569930</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;Remove single quotes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN '100'. "Becomes LEAVE TO SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also try :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN '0100'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I dont have your code, these are the best guesses i can give.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 12:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616677#M1569930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616678#M1569931</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;In program BCALV_GRID_05 there is a tool bar for which &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;handle_user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; works.&lt;/P&gt;&lt;P&gt;To make my program exactly work like that i need to generate event on application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How events from application toolbar can be catched in handle_user_command of cl_gui_alv_grid ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 13:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616678#M1569931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-11T13:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616679#M1569932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ujjwal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare the receiver class&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_event_receiver DEFINITION.
  PUBLIC SECTION.
    METHODS:
    handle_toolbar  FOR EVENT toolbar OF cl_gui_alv_grid
            IMPORTING e_object e_interactive,

    handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
            IMPORTING e_ucomm.
  PRIVATE SECTION.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Define / Implement the Class.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS lcl_event_receiver IMPLEMENTATION.
  METHOD handle_toolbar.
    DATA: ls_toolbar  TYPE stb_button.
    CLEAR ls_toolbar.
    MOVE 3 TO ls_toolbar-butn_type.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.
    CLEAR ls_toolbar.
    MOVE 'BOOKINGS' TO ls_toolbar-function.
    MOVE icon_employee TO ls_toolbar-icon.
    MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
    MOVE 'Detail'(112) TO ls_toolbar-text.
    MOVE ' ' TO ls_toolbar-disabled.
    APPEND ls_toolbar TO e_object-&amp;gt;mt_toolbar.

  ENDMETHOD.

  METHOD handle_user_command.
    DATA: lt_rows TYPE lvc_t_row.

    CASE e_ucomm.
      WHEN 'BOOKINGS'.
        CALL METHOD grid1-&amp;gt;get_selected_rows
                 IMPORTING et_index_rows = lt_rows.
        CALL METHOD cl_gui_cfw=&amp;gt;flush.
        IF sy-subrc ne 0.
          CALL FUNCTION 'POPUP_TO_INFORM'
               EXPORTING
                    titel = g_repid
                    txt2  = sy-subrc
                    txt1  = 'Error in Flush'(500).
        else.
                  perform show_booking_table tables lt_rows.
        ENDIF.
    ENDCASE.
  ENDMETHOD.                           "handle_user_command
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Create an object of the class.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: event_receiver TYPE REF TO lcl_event_receiver.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4. In PBO Event, Set the Command Receiver.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT event_receiver.
    SET HANDLER event_receiver-&amp;gt;handle_user_command FOR grid1.
    SET HANDLER event_receiver-&amp;gt;handle_toolbar FOR grid1.
    CALL METHOD grid1-&amp;gt;set_toolbar_interactive.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 05:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616679#M1569932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-12T05:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in method {get_selected_rows} No index select when return frm screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616680#M1569933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, thanks for all the replies. Actually the problem was with the same name object used in both the screen in 100 and 200. So i think same names for objects should not have been used for custom control and other that was creating problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jan 2011 15:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-in-method-get-selected-rows-no-index-select-when-return-frm-screen/m-p/7616680#M1569933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-12T15:19:49Z</dc:date>
    </item>
  </channel>
</rss>

