Skip to Content
0
Former Member
Jul 22, 2005 at 11:59 AM

How to make a entire column editable in an ALV grid

2046 Views

Hi all,

I am trying to make a column editable in an ALV grid. For that I wrote the following code. In the below code I have set the 'edit' field of ls_fcat to 'X'. But Iam getting Runtime error. Can anyone help in resolving this problem or suggest any method to make a column editable in an ALV grid.

form prepare_fc changing go_fieldcat type lvc_t_fcat.

data: ls_fcat type lvc_s_fcat.

refresh: go_fieldcat.

clear: ls_fcat.

ls_fcat-reptext = ' Safety Stock Figures'.

ls_fcat-coltext = 'Safety Stock Figures'.

ls_fcat-fieldname = 'EISBE'.

ls_fcat-ref_table = 'IMAT'.

ls_fcat-edit = 'X'.

modify go_fieldcat from ls_fcat.

APPEND LS_FCAT TO GO_FIELDCAT.

endform.

Thanks & Regards,

Vishnu Priya.