<?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: processing input fields on OO ALV display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686206#M302104</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the following method in order to get the selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ref_alv_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD ref_alv_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          et_row_no = lt_selected_rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also set a hanlder to the data_change event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_manejador_eventos DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      handle_data_changed&lt;/P&gt;&lt;P&gt;             FOR EVENT data_changed         OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                 IMPORTING er_data_changed.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_manejador_eventos DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_manejador_eventos IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    PERFORM handle_data_changed USING er_data_changed.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_data_changed&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_manejador_eventos IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_data_changed  USING    p_er_data_changed&lt;/P&gt;&lt;P&gt;                          TYPE REF TO cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_mod_cell TYPE lvc_s_modi,&lt;/P&gt;&lt;P&gt;        lv_value    TYPE lvc_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT p_er_data_changed-&amp;gt;mt_mod_cells INTO ls_mod_cell.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to set the handler you should do this before the set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ref_manejador_eventos TYPE REF TO lcl_manejador_eventos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT ref_manejador_eventos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SET HANDLER ref_manejador_eventos-&amp;gt;handle_data_changed          FOR ref_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you already know how to get the ENTER. So I written it over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Detects the ENTER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD ref_alv_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_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Detects when you move to another cell after a data changed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD ref_alv_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;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Eric Hernandez Pardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Nov 2006 17:28:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-06T17:28:19Z</dc:date>
    <item>
      <title>processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686203#M302101</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;I have implemented OO ALV display and set a field as input field. How can I process all the entries after the user enters values at multiple lines and presses ENTER?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 17:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686203#M302101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686204#M302102</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;U should use the event DATA_CHANGED to elaborate or check the new hits and active the event linked to attribute EVT_ENTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 17:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686204#M302102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T17:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686205#M302103</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;Thx for the answer. Can u pls give examples.&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;Ali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 17:27:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686205#M302103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T17:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686206#M302104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the following method in order to get the selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ref_alv_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD ref_alv_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          et_row_no = lt_selected_rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also set a hanlder to the data_change event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_manejador_eventos DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      handle_data_changed&lt;/P&gt;&lt;P&gt;             FOR EVENT data_changed         OF cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;                 IMPORTING er_data_changed.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_manejador_eventos DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_manejador_eventos IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD handle_data_changed.&lt;/P&gt;&lt;P&gt;    PERFORM handle_data_changed USING er_data_changed.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "handle_data_changed&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "lcl_manejador_eventos IMPLEMENTATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM handle_data_changed  USING    p_er_data_changed&lt;/P&gt;&lt;P&gt;                          TYPE REF TO cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_mod_cell TYPE lvc_s_modi,&lt;/P&gt;&lt;P&gt;        lv_value    TYPE lvc_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT p_er_data_changed-&amp;gt;mt_mod_cells INTO ls_mod_cell.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to set the handler you should do this before the set_table_for_first_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ref_manejador_eventos TYPE REF TO lcl_manejador_eventos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT ref_manejador_eventos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SET HANDLER ref_manejador_eventos-&amp;gt;handle_data_changed          FOR ref_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you already know how to get the ENTER. So I written it over.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Detects the ENTER&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD ref_alv_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_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Detects when you move to another cell after a data changed&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD ref_alv_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;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Eric Hernandez Pardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 17:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686206#M302104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T17:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686207#M302105</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;See the program demo BCALV_EDIT_03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To active the event for the ENTER key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD &amp;lt;GRID&amp;gt;-&amp;gt;REGISTER_EDIT_EVENT EXPORTING&lt;/P&gt;&lt;P&gt;              I_EVENT_ID = CL_GUI_ALV_GRID=&amp;gt;MC_EVT_ENTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 17:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686207#M302105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T17:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: processing input fields on OO ALV display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686208#M302106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your question was respond don't forget to close this post and reward the helpful answers.&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;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 19:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/processing-input-fields-on-oo-alv-display/m-p/1686208#M302106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T19:48:53Z</dc:date>
    </item>
  </channel>
</rss>

