02-24-2009 6:05 PM
Hi,
I have an OO split screen scenario where I display 2 different internal tables, 1 in the upper section of the split screen and the other in the lower section part. The layout structure used is the same for both internal tables since they display similar information. I am trying to establish that if I use the double click event to drill into specific line items, how do I determine which one of the split screens (and hence which internal table) have I double clicked on so that the correct internal tables details is read for further processing?
Thanks
02-24-2009 8:38 PM
Hello Colin
You may have a look at my answers in thread
Regards
Uwe
02-24-2009 8:38 PM
Hello Colin
You may have a look at my answers in thread
Regards
Uwe
02-25-2009 11:22 AM
Hi Uwe,
Thanks very much for this. I have tried this out and it works perfect. However I'm trying to understand this further from the point of view that I did originally look at the event DOUBLE_CLICK in the class CL_GUI_ALV_GRID but didn't think I could use if further since there was no tie in with the optional parameter 'SENDER' you show. It only has 3 parameters listed for this so how does the 'SENDER' optional parameter work? Is this by reference/registration via the SET HANDLER statrement? I also debugged and looked at 'value' passed into the SENDER optional parameter... its not what I expected to see but contains what looked like the whole class object? Apologies but I'm coming more from years in the trenches of "classical" ABAP and seeing the light with ABAP OO!!
Appreciate all your assistance.
Thanks
02-25-2009 12:11 PM
Please check this extract from the SAP help
Instance events always contain the implicit parameter SENDER, which has the type of a
reference to the class or the interface in which the event is declared.
[Triggering and Handling Events |http://help.sap.com/saphelp_47x200/helpdata/en/71/a8a77955bc11d194aa0000e8353423/content.htm]
02-25-2009 12:51 PM
02-25-2009 4:47 PM
Hello
Usually you never come across this optional parameter SENDER.
However, when you create global classes and define event within this class and THEN define an event handler method for this even then you will see this optional parameter in the class builder.
But how often do you do this? I assume quite rarely.
Regards
Uwe