Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

In ALV O/p , need Editable Checkbox for particular based on signal lights..


I have requiremnt liek this in my ALV

There are 4 records in the output consisting of fields checkbox , traffic lights. here, 2 are Red and 2 are Green.

now Green light checkboxes should be (Enabled mode)checked with Edit mode. Red light check boxes should be diabled mode with unchecked. how to do this..

I had wriiteen the following code but it is giving me the dump.

DATA : ls_listrow LIKE LINE OF i_final,

ls_stylerow TYPE lvc_s_styl,

ls_styletab TYPE lvc_t_styl.

LOOP AT i_final INTO wa_final.

IF wa_final-light = '1'. "Disabled

ls_stylerow-fieldname = 'CHK'.

ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.

ELSEIF wa_final-light = '3'. "Enabled

ls_stylerow-fieldname = 'CHK'.

ls_stylerow-style = cl_gui_alv_grid=>mc_style_enabled.


APPEND ls_stylerow TO ls_styletab.

INSERT LINES OF ls_styletab INTO TABLE ls_listrow-cellstyles.

MODIFY i_final FROM ls_listrow.


Iam getting DUMP at INSERT line stmt.

Awaiting for ur reply.



Former Member
Not what you were looking for? View more on this topic or Ask a question