Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Help required!!

<b>The following lines of code were written:</b>

  • For ALV events

i_events TYPE slis_t_event,

constants : c_user_command(20) value 'USER_COMMAND'

  • Local variable for event

DATA: wa_event TYPE slis_alv_event. "Events

  • Events for the ALV

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 1 "2

IMPORTING

et_events = i_events.

  • Sort by Name

SORT i_events BY name.

CLEAR wa_event.

READ TABLE i_events INTO wa_event

WITH KEY name = slis_ev_user_command

BINARY SEARCH.

IF sy-subrc = 0.

MOVE c_user_command TO wa_event-form.

MODIFY i_events FROM wa_event TRANSPORTING form

WHERE name = slis_ev_user_command.

ENDIF.

CLEAR : wa_event.

<b>Now I want to transfer the routine USER_COMMAND to the FM REUSE_ALV_GRID_DISPLAY.

Can anyone tell what all parameters to pass in this FM??</b>

Tags:
Former Member
replied

hi..

You have to pass the Events internal table to the Parameter IT_EVENTS of the FM

REUSE_ALV_GRID_DISPLAY.

reward if Helpful.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question