<?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: Row id in editable ALV while using MP_MOD_ROWS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923320#M1598949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try then method CHECK_CHANGED_DATA where inside you get the column position and then it calls method DATA_CHANGED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 15:10:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-24T15:10:42Z</dc:date>
    <item>
      <title>Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923317#M1598946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an editable alv with 13 fields editable in it.     Inside the DATA_CHANGED event i am making use of the attribute MP_MOD_ROWS for doing some specific validations. But I am not able to pass the row_id to the the mehod add_protocal_entry while multiple rows are in MP_MOD_ROWS ,since its not available MP_MOD_ROWS . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me how i can get the row_id for  each row in MP_MOD_ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I need the full row for validations , i cant use MT_MOD_CELLS.&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;Suniljith.SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 14:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923317#M1598946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T14:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923318#M1598947</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;Try using the method DATA_CHANGED_FINISHED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 14:53:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923318#M1598947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923319#M1598948</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;Thanks for ur response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i dont think its possible to call the method add_protocal_entry inside DATA_CHANGE_FINISHED. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My purpose is to get the row ids for each row in  MP_MOD_ROWS for highlighting the wrong entries after validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suniljith.S.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923319#M1598948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923320#M1598949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try then method CHECK_CHANGED_DATA where inside you get the column position and then it calls method DATA_CHANGED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923320#M1598949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T15:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923321#M1598950</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;My requirements is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I have 5 modified rows in MP_MOD_ROWS out of the 10 rows in the alv grid. I am looping this five rows and doing validations and needs to raise pop up error message using the method add_protocal_entry. Here I need the row_id to pass to the method add_protocol_entry  inorder to highlight the wrong entry in each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suniljith.SS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:06:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923321#M1598950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923322#M1598951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am still waiting for a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suniljith.S.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 06:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923322#M1598951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-25T06:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923323#M1598952</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;this is an excerpt of what we dir:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD handle_data_changed.
...
  FIELD-SYMBOLS:
    &amp;lt;dat&amp;gt; TYPE ANY,
    &amp;lt;mod&amp;gt; TYPE LINE OF lvc_t_modi,
...
  LOOP AT er_data_changed-&amp;gt;mt_mod_cells ASSIGNING &amp;lt;mod&amp;gt;.
...
* error case, sy-subrc &amp;lt;&amp;gt; 0 returned by MESSAGE ... RAISING
      symsg2alv_changed_data_prot( ir_cl_alv_changed_data_prot  = er_data_changed
                                   is_modi                      = &amp;lt;mod&amp;gt; ).
      DELETE er_data_changed-&amp;gt;mt_mod_cells.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD symsg2alv_changed_data_prot.

  MESSAGE
    ID sy-msgid
    TYPE sy-msgty
    NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
    INTO mv_msg. "for debug transparancy
  ir_cl_alv_changed_data_prot-&amp;gt;add_protocol_entry(
    i_msgid     = sy-msgid
    i_msgty     = sy-msgty
    i_msgno     = sy-msgno
    i_msgv1     = sy-msgv1
    i_msgv2     = sy-msgv2
    i_msgv3     = sy-msgv3
    i_msgv4     = sy-msgv4
    i_fieldname = is_modi-fieldname
    i_row_id    = is_modi-row_id
*      i_tabix     = i_tabix
       ).

ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not understand your question about row_id as this is a component  lvc_t_modi table. I don't know MP_MOD_ROWS as there is only attribute  MT_MOD_ROWS of parameter ER_DATA_CHANGED of event DATA_CHANGED of CL_GUI_ALV_GRID.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jun 2011 13:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923323#M1598952</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-06-25T13:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923324#M1598953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After editing all the fields, you can select all the rows you edited and &lt;/P&gt;&lt;P&gt;Use this method of CL_GUI_ALV_GRID class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD r_grid-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;P&gt;              et_index_rows = gint_selected_rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the selected row indexes will be in gint_selected_rows....&lt;/P&gt;&lt;P&gt;you can use those indexes to read the contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 07:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923324#M1598953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T07:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Row id in editable ALV while using MP_MOD_ROWS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923325#M1598954</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;Check it out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PUBLIC SECTION.
CLASS-METHODS : m_data_changed FOR EVENT data_changed OF
cl_gui_alv_grid IMPORTING er_data_changed.

CLASS data_changed IMPLEMENTATION.
LOOP AT er_data_changed-&amp;gt;mt_mod_cells INTO x_mod_cells.

CALL METHOD er_data_changed-&amp;gt;modify_cell
EXPORTING
i_row_id = x_mod_cells-row_id
* i_tabix = x_MOD_CELLS-tabix
i_fieldname = x_mod_cells-fieldname
i_value = x_mod_cells-value
.
IF sy-subrc EQ 0.
MOVE er_data_changed-&amp;gt;mt_mod_cells TO itab.
loop at itab INTO xtab.

ENDLOOP.

ENDIF.
ENDLOOP.
endclass.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jshree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 08:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/row-id-in-editable-alv-while-using-mp-mod-rows/m-p/7923325#M1598954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T08:14:21Z</dc:date>
    </item>
  </channel>
</rss>

