Hierarchy of a node

hi guys,
please any one would like to let me know is there a way to get to know about all possible elements and attributes of a root without visualizing them. In case if we have a large xml file then it is very hard to pick all possible elements. For example: first glance i have
Root
<place>
<_id>20house</_id>
<_rev></_rev>
<about>20house</about>
<place>
<place>
<_id>20house</_id>
<_rev></_rev>
<about>20house</about>
<place>
<place>
<_id>20house</_id>
<_rev></_rev>
<*status>published</status>*
*<gislatitude>-37.75159</gislatitude>*
<place>
<place>
<_id>20house</_id>
<_rev></_rev>
<status>published</status>
*<hasbookatablelink>no</hasbookatablelink>*
<place>
Best Regards,
Abida

may be
Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
Connected as scott
SQL>
SQL> SELECT *
  2      FROM XMLTABLE (
  3          'for $x at $i in /Root/place
  4          for $y in $x/child::*
  5          return element r { element n {$i}, element nm {name($y)}}'
  6          PASSING XMLPARSE (DOCUMENT
  7  '<?xml version="1.0"?>
  8  <Root>
  9       <place>
10            <_id>20house</_id>
11            <_rev/>
12            <about>20house</about>
13       </place>
14       <place>
15            <_id>20house</_id>
16            <_rev/>
17            <about>20house</about>
18       </place>
19       <place>
20            <_id>20house</_id>
21            <_rev/>
22            <status>published</status>
23            <gislatitude>-37.75159</gislatitude>
24       </place>
25       <place>
26            <_id>20house</_id>
27            <_rev/>
28            <status>published</status>
29            <hasbookatablelink>no</hasbookatablelink>
30       </place>
31  </Root>')
32          COLUMNS
33          id VARCHAR2(30) PATH 'n',
34          nam VARCHAR2(30) PATH 'nm'
35          )
36  /
ID                             NAM
1                              _id
1                              _rev
1                              about
2                              _id
2                              _rev
2                              about
3                              _id
3                              _rev
3                              status
3                              gislatitude
4                              _id
4                              _rev
4                              status
4                              hasbookatablelink
14 rows selected
SQL>

Similar Messages

  • BW hierarchy dummy leaf node in BPS layout

    BW hierarchy with postable nodes.
    I am using a cost center Hierarchy in a layout.
    I get the following nodes:
    4711 (inner node)
    --4711 (dummy leaf, system generated, not assigned budget)
    --4712 (leaf)
    How can avoid displaying in the layout the dummy leaf, system generated, not assigned node?

    If the dummy node is a summary of all cost centers not present in your hierarchy (thus the not assigned node BW generally allocates to your hierarchy):
    then goto your info-object(cost center), enter the specific hierarchy, click on the button 'hierarchy attributes', click the flag suppress not assigned nodes.
    Activate your hierarchy.
    BW will now no longer display the not assigned node.
    Please assign points if this helped you or solved your problem,
    Filip

  • Is it possible to display lower nodes in a hierarchy without top nodes?

    Hello:
    I am working with the Query Builder in SAP BW 3.5.  We enter date, profit center and responsible organization to get labor data and WBS hierarchy output.  We would like to show all the data associated with the WBS hierarchy at level 3 and below level 3, such as level 4, while skipping level 1 and 2.  Is there a way to restrict the output of the query somehow to do this?  We were thinking of using the level attribute of the WBS to filter the output, but are unsure about how to do this.  Should we try using VBA to filter the output?  Or is there ABAP user exits to filter output?  Or should we somehow tell SAP BW "Please only give me data where the WBS level attribute is greater than or equal to 3".  Thank you for you help.  I am somewhat of a query newbie.  I've tried hierachy variables, but it seems you have to spell out which WBS value as opposed to having a condition on the level attribute...conditions seem to only apply to key figures such as rate..

    I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level.  So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly).  I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3.  If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query.  I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.

  • How to return list of lowest level elements in a hierarchy given the node o

    We would like to return a list of the lowest level Elements in a Hierarchy from a given node of the hierarchy.  The level of the node that is given to us is unknown, but regardless, we need the ability to return the lowest level elements.  We are trying to find a non-ABAP solution to our needs and trying to use a BEx query as a source for our APD.
    In query designer we are able to obtain the correct list when using the Hierarchy and Condition with a Leaf value of '1' to return the lowest level. However,  We have come to learn APDs do no support the BEx hierarchies.  When we de-selected the 'Activate Hierarchy' display in the query, the entire structure under the given node is returned.
    Does anybody know of a way to return just the lowest level elements in a hierarchy so we can feed our APD?
    Thanks,
    Andrea

    expac works only with official and unofficial repos, not with the AUR, but it's very nice.
    Adding  '-q' should help, grep to weed out false positives.
    yaourt -Sa $(yaourt -Ssaq pulse)
    works, but
    $ yaourt -Sa $(yaourt -Ssaq chrome)
    resolving dependencies...
    looking for inter-conflicts...
    warning: removing 'chromium' from target list because it conflicts with 'chromium-no-sse2'
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: chromium-no-sse2 and chromium-scroll-pixelGs are in conflict
    so at least
    $ yaourt -Sa $(yaourt -Ssaq chrome|grep google)
    is needed.
    Edit: Also:
    $ LC_ALL=C TZ=GMT0 diff -Naur /usr/bin/pacsearch /usr/local/bin/pacsearch
    --- /usr/bin/pacsearch 2014-11-21 11:20:37.000000000 +0000
    +++ /usr/local/bin/pacsearch 2014-12-21 08:21:14.758856006 +0000
    @@ -84,7 +84,7 @@
    my %allpkgs = ();
    -my $syncout = `pacman -Ss '@ARGV'`;
    +my $syncout = `pacman -Ssq '@ARGV'`;
    # split each sync search entry into its own array entry
    my @syncpkgs = split(/\n^(?=\w)/m, $syncout);
    # remove the extra \n from the last desc entry
    @@ -110,7 +110,7 @@
    $allpkgs{$pkgfields[1]} = [ @pkgfields ];
    -my $queryout = `pacman -Qs '@ARGV'`;
    +my $queryout = `pacman -Qqs '@ARGV'`;
    # split each querysearch entry into its own array entry
    my @querypkgs = split(/\n^(?=\w)/m, $queryout);
    # remove the extra \n from the last desc entry
    $ /usr/local/bin/pacsearch pulse
    libpulse
    pulseaudio
    libao
    libcanberra-pulse
    libpulse
    paprefs
    pavucontrol
    pulseaudio
    pulseaudio-alsa
    floyd
    libcec
    mate-media-pulseaudio
    mate-settings-daemon-pulseaudio
    ponymix
    projectm-pulseaudio
    Although why not simply use pacman or expac?
    Last edited by karol (2014-12-21 08:26:48)

  • GL Hierarchy Extracting extra nodes from R/3 system which is not at all def

    Hi Friends,
    While extracting GL Hierarchy Master data from R/3 system, The BI system is extracting the GL Hierarchy Node well, But the problem is the system is also extarcting the another node which i have'nt selected and Not at all defined in the R/3 system with Node Level 2...where i need only Node Level 1. The system is extarcing Node Level 2 with some values, where the node not at all defined in the R/3 system.
    At infopackage i have selected currect Hierarchy with Radio button which i have to select and Slelected all Check boxes for the Values Relevant for BW for all other Hierarchies at infopackge.
    Can you please focus light on this and please suggest a loution not to extract the Node Level 2.
    And what does it me the check boxes for the Feild Relevant for BW at infopackage-Hierarchy Selection Tab page..
    Thanks & Reagds
    Revathi

    Got solutions from service SAP

  • BPS External Hierarchy with Postible Nodes

    Hi,
    I am using External Hierachy (more than 2 levels) in BW and Characteristic relationship between Account and Account Group in BPS. Account group is an attribute on Account. I have included the Account Group in the Planning Level. On the layout Account Group and acct are in the lead columns respectively. As defined in How to ... Hierarchies in Several Characteristics document.
    Everything works fine but it shows nodes only upto two levels in the hierarchy. If the hierarchy contains more than two levels....it only shows two levels. On the how to document, example is for two level hier.
    I want to know why it is not showing more than two levels as defined in the external  hierachy.
    Has anybody come across with the same situation and is there a way to show more than two levels???
    Thanks in advance,
    Anil

    Hi Anil,
    Welcome to SDN.
    The reason why you are able to see only two levels is because you have just two Characteristics used in the hierarchy structure i.e. Account and Account group.
    Please note the <b>conditions</b> mentioned in the How To document in <b>section 2.2</b> which lists down the restrictions.
    "For a given level in the hierarchy, every node/leaf must belong to the s<b>o</b>me characteristic, and no two levels can use the same characteristic."
    What I understand from this is that the hierarchy would only display Characteristic nodes and not Text Nodes.
    So if you had 3 InfoObjects like
    Chart of Accounts
    Account Group
       Account
    I believe you would be able to get three levels in the same.
    Hope it helps.
    Cheers
    Anurag
    ......assigning points is just a way of acknowledging the response at SDN

  • Hierarchy Constraints for Node Properties in DRM 11.1.2.3

    Hi,
    The DRM documentation talks about a new feature "Hierarchy constraints". It is accompanied with the following text -
    "Hierarchy constraints can limit the hierarchies and nodes available for viewing and selection when updating a node data type property value.
    The hierarchy constraint feature uses hierarchy groups and hierarchy group properties, which must be configured before you can assign hierarchy constraints."
    I am trying to create a derived property which would list nodes from another hierarchy. However, there is a constraint that only level 3 nodes should be displayed instead of all the 7 levels preesent in the hierarchy,
    Is it possible to use this feature for this purpose.
    I would appreciate any help / direction.
    Thanks

    Thanks for the response. And thanks for sharing the ListRelatedNodesWith formula.
    You mentioned that constraints can be used to limit user entry.
    I believe I am looking for something similar.
    Scenario:
    User drills down Hierarchy 1 and selects Node ABC.
    For that node, he looks at the property tab and selects Property X.
    This property X should let him select nodes from another hierarchy - hierarchy 2.
    Now, the user should only be limited to picking up a node thats a level 3 node. So if Hierarchy 2 has 100 nodes in total out of which 20 are level 3 nodes, then the user should only be able to see those 20 nodes when he click on the selection [...] button for property ABC.
    Is this something that Hierarchy constraints can help me with?
    Thanks again.

  • Hierarchy with postable node -- data will be displayed on leaves only

    Hello,
    I have programmed a generic data source for hierarchy of BOM which should display CO-PCP data along the BOM hierarchy, comparable to transaction CK13N on R/3.
    The hierarchy is loaded successfully, having the following info objects:
    0SOURSYSTEM
    0PLANT
    QMATERCO  (header material of BOM)
    QMATPLCO (BOM components of inner nodes and leaves).
    QMATERCO and QMATPLCO are compounded to 0PLANT, each node is loaded with its individual unique node ID in order to post line items for each BOM component on higher and lower level. The hierarchy will be loaded for characteristic QMATPLCO (having defined 0PLANT and QMATERCO within hierachy definition).
    Now I have setup an info cube containing 0PLANT, QMATERCO and QMATPLCO, additionally some other descriptive characteristics and key figures.
    The line items given in R/3 source tables are posted into the info cube for inner nodes and leaves (all of them QMATPLCO), each line item is dedicated to one QMATPLCO node.
    Problem: The query will display line items for leave nodes only but not for all inner nodes although the nodes are displayed with green characteristic icon if I check the hierarchy itself. Furthermore, in BeX if I drag and drop QMATPLCO into the row, I can choose the loaded top node of the hierarchy but not any inner node or leave node.
    What is missing?
    Message was edited by:
            Stephan Hofmann
    Message was edited by:
            Stephan Hofmann
    Edited by: Stephan Hofmann on Sep 4, 2008 2:02 PM

    Complete own strategy for this problem has to be developed.

  • How to change the BADI to update the IO Hierarchy with characteristic nodes

    I need to modify / enchance a standard hierarchy datasource as it updates my IO into floder nodes instead of characteristic nodes. Can anyone tell me the exact steps where I can modify the BADI for the standard source.
    I'm trying to update 0CostElmnt hierarchy (Char 14) but my source data is (char 10).
    Any help is highly appreciated.

    I need to modify / enchance a standard hierarchy datasource as it updates my IO into floder nodes instead of characteristic nodes. Can anyone tell me the exact steps where I can modify the BADI for the standard source.
    I'm trying to update 0CostElmnt hierarchy (Char 14) but my source data is (char 10).
    Any help is highly appreciated.

  • How to ensure a hierarchy tree's node is a internal leaf???????

    as the title,if the node has the property to indecate it is a internal leaf!

    Hi
    To create an internal leaf node for a hierarchy tree item:
    1. In the hierarchy tree, select the parent node for which you want to
    create an internal leaf.
    2. Right-click on the node and choose Create Internal Leaf from the
    context menu, or choose Tree > Create Internal Leaf from the main
    menu.
    3. MDM adds an internal leaf node named u201C[parent]u201D as the first child of
    the selected node.
    NOTE ►► The name of the internal leaf node is the name of the
    parent node in square brackets ([]).
    For more details refer to pages 333 onwards in Data manager reference guide.
    best regards
    Ravi

  • How to Create and External Hierarchy and group values of IO in node

    Good morning
    BI 7:
    Please give me guidance on the following?
    I need to either to restrict a characteristic in a query to more than 800 values OR exclude values where it contains the pattern 'Z7' and 'Z8'. There are thousands of values which contains the pattern and they are not listed in such a way that I can exclude them as a value range, thus I would have to include all the values I want into the restriction, which is more than 800. An error displays when I check the query:
    ""In the structural component Warranty Damage Code, characteristic ZWR_DMGC is restricted to 838 values. This number is very large and will probably meet with technical limitations""
    The proposed solution is:
    ""Create an external hierarchy for characteristic ZWR_DMGC and group the 838 values in a hierarchy node. You can then work with the node instead of the 838 individual values.
    Alternatively, you can define a corresponding navigation attribute for ZWR_DMGC""
    I know where to create the hierarchy, but I am confused how to only include the values of the applicable IO where pattern contains 'Z7' and 'Z8'.......??
    The following are some of the steps proposed in a related thread, but I am loosing it at step 7.
    5. Confirm your entries. The Maintain Hierarchy screen appears. You can define the structure of a hierarchy here. ok
    6. To create a hierarchy node, you first need to choose an insertion mode: Insert as First Child or Insert As Next Neighbor (see Hierarchy Editing Functions). I selected first child
    7. Choose the type of node you want to create: Text Node, Characteristic Node, <Hierarchy Basic Characteristic Node> or Interval (see Hierarchy Nodes) *this is where I am lost, which should I select to list values with pattern ' *Z7' and ' Z8' in a node or two
    8. Repeat this procedure until the hierarchy structure has been set. For more information, see Modeling Nodes and Leaves.
    A hierarchy can contain 50,000-100,000 leaves at most. If your hierarchy is larger, you should insert a level that is used as a navigation attribute or preferably as a separate characteristic in the dimension table.
    9. You can use Level Maintenance and Hierarchy Attributes to set how the hierarchy is to be displayed and processed in reporting (see Level Maintenance and Hierarchy Attributes).
    10. Save the hierarchy.
    Your assistance will be appreciated.

    Hierarchy not used in this case. Could not fnd an answer.

  • Hide certain nodes in a hierarchy in report

    Hello all,
    I am having a repport where in I am using a hierachy. There are totally 8 nodes under the root (parent) node. The requirement of the report is to show only two nodes out of it the 6th node and the 8th node.
    Is it possible if yes can someone guide me how?
    Thanks in advance,
    K M

    Hi,
    You can restrict the hierarchy with these two nodes.
    Right click on the characteristic>properties>select required hierarchy-->ok
    again right click on char>restrict>here ylou can restrict the hierarchy with required node by moving them to right window.
    regards
    Message was edited by: Murali

  • Hierarchy node variable - successor node data not displayed

    Hello,
    I have a query with a hierarchy in the ‘rows’ section. This hierarchy is restricted by a hierarchy node variable with the following settings: variable type ‘hierarchy node’; customer exit; single value; mandatory; not ready for input; cannot be changed in query navigation.
    The customer exit correctly supplies the node. However, only data for THIS node is displayed in the query results. And data for successor/underlying nodes is NOT displayed.
    I tried several things, including:
    - rightclick ‘Rows’ > ‘Display as a Hierarchy’
    - customer exit variable: multiple values instead of single value; optional instead of mandatory
    In the ‘Hierarchy Attributes’ for the hierarchy, nothing is checkmarked, except for Root/Totals Item Appears Above’ and ‘Drilldown start level = 00’. The hierarchy and its nodes are valid from 01.07.2005 to 31.12.9999.
    I have a feeling in what area the solution can be found, but I have no clue what to do further on with it. As a test I replaced the customer exit variable with a user entry variable. If I then execute the query, I can select either the ‘node’ or the ‘value’ (both with the same technical value!). If I select the node, I get all data, including data for successor nodes. If I select the value, I only get the data for the node, not the underlying successor nodes. For some reason, the customer exit variable behaves like the latter and not like the first. I do not know how to solve this.
    I would greatly appreciate if you could help me out of this issue here.
    Kind regards,
    Frank

    Hi,
    no, it doesn't. It just returns the data for the node and not for the underlying nodes.
    Frank

  • Hierarchy from flat file loading with errors - duplicate node names

    Hello experts,
    I am loading a product hierarchy from a flat file into a custom hierarchy
    object.  The issue is that it errors out saying I am loading
    duplicates within nodes, however all node IDs within a level are unique.
    It seems to be looking at the node name to determine uniqueness and I know
    we have some duplication within the text there especially when you factor
    in the 32 character limitation for the node name.  Does anyone have an idea
    as to whether it is possible to have it only consider the node ID instead
    of the node name to determine uniqueness?
    A colleague suggested using the link ID to fix this problem but I don't know how that field works or how to populate it.
    I'm working in a BI 7.0 environment (I don't know if that makes a difference since you still have to use the 3.x objects to extract the hierarchy).
    Any help would be appreciated.
    Nancy

    Hi Nancy,
    You may wish to check this OSS Note 1026749 - Hierarchies: Consistency check for duplicate nodes and 912115 (old one)
    Symptom -
    When you load or activate a hierarchy it terminates with error message RH 109 or RH 211. The hierarchy contains duplicate nodes and this is not allowed. The long texts of messages RH 109 or RH 211 do not describe the reason for the problem sufficiently or they are partially incorrect.
    There is uncertainty about in which cases duplicate nodes exist in a hierarchy and in which cases duplicate nodes are allowed.
    Hope this helps,
    Bye...
    Naga Timmaraju

  • WEB: How to filter a Dataprovider by hierarchy nodes

    Hello All.
    We have in our web template 2 dataproviders, one to show a table with different ratios for a PRODUCT, and another to show one Ratio by product but USING HIerarchy.
    I am tring to create an HTTP url to filter by characteristic product (which is not a problem) and also to filter the hierarchy but a node.
    Right now I am using the following commandad:
    http://psigue-mad1.elmundo.int:8002/sap/bw/BEx?sap-language=ES&bsplanguage=ES&CMD=LDOC&TEMPLATE_ID=Z_PRODUCTO_AR_PRUEBA_ESTADO_SE&FILTER_IOBJNM=CPRODUCTO&FILTER_VALUE=PERIODICO&FILTER_NODE_IOBJNM=0HIER_NODE
    The problem is that the query which uses the hierachy doesn´t show the subnodes of the selected one.
    I hope any of the experts arround here can help me with this.

    ¿No ideas for this?
    Bassicly, what we want to do is to filter a Hierrachy textnodes and its subnodes.
    Regards,.

Maybe you are looking for

  • Window to Combine Files Won't Appear

    Help! I am unable to combine files into a pdf on my Mac. It worked fine last week but it won't let me merge/combine files now. Everything else with the program seems to be working fine but this feature, the feature that I use the most on Acrobat XI.

  • Had Mavericks, upgraded to Yosmite 10.10.1, iPhoto won't upgrade.

    Had Mavericks running, upgraded to Yosmite 10.10.1,  I own iLife 11, iPage & Numbers & other apps updated/crossed over but my iphoto 9.6 has attempted to 'upgrade' my iphoto database for 8 hrs. Running OS 10.10.1, & have used the iphoto 1.1 fix. Stil

  • How to debug a function module in a user exit

    Hello out there, I am calling a function module in the updates rules of an InfoCube. The function module "hangs" while running the InfoPackage - the Monitor shows up with "Missung Message . Update rules finished for InfoCube ...". How can I debug an

  • Display an HTML page within a a panel

    I want to create an applet with multiple panels, and have the ability to display HTML pages within these panels. These will be HTML pages with formatting complex enough that the JEditor display won't be able to handle them. I experimented with showDo

  • How do I add file associations into the Thunderbird-Preferences-Attachments-Incoming list?

    Using MacBook Pro with OS X 10.9, and Thunderbird 31.0. I am clicking on a "DWG" file that is attached to an incoming email, and it should automatically open in progeCAD Viewer DWG, as I have made that association in Finder. (I previously saved the f