Skip to Content
0
Jun 22, 2007 at 12:53 PM

Select rows in ALV grid with CL_GUI_ALV_GRID

2424 Views

Hi all,

i'm using class CL_GUI_ALV_GRID and i want the buttons at begin of every row to select it.

With the classic function REUSE_ALV_GRID_DISPLAY i used the layout parameter box_fieldname:

<b>layout-box_fieldname = 'CBOX'.</b>

where CBOX is the name field of my internal table in the first position (char1)

and it works.

with the CL_GUI_ALV_GRID ther's not parameter box_fieldname but BOX_FNAME.

<b>layout_alv-BOX_FNAME = 'CBOX'.</b>

When i call the method

call method grid->set_table_for_first_display

EXPORTING

is_layout = layout_alv

CHANGING

IT_FIELDCATALOG = it_fieldcat_voci

it_sort = gt_sort_grid[]

it_outtab = gt_voci[].

it doesn't work.

Somebody knows why? Do i have to do something else?

Thanks a lot?

Massimo.