<?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: Help with this method check data changed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258609#M1214701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope u set the flag for filed_catalogue_editing_intended_field1-EDIT !&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Feb 2009 06:08:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-28T06:08:41Z</dc:date>
    <item>
      <title>Help with this method check data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258608#M1214700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im working with an editable alv first the time im going to the programme im able to see the changes in the output internal but when im changing the fields content im not able to see the changes what could be the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING r_ucomm TYPE sy-ucomm
                    rs_selfield TYPE slis_selfield  .




  CASE r_ucomm .
    WHEN 'EXEC' .


      REFRESH it_smart.
      CLEAR p_ref1.


      IF p_ref1 IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = p_ref1.
      ENDIF.

      IF p_ref1 IS NOT INITIAL.
        CALL METHOD p_ref1-&amp;gt;check_changed_data.
      ENDIF.

      LOOP AT it_output INTO wa_output WHERE cbox EQ 'X'.
        READ TABLE it_mard INTO wa_mard WITH KEY matnr = wa_output-matnr.
        IF sy-subrc EQ 0.
          wa_smart-lgpbe = wa_mard-lgpbe.
        ENDIF.
        wa_smart-matnr =  wa_output-matnr.
        wa_smart-maktx =  wa_output-maktx.
        wa_smart-meins =  wa_output-meins.
        wa_smart-bldat =  wa_output-bldat.
*        wa_smart-no_cop = wa_output-menge1.
        APPEND wa_smart TO it_smart.
        CLEAR: wa_smart,wa_output.

      ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 05:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258608#M1214700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T05:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this method check data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258609#M1214701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope u set the flag for filed_catalogue_editing_intended_field1-EDIT !&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 06:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258609#M1214701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this method check data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258610#M1214702</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;Before looping at the output table, you need to get the selected rows using the method 'GET_SELECTED_ROWS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to loop at this rows and read the output table with the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2009 06:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258610#M1214702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-28T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this method check data changed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258611#M1214703</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;The code provided by you is reflecting the modified data from alv to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it will no show the modified data coz you need to include a code line after changing data in internal table, refer:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM user_command USING r_ucomm TYPE sy-ucomm
                    rs_selfield TYPE slis_selfield  .
 
 
 
 
  CASE r_ucomm .
    WHEN 'EXEC' .
 
 
      REFRESH it_smart.
      CLEAR p_ref1.
 
 
      IF p_ref1 IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = p_ref1.
      ENDIF.
 
      IF p_ref1 IS NOT INITIAL.
        CALL METHOD p_ref1-&amp;gt;check_changed_data.
      ENDIF.
 
      LOOP AT it_output INTO wa_output WHERE cbox EQ 'X'.
        READ TABLE it_mard INTO wa_mard WITH KEY matnr = wa_output-matnr.
        IF sy-subrc EQ 0.
          wa_smart-lgpbe = wa_mard-lgpbe.
        ENDIF.
        wa_smart-matnr =  wa_output-matnr.
        wa_smart-maktx =  wa_output-maktx.
        wa_smart-meins =  wa_output-meins.
        wa_smart-bldat =  wa_output-bldat.
*        wa_smart-no_cop = wa_output-menge1.
        APPEND wa_smart TO it_smart.
        CLEAR: wa_smart,wa_output.
 
      ENDLOOP.

      "refresh the ALV Grid output from internal table
      rs_selfield-refresh = 'X' "&amp;lt;----add this line
      "this will refresh the display from the modified internal table

  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 11:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-this-method-check-data-changed/m-p/5258611#M1214703</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-03T11:06:28Z</dc:date>
    </item>
  </channel>
</rss>

