<?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: Tree display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523292#M1069376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use 'RS_TREE_CONSTRUCT' this function module for construct the tree.&lt;/P&gt;&lt;P&gt;use 'RS_TREE_LIST_DISPLAY' to display the tree .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am giving example &lt;/P&gt;&lt;P&gt;EX:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_TREE_CONSTRUCT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      NODETAB = IT_NODE.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_TREE_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CALLBACK_PROGRAM      = SY-REPID&lt;/P&gt;&lt;P&gt;      CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      SCREEN_START_COLUMN   = 50&lt;/P&gt;&lt;P&gt;      SCREEN_START_LINE     = 50&lt;/P&gt;&lt;P&gt;      SCREEN_END_COLUMN     = 100&lt;/P&gt;&lt;P&gt;      SCREEN_END_LINE       = 100&lt;/P&gt;&lt;P&gt;      USE_CONTROL           = 'L'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this is for usrcommand subroutine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CASE PCOMMAND.&lt;/P&gt;&lt;P&gt;    WHEN 'OPTI'.&lt;/P&gt;&lt;P&gt;      IF PNODE-SELFIELD = 'NAME'.&lt;/P&gt;&lt;P&gt;        MOVE PNODE-NAME TO S_PRODH-LOW.&lt;/P&gt;&lt;P&gt;        MOVE  C_SIGN  TO S_PRODH-SIGN.&lt;/P&gt;&lt;P&gt;        MOVE  C_OPTION TO S_PRODH-OPTION.&lt;/P&gt;&lt;P&gt;        APPEND S_PRODH.&lt;/P&gt;&lt;P&gt;        LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF PNODE-SELFIELD = 'PLUS'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'RS_TREE_EXPAND'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NODE_ID = PNODE-ID.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSEIF PNODE-SELFIELD = 'MINUS'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'RS_TREE_COMPRESS'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NODE_ID = PNODE-ID.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    WHEN 'ECAN'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rayavaram sreekar on Sep 22, 2008 2:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2008 12:23:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-22T12:23:38Z</dc:date>
    <item>
      <title>Tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523290#M1069374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , I have question in tree display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I refresh the tree(after any drag and drop or like so happens) in display, I need the tree to be displayed as it is before. I mean expanded nodes should be expanded and the closed nodes should be closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A , B , and C are the root nodes.&lt;/P&gt;&lt;P&gt;1,2,3 are childs of A, &lt;/P&gt;&lt;P&gt;4,5,6 are childs of B, and&lt;/P&gt;&lt;P&gt;7,8    are childs of C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When tree is displayed first, A and B are expanded and C is closed. If I drag 4 from B and drop it on A, then the tree should get refreshed like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under A        1,2,3,4  and expanded&lt;/P&gt;&lt;P&gt;Under B        5,6        and expanded&lt;/P&gt;&lt;P&gt;Under C        7,8        and closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my tree display , all the root nodes are gets closed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achive this. Suggest me on this please....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Balakrishna.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2008 08:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523290#M1069374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-20T08:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523291#M1069375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call method update_nodes then cl_gui_cfw=&amp;gt;flush().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but do not display tree again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 12:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523291#M1069375</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2008-09-22T12:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tree display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523292#M1069376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use 'RS_TREE_CONSTRUCT' this function module for construct the tree.&lt;/P&gt;&lt;P&gt;use 'RS_TREE_LIST_DISPLAY' to display the tree .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am giving example &lt;/P&gt;&lt;P&gt;EX:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RS_TREE_CONSTRUCT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      NODETAB = IT_NODE.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RS_TREE_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      CALLBACK_PROGRAM      = SY-REPID&lt;/P&gt;&lt;P&gt;      CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      SCREEN_START_COLUMN   = 50&lt;/P&gt;&lt;P&gt;      SCREEN_START_LINE     = 50&lt;/P&gt;&lt;P&gt;      SCREEN_END_COLUMN     = 100&lt;/P&gt;&lt;P&gt;      SCREEN_END_LINE       = 100&lt;/P&gt;&lt;P&gt;      USE_CONTROL           = 'L'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this is for usrcommand subroutine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CASE PCOMMAND.&lt;/P&gt;&lt;P&gt;    WHEN 'OPTI'.&lt;/P&gt;&lt;P&gt;      IF PNODE-SELFIELD = 'NAME'.&lt;/P&gt;&lt;P&gt;        MOVE PNODE-NAME TO S_PRODH-LOW.&lt;/P&gt;&lt;P&gt;        MOVE  C_SIGN  TO S_PRODH-SIGN.&lt;/P&gt;&lt;P&gt;        MOVE  C_OPTION TO S_PRODH-OPTION.&lt;/P&gt;&lt;P&gt;        APPEND S_PRODH.&lt;/P&gt;&lt;P&gt;        LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;      ELSEIF PNODE-SELFIELD = 'PLUS'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'RS_TREE_EXPAND'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NODE_ID = PNODE-ID.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSEIF PNODE-SELFIELD = 'MINUS'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'RS_TREE_COMPRESS'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            NODE_ID = PNODE-ID.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    WHEN 'ECAN'.&lt;/P&gt;&lt;P&gt;      LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rayavaram sreekar on Sep 22, 2008 2:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2008 12:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tree-display/m-p/4523292#M1069376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-22T12:23:38Z</dc:date>
    </item>
  </channel>
</rss>

