<?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: Refresh Tree ALV Container in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736019#M320096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course....&lt;/P&gt;&lt;P&gt;I have 2 screens...on the first one i'm having an ALV TREE and on the second one the detail from the first screen using a TABLE CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first one the root is the day and the nodes are hours/minutes separated by 15 minutes ,each node has the option to add two lines through a bottom &lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Day 20.12.2006&lt;/P&gt;&lt;P&gt;   08:00&lt;/P&gt;&lt;P&gt;     Placa 1    Order Sales      Name      Date Etc (informacion lines)&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;   08:15&lt;/P&gt;&lt;P&gt;     Placa 1&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;   08:30&lt;/P&gt;&lt;P&gt;     Placa 1&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;when I pick the node that is below and select the buttom i can reasign the coresponding hour,this is done on the second screen doindg and executing BAPIS in order to generate Service orders(CS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done correctly,but when i click the back buttom and it takes me to the former screen,viewing the ALVTREE still withthe former information without being updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried executing and search REFRESH ,but I haven't gotten to find  out how to do this action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please if you need some extra information pls let me know...&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 06:47:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-21T06:47:30Z</dc:date>
    <item>
      <title>Refresh Tree ALV Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736017#M320094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts..I'm having problems to refresh a TREE ALV Container. I have 2 screens...the first that contain the TREE ALV and when I select once option I can go to a Table Control (Screen 300) and update information from the TREE but I can't control the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0200  OUTPUT&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  module STATUS_0200 output.&lt;/P&gt;&lt;P&gt;    set pf-status 'ST_0200'.&lt;/P&gt;&lt;P&gt;    if G_TREE is initial.&lt;/P&gt;&lt;P&gt;      perform CREATE_AND_INIT_TREE.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endmodule.                 " STATUS_0200  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CREATE_AND_INIT_TREE&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  form CREATE_AND_INIT_TREE.&lt;/P&gt;&lt;P&gt;    data: NODE_TABLE type TREEV_NTAB,&lt;/P&gt;&lt;P&gt;          ITEM_TABLE type ITEM_TABLE_TYPE,&lt;/P&gt;&lt;P&gt;          EVENT type CNTL_SIMPLE_EVENT,&lt;/P&gt;&lt;P&gt;          EVENTS type CNTL_SIMPLE_EVENTS,&lt;/P&gt;&lt;P&gt;          HIERARCHY_HEADER type TREEV_HHDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a container for the tree control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object G_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        " the container is linked to the custom control with the&lt;/P&gt;&lt;P&gt;        " name 'TREE_CONTAINER' on the dynpro&lt;/P&gt;&lt;P&gt;        CONTAINER_NAME = 'TREE_CONTAINER'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        CNTL_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;        LIFETIME_ERROR = 4&lt;/P&gt;&lt;P&gt;        LIFETIME_DYNPRO_DYNPRO_LINK = 5.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;setup the hierarchy header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    HIERARCHY_HEADER-HEADING = 'Jerarquía'.                 "#EC NOTEXT&lt;/P&gt;&lt;P&gt;    " heading&lt;/P&gt;&lt;P&gt;    HIERARCHY_HEADER-WIDTH = 30.         " width: 30 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a tree control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;After construction, the control contains one column in the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;hierarchy area. The name of this column&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;is defined via the constructor parameter HIERACHY_COLUMN_NAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    create object G_TREE&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        PARENT              = G_CUSTOM_CONTAINER&lt;/P&gt;&lt;P&gt;        NODE_SELECTION_MODE = CL_GUI_COLUMN_TREE=&amp;gt;NODE_SEL_MODE_SINGLE&lt;/P&gt;&lt;P&gt;        ITEM_SELECTION = 'X'&lt;/P&gt;&lt;P&gt;        HIERARCHY_COLUMN_NAME = 'Column1'&lt;/P&gt;&lt;P&gt;        HIERARCHY_HEADER = HIERARCHY_HEADER&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR           = 1&lt;/P&gt;&lt;P&gt;        CREATE_ERROR                = 2&lt;/P&gt;&lt;P&gt;        FAILED                      = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_NODE_SELECTION_MODE = 4&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME         = 5&lt;/P&gt;&lt;P&gt;        LIFETIME_ERROR              = 6.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&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_GUI_COLUMN_TREE=&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;    " item double click&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_ITEM_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " expand no children&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_EXPAND_NO_CHILDREN.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " link click&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_LINK_CLICK.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " button click&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_BUTTON_CLICK.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " checkbox change&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_CHECKBOX_CHANGE.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " header click&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_HEADER_CLICK.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&lt;/P&gt;&lt;P&gt;    append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    " header click&lt;/P&gt;&lt;P&gt;    EVENT-EVENTID = CL_GUI_COLUMN_TREE=&amp;gt;EVENTID_HEADER_CLICK.&lt;/P&gt;&lt;P&gt;    EVENT-APPL_EVENT = 'X'.&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;    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;        CNTL_ERROR                = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR         = 2&lt;/P&gt;&lt;P&gt;        ILLEGAL_EVENT_COMBINATION = 3.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;assign event handlers in the application class to each desired event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_NODE_DOUBLE_CLICK for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_ITEM_DOUBLE_CLICK for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_EXPAND_NO_CHILDREN for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_LINK_CLICK for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_BUTTON_CLICK for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_CHECKBOX_CHANGE for G_TREE.&lt;/P&gt;&lt;P&gt;    set handler G_APPLICATION-&amp;gt;HANDLE_HEADER_CLICK for G_TREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;insert two additional columns&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Column2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column2'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 25&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Cliente'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Column3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column3'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 35&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Nombre'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column4'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 14&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Placa'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column5'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 30&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Descripción'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column6'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 18&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Año Vehículo'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column7'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 14&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Aviso'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_COLUMN&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NAME                         = 'Column8'&lt;/P&gt;&lt;P&gt;        WIDTH                        = 24&lt;/P&gt;&lt;P&gt;        HEADER_TEXT                  = 'Estado de la Cita'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        COLUMN_EXISTS                = 1&lt;/P&gt;&lt;P&gt;        ILLEGAL_COLUMN_NAME          = 2&lt;/P&gt;&lt;P&gt;        TOO_MANY_COLUMNS             = 3&lt;/P&gt;&lt;P&gt;        ILLEGAL_ALIGNMENT            = 4&lt;/P&gt;&lt;P&gt;        DIFFERENT_COLUMN_TYPES       = 5&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR            = 6&lt;/P&gt;&lt;P&gt;        FAILED                       = 7&lt;/P&gt;&lt;P&gt;        PREDECESSOR_COLUMN_NOT_FOUND = 8.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add some nodes to the tree control&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOTE: the tree control does not store data at the backend. If an&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;application wants to access tree data later, it must store the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;tree data itself.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    perform BUILD_NODE_AND_ITEM_TABLE using NODE_TABLE ITEM_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method G_TREE-&amp;gt;ADD_NODES_AND_ITEMS&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NODE_TABLE                     = NODE_TABLE&lt;/P&gt;&lt;P&gt;        ITEM_TABLE                     = ITEM_TABLE&lt;/P&gt;&lt;P&gt;        ITEM_TABLE_STRUCTURE_NAME      = 'MTREEITM'&lt;/P&gt;&lt;P&gt;      exceptions&lt;/P&gt;&lt;P&gt;        FAILED                         = 1&lt;/P&gt;&lt;P&gt;        CNTL_SYSTEM_ERROR              = 3&lt;/P&gt;&lt;P&gt;        ERROR_IN_TABLES                = 4&lt;/P&gt;&lt;P&gt;        DP_ERROR                       = 5&lt;/P&gt;&lt;P&gt;        TABLE_STRUCTURE_NAME_NOT_FOUND = 6.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;expand the node with key 'Root'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    call method G_TREE-&amp;gt;EXPAND_NODE&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        NODE_KEY            = 'Root'                        "#EC NOTEXT&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;        NODE_NOT_FOUND      = 4&lt;/P&gt;&lt;P&gt;        CANNOT_EXPAND_LEAF  = 5.&lt;/P&gt;&lt;P&gt;    if SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE A000.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endform.                    " CREATE_AND_INIT_TREE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody can give me tips to solve this problem.....&lt;/P&gt;&lt;P&gt;Thxs &lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 02:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736017#M320094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T02:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Tree ALV Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736018#M320095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;                Can you expalin your problem in details&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel you can mathod frontend_update to update information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 05:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736018#M320095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T05:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Tree ALV Container</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736019#M320096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course....&lt;/P&gt;&lt;P&gt;I have 2 screens...on the first one i'm having an ALV TREE and on the second one the detail from the first screen using a TABLE CONTROL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the first one the root is the day and the nodes are hours/minutes separated by 15 minutes ,each node has the option to add two lines through a bottom &lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Day 20.12.2006&lt;/P&gt;&lt;P&gt;   08:00&lt;/P&gt;&lt;P&gt;     Placa 1    Order Sales      Name      Date Etc (informacion lines)&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;   08:15&lt;/P&gt;&lt;P&gt;     Placa 1&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;   08:30&lt;/P&gt;&lt;P&gt;     Placa 1&lt;/P&gt;&lt;P&gt;     Placa 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;when I pick the node that is below and select the buttom i can reasign the coresponding hour,this is done on the second screen doindg and executing BAPIS in order to generate Service orders(CS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done correctly,but when i click the back buttom and it takes me to the former screen,viewing the ALVTREE still withthe former information without being updated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried executing and search REFRESH ,but I haven't gotten to find  out how to do this action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please if you need some extra information pls let me know...&lt;/P&gt;&lt;P&gt;Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:47:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-tree-alv-container/m-p/1736019#M320096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:47:30Z</dc:date>
    </item>
  </channel>
</rss>

