<?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: Relative node for insert not found in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318924#M508828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;Yes it appears only certain time, don't know why ...&lt;/P&gt;&lt;P&gt;In this case, I have a Short Dump "MESSAGE_TYPE_X" ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 08:27:27 GMT</pubDate>
    <dc:creator>former_member611006</dc:creator>
    <dc:date>2007-05-23T08:27:27Z</dc:date>
    <item>
      <title>Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318920#M508824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I'm using a Tree Control and sometimes this error appears (I use Automation Trace) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;309=Automation(Error):    *****************************ERROR OCCURED IN MODULE: [SAP Table Tree Control ]************************************************************************************************************
&amp;lt;309=Automation(Error):    PROGRAM_ID                 |MODULE_NAME                 |METHOD_NAME      |ERROR DESCRIPTION                      |VERSION           |GUI VERSION        |MODULE_PATH                     |
&amp;lt;309=Automation(Error):    *******************************************************************************************************************************************************************************************
&amp;lt;309=Automation(Error):    SAP.TableTreeControl.1     |SAP Table Tree Control      |AddItemTable     |Relative node for insert not found     |6405.5.23.308     |6405.5.23.1024     |c:sappcSapGuiWDTTREE.OCX     |
&amp;lt;309=Automation(Error):    *******************************************************************************************************************************************************************************************
&amp;lt;309=Automation(Error):    

&amp;lt;309=Automation(Error):    Exception fire by :WDTTREE
&amp;lt;309=Automation(Error):    Exception info:Relative node for insert not found
&amp;lt;309=Automation(Error):    Exception code:0
&amp;lt;309=Automation(Error):                     Error occured at Verb  : AddItemTable
&amp;lt;309=Automation(Error):                                      Object: 15
&amp;lt;309=Automation(Error):    SAPAWRFC leaving RfcFlushOle with RfcRaise(CALL_METHOD_FAILED)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help ?&lt;/P&gt;&lt;P&gt;Thanks for support.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 08:42:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318920#M508824</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2007-05-22T08:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318921#M508825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It only means you want to update the items of one node, but this node is not in your tree...&lt;/P&gt;&lt;P&gt;Could you please post your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 09:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318921#M508825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T09:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318922#M508826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;thanks for the quick answer ...&lt;/P&gt;&lt;P&gt;Here is the code for building the Tree :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LOOP AT tab_out INTO wa_out.
    MOVE sy-tabix TO my_line.
    MOVE sy-tabix TO my_counter.

    IF wa_out-stufe &amp;lt; bk_stufe.
      READ TABLE tab_tabix INTO my_parent INDEX wa_out-stufe.
      MOVE wa_out-stufe TO bk_stufe.
    ENDIF.

    IF wa_out-isbgru = 'X'. 
      MOVE my_line TO my_node.
      MOVE wa_out-stufe TO wa_tabix.
      ADD 1 TO wa_tabix.
      MODIFY tab_tabix FROM my_node INDEX wa_tabix.
      MOVE wa_tabix TO bk_stufe.

      node-node_key = my_node.                              "#EC NOTEXT
      node-relatkey = my_parent.
      node-relatship = cl_gui_column_tree=&amp;gt;relat_last_child.
      node-hidden = ' '.
      node-disabled = ' '.
      node-isfolder = 'X'.
      CLEAR node-n_image.
      CLEAR node-exp_image.
      node-expander = 'X'.
      APPEND node TO node_table.

      my_parent = my_node.
      my_line = my_node.

    ELSE.
      CLEAR node.
      node-node_key = my_line.                              "#EC NOTEXT
      node-relatkey = my_parent.
      node-relatship = cl_gui_column_tree=&amp;gt;relat_last_child.
      IF wa_out-txt = 'X'.
        node-n_image = icon_text_ina.
      ELSE.
        node-n_image = icon_ppe_vnode.
      ENDIF.
      APPEND node TO node_table.
    ENDIF.

    CLEAR item.
    item-node_key = my_line.
    item-item_name = 'stufe'.
    item-class = cl_gui_column_tree=&amp;gt;item_class_text.
    item-text = wa_out-stufe.
    APPEND item TO item_table.

    CLEAR item.
    item-node_key = my_line.
    item-item_name = 'posnr'.     " Item of Column 'Column1'
    item-class = cl_gui_column_tree=&amp;gt;item_class_text. " Text Item
    item-text = wa_out-item_no.
    APPEND item TO item_table.

    CLEAR item.
    item-node_key = my_line.
    item-item_name = 'change'.
    item-class = cl_gui_column_tree=&amp;gt;item_class_text.
    item-text = wa_out-change_no.
    APPEND item TO item_table.

    CLEAR item.
    item-node_key = my_line.
    item-item_name = 'kstand'.
    item-class = cl_gui_column_tree=&amp;gt;item_class_text.
    item-text = wa_out-mstae.
    APPEND item TO item_table.

    IF wa_out-txt = 'X'.
      CLEAR item.
      item-node_key = my_line.
      item-item_name = 'column1'.     " Item of Column 'Column1'
      item-class = cl_gui_column_tree=&amp;gt;item_class_text. " Text Item
      item-text = wa_out-txt_line.
      APPEND item TO item_table.
    ELSE.
      CLEAR item.
      item-node_key = my_line.
      item-item_name = 'column1'.     " Item of Column 'Column1'
      item-class = cl_gui_column_tree=&amp;gt;item_class_text. " Text Item
      item-text = wa_out-component.
      APPEND item TO item_table.

      CLEAR item.
      item-node_key = my_line.
      item-item_name = 'menge'.
      item-class = cl_gui_column_tree=&amp;gt;item_class_text.
      item-text = wa_out-comp_qty.
      APPEND item TO item_table.

      CLEAR item.
      item-node_key = my_line.
      item-item_name = 'meins'.
      item-class = cl_gui_column_tree=&amp;gt;item_class_text.
      item-text = wa_out-comp_unit.
      APPEND item TO item_table.

      CLEAR item.
      item-node_key = my_line.
      item-item_name = 'txt'.
      item-class = cl_gui_column_tree=&amp;gt;item_class_text.
      item-text = wa_out-item_text1.
      APPEND item TO item_table.

    ENDIF.
  ENDLOOP.

  CALL METHOD wa_tree-&amp;gt;add_nodes_and_items
    EXPORTING
      node_table                     = node_table
      item_table                     = item_table
      item_table_structure_name      = 'MTREEITM'
    EXCEPTIONS
      failed                         = 1
      cntl_system_error              = 3
      error_in_tables                = 4
      dp_error                       = 5
      table_structure_name_not_found = 6.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    WRITE:/ 'error'.
  ENDIF.
  
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 12:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318922#M508826</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2007-05-22T12:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318923#M508827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Without the content of tab_out and tabix, I can't really understand how it works...&lt;/P&gt;&lt;P&gt;Does it happens only certain time?&lt;/P&gt;&lt;P&gt;Or Could you check when it dumps the content of "node-relatkey" in your node_table and see why it contains an invalid key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 15:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318923#M508827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318924#M508828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Walter,&lt;/P&gt;&lt;P&gt;Yes it appears only certain time, don't know why ...&lt;/P&gt;&lt;P&gt;In this case, I have a Short Dump "MESSAGE_TYPE_X" ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetz,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318924#M508828</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2007-05-23T08:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Relative node for insert not found</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318925#M508829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I've got the same problem in another program ... Very strange !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 07:00:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/relative-node-for-insert-not-found/m-p/2318925#M508829</guid>
      <dc:creator>former_member611006</dc:creator>
      <dc:date>2007-07-11T07:00:03Z</dc:date>
    </item>
  </channel>
</rss>

