<?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: Simple tree view control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969138#M69267</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;GO through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kindly reward points and close the thread if ur problem got solved or else revert back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2005 08:29:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-09-23T08:29:07Z</dc:date>
    <item>
      <title>Simple tree view control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969136#M69265</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 am going through the example SAPSIMPLE_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;could some one give me a insight look at this areas&lt;/P&gt;&lt;P&gt;1.In export parameter we used 'node_selection_mode = cl_simple_tree_model=&amp;gt;node_sel_mode_single' creating an instance of gtree ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create a simple tree model instance&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_tree&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;node_selection_mode = cl_simple_tree_model=&amp;gt;node_sel_mode_single&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.wat does this mean &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the view (control) of the tree model&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_tree-&amp;gt;create_tree_control&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = g_custom_container&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;lifetime_error = 1&lt;/P&gt;&lt;P&gt;cntl_system_error = 2&lt;/P&gt;&lt;P&gt;create_error = 3&lt;/P&gt;&lt;P&gt;failed = 4&lt;/P&gt;&lt;P&gt;tree_control_already_created = 5.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE a001(s).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.how are events handeled .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;define the events which will be passed to the backend&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;" node double click&lt;/P&gt;&lt;P&gt;event-eventid = cl_simple_tree_model=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;event-appl_event = 'X'. " process PAI if event occurs&lt;/P&gt;&lt;P&gt;APPEND event TO events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;events = events&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;illegal_event_combination = 1&lt;/P&gt;&lt;P&gt;unknown_event = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE a001(s).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;4.for event DOUBLE_CLICK this it uses an attribute which is unique eventid , how can i find eventids for other events &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;azee.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 07:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969136#M69265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T07:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tree view control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969137#M69266</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;1- You should define a your local class  for the events and in your top define a variable like that class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_MY_EVENT DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: G_APPLICATION      TYPE REF TO LCL_MY_EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CLASS DEFINTION/IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_MY_EVENT DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;      HANDLE_NODE_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt;        FOR EVENT NODE_DOUBLE_CLICK&lt;/P&gt;&lt;P&gt;        OF CL_GUI_SIMPLE_TREE&lt;/P&gt;&lt;P&gt;        IMPORTING NODE_KEY,&lt;/P&gt;&lt;P&gt;      ...........&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS LCL_MY_CLASS IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD  HANDLE_NODE_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;    ............&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2- you should add the piece code to active the event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_tree-&amp;gt;set_registered_events&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;events = events&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;illegal_event_combination = 1&lt;/P&gt;&lt;P&gt;unknown_event = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE a001(s).&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET HANDLER G_APPLICATION-&amp;gt;HANDLE_NODE_DOUBLE_CLICK  FOR G_TREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 07:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969137#M69266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T07:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tree view control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969138#M69267</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;GO through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/alv/alvtree.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Kindly reward points and close the thread if ur problem got solved or else revert back with queries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 08:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969138#M69267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tree view control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969139#M69268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;      Thanx for ur reply ,well could u be a bit more elaborate in this areas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.In export parameter we used 'node_selection_mode = cl_simple_tree_model=&amp;gt;node_sel_mode_single' creating an instance of gtree ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*create a simple tree model instance&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_tree&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;node_selection_mode = cl_simple_tree_model=&amp;gt;node_sel_mode_single&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.wat does this mean &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create the view (control) of the tree model&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Wat is event-eventid ,For event DOUBLE_CLICK it uses an attribute which is unique eventid , how can i find eventids for other events &lt;/P&gt;&lt;P&gt;event-eventid = cl_simple_tree_model=&amp;gt;eventid_node_double_click.&lt;/P&gt;&lt;P&gt;event-appl_event = 'X'. " process PAI if event occurs&lt;/P&gt;&lt;P&gt;APPEND event TO events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Azee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 14:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969139#M69268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple tree view control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969140#M69269</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;1. You're creating your tree in which only single &lt;/P&gt;&lt;P&gt;   selection (of node) is allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class cl_simple_tree_model has a constant static attribute (CLASS-DATA)  called node_sel_mode_single whose value is 0, so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_tree&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      node_selection_mode =             &lt;/P&gt;&lt;P&gt;            cl_simple_tree_model=&amp;gt;node_sel_mode_single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_tree&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;       node_selection_mode = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_simple_tree_model=&amp;gt;node_sel_mode_single mean you want use attribute node_sel_mode_single of class cl_simple_tree_model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. To show a TREE needs a customer container, so you &lt;/P&gt;&lt;P&gt;   create a screen with a container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the data g_custom_container, it should be filled with the name of container. You can see the container by screen painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. See the class cl_simple_tree_model to find other event by transaction SE24;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: max bianchi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2005 14:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-tree-view-control/m-p/969140#M69269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-23T14:30:04Z</dc:date>
    </item>
  </channel>
</rss>

