<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2 ALVs on one screen using same event class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759545#M1676271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, i needed to do the "when" on my cl_salv_events_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 08:00:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-04-16T08:00:27Z</dc:date>
    <item>
      <title>2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759540#M1676266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have implemented my event class for my ALV, and it works. Now i have added a second alv to my screen, and this also activates the event fx. when clicking te alv, it also sends the correct row and collumn etc.&lt;/P&gt;&lt;P&gt;But my problem is, how do i detect in which alv i fx. doubble clicked?&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 06:47:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759540#M1676266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-16T06:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759541#M1676267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you see the DBLCLICK_ROW_COL event of CL_GUI_ALV_GRID you will see only two parameters ( &lt;/P&gt;&lt;P&gt;ROW_ID, COL_ID). It means it will never return you the reference of the ALV grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recomended solution.&lt;/P&gt;&lt;P&gt;1) Create two different handler method a) one for grid2(say method_a) b) other of the grid2(say method_b)&lt;/P&gt;&lt;P&gt;2) Register the two methods for diffrent alv. say method_a will always be triggered for grid1 and method_b will always be triggered for grid 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;set &lt;SPAN class="L1S52"&gt;handler&lt;/SPAN&gt; handler_ref-&amp;gt;method_a &lt;SPAN class="L1S52"&gt;for&lt;/SPAN&gt; ref_alv1.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;set &lt;SPAN class="L1S52"&gt;handler&lt;/SPAN&gt; handler_ref-&amp;gt;method_b &lt;SPAN class="L1S52"&gt;for&lt;/SPAN&gt; ref_alv2.&lt;BR /&gt;&lt;BR id="mce_4" /&gt;&lt;BR id="mce_2" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759541#M1676267</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-16T07:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759542#M1676268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every event has an implicit (formal) parameter "&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPMETHODS_EVENT_HANDLER.htm#&amp;amp;ABAP_ADDITION_1@1@"&gt;sender&lt;/A&gt;", use this parameter to identify the ALV grid &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;class lcl_event_receiver definition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp; public section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; methods:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; handle_double_click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for event double_click of cl_gui_alv_grid&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; importing e_row e_column &lt;STRONG&gt;sender&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;class lcl_event_receiver implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp; method handle_double_click.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; case &lt;STRONG&gt;sender&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when grid_0201. " the &lt;/SPAN&gt;ref to cl_gui_alv_gri&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read table itab_0201 index e_row-index into record_0201.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform recd_display_201 using record_0201.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when grid_0202.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read table itab_0202 index e_row-index into record_0202.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; perform recd_display_202&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt; using record_0202&lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759542#M1676268</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-04-16T07:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759543#M1676269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Raymond, i am a bit in doubt about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; when grid_0201&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this is what sender contains:&lt;/P&gt;&lt;P&gt;{O:64*\CLASS=CL_SALV_EVENTS_TABLE}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Kenneth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759543#M1676269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-16T07:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759544#M1676270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the field defined for reference to cl_gui_alv_grid : &lt;/P&gt;&lt;P&gt;(The sample comes from an actual productive program &lt;SPAN __jive_emoticon_name="cool" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/cool.gif"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid_0201 type ref to cl_gui_alv_grid,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; grid_0202 type ref to cl_gui_alv_grid,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #000080;"&gt;(...)&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Adapt the code if you use another class like CL_SALV_TABLE. Use the ref to CL_SALV_EVENTS_TABLE associated to the grid, look for a code like &lt;/P&gt;&lt;P&gt;&amp;lt;ref_to_event&amp;gt; = &amp;lt;ref_to_alv&amp;gt;-&amp;gt;get_event().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 07:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759544#M1676270</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-04-16T07:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759545#M1676271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh, i needed to do the "when" on my cl_salv_events_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it works, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 08:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759545#M1676271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-16T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALVs on one screen using same event class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759546#M1676272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to do this could be, you can use object of the custom container that is the object of class &lt;STRONG&gt;CL_GUI_CUSTOM_CONTAINER. &lt;/STRONG&gt; call method &lt;STRONG&gt;GET_NAME &lt;/STRONG&gt;of this class. this returns the name of the custom container, so in turn you know which alv you have place in that particular container, and that is the one which was double clicked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 09:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alvs-on-one-screen-using-same-event-class/m-p/8759546#M1676272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-16T09:01:44Z</dc:date>
    </item>
  </channel>
</rss>

