<?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: Data modification in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150452#M749168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robbie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one gap in your code which need to fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Befor SAVE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to call  global object of your ALV program.&lt;/P&gt;&lt;P&gt;This is done by following FM-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data ref type ref to cl_gui_alv_grid.&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 = ref.&lt;/P&gt;&lt;P&gt;call method ref-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find all the changes of your ALV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nimesh S. Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 10:02:43 GMT</pubDate>
    <dc:creator>Nimesh_S_Patel</dc:creator>
    <dc:date>2007-12-27T10:02:43Z</dc:date>
    <item>
      <title>Data modification in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150451#M749167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a dialog to allow user modif some customized fields in ALV. But a problem was met. In testing, after I finished the modification in ALV, I press a button on toolbar "save". I direct the i_callback_user_command to my subroutine "FRM_USER_COMM". At the breakopion set in this subroutine, I found the internal table used for ALV has not been changed at all. But if I process a double click on the ALV before pressing "save", the data in internal table has been changed. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, please help to coach me how I can do for this case?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*the setup for user input. It is a checkbox.&lt;/P&gt;&lt;P&gt;    w_fieldcat-fieldname       = 'CHK'.&lt;/P&gt;&lt;P&gt;    w_fieldcat-col_pos         = '1'.&lt;/P&gt;&lt;P&gt;    w_fieldcat-checkbox        = 'X'.&lt;/P&gt;&lt;P&gt;    w_fieldcat-seltext_l       = 'CHK'.&lt;/P&gt;&lt;P&gt;    w_fieldcat-edit            = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND w_fieldcat TO t_fcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*call alv&lt;/P&gt;&lt;P&gt;FORM FRM_ALV_SHOW .&lt;/P&gt;&lt;P&gt;  DATA l_repid LIKE sy-repid VALUE sy-repid.&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 = l_repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set          = 'FRM_SET_GUISTA'&lt;/P&gt;&lt;P&gt;      i_callback_user_command           = 'FRM_USER_COMM'&lt;/P&gt;&lt;P&gt;      i_grid_title       = 'DOC NUMBERING'&lt;/P&gt;&lt;P&gt;      is_layout          = LT_LAYO&lt;/P&gt;&lt;P&gt;      it_fieldcat        = LIT_FCAT[]&lt;/P&gt;&lt;P&gt;      i_save             = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab           = IT_OUT&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s003(zp) DISPLAY LIKE 'E'.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FRM_ALV_SHOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*set GUI status&lt;/P&gt;&lt;P&gt;FORM FRM_SET_GUISTA  USING rt_extab TYPE slis_t_extab.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'STDSTA' EXCLUDING rt_extab.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " FRM_SET_GUISTA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*process r_ucomm&lt;/P&gt;&lt;P&gt;FORM FRM_USER_COMM USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                     rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;  rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      PERFORM FRM_SAVE.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 09:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150451#M749167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data modification in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150452#M749168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robbie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one gap in your code which need to fill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do as below -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Befor SAVE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to call  global object of your ALV program.&lt;/P&gt;&lt;P&gt;This is done by following FM-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data ref type ref to cl_gui_alv_grid.&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 = ref.&lt;/P&gt;&lt;P&gt;call method ref-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find all the changes of your ALV table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nimesh S. Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150452#M749168</guid>
      <dc:creator>Nimesh_S_Patel</dc:creator>
      <dc:date>2007-12-27T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data modification in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150453#M749169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        In the FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is parameter I_GRID_SETTINGS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass that parameter with create a work area of type LVC_S_GLAY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_GLAY-EDT_CLL_CB = 'X'.&lt;/P&gt;&lt;P&gt;Pass the below parameter in REUSE_ALV_GRID_DISPLAY &lt;/P&gt;&lt;P&gt;I_GRID_SETTINGS = S_GLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-modification-in-alv/m-p/3150453#M749169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:10:04Z</dc:date>
    </item>
  </channel>
</rss>

