<?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: Error using TREE class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376536#M1236707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cardoso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of Tree models for contructing Tree. For the following reasons:-&lt;/P&gt;&lt;P&gt;- Easy to use methods&lt;/P&gt;&lt;P&gt;- NODE_KEY is a string and hence any no. of characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the 3 classes you can use for Tree model:-&lt;/P&gt;&lt;P&gt;- CL_SIMPLE_TREE_MODEL&lt;/P&gt;&lt;P&gt;- CL_COLUMN_TREE_MODEL&lt;/P&gt;&lt;P&gt;- CL_ITEM_TREE_MODEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demo programs:-&lt;/P&gt;&lt;P&gt;- SAPSIMPLE_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;- SAPCOLUMN_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;- SAPTLIST_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer thread :-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6634590"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2009 08:41:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-25T08:41:02Z</dc:date>
    <item>
      <title>Error using TREE class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376533#M1236704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;there is a demo available showing how to use trees in ABAP Objects. This demo program name is DEMO_ABAP_OBJECTS_CONTROLS. I'm trying to customize this demo changing the select statement to get values from table MARA. I'm receiving a dump error with the message "MESSAGE_TYPE_X". I've tried even to use another fields but I'm still receiving this error. Do you have some idea why this is working only with the table shown in the demo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 04:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376533#M1236704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T04:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error using TREE class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376534#M1236705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I think probably some value is comming repeated and as is not possible to insert duplicate keys, then, the dump is comming. The field "node_key" holds only 12 characters, so, values are truncated to insert them in the field. Probably when some values are truncated, the duplication occurrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think something like this is happening:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value 1 : AAAAAAAAAAAAAAAAAA&lt;/P&gt;&lt;P&gt;value 2: AAAAAAAAAAAABBBBBB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when truncate occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value 1 : AAAAAAAAAAAA&lt;/P&gt;&lt;P&gt;value 2: AAAAAAAAAAAA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, duplicate key and dump error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure, but, may be this is the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 05:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376534#M1236705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T05:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error using TREE class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376535#M1236706</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 guess you are quite close to the root cause of this dump. Assuming that you are using MATNR (Char18) as key for your nodes you should use only the last 12 characters of the MATNR (assumption: only numeric material numbers).&lt;/P&gt;&lt;P&gt;Otherwise I recommend to use an arbitrary key (counter) for the node key and add MATNR as (hidden) item to your tree.&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>Wed, 25 Mar 2009 08:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376535#M1236706</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-03-25T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error using TREE class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376536#M1236707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cardoso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of Tree models for contructing Tree. For the following reasons:-&lt;/P&gt;&lt;P&gt;- Easy to use methods&lt;/P&gt;&lt;P&gt;- NODE_KEY is a string and hence any no. of characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the 3 classes you can use for Tree model:-&lt;/P&gt;&lt;P&gt;- CL_SIMPLE_TREE_MODEL&lt;/P&gt;&lt;P&gt;- CL_COLUMN_TREE_MODEL&lt;/P&gt;&lt;P&gt;- CL_ITEM_TREE_MODEL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Demo programs:-&lt;/P&gt;&lt;P&gt;- SAPSIMPLE_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;- SAPCOLUMN_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;- SAPTLIST_TREE_MODEL_DEMO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer thread :-&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6634590"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 08:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-tree-class/m-p/5376536#M1236707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-25T08:41:02Z</dc:date>
    </item>
  </channel>
</rss>

