Skip to Content
0
Former Member
Jun 23, 2010 at 11:19 AM

How can I trigger a USER_COMMAND for alv grid "toolbar" ???

816 Views

Hi,

i have the standard ALV Grid "toolbar" and if i click to the Button "&LOCAL&COPY_ROW" than i want try to make a Refresh to my ALV Table in the Event "afteruser_command"_!!!!

Here is the implementation of my Event *"afteruser_command":*_

METHOD on_after_user_command.

........DATA: ls_stable TYPE lvc_s_stbl.

.....CASE e_ucomm.

.....WHEN '&LOCAL&COPY_ROW'.

........MESSAGE 'LOCAL_COPY_ROW' TYPE 'S' DISPLAY LIKE 'E'.

........ls_stable-row = 'X'.

........ls_stable-col = 'X'.

........CALL METHOD gr_grid_d0100->refresh_table_display

..............EXPORTING

.......................is_stable = ls_stable

..............EXCEPTIONS

.......................finished = 1

.......................OTHERS = 2.

......ENDCASE.

ENDMETHOD.

But it doesnt work.

Is there another function code for the Copy Button????

Thanks

Ersin