<?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: problem in function module for expand in tree display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313157#M1636653</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;Please pass the value as below with minor changes as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tree TYPE cntl_handle,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TREE_HANDLE TYPE CNTL_HANDLE.&lt;/P&gt;&lt;P&gt;data: local_rep like sy-repid,&lt;/P&gt;&lt;P&gt;local_scr like sy-dynnr.&lt;/P&gt;&lt;P&gt;constants: dynpro_default       type i value -1.&lt;/P&gt;&lt;P&gt;data: node_table type node_table_type,&lt;/P&gt;&lt;P&gt;constants : TREEV_NODE_SEL_MODE_SINGLE TYPE I VALUE 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'TREEV_CREATE_SIMPLE_TREE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            owner_repid                    = local_rep&lt;/P&gt;&lt;P&gt;            dynnr                          = local_scr&lt;/P&gt;&lt;P&gt;            left                           = 0&lt;/P&gt;&lt;P&gt;            top                            = 0&lt;/P&gt;&lt;P&gt;            width                          = 45&lt;/P&gt;&lt;P&gt;            height                         = 22&lt;/P&gt;&lt;P&gt;            no_flush                       = space&lt;/P&gt;&lt;P&gt;            shellstyle                     = style&lt;/P&gt;&lt;P&gt;            parentid                       = dynpro_default&lt;/P&gt;&lt;P&gt;            node_selection_mode            = treev_node_sel_mode_single&lt;/P&gt;&lt;P&gt;            node_table_structure_name      = 'MTREESNODE'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            node_table                     = node_table&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            handle                         = tree_handle&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            create_error                   = 1&lt;/P&gt;&lt;P&gt;            tree_control_not_existing      = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error              = 3&lt;/P&gt;&lt;P&gt;            failed                         = 4&lt;/P&gt;&lt;P&gt;            illegal_node_selection_mode    = 5&lt;/P&gt;&lt;P&gt;            missing_node_structure_name    = 6&lt;/P&gt;&lt;P&gt;            error_in_node_table            = 7&lt;/P&gt;&lt;P&gt;            dp_error                       = 8&lt;/P&gt;&lt;P&gt;            illegal_owner_repid            = 9&lt;/P&gt;&lt;P&gt;            table_structure_name_not_found = 10&lt;/P&gt;&lt;P&gt;            others                         = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-745 sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TREEV_EXPAND_ROOT_NODES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            handle              = tree_handle&lt;/P&gt;&lt;P&gt;            level_count         = 2&lt;/P&gt;&lt;P&gt;            expand_all_children = 'X'&lt;/P&gt;&lt;P&gt;            no_flush            = ' '&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            failed              = 1&lt;/P&gt;&lt;P&gt;            illegal_level_count = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error   = 3&lt;/P&gt;&lt;P&gt;            others              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-743 sy-subrc.&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;If it is helpfull means reward me with some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2011 07:14:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-14T07:14:57Z</dc:date>
    <item>
      <title>problem in function module for expand in tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313155#M1636651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have found a function module which can expand all nodes of the tree.&lt;/P&gt;&lt;P&gt;it is TREEV_EXPAND_ROOT_NODES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TREEV_EXPAND_ROOT_NODES' "Expands all Root Nodes&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    handle =                    " cntl_handle   Handle for Tree Control&lt;/P&gt;&lt;P&gt;    level_count =               " i             Number of Levels to be Expanded&lt;/P&gt;&lt;P&gt;    expand_all_children =       " c&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  no_flush =                  " c&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    FAILED = 1                  "               General Error&lt;/P&gt;&lt;P&gt;    ILLEGAL_LEVEL_COUNT = 2    . "               LEVEL_COUNT Must Be GE 0&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt; for above function call what value should i give for "handle parameter".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 09:36:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313155#M1636651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T09:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem in function module for expand in tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313156#M1636652</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;Please pass the value as below with minor changes as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tree TYPE cntl_handle,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TREE_HANDLE TYPE CNTL_HANDLE.&lt;/P&gt;&lt;P&gt;data: local_rep like sy-repid,&lt;/P&gt;&lt;P&gt;local_scr like sy-dynnr.&lt;/P&gt;&lt;P&gt;constants: dynpro_default       type i value -1.&lt;/P&gt;&lt;P&gt;data: node_table type node_table_type,&lt;/P&gt;&lt;P&gt;constants : TREEV_NODE_SEL_MODE_SINGLE TYPE I VALUE 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'TREEV_CREATE_SIMPLE_TREE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            owner_repid                    = local_rep&lt;/P&gt;&lt;P&gt;            dynnr                          = local_scr&lt;/P&gt;&lt;P&gt;            left                           = 0&lt;/P&gt;&lt;P&gt;            top                            = 0&lt;/P&gt;&lt;P&gt;            width                          = 45&lt;/P&gt;&lt;P&gt;            height                         = 22&lt;/P&gt;&lt;P&gt;            no_flush                       = space&lt;/P&gt;&lt;P&gt;            shellstyle                     = style&lt;/P&gt;&lt;P&gt;            parentid                       = dynpro_default&lt;/P&gt;&lt;P&gt;            node_selection_mode            = treev_node_sel_mode_single&lt;/P&gt;&lt;P&gt;            node_table_structure_name      = 'MTREESNODE'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            node_table                     = node_table&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            handle                         = tree_handle&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            create_error                   = 1&lt;/P&gt;&lt;P&gt;            tree_control_not_existing      = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error              = 3&lt;/P&gt;&lt;P&gt;            failed                         = 4&lt;/P&gt;&lt;P&gt;            illegal_node_selection_mode    = 5&lt;/P&gt;&lt;P&gt;            missing_node_structure_name    = 6&lt;/P&gt;&lt;P&gt;            error_in_node_table            = 7&lt;/P&gt;&lt;P&gt;            dp_error                       = 8&lt;/P&gt;&lt;P&gt;            illegal_owner_repid            = 9&lt;/P&gt;&lt;P&gt;            table_structure_name_not_found = 10&lt;/P&gt;&lt;P&gt;            others                         = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-745 sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TREEV_EXPAND_ROOT_NODES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            handle              = tree_handle&lt;/P&gt;&lt;P&gt;            level_count         = 2&lt;/P&gt;&lt;P&gt;            expand_all_children = 'X'&lt;/P&gt;&lt;P&gt;            no_flush            = ' '&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            failed              = 1&lt;/P&gt;&lt;P&gt;            illegal_level_count = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error   = 3&lt;/P&gt;&lt;P&gt;            others              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-743 sy-subrc.&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;If it is helpfull means reward me with some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 07:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313156#M1636652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T07:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem in function module for expand in tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313157#M1636653</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;Please pass the value as below with minor changes as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: tree TYPE cntl_handle,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: TREE_HANDLE TYPE CNTL_HANDLE.&lt;/P&gt;&lt;P&gt;data: local_rep like sy-repid,&lt;/P&gt;&lt;P&gt;local_scr like sy-dynnr.&lt;/P&gt;&lt;P&gt;constants: dynpro_default       type i value -1.&lt;/P&gt;&lt;P&gt;data: node_table type node_table_type,&lt;/P&gt;&lt;P&gt;constants : TREEV_NODE_SEL_MODE_SINGLE TYPE I VALUE 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'TREEV_CREATE_SIMPLE_TREE'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            owner_repid                    = local_rep&lt;/P&gt;&lt;P&gt;            dynnr                          = local_scr&lt;/P&gt;&lt;P&gt;            left                           = 0&lt;/P&gt;&lt;P&gt;            top                            = 0&lt;/P&gt;&lt;P&gt;            width                          = 45&lt;/P&gt;&lt;P&gt;            height                         = 22&lt;/P&gt;&lt;P&gt;            no_flush                       = space&lt;/P&gt;&lt;P&gt;            shellstyle                     = style&lt;/P&gt;&lt;P&gt;            parentid                       = dynpro_default&lt;/P&gt;&lt;P&gt;            node_selection_mode            = treev_node_sel_mode_single&lt;/P&gt;&lt;P&gt;            node_table_structure_name      = 'MTREESNODE'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            node_table                     = node_table&lt;/P&gt;&lt;P&gt;       changing&lt;/P&gt;&lt;P&gt;            handle                         = tree_handle&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            create_error                   = 1&lt;/P&gt;&lt;P&gt;            tree_control_not_existing      = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error              = 3&lt;/P&gt;&lt;P&gt;            failed                         = 4&lt;/P&gt;&lt;P&gt;            illegal_node_selection_mode    = 5&lt;/P&gt;&lt;P&gt;            missing_node_structure_name    = 6&lt;/P&gt;&lt;P&gt;            error_in_node_table            = 7&lt;/P&gt;&lt;P&gt;            dp_error                       = 8&lt;/P&gt;&lt;P&gt;            illegal_owner_repid            = 9&lt;/P&gt;&lt;P&gt;            table_structure_name_not_found = 10&lt;/P&gt;&lt;P&gt;            others                         = 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-745 sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TREEV_EXPAND_ROOT_NODES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            handle              = tree_handle&lt;/P&gt;&lt;P&gt;            level_count         = 2&lt;/P&gt;&lt;P&gt;            expand_all_children = 'X'&lt;/P&gt;&lt;P&gt;            no_flush            = ' '&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            failed              = 1&lt;/P&gt;&lt;P&gt;            illegal_level_count = 2&lt;/P&gt;&lt;P&gt;            cntl_system_error   = 3&lt;/P&gt;&lt;P&gt;            others              = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e645 with text-743 sy-subrc.&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;If it is helpfull means reward me with some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chitra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 07:14:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313157#M1636653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem in function module for expand in tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313158#M1636654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi chitra, &lt;/P&gt;&lt;P&gt;actually i have created tree display using class cl_gui_simple_tree.&lt;/P&gt;&lt;P&gt;i have used program sapsimple_tree_control_demo.&lt;/P&gt;&lt;P&gt;hence need to expand all nodes of tree.&lt;/P&gt;&lt;P&gt;how should i do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 08:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-function-module-for-expand-in-tree-display/m-p/8313158#M1636654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T08:15:04Z</dc:date>
    </item>
  </channel>
</rss>

