2008 Nov 26 10:12 AM
Hi.
The Screen have ALV data.
How to Process event when select ALV mark ?
Regards.
LY.
2008 Nov 26 11:29 AM
Hi for ALV in oops you can do this
data: t_row_no type lvc_t_roid.
call method g_alv_grid->get_selected_rows
importing
et_row_no = t_row_no.
case sy-ucomm.
when 'ENTER'
loop at t_row_no into wa_row_no.
read table itab index wa_row_no-row_id.
perform Process_values using itab-fld1 itab-fld2.
endloop.
endcase.
2008 Nov 26 11:04 AM
2008 Nov 26 11:11 AM
EVENT
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = it_events[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE it_events WITH KEY name = slis_ev_top_of_page
INTO it_events.
IF sy-subrc = 0.
MOVE t_formname_top_of_page TO it_events-form.
APPEND it_events.
ENDIF.
ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = it_fieldcat
it_events = it_events[]
i_callback_program = sy-repid
is_layout = gs_layout
i_save = g_save
is_variant = gx_variant
TABLES
t_outtab = i_data[].
.
2008 Nov 26 11:29 AM
Hi for ALV in oops you can do this
data: t_row_no type lvc_t_roid.
call method g_alv_grid->get_selected_rows
importing
et_row_no = t_row_no.
case sy-ucomm.
when 'ENTER'
loop at t_row_no into wa_row_no.
read table itab index wa_row_no-row_id.
perform Process_values using itab-fld1 itab-fld2.
endloop.
endcase.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |