<?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 folder symbol when handling node_double_click in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273423#M782558</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 am using the class cl_gui_alv_tree to display tree structure.&lt;/P&gt;&lt;P&gt;I am getting folder symbols in the tree structure ,I have to remove these.&lt;/P&gt;&lt;P&gt;how to do???.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing is I have to handle the event node_double_click.&lt;/P&gt;&lt;P&gt;it is triggered if I double click on folder symbol only.&lt;/P&gt;&lt;P&gt;if I remove the folder symbol how to handle this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please very very very urjent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Jan 2008 07:04:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-06T07:04:13Z</dc:date>
    <item>
      <title>folder symbol when handling node_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273423#M782558</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 am using the class cl_gui_alv_tree to display tree structure.&lt;/P&gt;&lt;P&gt;I am getting folder symbols in the tree structure ,I have to remove these.&lt;/P&gt;&lt;P&gt;how to do???.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing is I have to handle the event node_double_click.&lt;/P&gt;&lt;P&gt;it is triggered if I double click on folder symbol only.&lt;/P&gt;&lt;P&gt;if I remove the folder symbol how to handle this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please very very very urjent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 07:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273423#M782558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T07:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: folder symbol when handling node_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273424#M782559</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;I doubt that you can leave out the node icons. Check the ADD_NODE(S) method or the structure for defining the node layout for fields NODE_IMAGE and NODE_EXPANDED_IMAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to react on double-clicking on items register event &lt;STRONG&gt;ITEM_DOUBLE_CLICK&lt;/STRONG&gt;.&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 09:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273424#M782559</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-06T09:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: folder symbol when handling node_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273425#M782560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u very much,&lt;/P&gt;&lt;P&gt;can u also explain me how to capture the whole row.&lt;/P&gt;&lt;P&gt;i.e if I double click on image it is going now but I want to do this when i click any where on the row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2008 12:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273425#M782560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-06T12:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: folder symbol when handling node_double_click</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273426#M782561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srilakshmi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double-click in an ALV tree you always get the &lt;STRONG&gt;node key&lt;/STRONG&gt; as input for the event handler methods. Therefore, I use a simple trick to retrieve the entire row from the node key:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
" Assumption: ALV tree is used to display customers stored in table KNB1.

" Note: define additional fields to your outtab itab for the node key (and parent node key)
TYPES: BEGIN OF ty_s_outtab.
INCLUDE TYPE knb1   AS customer.
TYPES: node_key       TYPE tm_nodekey.  " not sure if this is the correct type -&amp;gt; replace if necessary
TYPES: parent_key     TYPE tm_nodekey.
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab   TYPE STANDARD TABLE OF ty_s_outtab 
                                 WITH DEFAULT KEY.

DATA:
  gt_outtab    TYPE ty_t_outtab.   " itab for ALV tree data


...
" Fill the ALV tree
DATA:
  ld_node_Key TYPE tm_nodekey,
  ld_parent_key TYPE tm_Nodekey,
*
  lt_knb1      TYPE STANDARD TABLE OF knb1,
  ls_knb1     TYPE knb1,
  ls_outtab   TYPE ty_s_outtab.

  LOOP AT lt_knb1 INTO ls_knb1.
    CLEAR: ls_outtab.
  
    ls_outtab-customer = ls_knb1.

    CALL METHOD go_tree-&amp;gt;add_node
      EXPORTING
        ...
        relatkey = ld_parent_key
      IMPORTING
        node_key = ld_node_key.

    ls_outtab-node_key = ld_node_key.  " returned from ADD_NODE method
    ls_outtab-parent_key = ld_parent_key.
    
    MODIFY gt_outtab FROM ls_outtab
      TRANSPORTING node_key   parent_key
    WHERE ( bukrs = ls_knb1-bukrs  
    AND         kunnr = ls_Knb1-kunnr ).
  ENDLOOP.


" Retrieve entire row in event handler method by node key
  METHOD handle_node_double_click.
  " define local data
    DATA:
      ls_knb1     TYPE knb1,
      ls_outtab   TYPE ty_s_outtab.

      READ TABLE gt_outtab INTO ls_outtab
                WITH KEY node_key = node_key.
      IF ( syst-subrc = 0 ).
        ls_Knb1 = ls_outtab-customer.
      ENDIF.
...
  ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2008 04:39:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/folder-symbol-when-handling-node-double-click/m-p/3273426#M782561</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-07T04:39:47Z</dc:date>
    </item>
  </channel>
</rss>

