<?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: Capturing changed data when we press enter in ALV OOPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709672#M1671803</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;Please try comparing your code with the code given in the below wiki link and see if there are any discrepancies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editing+and+saving+the+edited+values+in+Database(OOPS"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editing+and+saving+the+edited+values+in+Database(OOPS&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 09:58:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-09T09:58:00Z</dc:date>
    <item>
      <title>Capturing changed data when we press enter in ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709671#M1671802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have built an editable ALV using object oriented approach. when i change data and press SAVE button directly, i can capture the changes by using the method &lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;g_grid&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;refresh_table_display..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But after changing the data, if i press enter and then press SAVE button, changed data is not captured into my internal table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could any body suggest whats the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shyam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator Message: There are many discussions on this topic, please search. Thread locked.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Suhas Saha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 08:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709671#M1671802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-09T08:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing changed data when we press enter in ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709672#M1671803</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;Please try comparing your code with the code given in the below wiki link and see if there are any discrepancies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editing+and+saving+the+edited+values+in+Database(OOPS"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editing+and+saving+the+edited+values+in+Database(OOPS&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 09:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709672#M1671803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-09T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing changed data when we press enter in ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709673#M1671804</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;use method check_changed_data of CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;like,&lt;/P&gt;&lt;P&gt;take one more itab if required to compare.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;data itab_old type standart table of &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;itab_old[] = itab[].&lt;/P&gt;&lt;P&gt;lr_grid-&amp;gt;set_table_for_first_display( .......... ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when SAVE.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt; lr&lt;/SPAN&gt;_grid&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;check_changed_data( ).&lt;/P&gt;&lt;P&gt;if itab_old[] &amp;lt;&amp;gt; itab[]&lt;/P&gt;&lt;P&gt;Update Database.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.,&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 10:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709673#M1671804</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2012-04-09T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing changed data when we press enter in ALV OOPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709674#M1671805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make the ALV column as editable in runtime we need to set the field EDIT&amp;nbsp; as part of &lt;/P&gt;&lt;P&gt;field catalog generation.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; Whenever the user modifies ALV cell values in runtime and to reflect to change in data &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; base table we need to handle the event&amp;nbsp; HANDLE_DATA_CHANGED of the class &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CL_GUI_ALU_GRID this event is triggered enter key in the modified cell.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; By default DATA_CHANGED is not triggered it must be registered explicitly by calling &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the method REGISTER_EDIT_EVENT of a class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; As part of event&amp;nbsp; DATA_CHANGED&amp;nbsp; we need to import the parameters ER_DATA_CHANGED&amp;nbsp; it is a parameter which is the object of the class CL_GUI_CHANGE_DATA_PROTOCOL.&lt;/LI&gt;&lt;LI&gt; As part of the above class we need to use instance attribute MT_MOD_CELLS (OR) &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MT_GOODS_CELLS&amp;nbsp; which are of type&amp;nbsp; LVC_T_MODI. It is table type associated&amp;nbsp; with the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; structure LVC_S_MODI.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;These attributes contains a information related to be modified cell the information include &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row id, field name, and value.&lt;/P&gt;&lt;P&gt;this is some sample which includes all the functionality PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/capturing-changed-data-when-we-press-enter-in-alv-oops/m-p/8709674#M1671805</guid>
      <dc:creator>kranthi_kiran5</dc:creator>
      <dc:date>2012-04-16T07:38:05Z</dc:date>
    </item>
  </channel>
</rss>

