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: 

At line selection in ALV

Former Member
0 Kudos

how to handle the at line selection event using ALV?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You must the ALV event for this. There is no at line selection. You have double click event for that and many more.

This will explain you all about ALV and the event handling.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Some more at SDN forums

Regards

Kathirvel

3 REPLIES 3

Former Member
0 Kudos

You must the ALV event for this. There is no at line selection. You have double click event for that and many more.

This will explain you all about ALV and the event handling.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41...

Some more at SDN forums

Regards

Kathirvel

former_member183890
Participant
0 Kudos

Hi,

In the 'REUSE_ALV_LIST_DISPLAY' Function module usze the i_callback_user_command option to mention a sub-routine for handling the events as follows:

call function 'REUSE_ALV_LIST_DISPLAY'

exporting

i_callback_program = sy-repid

i_callback_pf_status_set = 'STANDARD'

<b>i_callback_user_command = 'RETURN_FROM_ALV0'</b>

is_layout = z_layout

it_fieldcat = t_fcat[]

tables

t_outtab = t_log

exceptions

program_error = 1

others = 2.

-


Then in the sub-routine code the following:

form return_from_alv0 using ucomm like sy-ucomm

selfield type slis_selfield.

case ucomm.

when '&IC1'.

endcase.

endform.

- Irudayaraj Peter