2009 Nov 02 9:21 AM
I am working on ALV GRID , HAVING 7 COLUMNS.
I used field catalog to make the last 3 columns as editable fields and rest are non-editable.
But now i want to add new rows to ALV with all fields Editable.
kindly provide me the solution.
Thanks
surbhi
Hi Subhashini,
can you please give me the sample code.
2009 Nov 02 9:31 AM
Hi,
You can add some condition to make the field catalogue editable.
I mean you set all fields as editable and keeping 3 non editable and others editable based on a condition.
Regards,
Subhashini
2009 Nov 02 9:48 AM
2009 Nov 02 10:39 AM
data w_fieldcat_ds type lvc_s_fcat.
refresh t_fieldcat[].
w_fieldcat_ds-fieldname = 'FIELD1'.
w_fieldcat_ds-coltext = 'FIELD1'.
w_fieldcat_ds-outputlen = 5.
append w_fieldcat_ds to t_fieldcat.
clear w_fieldcat_ds.
w_fieldcat_ds-fieldname = 'FIELD2'.
w_fieldcat_ds-coltext = 'FIELD2'.
w_fieldcat_ds-outputlen = 5.
append w_fieldcat_ds to t_fieldcat.
clear w_fieldcat_ds.
w_fieldcat_ds-fieldname = 'FIELD3'.
w_fieldcat_ds-coltext = 'FIELD3'.
w_fieldcat_ds-edit = 'X'. "<----
Editable
w_fieldcat_ds-outputlen = 5.
append w_fieldcat_ds to t_fieldcat.
clear w_fieldcat_ds.
w_fieldcat_ds-fieldname = 'FIELD4'.
w_fieldcat_ds-coltext = 'FIELD4'.
w_fieldcat_ds-edit = 'X'. "<----
Editable
w_fieldcat_ds-outputlen = 5.
append w_fieldcat_ds to t_fieldcat.
clear w_fieldcat_ds.
Hope this helps.
2009 Nov 02 10:34 AM
2009 Nov 02 10:34 AM
2009 Dec 17 5:29 AM
HI,
I am also having the same problem ,
Could you please provide me with the solution
2009 Dec 17 5:42 AM
Hi
check these demo programs which will certainly help you.
BCALV_FULLSCREEN_GRID_EDIT
BCALV_GRID_EDIT
BCALV_TEST_GRID_EDIT_01
BCALV_TEST_GRID_EDITABLE
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |