<?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 finding active ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516058#M237505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I have two editable ALV grids in my screen. I have created them thru custom containers. I want to know in which ALV my cursor is positioned. If I have selected a cell in first grid and then selected another cell in second grid, on executing get_current_cell fetching value for both the grids. How can I identify the cursor is in second grid and to execute the above method for the second grid only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Aug 2006 10:40:22 GMT</pubDate>
    <dc:creator>former_member219399</dc:creator>
    <dc:date>2006-08-09T10:40:22Z</dc:date>
    <item>
      <title>finding active ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516058#M237505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I have two editable ALV grids in my screen. I have created them thru custom containers. I want to know in which ALV my cursor is positioned. If I have selected a cell in first grid and then selected another cell in second grid, on executing get_current_cell fetching value for both the grids. How can I identify the cursor is in second grid and to execute the above method for the second grid only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 10:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516058#M237505</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2006-08-09T10:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: finding active ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516059#M237506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have two alv grids, you also have two alv controls, with this you can get information of the selected rows or cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD grid1-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    IMPORTING et_row_no     = i_row_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD grid2-&amp;gt;get_selected_rows&lt;/P&gt;&lt;P&gt;    IMPORTING et_row_no     = i_row_no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 12:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516059#M237506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: finding active ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516060#M237507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kesav,&lt;/P&gt;&lt;P&gt;   But I want to execute the code for 2nd grid only. ie. if my cursor in 2nd grid I want to execute it for 2nd grid. if it is in first grid, execute for first grid only. is there a way to clear selected cell in first grid if my cursor in 2nd grid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 12:42:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516060#M237507</guid>
      <dc:creator>former_member219399</dc:creator>
      <dc:date>2006-08-09T12:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: finding active ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516061#M237508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following method to get active alv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ACT_ALV type ref to cl_gui_control.
CALL METHOD cl_gui_control=&amp;gt;get_focus
     IMPORTING  control           = ACT_ALV
     EXCEPTIONS cntl_error        = 1
                cntl_system_error = 2.

get cell value using ACT_ALV-&amp;gt;GET_CURRENT_CELL
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 12:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516061#M237508</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-09T12:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: finding active ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516062#M237509</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;using the &amp;lt;b&amp;gt;SET_FOCUS&amp;lt;/b&amp;gt; method you can see which one is active. and let me know do you want it using code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2006 13:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-active-alv-grid/m-p/1516062#M237509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-09T13:04:05Z</dc:date>
    </item>
  </channel>
</rss>

