Text or hiearchy node?

hi,
i need to report on items hierarchy built in BCS. Am wondering what difference does it make on the reporting front if we make the node in the hiearchy as characteristic or text. How will this effect my reporting performance, its mentainence etc. Since we have option of making the node as text or characteristic, there must be some pros nd cons for it on the reporting side. Kindly advise
thx

Hi Abhinav,
I dont see any performance compared to text or char node. Its for easiness and anyway more levels are always a performance bottleneck. Keep the hierarchy as simple as possible and also anyway you need to add characteristic value or a node even though you have defined many text nodes...esle you will get the characteristic values under node "not assigned".
Anway internally when a node is expanded, its data is fetched and rendered in frontend and hence there will not be any performance issue based on the node types.
Regards,
E

Similar Messages

  • How to read Sales order Item Text of item node?

    Hi Sap Guru's,
    I have urgent requirement, i want to read Sales order item text of item node.
    can anybody give detail code.
    Thanks in Advance,
    Venkat

    hi venkat,
    take a look at this code
    data:
      git_line type standard table of tline.
    data:
      gwa_head type thead,
      gwa_line type tline.
    data:
      v_first type c.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        id                            = '0002'
        language                      = sy-langu
        name                          = '1000000122000010'
        object                        = 'VBBP'
      IMPORTING
        HEADER                        = gwa_head
      tables
        lines                         = git_line
    EXCEPTIONS
       ID                            = 1
       LANGUAGE                      = 2
       NAME                          = 3
       NOT_FOUND                     = 4
       OBJECT                        = 5
       REFERENCE_CHECK               = 6
       WRONG_ACCESS_TO_ARCHIVE       = 7
       OTHERS                        = 8.
    loop at git_line into gwa_line.
      at first.
        move 'X' to v_first.
      endat.
      if v_first eq 'X'.
        write: / gwa_line-tdline+10.
        clear v_first.
      else.
        write: / gwa_line-tdline.
      endif.
    endloop.

  • How to set Tool Tip Text to Tree Node?

    Hi,
    How to set Tool Tip Text to Tree Node in JTree?
    Pls somebody help me to solve it.

    bsampeieri,
    Been here a long time myself. I don't agree with the one post is enough per se. That is to say, sometimes, it helps to post in several groups so that more eyes may see it. A number of forum posters linger in specific forum topics and may not see the post in another forum.
    Now, if in the previous post you/others answered the question and then the OP posted here later, I could see the complaint.
    For the OP, the better way to cross-post is to have one "main" post, then have all the other posts refer back to that one (link to it) so that people aren't duplicating the effort to answer your question(s). A simple "I have cross-posted this to get more eyes on it. Please reply to this question at this post <link here>"

  • Getting text of tree node

    Hi all,
    When I click on any tree node I need to save the node text at the corresponding node in a variable.Can this be done with onTreeClick?How?

    use onNodeClick of treeNode
    capture the event in oninputprocessing to get the id of the node clicked and read the itab (passed to tree) to get the text of the node.
    Regards
    Raja
    close your previous thread
    where is an attachment saved ?

  • Text or characteristic node?

    hi,
    i need to report on items hierarchy built in BCS. Am wondering what difference does it make on the reporting front if we make the node in the hiearchy as characteristic or text. How will this effect my reporting performance, its mentainence etc. Since we have option of making the node as text or characteristic, there must be some pros nd cons for it on the reporting side. Kindly advise
    thx

    refer:
    http://help.sap.com/saphelp_sem350bw/helpdata/en/ad/6b023b6069d22ee10000000a11402f/frameset.htm for significance of each nodes...
    It should be modeled in BW depending on your structure in source system.
    If a node in your source system hierarchy is just a grouping element and nothing can be actually post to it,,then it will go as a text node. ex: cost center group, account group..
    If the node in source system corresponds to a characteristic value then it will be a characteristic node. ex: cost center, GL account
    Edited by: sam hennry on Feb 14, 2008 8:48 AM

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • Lack of texts in hierarchy nodes and leafs for 0ORGUNIT

    Hello experts!
    We have the BCT hierarchy 0ORGUNIT in BW exporting his time-dependent structure from R/3. Now, for some leafes and some nodes above the leaf we have no texts just see the key.
    Has someone an idea what the problem could be? In R/3 we have the text and in master data of 0ORGUNIT we also have the text within the right time period...
    Thanks for help!
    Best reagards,
    Peter

    I'm not sure I understand what you are suggesting. Here is the data we have:
    Hierarchy             Key Figure
    - CC 0001 (node)      30.56
      CC 0001 (leaf)          6.45
      - CC 0002 (node)       24.11
           CC 0002 (leaf)     6.45
           CC 0003 (leaf)     5.72
           CC 0004 (leaf)     7.47
           CC 0005 (leaf)     4.47
    We want the value 6.45 to show up next to the CC 0002 hierarchy node, since that is the value for that cc. And we want the 6.45 to show up against the cc 0001 node rather than adding everything beneath it. What you suggested below - is that a display option in the query, or where do I do it?
    Thanks.

  • How to set the caption text of a node with user object.

    This is my problem for two days below is my sample code. I need to associate object with the tree node but the node is displaying the toString() value of the object. It should display the text I wanna see.
    Please help. I was from the JSP world so Swing is quiet new to me, only this year I got again a project in swing.
    TreeMap treemap = new TreeMap();
    treemap.put("3","3");
    treemap.put("5","4");
    treemap.put("4","4");
    treemap.put("1","1");
    treemap.put("2","2");
    DefaultMutableTreeNode nodetable = new DefaultMutableTreeNode(treemap,true);
    DefaultTreeModel model = (DefaultTreeModel)jtree.getModel();
    model.insertNodeInto(nodetable, nodetop,nodetop.getChildCount());

    I have created a subclass of DefaultMutableTreeNode, I just have one question with my Default Constructor, is it correct? Suppose to be it should be super(Object userObject ,boolean allowChildren)?
    But when I do that it does not compile.
    Please correct me if I am wrong. I suspect my contructor inside code super() is not enough the parameters got lost. (btw) i will give you the dukes, please just verify my code.
    Thanks.
    class MyDefaultMutableTreeNode extends DefaultMutableTreeNode{
    public String caption="";
    public MyDefaultMutableTreeNode(Object userObject ,boolean allowChildren){
    super();
    public void setCaptionString(String str){
    caption = str;
    public String toString(){
    return caption;
    }

  • Indexing on text() of a node

    Hi All,
    might have overlooked it but can't find a way to do the above?
    I have about 30k documents containing something similar to:
    <aaa>
    <bbb>
    <region>One</region>
    <region>Two</region>
    </bbb>
    </aaa>
    Now adding an index:
    addIndex "" region node-element-equality-string
    Doesnt improve the search times for xpaths like:
    //region/text()="One" very much, about 4 secs.
    However, if i reconstruct the document to:
    <aaa>
    <bbb>
    <region id="One"/> ...etc.
    And create an index:
    addIndex "" id node-attribute-equality-string
    The search time is improved to about 0.06secs.. which is more what i had in mind.
    Any pointers?
    Michel Onstein
    http://www.beautyinnederland.nl

    Michael,
    This FAQ entry will explain more about the use of "text()":
    http://www.oracle.com/technology/products/berkeley-db/faq/xml_faq.html#42
    John

  • Commas in Hiearchy Nodes from SAP Source

    Hi,
    We are still using the old way of transfer rules to import hiearchies to SAP BW.
    The node descriptions contain commas which i want to remove.
    The leaves also contained commas but removed that via the transformation in when loading texts.
    Can you please advise me the me the best way to remove the commas in the description of the nodes?
    Thanks,

    description must be maintained at source side.
    inform about this comma issue, so now onwards they won't maintain commas.
    at bw side in at field level you can write any routine to remove that comma.
    About logic you can get help from ABAP expert.
    if comma coming at one place for every record(which have comma) then no issue. if its coming at different places in deceptions then code maycontain more if else condiitons. it may degrade loading performance.

  • How to preserve encoded characters at text and attributes node?

    <greeting>hello, <World> </greeting>
    When I run a SAX parser, it automatically decodes the characters
    and make the document ill-formed after the round trip.
    <greeting>hello, <world> </greeting> --- ERROR
    Q: How do I preserve those special characters at text node and attribute nodes?
    Thanks

    Thanks for you guys' help.
    It's great to get a real-time help from this online community.
    Yue,
    What I attempted to do was
    0. I have 6G <database> document having 1.4 M <entry>s.
    1. Read one <entry> at a time using SAX
    2. Save each <entry> to a buffer
    3. Pass the buffer to a Unmarshaller ( JAXB ) and create a JavaObject
    Repeat above moving to next <entry> until reaches to the end.
    At step 1, unescape happens
    becomes >< becomes <
    and & &
    making my doc malformed (which is legal) :(
    At step 2, I did the following to perserve <, >, and &
    str = str.replaceAll( ">", "&gt;");
    str = str.replaceAll( "<", "&lt;");
    str = str.replaceAll( "&", "&amp;");At step 3, JAXB is now happy to get a healthy XML input
    <greeting>hello, <World></greeting>
    It turned out to be nobody's fault but myself.
    It was a good lesson, though.
    Thanks, buddies

  • PL/SQL XML Parser (problem getting text of a node)

    I am trying to get the contents of an ELEMENT (node with a CDATA section) using xmldom.getNodeValue(). However, it seems that there is a MAXIMUM number of characters that I can get back.
    I think I've found a work-around using xmldom.writeToBuffer() which seems to write all of the CDATA contents to a VARCHAR2 variable. Now my problem is that it is using strings like '&#60' and '&#38'. I recognize these strings as being "internal representations of '<' and '&' respectively. I'd not have to replace every occurence of these types of strings with the ASCII equivalent -especially since I don't know all of the possible '&#nn' strings that may crop up.
    Help!

    The use of "//" or "\\" appears to be a bug in JServer. It has
    been filed. You should not specify the path as a shared
    directory as a workaround.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Andre (guest) wrote:
    : Oracle 8.1.5 database on NT
    : When i try running the example with command:
    : SQL*Plus> exec domsample
    : ('//SERVER_03/ORACLE/xml_tmp','family.xml', 'err.txt');
    : I get the following error:
    : ERROR at line 1:
    : ORA-20100: Error occurred while parsing:
    : //ORACLE/xml_tmp/err.txt
    : ORA-06512: at "OEF1_MGR.XMLPARSER", line 43
    : ORA-06512: at "OEF1_MGR.XMLPARSER", line 120
    : ORA-06512: at "OEF1_MGR.DOMSAMPLE", line 80
    : ORA-06512: at line 1
    : If i use backward-slashes '\' which should be OK for NT i get:
    : ORA-20100: Error occurred while parsing:
    : \\ORACLE\xml_tmp/err.txt
    : I tried using a directory (create directory ...) but this
    : results in the same error.
    : Thus anyone now how it should be done?
    : Thanks
    null

  • Alternatives to "Hiearchy node does not show total of nodes & leaves"

    Greetings,
    I am having a problem with a query I created and am looking for suggestions on how to get around my problem.  The problem is a classic one that I have seen numerous times on various discussion boards.
    InfoCube Definition
    Dimensions
       Material (M)
       Value Type (V)
    Key Figures
       Quantity (Q)
       Amount   (A)
    Restricted KF
       Actual Quantity (AQ)      {Q where V = 'A'}
       Actual Amount (AA)        {A where V = 'A'}
       Planned Quantity (PQ)     {Q where V = 'P'}
       Planned Amount (PA)       {A where V = 'P'}
    Calculated KF
       Planned Cost (PC) = PA / PQ
       Planned Value (PV) = PC * AQ
    The Problem
    The query I wrote is reporting on Material using a hierarchy that was defined.  The problem, that's a classic, is that the lower nodes of the hierarchy do not roll up to the upper node for the Planned Value (PV).
       Example:
    ____________AQ____AA____PV____PQ____PA____PC
       Level 1_______30___$50___$ 9___200___$60___.30
       __Level 2.1___10___$20___$ 1___100___$10___.10
       __Level 2.2___20___$30___$10___100___$50___.50
    In the above example, the value for PV at Level 1 should be $11 (which is the sum of the lower nodes) and not $9 (which is the result of the calculation being performed on the Level 1 row).
    Alternatives Explored
    I have explored the following alternatives in order to provide a solution to this problem:
    - Aggregation problems with hierarchies is documented in SAP Note 789404.
    - I tried creating the CKF as a formula in the query and setting the "Calculate Result As" option to "Summation" but hierarchy nodes are not the same as result rows.
    - I attempted to set the "Time of Aggregation" option in the CKF to "Before Aggregation" but because of how we are modeled I need to use a RKF in the calculation.  Because of this the CKF formula is regarded as complex and therefore I do not have the option to adjust this parameter.  (See Re: Incorrect Results Row)
    - My last attempt was to investigate the use of Virtual Key Figures.  From what I have seen, this will not provide me with the solution I need either.  (See Virtual Characterstics and Key Figures)
    Question
    Short of changing my data model and/or calculating and storing the result in the cube, is there any other solution to my problem?
    Your feedback, great or small, is much appreciated.
    Thanks in advance,
    Brian

    EventQueu.invokeLater();From where do you call this?
    We may need to see a small example code that can reproduce the problem.

  • Hiearchy Node [Alias] - unable to assign in the referencing table!

    Hi All,
    I really understand the definition and usage of Alias created in the Hierarchy & Taxonomy.
    But is there any reason that am unable to assign or use these Alias Nodes in the referencing tables.
    for example: Sales representative hierarchy by Region:
    USA
    - TX
         Agent1
    - WI
         Agent2
    - MI
         Agent3
    -  CA
         Agent1 [Alias]
    Product table am using the above hierarchy and unable to assign/use the Alias node.
    thanks
    Alexander

    Hi Alexander,
    Hope you must have seen the below explanation about Alias
    Sometimes, you may want a group of products to appear in more than one location in the hierarchy tree, so that they can be found in various ways using drilldown search. A node alias provides just this ability, and allows products assigned to a single node to appear in two or more locations in the tree. For example, in a repository of gifts, you may have a hierarchy that lists all of the holidays, and you may want u201CChristmasu201D to be found in the tree under the node u201CChristianu201D (if navigating by religion) and the node u201CDecemberu201D (if navigating by month).
    Add Internal Leaf cannot be used for Children because you can directly use child nodes in the reference table and for parents you have Add Internal Leaf option if you want to assign parent node to the reference table record.
    Regards,
    Jitesh Talreja

  • Only short text on hiearchy variable

    Hi guys,
    we made a technical upgrade vom BW 3.5 to BI 7.0.
    When I now open a query with a variable on a hierarchy, I only get the technical name and the short description of the hierarchy .
    But I need the middle text, because only this one is usable.
    Any idea what´s wrong now?
    Thanks & regards,
    Barbara

    Hi Gopal,
    in the query, there´s the text and the medium text and the character also shows text and medium text.
    After executing the query, i can set a filter on the hierarchy and there, the long text is displayed.
    Any other idea?
    There are a lot of posts about this topic, but no solution ...
    Regards,
    Barbara

Maybe you are looking for