<?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: Update an itab using ALV GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655636#M1573567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is perfect, I would like to contribute with one little thing, after the "MODIFY" it will be convinient to ask :&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;show some message that says that you couldn't update the table.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2011 12:38:38 GMT</pubDate>
    <dc:creator>former_member204025</dc:creator>
    <dc:date>2011-03-03T12:38:38Z</dc:date>
    <item>
      <title>Update an itab using ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655632#M1573563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to update an itab using an ALV GRID, having an editable field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After having modified the editable field, when I give my user command to update the itab I can verify, in debug, that the field has not been changed (also if I press enter before giving the command).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;1. I'm NOT using OO programming but the functions (REUSE_ALV_GRID_DISPLAY...)&lt;/P&gt;&lt;P&gt;2. I took a look for other posts on this argument but I cannot find a solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for every help or suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 11:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655632#M1573563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update an itab using ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655633#M1573564</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 use the below code in User Command.It will work.&lt;/P&gt;&lt;P&gt;Iam using the same in Grid ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the same code in User Command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : lv_ref_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;to reflect the data changed into internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            e_grid = lv_ref_grid.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      IF NOT lv_ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;        CALL METHOD lv_ref_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkatesh Kolluru on Mar 3, 2011 12:59 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkatesh Kolluru on Mar 3, 2011 12:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 11:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655633#M1573564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T11:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update an itab using ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655634#M1573565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form user_command using v_okcode like sy-ucomm
                        selfield type slis_selfield.
case v_okcode.
    when '&amp;amp;IC1'.

      loop at it_final into wa_final where cmspf is not initial.
*---&amp;gt;Update Internal Table
*---&amp;gt;validate and pass new values to wa_final
          modify it_final from wa_final transporting &amp;lt;Field&amp;gt;.
        endif.

      endloop.
      selfield-refresh = 'X'.
endcase.
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfrom USER_COMMAND, will be the import parameter of UR ALV FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        i_callback_program          = sy-repid
        i_callback_user_command     = 'USER_COMMAND'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 12:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655634#M1573565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update an itab using ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655635#M1573566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! It works! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 12:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655635#M1573566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-03T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update an itab using ALV GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655636#M1573567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is perfect, I would like to contribute with one little thing, after the "MODIFY" it will be convinient to ask :&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;show some message that says that you couldn't update the table.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gaby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2011 12:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-an-itab-using-alv-grid/m-p/7655636#M1573567</guid>
      <dc:creator>former_member204025</dc:creator>
      <dc:date>2011-03-03T12:38:38Z</dc:date>
    </item>
  </channel>
</rss>

