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: 

How to implement tow double click events in the same module pool

Former Member
0 Kudos

Hi

I have two different ALV grids in my module pool and for each of them i need to execute a different functionality on the double click event. Is it possible to define two different methods for the same event on two different ALVs?

1 REPLY 1

Former Member
0 Kudos

i think you can do it by taking different event table for different alv.

use reuse_alv_events_get and assign two different form name for same event in two different event tab.

suppose.

for top_of_page.

read table ievent into wevent with key 'TOP_OF_PAGE'.

if sy-subrc = 0.

wevent-form = 'TOP_OF_PAGE1'.

append wevent to ievent.

endif.

now pass ievent for 1st alv in grid or list display.

read table ievent1 into wevent1 with key 'TOP_OF_PAGE'.

if sy-subrc = 0.

wevent1-form = 'TOP_OF_PAGE2'.

append wevent1 to ievent1.

endif.

now pass ievent1 for 2nd alv.

regards

shiba dutta

now pass