2013 Jun 28 7:26 AM
Hai All
I got one requirement that,i have to edit single cell in a column,iam able to edit single row by using the code
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT it_makt INTO wa_makt.
IF wa_makt-indcat NE 'H'.
ls_stylerow-fieldname = 'INDCAT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
* ls_stylerow-fieldname = 'ZMRDAT' .
* ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_makt-field_style.
MODIFY it_makt FROM wa_makt.
ENDIF.
ENDLOOP.
But i want to edit all the fields editable for that single row.
Regards,
sivajyothi.
2013 Jun 28 1:37 PM
Hai
My pbm was solved,we have to append every column that we want editable.
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT it_makt INTO wa_makt.
IF wa_makt-indcat NE 'H'.
ls_stylerow-fieldname = 'INDCAT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_makt-field_style.
ls_stylerow-fieldname = 'ZMRDAT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_makt-field_style.
MODIFY it_makt FROM wa_makt.
ENDIF.
ENDLOOP.
Regards,
sivajyothi.
2013 Jun 28 10:30 AM
2013 Jun 28 11:09 AM
Hai Pawan
without using screen we cannot do it in alv display.
Regards,
Jyothi
2013 Jun 28 11:49 AM
Hi Sivajyothi,
Please find the following link may help you,
http://scn.sap.com/thread/3250209
Regards,
Gurunath Kumar D
2013 Jun 28 1:37 PM
Hai
My pbm was solved,we have to append every column that we want editable.
DATA ls_stylerow TYPE lvc_s_styl .
DATA lt_styletab TYPE lvc_t_styl .
LOOP AT it_makt INTO wa_makt.
IF wa_makt-indcat NE 'H'.
ls_stylerow-fieldname = 'INDCAT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_makt-field_style.
ls_stylerow-fieldname = 'ZMRDAT' .
ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
APPEND ls_stylerow TO wa_makt-field_style.
MODIFY it_makt FROM wa_makt.
ENDIF.
ENDLOOP.
Regards,
sivajyothi.