<?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: A question about editing ALV fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948696#M1601528</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;  After updation of the Ztable try to write one more select query To change the ITAB and pass the ITAB to Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 09:48:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-10T09:48:22Z</dc:date>
    <item>
      <title>A question about editing ALV fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948694#M1601526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my project, we need to read data from DB and display in the ALV. In the ALV output, we should be able to edit the records, and after user clicks the "Save" button in the applicaiton toolbar, the program should be able to save the changed data into DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I can display the data in ALV and all fields are editable. After I change some data and click "Save", the program will go into subroutine 'F_ALV_USER_COMMAND',  but the data in the internal table GT_OUTTAB is not changed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generate the ALV output by the following calling:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        i_callback_program = wf_pgm&lt;/P&gt;&lt;P&gt;        is_layout          = gs_layout&lt;/P&gt;&lt;P&gt;        it_fieldcat        = gt_fieldcat[]&lt;/P&gt;&lt;P&gt;        i_callback_pf_status_set     = 'F_PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;        i_callback_user_command = 'F_ALV_USER_COMMAND'&lt;/P&gt;&lt;P&gt;        is_variant         = g_variant&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        t_outtab           = gt_outtab&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        program_error      = 1&lt;/P&gt;&lt;P&gt;        others             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the subroutine 'F_PF_STATUS_SET', I call a GUI Status defined by myself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I call as below&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        i_callback_program = wf_pgm&lt;/P&gt;&lt;P&gt;        is_layout          = gs_layout&lt;/P&gt;&lt;P&gt;        it_fieldcat        = gt_fieldcat[]&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       i_callback_pf_status_set     = 'F_PF_STATUS_SET'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        i_callback_user_command = 'F_ALV_USER_COMMAND'&lt;/P&gt;&lt;P&gt;        is_variant         = g_variant&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        t_outtab           = gt_outtab&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        program_error      = 1&lt;/P&gt;&lt;P&gt;        others             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GT_OUTTAB is changed accordingly after clicking the "Save". &lt;/P&gt;&lt;P&gt;Can any expert tell me why Internal table is not changed in the case I use user-defined GUI Status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards, Johnny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Yongbo Wu on Jun 10, 2011 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 08:12:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948694#M1601526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T08:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: A question about editing ALV fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948695#M1601527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yongbo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately REUSE_ALV_GRID_DISPLAY has update problem.&lt;/P&gt;&lt;P&gt;REUSE_ALV_LIST_DISPLAY FM is making automatic update/change itab. &lt;/P&gt;&lt;P&gt;You can change REUSE_ALV_GRID_DISPLAY FM with REUSE_ALV_LIST_DISPLAY FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'REUSE_ALV_LIST_DISPLAY' "'REUSE_ALV_GRID_DISPLAY'

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948695#M1601527</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-06-10T09:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: A question about editing ALV fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948696#M1601528</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;  After updation of the Ztable try to write one more select query To change the ITAB and pass the ITAB to Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 09:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/a-question-about-editing-alv-fields/m-p/7948696#M1601528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T09:48:22Z</dc:date>
    </item>
  </channel>
</rss>

