11-25-2006 3:47 AM
I'm using REUSE_ALV_GRID_DISPLAY to display a list. In this list the first column is a check box ( reference to my first field of my internal table).
I use the user command callback to catch the changes
FORM alv_user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
DATA : ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
CASE sy-ucomm.
WHEN '&ROL'.
PERFORM choix_roles.
ENDCASE.
ENDFORM. "alv_user_command
It works !!!!
Next, I call a second ALV in the perfom choix_roles. I also have a checkbox as in first ALV to choose lines. I use the same method to catch the changes but it doesn't work
11-25-2006 3:51 AM
if u had written the below line , remove that and try out
wa_layout-box_fname = 'CHECKBOX'.
11-25-2006 3:51 AM
if u had written the below line , remove that and try out
wa_layout-box_fname = 'CHECKBOX'.
11-25-2006 4:50 AM
change ref1 to ref2 in ur 2nd ALV and call the FM 'GET_GLOBALS_FROM_SLVC_FULLSCR' again
or
try as suggested by ramesh