<?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 ALV Editable not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661041#M1096561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the desired output as per example.&lt;/P&gt;&lt;P&gt;I have followed all the steps as per the example but still a looser can anyone help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the program I get the following run time error&lt;/P&gt;&lt;P&gt;Field symbol has not been assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried commenting the subroutine call &lt;/P&gt;&lt;P&gt;1} perform Change_fieldcatalogue and fetch data.&lt;/P&gt;&lt;P&gt;and i was getting the 2 custom container (top, bottom)  on the screen output this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created a screen 600 with all the attributes.&lt;/P&gt;&lt;P&gt;But i have doubt with this statement&lt;/P&gt;&lt;P&gt;Create a Custom container and name it CCONT and OK code as OK_CODE.&lt;/P&gt;&lt;P&gt;Save check and Activate the screen painter.&lt;/P&gt;&lt;P&gt;I hope on the layout screen the one which says custom control is only the custom container but i see that the fct code box is not highlighted then how can i assign a fctcode.&lt;/P&gt;&lt;P&gt;Could you plz also clear this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Program code below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small note about this program&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; AS : ALV report which displays the contents of the table T006&lt;/P&gt;&lt;P&gt;*&amp;amp; (as a docking container in the bottom) along with the&lt;/P&gt;&lt;P&gt;*&amp;amp; editable ALV which contains the ALV fieldcatalogue table structure.&lt;/P&gt;&lt;P&gt;*&amp;amp; With the available toolbar options of the editable ALV in the output,&lt;/P&gt;&lt;P&gt;*&amp;amp; user can change the fieldcatalogue as per his requirement.&lt;/P&gt;&lt;P&gt;*&amp;amp; When the user clicks 'SUBMIT',the display of the ALV with table T006&lt;/P&gt;&lt;P&gt;*&amp;amp; gets modified and customised accordingly to the user's requirement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZNRD_ALV_EDITABLE.

* Structure declaration for t006
types : begin of ty_t006.
        include structure t006.
types : end of ty_t006.

* Internal table and work area declaration for t006.
data : it_t006 type standard table of ty_t006,
       wa_t006 type ty_t006.

* Declaration for ALV
data : ok_code type sy-ucomm,            " Ok code.
       it_fcat type lvc_t_fcat,          " Fieldcatalogue.
       it_fieldcat type lvc_t_fcat,      "  Fieldcatalogue for Fieldcatalogue itself.
       it_layout type lvc_s_layo.
*Declaration for toolbar functions
data : it_excl_func type ui_functions,
* Controls to display it_t006 and its fieldcatalogue
       cont_dock type ref to cl_gui_docking_container,
       cont_alvgd type ref to cl_gui_alv_grid,
* Controls to display fieldcatalogue as editable alv gridand container
       cont_cust type ref to cl_gui_custom_container,
       cont_editalvgd type ref to cl_gui_alv_grid.

initialization.
start-of-selection.

***************************************************************************************************
* Local class definition for data changed in fieldcatalogue alv
***************************************************************************************************
CLASS lcl_event_receiver definition.
public section.
  methods handle_data_changed
  for event data_changed of cl_gui_alv_grid
    importing er_data_changed.
endclass.        " lcl_event_receiver definition.

***************************************************************************************************
* Local class implementation for data changed in fieldcatalogue alv
***************************************************************************************************
CLASS lcl_event_receiver implementation.
  method handle_data_changed.
  endmethod.     " handle_data_changed.
endclass.        "lcl_event_receiver implementation

* Data declaration for event receiver
data : event_receiver type ref to lcl_event_receiver.

end-of-selection.

***************************************************************************************************
* Setting the screen for alv output for table display and changed fieldcatalogue display
***************************************************************************************************

set screen 600.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0600  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0600 OUTPUT.
  SET PF-STATUS 'STATUS600'.
  SET TITLEBAR 'TITLE600'.

* Create ALV grid if doesn't exits.
if cont_dock is initial.
  perform Create_alv.
endif.

ENDMODULE.                 " STATUS_0600  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Create_alv
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM Create_alv.
* Create a docking container and dock the control at the bottom
create object cont_dock
  exporting
    dynnr = '600'
    extension = 100
    side = cl_gui_docking_container=&amp;gt;dock_at_bottom.
* Create ALV grid for displaying the table
create object cont_alvgd
  exporting
    i_parent = cont_dock.
* Create custom container for ALV
create object cont_cust
  exporting
    container_name = 'CCONT'.
* Create alv editable grid
 create object cont_editalvgd
 exporting
   i_parent = cont_cust.
* Register events for the editable alv
create object event_receiver.
set handler event_receiver-&amp;gt;handle_data_changed for cont_editalvgd.
call method cont_editalvgd-&amp;gt;register_edit_event
  exporting
    i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.

*Building fieldcatalogue for the initial display
perform Build_fieldcatalogue changing it_fcat it_fieldcat.
* Building the fieldcatalogue after the user has changed it
perform Change_fieldcatalogue changing it_fieldcat.
* Fetch data from the table.
perform Fetch_data.

* Get excluding functions for the alv editable tool bar
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort_asc TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort_dsc TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_subtot TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_graph TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_info TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_print TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_filter TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_views TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_export TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_paste TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_find TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy  TO it_excl_func.
*Alv display for the T006 table at the bottom
  CALL METHOD cont_alvgd-&amp;gt;set_table_for_first_display
    CHANGING
      it_outtab       = it_t006[]
      it_fieldcatalog = it_fcat[].
* optimize column width of grid displaying fieldcatalog
  it_layout-cwidth_opt = 'X'.
* Get fieldcatalog of table T006 - alv might have
* modified it after passing.
  CALL METHOD cont_alvgd-&amp;gt;get_frontend_fieldcatalog
    IMPORTING
      et_fieldcatalog = it_fcat[].
*to Send Buffered Automation Queue to Frontend
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
* Display fieldcatalog of table T006 in editable alv grid
  CALL METHOD cont_editalvgd-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = it_layout
      it_toolbar_excluding = it_excl_func
    CHANGING
      it_outtab            = it_fcat[]
      it_fieldcatalog      = it_fieldcat[].


ENDFORM.                    " Create_alv
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0600  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0600 INPUT.

case ok_code.
  when 'SUBMIT'.
* To get the current fieldcatalogue from the front end
    call method cont_alvgd-&amp;gt;set_frontend_fieldcatalog
    exporting
      it_fieldcatalog = it_fieldcat.
    call method cont_alvgd-&amp;gt;refresh_table_display.
    call method cl_gui_cfw=&amp;gt;flush.
  when 'EXIT'.
    leave program.
endcase.
ENDMODULE.                 " USER_COMMAND_0600  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Build_fieldcatalogue
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      &amp;lt;--P_IT_FCAT  text
*      &amp;lt;--P_IT_FIELDCAT  text
*----------------------------------------------------------------------*
FORM Build_fieldcatalogue  CHANGING P_IT_FCAT
                                    P_IT_FIELDCAT.

* Fieldcatalog for table T006: it_fldcat
* to generate the fields automatically
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'T006'
    CHANGING
      ct_fieldcat            = it_fieldcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.
*----------------------------------------------------
* Fieldcatalog for table LVC_T_FCAT:it_fcat
*----------------------------------------------------
* Generate fieldcatalog of fieldcatalog structure.
* This fieldcatalog is used to display fieldcatalog 'it_fldcat'
* on the top of the screen.
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'LVC_S_FCAT'
    CHANGING
      ct_fieldcat            = it_fcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

ENDFORM.                    " Build_fieldcatalogue

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Change_fieldcatalogue
*&amp;amp;---------------------------------------------------------------------*
* After the user has modified the fieldcatalogue we build another fieldcat
* for the modified alv display
*      &amp;lt;--P_IT_FIELDCAT  text
*----------------------------------------------------------------------*
FORM Change_fieldcatalogue  CHANGING P_IT_FIELDCAT.
  DATA ls_fcat TYPE lvc_s_fcat.
  LOOP AT it_fcat INTO ls_fcat.
    ls_fcat-coltext = ls_fcat-fieldname.
    ls_fcat-edit = 'X'.
    IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
      ls_fcat-key = 'X'.
    ENDIF.
    MODIFY it_fcat FROM ls_fcat.
  ENDLOOP.
ENDFORM.                    " Change_fieldcatalogue

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Fetch_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM Fetch_data .
  select * from t006 into table it_t006 up to 50 rows.

ENDFORM.                    " Fetch_data
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2008 11:17:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-24T11:17:11Z</dc:date>
    <item>
      <title>ALV Editable not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661041#M1096561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting the desired output as per example.&lt;/P&gt;&lt;P&gt;I have followed all the steps as per the example but still a looser can anyone help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute the program I get the following run time error&lt;/P&gt;&lt;P&gt;Field symbol has not been assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried commenting the subroutine call &lt;/P&gt;&lt;P&gt;1} perform Change_fieldcatalogue and fetch data.&lt;/P&gt;&lt;P&gt;and i was getting the 2 custom container (top, bottom)  on the screen output this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created a screen 600 with all the attributes.&lt;/P&gt;&lt;P&gt;But i have doubt with this statement&lt;/P&gt;&lt;P&gt;Create a Custom container and name it CCONT and OK code as OK_CODE.&lt;/P&gt;&lt;P&gt;Save check and Activate the screen painter.&lt;/P&gt;&lt;P&gt;I hope on the layout screen the one which says custom control is only the custom container but i see that the fct code box is not highlighted then how can i assign a fctcode.&lt;/P&gt;&lt;P&gt;Could you plz also clear this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Program code below&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small note about this program&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; AS : ALV report which displays the contents of the table T006&lt;/P&gt;&lt;P&gt;*&amp;amp; (as a docking container in the bottom) along with the&lt;/P&gt;&lt;P&gt;*&amp;amp; editable ALV which contains the ALV fieldcatalogue table structure.&lt;/P&gt;&lt;P&gt;*&amp;amp; With the available toolbar options of the editable ALV in the output,&lt;/P&gt;&lt;P&gt;*&amp;amp; user can change the fieldcatalogue as per his requirement.&lt;/P&gt;&lt;P&gt;*&amp;amp; When the user clicks 'SUBMIT',the display of the ALV with table T006&lt;/P&gt;&lt;P&gt;*&amp;amp; gets modified and customised accordingly to the user's requirement.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZNRD_ALV_EDITABLE.

* Structure declaration for t006
types : begin of ty_t006.
        include structure t006.
types : end of ty_t006.

* Internal table and work area declaration for t006.
data : it_t006 type standard table of ty_t006,
       wa_t006 type ty_t006.

* Declaration for ALV
data : ok_code type sy-ucomm,            " Ok code.
       it_fcat type lvc_t_fcat,          " Fieldcatalogue.
       it_fieldcat type lvc_t_fcat,      "  Fieldcatalogue for Fieldcatalogue itself.
       it_layout type lvc_s_layo.
*Declaration for toolbar functions
data : it_excl_func type ui_functions,
* Controls to display it_t006 and its fieldcatalogue
       cont_dock type ref to cl_gui_docking_container,
       cont_alvgd type ref to cl_gui_alv_grid,
* Controls to display fieldcatalogue as editable alv gridand container
       cont_cust type ref to cl_gui_custom_container,
       cont_editalvgd type ref to cl_gui_alv_grid.

initialization.
start-of-selection.

***************************************************************************************************
* Local class definition for data changed in fieldcatalogue alv
***************************************************************************************************
CLASS lcl_event_receiver definition.
public section.
  methods handle_data_changed
  for event data_changed of cl_gui_alv_grid
    importing er_data_changed.
endclass.        " lcl_event_receiver definition.

***************************************************************************************************
* Local class implementation for data changed in fieldcatalogue alv
***************************************************************************************************
CLASS lcl_event_receiver implementation.
  method handle_data_changed.
  endmethod.     " handle_data_changed.
endclass.        "lcl_event_receiver implementation

* Data declaration for event receiver
data : event_receiver type ref to lcl_event_receiver.

end-of-selection.

***************************************************************************************************
* Setting the screen for alv output for table display and changed fieldcatalogue display
***************************************************************************************************

set screen 600.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0600  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0600 OUTPUT.
  SET PF-STATUS 'STATUS600'.
  SET TITLEBAR 'TITLE600'.

* Create ALV grid if doesn't exits.
if cont_dock is initial.
  perform Create_alv.
endif.

ENDMODULE.                 " STATUS_0600  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Create_alv
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM Create_alv.
* Create a docking container and dock the control at the bottom
create object cont_dock
  exporting
    dynnr = '600'
    extension = 100
    side = cl_gui_docking_container=&amp;gt;dock_at_bottom.
* Create ALV grid for displaying the table
create object cont_alvgd
  exporting
    i_parent = cont_dock.
* Create custom container for ALV
create object cont_cust
  exporting
    container_name = 'CCONT'.
* Create alv editable grid
 create object cont_editalvgd
 exporting
   i_parent = cont_cust.
* Register events for the editable alv
create object event_receiver.
set handler event_receiver-&amp;gt;handle_data_changed for cont_editalvgd.
call method cont_editalvgd-&amp;gt;register_edit_event
  exporting
    i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.

*Building fieldcatalogue for the initial display
perform Build_fieldcatalogue changing it_fcat it_fieldcat.
* Building the fieldcatalogue after the user has changed it
perform Change_fieldcatalogue changing it_fieldcat.
* Fetch data from the table.
perform Fetch_data.

* Get excluding functions for the alv editable tool bar
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_append_row TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_insert_row TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_cut TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort_asc TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sort_dsc TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_subtot TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_graph TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_info TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_print TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_filter TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_views TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_export TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_sum TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_mb_paste TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_find TO it_excl_func.
  APPEND cl_gui_alv_grid=&amp;gt;mc_fc_loc_copy  TO it_excl_func.
*Alv display for the T006 table at the bottom
  CALL METHOD cont_alvgd-&amp;gt;set_table_for_first_display
    CHANGING
      it_outtab       = it_t006[]
      it_fieldcatalog = it_fcat[].
* optimize column width of grid displaying fieldcatalog
  it_layout-cwidth_opt = 'X'.
* Get fieldcatalog of table T006 - alv might have
* modified it after passing.
  CALL METHOD cont_alvgd-&amp;gt;get_frontend_fieldcatalog
    IMPORTING
      et_fieldcatalog = it_fcat[].
*to Send Buffered Automation Queue to Frontend
  CALL METHOD cl_gui_cfw=&amp;gt;flush.
* Display fieldcatalog of table T006 in editable alv grid
  CALL METHOD cont_editalvgd-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = it_layout
      it_toolbar_excluding = it_excl_func
    CHANGING
      it_outtab            = it_fcat[]
      it_fieldcatalog      = it_fieldcat[].


ENDFORM.                    " Create_alv
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  USER_COMMAND_0600  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0600 INPUT.

case ok_code.
  when 'SUBMIT'.
* To get the current fieldcatalogue from the front end
    call method cont_alvgd-&amp;gt;set_frontend_fieldcatalog
    exporting
      it_fieldcatalog = it_fieldcat.
    call method cont_alvgd-&amp;gt;refresh_table_display.
    call method cl_gui_cfw=&amp;gt;flush.
  when 'EXIT'.
    leave program.
endcase.
ENDMODULE.                 " USER_COMMAND_0600  INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Build_fieldcatalogue
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      &amp;lt;--P_IT_FCAT  text
*      &amp;lt;--P_IT_FIELDCAT  text
*----------------------------------------------------------------------*
FORM Build_fieldcatalogue  CHANGING P_IT_FCAT
                                    P_IT_FIELDCAT.

* Fieldcatalog for table T006: it_fldcat
* to generate the fields automatically
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'T006'
    CHANGING
      ct_fieldcat            = it_fieldcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.
*----------------------------------------------------
* Fieldcatalog for table LVC_T_FCAT:it_fcat
*----------------------------------------------------
* Generate fieldcatalog of fieldcatalog structure.
* This fieldcatalog is used to display fieldcatalog 'it_fldcat'
* on the top of the screen.
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'LVC_S_FCAT'
    CHANGING
      ct_fieldcat            = it_fcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

ENDFORM.                    " Build_fieldcatalogue

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Change_fieldcatalogue
*&amp;amp;---------------------------------------------------------------------*
* After the user has modified the fieldcatalogue we build another fieldcat
* for the modified alv display
*      &amp;lt;--P_IT_FIELDCAT  text
*----------------------------------------------------------------------*
FORM Change_fieldcatalogue  CHANGING P_IT_FIELDCAT.
  DATA ls_fcat TYPE lvc_s_fcat.
  LOOP AT it_fcat INTO ls_fcat.
    ls_fcat-coltext = ls_fcat-fieldname.
    ls_fcat-edit = 'X'.
    IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
      ls_fcat-key = 'X'.
    ENDIF.
    MODIFY it_fcat FROM ls_fcat.
  ENDLOOP.
ENDFORM.                    " Change_fieldcatalogue

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Fetch_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM Fetch_data .
  select * from t006 into table it_t006 up to 50 rows.

ENDFORM.                    " Fetch_data
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:17:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661041#M1096561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T11:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661042#M1096562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;comment this particular section deals with top container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cont_editalvgd-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout            = it_layout
      it_toolbar_excluding = it_excl_func
    CHANGING
      it_outtab            = it_fcat[]
      it_fieldcatalog      = it_fieldcat[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = 'LVC_S_FCAT'  "This is deep strucure
    CHANGING
      ct_fieldcat            = it_fcat[]
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LVC_S_FCAT is a deep structure , so try to comment that section and see. if you want that part , populate the fieldcatalog manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661042#M1096562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661043#M1096563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.i will revert to you after going through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjith Nambiar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 12:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661043#M1096563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Editable not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661044#M1096564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closing temporarily.yet to be cleared&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 09:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-editable-not-working/m-p/4661044#M1096564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T09:13:07Z</dc:date>
    </item>
  </channel>
</rss>

