2010 Feb 20 7:18 AM
hi,
i am displaying a List alv by reuse_alv_list_display and for all the records which have same matnr I am displaying Matnr only once and rest of the records with blank matnr field(Like sort)
now i want check box in my output only in those fields which have matnr and no check box in fields which do not have matnr populated .
please reply soon.
Regards,
kushagra sharma
2010 Feb 20 8:45 AM
Try this,
DATA: ls_style TYPE lvc_s_styl,
lt_style TYPE lvc_t_styl.
ls_style-fieldname = iv_fieldname.
if cs_io-checkbox = ' '.
ls_style-style = cl_gui_alv_grid=>mc_style_enabled.
else.
ls_style-style = cl_gui_alv_grid=>mc_style_disabled.
endif.
Regards,
hi,
i am displaying a List alv by reuse_alv_list_display and for all the records which have same matnr I am displaying Matnr only once and rest of the records with blank matnr field(Like sort)
now i want check box in my output only in those fields which have matnr and no check box in fields which do not have matnr populated .
please reply soon.
Regards,
kushagra sharma
2010 Feb 20 7:55 AM
It can possible in if you are using CL_GUI_ALV_GRID and using STYLE ie you can put checkbox into display mode if MATNR is equal to space.
cl_gui_alv_grid=>mc_style_enabled.
or.
cl_gui_alv_grid=>mc_style_disabled.
a®
2010 Feb 20 8:45 AM
Try this,
DATA: ls_style TYPE lvc_s_styl,
lt_style TYPE lvc_t_styl.
ls_style-fieldname = iv_fieldname.
if cs_io-checkbox = ' '.
ls_style-style = cl_gui_alv_grid=>mc_style_enabled.
else.
ls_style-style = cl_gui_alv_grid=>mc_style_disabled.
endif.
Regards,
2010 Feb 20 1:12 PM
2010 Feb 20 1:54 PM
Hi,
Refer to the program BCALV_TEST_LIST_LAYOUT.
With list display you can give checkbox for all records.
If you want to give checkbox for individual record then you will have to use CL_GUI_ALV_GRID object.
Regards,
Ankur Parab
Edited by: Ankur Parab on Feb 20, 2010 7:24 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |