<?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 ALV split using OOPs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357955#M1233504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to show 2 ALV grids in one screen and the have two different buttons on both the ALV grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to split the ALV into two grids using the splitter but can only get the button on the first grid application toolbar, how do I get the button on the second grid application toolbar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway I can identify between the two grids at Method handle_toolbar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help and reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 13:24:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T13:24:28Z</dc:date>
    <item>
      <title>ALV split using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357955#M1233504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frnds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in which I need to show 2 ALV grids in one screen and the have two different buttons on both the ALV grids.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to split the ALV into two grids using the splitter but can only get the button on the first grid application toolbar, how do I get the button on the second grid application toolbar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway I can identify between the two grids at Method handle_toolbar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help and reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 13:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357955#M1233504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV split using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357956#M1233505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to the explicity defined paramters of the method, you can add the SENDER in the signature fo the event handler method.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_handlers DEFINITION. 
  PUBLIC SECTION. 
    METHODS handle_toolbar 
            FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID 
            IMPORTING E_OBJECT 
                          E_INTERACTIVE 
                          sender. 
ENDCLASS. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this from the online help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If evt is an instance event, you can, in addition to the explicitly defined output parameters, define a formal parameter named sender as input parameter of an event handler. The formal parameter sender is an implicit output parameter or every instance event. It is typed fully as a reference variable, which has the class class or the interface ifac as a static type, as specified in the declaration of the event handler after EVENT evt OF. If the event handler is called by an instance event, a reference to the triggering object is passed to it in sender. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 14:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357956#M1233505</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-04-03T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV split using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357957#M1233506</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;You need to create two object for the class CL_GUI_ALV_GRID two display two alv's in two different containers of the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While displaying the ALV using SET_TABLE_FOR_FIRST_DISPLAY you need to pass the IT_TOOLBAR_EXCLUDING parameter with the Function codes which of the button to be excluded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 14:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357957#M1233506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T14:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: ALV split using OOPs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357958#M1233507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with two different objects for two grids while registering the events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lp_adhoc TYPE REF TO 'your class',&lt;/P&gt;&lt;P&gt;          lp_adhoc1 TYPE REF TO 'your class'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating grid 1&lt;/P&gt;&lt;P&gt;CREATE OBJECT lp_adhoc.&lt;/P&gt;&lt;P&gt;SET HANDLER lp_adhoc-&amp;gt;handle_user_command FOR w_adhe_gd1.&lt;/P&gt;&lt;P&gt;SET HANDLER lp_adhoc-&amp;gt;handle_toolbar      FOR w_adhe_gd1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating grid 2&lt;/P&gt;&lt;P&gt;CREATE OBJECT lp_adhoc1.&lt;/P&gt;&lt;P&gt;SET HANDLER lp_adhoc1-&amp;gt;handle_user_command FOR w_adhe_gd2.&lt;/P&gt;&lt;P&gt;SET HANDLER lp_adhoc1-&amp;gt;handle_toolbar      FOR w_adhe_gd2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 14:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-split-using-oops/m-p/5357958#M1233507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T14:35:10Z</dc:date>
    </item>
  </channel>
</rss>

