Application Development and Automation 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: 
Read only

Accessing Sender parameter attribute in event hander method implementation

Former Member
0 Likes
662

Hello knowledgeable friends.

I would like a single event handler to manage two alv grid objects. There is a parameter SENDER that is available in the method implementations to say which object triggered the event. I would like to get at the attribute MT_OUTTAB but this syntax does not work:

local_variable = sender->mt_outtab

Any help would be greatly appreciated

1 REPLY 1
Read only

Former Member
0 Likes
392

Ok, MT_OUTTAB is a protected Attribute. I would settle for just the name of the Sender. This code checks:

call method sender->get_name RECEIVING name = l_name.

but l_name is empty. I was hoping for 'GRID1'; when I created the object I used:

CREATE OBJECT alvgrid

EXPORTING

i_parent = container_top

i_name = 'GRID1'.