cancel
Showing results for 
Search instead for 
Did you mean: 

click on checkbox field in ALV GRID

Former Member
0 Kudos
166

Hello to all,

I have a problem when a user check a checkbox field in ALV GRID. After this, field in output table (itab) for checkbox is not updated to 'X' (marked) when I process it in USER_COMMAND. However, if user select a complete line, this field is marked correctly in itab table.

Anybody know how to do it?

Thunks and regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

In PBO of the screen,just use the following.

SET PF-STATUS 'ZZZVR_POD_CP'.

perform f9000_objects_create.

perform f9100_exclude_functions using : i_Exclude[] '&EXCLALLFC'.

<b>call method o_alvgrid->register_edit_event

exporting

i_event_id = cl_gui_alv_grid=>mc_evt_modified.</b>

perform f9200_build_field_cat tables i_fieldcat

using 'zzzvr_pod_cp'.

perform f9300_modify_field_cat tables i_fieldcat.

PERFORM f9400_layout using sy-title 'X' 'B' 'X' p_layout.

perform f9500_display_data tables i_OUTPUT

i_GROUPS

i_EXCLUDE

i_FIELDCAT

using w_layout.

Former Member
0 Kudos

Check whether u have used

In PBO,

[code]call method o_alvgrid->register_edit_event
                    exporting
                       i_event_id = cl_gui_alv_grid=>mc_evt_modified.

Field-symbols: <lfs_fieldcat> TYPE lvc_s_fcat.

LOOP AT p_fieldcat ASSIGNING <lfs_fieldcat>.

CASE <lfs_fieldcat>-fieldname.

WHEN 'X'.

<lfs_fieldcat>-coltext = 'X'.

<lfs_fieldcat>-checkbox = 'X'.

<lfs_fieldcat>-edit = 'X'.[/code]