Event is not triggered in ALV

Question:
Hi ,
Im using ALV list display and iam trying to handle line selection for that list and i even added the event USER_COMMAND to my event i.e, SLIS_ALV_EVENT and the form tname which iam calling when user clicks on some matnr.
But iam getting this event triggered.
Code goes something like this...
data:
I_EVENTS type SLIS_T_EVENT,
formname_user_command TYPE slis_formname VALUE 'USERCOMMAND'.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
        ...
READ TABLE it_alvevent WITH KEY name = slis_ev_user_command
                           INTO wa_alvevent.
  IF sy-subrc = 0.
    MOVE formname_user_command TO wa_alvevent-form.
    APPEND wa_alvevent TO it_alvevent.
  ENDIF.
form USERCOMMAND.
"this is for testing...
message i001(zmg) with 'Line Selection'.
endform.
So this is the sample code which iam testing..
and this function is getting called and the event USER_COMMAND is appended to the internal tabel and also the formname which i used.
But the event is not getting triggered.
Any help from you is appreciated
Thanks
MSB
Answer:
This looks like an ALV grid vs ALV list problem. 'Grid' uses user command events automatically while 'list' has to be prodded from the function module.
Our system is down at the moment so I can't dig out the relevant code but read this forum's most asked questions part about ALV as I'm pretty sure it's in there...

More Articles:

using functions vs. ALV using objects?
Automatic Clearing of GL acc?
Problems after adding new field (ZOLLD) in F-43 transaction?
Update PO pricing conditions thru BDC?
Difference in TABLES BSEG & TABLES BSEG?
TRANSACTION ME51N - HOW TO VALIDATE A FIELD?