Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Line selection in ALV

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.