07-26-2007 8:01 AM
Hi All,
I have an alv report. In which, i have to get the selected row index values in return. Those selected row index will be used for further processing. I do not need check box selection, as ALV provide that inbuilt facility. Please tell me the parameter name.
It is urgent.
Regards
Gajendra
07-26-2007 8:05 AM
Hi,
Your Call to ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-cprog
I_CALLBACK_USER_COMMAND = 'USER_COMMAND1'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IS_LAYOUT = wa_layout
IT_FIELDCAT = it_fieldcat
T_OUTTAB = it_rfq
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
Implement a Form Routine with the name you gave for the I_CALLBACK_USER_COMMAND
eg.,
FORM user_command1 using ucomm type sy-ucomm
selfield type slis_selfield.
case ucomm.
when '&IC1'.
read table it_rfq into wa_rfq index selfield-tabindex.
if sy-subrc eq 0.
if selfield-fieldname = 'EBELN' " EBELN is the fieldname in Fieldcat
Do the necessary coding to call the screen here
endif.
endif.
ENDFORM.
regards,
Omkar.