<?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: ALV grid with editable fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557959#M1430773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_delete_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_undo.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste_new_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

* Displaying the output in ALV Grid
    vs_layout_grid-no_rowmark = 'X'.
    vs_layout_grid-zebra      = 'X'.
    vs_layout_grid-cwidth_opt = 'X'.
    vs_layout_grid-edit       = 'X'.
    vs_layout_grid-ctab_fname = 'CT'.
    vs_layout_grid-stylefname = 'CELLTAB'.


    CALL METHOD v_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        i_save                        = 'X'
        is_layout                     = vs_layout_grid
        it_toolbar_excluding          = i_toolbar_excluding[]
      CHANGING
        it_outtab                     = itab[]
        it_fieldcatalog               = it_fieldcat[]
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.
    IF sy-subrc NE 0.
      MESSAGE 'ALV Grid display unsuccessful' TYPE 'I'.
      STOP.
    ENDIF.                             " IF sy-subrc NE 0
  ELSE.                                " IF w_custom_container...
* Refresh the container if it already exists
    CALL METHOD v_grid-&amp;gt;refresh_table_display
      EXCEPTIONS
        finished = 1
        OTHERS   = 2.
    IF sy-subrc NE 0.
      MESSAGE 'Refreshing the container is not successful' TYPE 'I'.
      STOP.
    ENDIF.                             
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Feb 2010 11:58:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-22T11:58:24Z</dc:date>
    <item>
      <title>ALV grid with editable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557956#M1430770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I develop an ALV grid with OO standard methods. Before the first display of the table I define the editable fields. It works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem : if the table is empty and I press the standard icons "Append a line" or "Insert a line", the new line don't have the defined editable characteristics.for fields. Is there a standard method which I have forgotten ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot and kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 18:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557956#M1430770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T18:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid with editable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557957#M1430771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to following blog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Blog For Insert Row Function in ALV Grid|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414800%29ID1658202250DB00188401149248675548End?blog=/pub/wlg/6303]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandravadan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 22:33:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557957#M1430771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid with editable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557958#M1430772</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;Since you have put only some fields as EDITABLE you might not need all these extra funtions and icons.Since all these separately will take time.So you can exclude those unwanted icons from there by using the below code.&lt;/P&gt;&lt;P&gt;You can remove the unwanted icons by excluding the toolbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form exclude_tb_functions changing pt_exclude type ui_functions.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Only allow to change data not to create new entries (exclude&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;generic functions).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data ls_exclude type ui_func.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_delete_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_move_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste_new_row.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;  ls_exclude = cl_gui_alv_grid=&amp;gt;mc_fc_loc_undo.&lt;/P&gt;&lt;P&gt;  append ls_exclude to pt_exclude.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                               " EXCLUDE_TB_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And pass this internal table to &lt;STRONG&gt;ls_exclude&lt;/STRONG&gt; to set_Table_for_first_table.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Jyo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: jyotheswar p on Feb 19, 2010 4:19 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 03:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557958#M1430772</guid>
      <dc:creator>jyotheswar_p2</dc:creator>
      <dc:date>2010-02-19T03:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid with editable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557959#M1430773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_delete_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_undo.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

    vs_toolbar_excluding = cl_gui_alv_grid=&amp;gt;mc_fc_loc_paste_new_row.
    APPEND vs_toolbar_excluding TO i_toolbar_excluding.

* Displaying the output in ALV Grid
    vs_layout_grid-no_rowmark = 'X'.
    vs_layout_grid-zebra      = 'X'.
    vs_layout_grid-cwidth_opt = 'X'.
    vs_layout_grid-edit       = 'X'.
    vs_layout_grid-ctab_fname = 'CT'.
    vs_layout_grid-stylefname = 'CELLTAB'.


    CALL METHOD v_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        i_save                        = 'X'
        is_layout                     = vs_layout_grid
        it_toolbar_excluding          = i_toolbar_excluding[]
      CHANGING
        it_outtab                     = itab[]
        it_fieldcatalog               = it_fieldcat[]
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.
    IF sy-subrc NE 0.
      MESSAGE 'ALV Grid display unsuccessful' TYPE 'I'.
      STOP.
    ENDIF.                             " IF sy-subrc NE 0
  ELSE.                                " IF w_custom_container...
* Refresh the container if it already exists
    CALL METHOD v_grid-&amp;gt;refresh_table_display
      EXCEPTIONS
        finished = 1
        OTHERS   = 2.
    IF sy-subrc NE 0.
      MESSAGE 'Refreshing the container is not successful' TYPE 'I'.
      STOP.
    ENDIF.                             
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 11:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557959#M1430773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid with editable fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557960#M1430774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 12:23:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-editable-fields/m-p/6557960#M1430774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T12:23:09Z</dc:date>
    </item>
  </channel>
</rss>

