<?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 Getting information from tree display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465030#M1650731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied demo program SAPSIMPLE_TREE_CONTROL_DEMO, using my own data, and it presents the tree correctly. In CREATE OBJECT G_TREE I used NODE_SELECTION_MODE = CL_GUI_SIMPLE_TREE=&amp;gt;NODE_SEL_MODE_MULTIPLE instead of NODE_SELECTION_MODE = CL_GUI_SIMPLE_TREE=&amp;gt;NODE_SEL_MODE_SINGLE, and  that works too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can't see any way to send the data which lines were marked to the front end. Similarly in demo program  BCALV_TREE_DEMO u2013 I would be glad to use checkboxes instead of marking lines, but how do I return the information which lines were selected? The whole point of the screen is for the user to select lines and return them to another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using the functions in group SEUT - same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2011 08:08:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-12-27T08:08:50Z</dc:date>
    <item>
      <title>Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465030#M1650731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied demo program SAPSIMPLE_TREE_CONTROL_DEMO, using my own data, and it presents the tree correctly. In CREATE OBJECT G_TREE I used NODE_SELECTION_MODE = CL_GUI_SIMPLE_TREE=&amp;gt;NODE_SEL_MODE_MULTIPLE instead of NODE_SELECTION_MODE = CL_GUI_SIMPLE_TREE=&amp;gt;NODE_SEL_MODE_SINGLE, and  that works too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can't see any way to send the data which lines were marked to the front end. Similarly in demo program  BCALV_TREE_DEMO u2013 I would be glad to use checkboxes instead of marking lines, but how do I return the information which lines were selected? The whole point of the screen is for the user to select lines and return them to another program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried using the functions in group SEUT - same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 08:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465030#M1650731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-27T08:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465031#M1650732</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;I haven't tried this but I think you should implement the event NODE_KEYPRESS or SELECTION_CHANGED in your local class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 14:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465031#M1650732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-27T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465032#M1650733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as proposed, you may create a handler method for event SELECTION_CHANGED (don't forget to SET HANDLER). The handler method may call method get_selected_nodes and use this information for what you want to do ("send the data which lines were marked to the front end" is not very clear to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please feel free to post some of your code linesnwith more detailed explanation of the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2011 16:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465032#M1650733</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-12-27T16:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465033#M1650734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECTION_CHANGED can only be used with single selection, so that won't do it. I thought NODE_KEYPRESS might work, but I can't get it to work at all! I suspect that I need to add the event to events, like event-eventid = CL_GUI_SIMPLE_TREE=&amp;gt;EVENTID_NODE_DOUBLE_CLICK or EVENTID_EXPAND_NO_CHILDREN, but I don't see a suitable definition for NODE_KEYPRESS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 06:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465033#M1650734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T06:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465034#M1650735</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't see a suitable definition for NODE_KEYPRESS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about CL_GUI_SIMPLE_TREE=&amp;gt;EVENTID_NODE_KEYPRESS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 07:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465034#M1650735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T07:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465035#M1650736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know - I defined method  SEL_MULTIPLE FOR EVENT NODE_KEYPRESS OF CL_GUI_SIMPLE_TREE IMPORTING NODE_KEY KEY, and implementation   METHOD SEL_MULTIPLE.  read table ztree_tab into zline with key node_key = node_key.&lt;/P&gt;&lt;P&gt;I put a breakpoint at read table ztree_tab... but the program didn't stop there (it does stop at breakpoints in NODE_DOUBLE_CLICK and EXPAND_NO_CHILDREN)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 07:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465035#M1650736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T07:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465036#M1650737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are plenty of programs using this event (do a "where used" on the event): e.g. PHREIC_CATEG_TREE, ... However I don't really understand his use.. not so sure it will help you with your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, can't you use the method GET_SELECTED_NODES?? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kr,&lt;/P&gt;&lt;P&gt;m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manu D'Haeyer on Dec 28, 2011 9:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 08:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465036#M1650737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T08:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information from tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465037#M1650738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that did it. It's so simple, once I found the right place:&lt;/P&gt;&lt;P&gt; in PAI on exit-command: CALL METHOD G_TREE-&amp;gt;GET_SELECTED_NODES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone who answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 13:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-information-from-tree-display/m-p/8465037#M1650738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-12-28T13:09:37Z</dc:date>
    </item>
  </channel>
</rss>

