<?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: get selected node in alv tree in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200880#M1376020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes but its not clear to how to get the current selected node from the tree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2009 07:38:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-23T07:38:04Z</dc:date>
    <item>
      <title>get selected node in alv tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200878#M1376018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am trying to get the selected node in the alv tree. I don't know what I am doing wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   call method gc_alv_tree-&amp;gt;get_toolbar_object&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        er_toolbar = mr_toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CHECK NOT mr_toolbar IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the part of my code which exists from the form completely. mr_toolbar is always initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:16:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200878#M1376018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T07:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: get selected node in alv tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200879#M1376019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take help from demo code: BCALV_TREE_01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200879#M1376019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T07:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: get selected node in alv tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200880#M1376020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes but its not clear to how to get the current selected node from the tree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200880#M1376020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: get selected node in alv tree</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200881#M1376021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charla6,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the selected node, the right method is get_selected_nodes, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : lt_selected_nodes TYPE treev_nks.

CALL METHOD gc_alv_tree-&amp;gt;get_selected_nodes
  CHANGING
    ct_selected_nodes = lt_selected_nodes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also have the method get_selected_item (you can have a look in SE24 on all the methods implemented for the class of your object gc_alv_tree - something like CL_GUI_ALV_TREE, I guess?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-selected-node-in-alv-tree/m-p/6200881#M1376021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-23T07:55:04Z</dc:date>
    </item>
  </channel>
</rss>

