<?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 two ALV buttons with same function code but different functionalities in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882985#M1688268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the same method for handling the user command for both buttons. Since the function code is same i want to identify the object from which the button got called .. Can any one help in this ?? Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Thomas Zloch - subject adjusted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 15:45:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-25T15:45:48Z</dc:date>
    <item>
      <title>two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882985#M1688268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the same method for handling the user command for both buttons. Since the function code is same i want to identify the object from which the button got called .. Can any one help in this ?? Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Thomas Zloch - subject adjusted&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 15:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882985#M1688268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-25T15:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882986#M1688269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your local class&amp;nbsp; where you have created method to handle event create an attribute for example NAME&lt;/P&gt;&lt;P&gt;create two instance of your local class with different value in NAME attribute and then register these to your individual grid.&lt;/P&gt;&lt;P&gt;When methods are called, you can read value from NAME attribute to find out which grid has triggered the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 16:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882986#M1688269</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2012-07-25T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882987#M1688270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Pawan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; While debugging , suppose i clicked the button from the second alv (say object obj2) , then while debugging i could find that ,obj2-&amp;gt;m_ucomm = FCODE , same time for obj1 (instance of alv1 )it is blank.&lt;/P&gt;&lt;P&gt;But i can not access obj2-&amp;gt;m_ucomm or obj_ucomm-&amp;gt;m_ucomm in the program since it is a protected attribute of the class cl_gui_alv_grid. How can i pass the value of m_ucom to a variable. ? If i can pass the value to a variable or if i am able to access m_ucomm using the object of alv in program then i can do the rest by checking the value of it . Can you help me in this ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 06:39:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882987#M1688270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-26T06:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882988#M1688271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't is possible to store the m_ucomm into a global variable? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882988#M1688271</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2012-07-26T07:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882989#M1688272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried stoirng m_ucomm to a variable, but its not possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 07:29:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882989#M1688272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-26T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: two ALV buttons with same function code but different functionalities</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882990#M1688273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;can you explane why are you using the same event handler method for two different alv grids, if you want to have different functionalities? I think it would be better to use two different methods or you can create a second event handler which inherits from the first and overrides the event handler method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Viktor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-alv-buttons-with-same-function-code-but-different-functionalities/m-p/8882990#M1688273</guid>
      <dc:creator>viktoru</dc:creator>
      <dc:date>2012-07-26T10:24:38Z</dc:date>
    </item>
  </channel>
</rss>

