<?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 Edidtable ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262456#M148070</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; I need to make an ALV Editable and save/Update data to a table. Can this is be done ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample source code would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Feb 2024 04:14:30 GMT</pubDate>
    <dc:creator>Murali_Shanmu</dc:creator>
    <dc:date>2024-02-04T04:14:30Z</dc:date>
    <item>
      <title>Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262456#M148070</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; I need to make an ALV Editable and save/Update data to a table. Can this is be done ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample source code would be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2024 04:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262456#M148070</guid>
      <dc:creator>Murali_Shanmu</dc:creator>
      <dc:date>2024-02-04T04:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262457#M148071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at these sample programs in the SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_01&lt;/P&gt;&lt;P&gt;BCALV_EDIT_02&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03&lt;/P&gt;&lt;P&gt;BCALV_EDIT_04&lt;/P&gt;&lt;P&gt;BCALV_EDIT_05&lt;/P&gt;&lt;P&gt;BCALV_EDIT_06&lt;/P&gt;&lt;P&gt;BCALV_EDIT_07&lt;/P&gt;&lt;P&gt;BCALV_EDIT_08&lt;/P&gt;&lt;P&gt;BCALV_FULLSCREEN_GRID_EDIT&lt;/P&gt;&lt;P&gt;BCALV_GRID_EDIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262457#M148071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262458#M148072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make fields of ALV editable you can set the EDIT field of the fieldcatalog to 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fieldcatalog-edit = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to save the changed data back, the changes would be reflected in your internal table that you had used to display. Use this to modify your database table.&lt;/P&gt;&lt;P&gt;Are you using ALV using classes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262458#M148072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262459#M148073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murali,&lt;/P&gt;&lt;P&gt; just set in fieldcat ..&lt;/P&gt;&lt;P&gt; To make a column editable, it will be sufficient to set the field &amp;#147;EDIT&amp;#148; in the field catalog..&lt;/P&gt;&lt;P&gt; the change that you make are already stored in the internal table itself..&lt;/P&gt;&lt;P&gt; you can just make use of that to store it or save it back into the TABLE..&lt;/P&gt;&lt;P&gt; but before that you'll have to handle ..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt; handle_data_changed FOR EVENT data_changed OF  cl_gui_alv_grid IMPORTING er_data_changed&amp;lt;/b&amp;gt;..&lt;/P&gt;&lt;P&gt; this event captures the data into the itab..&lt;/P&gt;&lt;P&gt; and it can be save d or updated into the TABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262459#M148073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262460#M148074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out these demo editable alv grids. they all have single row select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_GRID_EDIT&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_EDITABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code...&lt;/P&gt;&lt;P&gt; method SET_READY_FOR_INPUT_INTERNAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_mode type i.&lt;/P&gt;&lt;P&gt;  if is_ready_for_input( ) eq 1 and&lt;/P&gt;&lt;P&gt;     ( m_cl_variant-&amp;gt;ms_layout-sel_mode eq 'B' or&lt;/P&gt;&lt;P&gt;       m_cl_variant-&amp;gt;ms_layout-sel_mode eq 'C' ).&lt;/P&gt;&lt;P&gt;    l_mode = 0.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    case m_cl_variant-&amp;gt;ms_layout-sel_mode.&lt;/P&gt;&lt;P&gt;      when 'A'.                          "Row/Col-Select&lt;/P&gt;&lt;P&gt;        l_mode = 0.&lt;/P&gt;&lt;P&gt;      when 'B'.                          "Single Select Listbox&lt;/P&gt;&lt;P&gt;        l_mode = 1.&lt;/P&gt;&lt;P&gt;      when 'C'.                          "Multi Select Listbox&lt;/P&gt;&lt;P&gt;        l_mode = 2.&lt;/P&gt;&lt;P&gt;      when 'D'.                          "Full Select&lt;/P&gt;&lt;P&gt;        l_mode = 3.&lt;/P&gt;&lt;P&gt;      when others.&lt;/P&gt;&lt;P&gt;        if is_ready_for_input( ) eq 0.&lt;/P&gt;&lt;P&gt;          l_mode = 1.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          l_mode = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  call method me-&amp;gt;set_selection_mode_base&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      mode = l_mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a helpful link..&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="475961"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srikanth.&lt;/P&gt;&lt;P&gt;reward points if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262460#M148074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262461#M148075</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;R u using FM or.............&lt;/P&gt;&lt;P&gt;If u r using FM look at my example.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: LC_GLAY TYPE LVC_S_GLAY.&lt;/P&gt;&lt;P&gt;LC_GLAY-EDT_CLL_CB = 'X'.&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;------&lt;/P&gt;&lt;P&gt;gt_layout-zebra = 'X'.&lt;/P&gt;&lt;P&gt;gt_layout-detail_popup = 'X'.&lt;/P&gt;&lt;P&gt;gt_layout-colwidth_optimize = 'X'.&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 = i_repid&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'USER_COMMAND1'&lt;/P&gt;&lt;P&gt;it_fieldcat = header&lt;/P&gt;&lt;P&gt;is_layout = gt_layout&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'TOP-OF-PAGE1'&lt;/P&gt;&lt;P&gt;i_grid_title = text-h17&lt;/P&gt;&lt;P&gt;it_sort = gt_sort[]&lt;/P&gt;&lt;P&gt;i_default = 'X'&lt;/P&gt;&lt;P&gt;i_save = 'U'&lt;/P&gt;&lt;P&gt;is_variant = gt_variant&lt;/P&gt;&lt;P&gt;it_events = gt_events&lt;/P&gt;&lt;P&gt;I_GRID_SETTINGS = LC_GLAY&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;------&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form USER_COMMAND1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USER_COMMAND1 USING u_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;us_selfield TYPE slis_selfield."#EC CALLED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case u_ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;amp;DATA_SAVE'.&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will come after the data was EDITTED and when SAVE was clicked by user in output scren.&lt;/P&gt;&lt;P&gt;Here now in the final internal table(ITAB) you can find the data changed in EDIT mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this you can do manipulation what ever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;If this helps you reward with points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262461#M148075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262462#M148076</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; Can you give me some more idea about your problem.In which situation you want to change the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope i can give you some more inputs after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Mrutyunjaya Tripathy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262462#M148076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-28T05:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edidtable ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262463#M148077</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; Thanks for the input. I am using 'REUSE_ALV_GRID_DISPLAY'. I am not using classes and Objects. I shall start now with your inputs. Thanks a Lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2006 05:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edidtable-alv/m-p/1262463#M148077</guid>
      <dc:creator>Murali_Shanmu</dc:creator>
      <dc:date>2006-03-28T05:53:29Z</dc:date>
    </item>
  </channel>
</rss>

