SAP BW Recursive hierarchies

Hello,
    I am wondring if there is such a thing as  "Recursive hierarchies" in BW 3.5 and if so, how do you implement it?
Thanks

David
I have not heard about this but I could see some ehere it's called as a recrusive subnode
Check these links if it helps
http://help.sap.com/saphelp_nw04/helpdata/en/92/12a74046033913e10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8b/764d3c006f8f0ce10000000a11405a/frameset.htm
Thnaks
Sa

Similar Messages

  • Recursive Hierarchical Query with CONNECT BY/START WITH

    I want to traverse a tree which has is not hierarchical in linear sense. You know, like :
    A
    B
    C
    D
    E
    C
    F
    D
    E
    C
    You see that D, Eand C are repeated and C is under E as well as under B. I tried using CONNECT BY and START WITH but I get tripliate occurances of C under B, and 2 occurances of DEC under A and under F. Clearly this is not correct. I believe SQL3 has special way of handling with such recursive trees. How does O9i handle these constructs? Please help.

    CREATE OR REPLACE PACKAGE hierarchy
    IS
      TYPE branchtable_type IS TABLE OF VARCHAR2 (4000)
      INDEX BY BINARY_INTEGER;
      branchtable branchtable_type;
      FUNCTION branch
        (v_level     IN NUMBER,
         v_value     IN VARCHAR2,
         v_delimeter IN VARCHAR2 DEFAULT CHR (0))
        RETURN VARCHAR2;
      PRAGMA RESTRICT_REFERENCES (branch, WNDS);
    END hierarchy;
    CREATE OR REPLACE PACKAGE BODY hierarchy
    IS
      returnvalue VARCHAR2 (4000);
      FUNCTION branch
        (v_level     IN NUMBER,
         v_value     IN VARCHAR2,
         v_delimeter IN VARCHAR2 DEFAULT CHR (0))
        RETURN VARCHAR2
      IS
      BEGIN
        branchtable (v_level) := v_value;
        returnvalue := v_value;
        FOR i IN REVERSE 1 .. v_level - 1
        LOOP
          returnvalue := branchtable (i)
          || v_delimeter
          || returnvalue;
        END LOOP;
        RETURN returnvalue;
      END branch;
    END hierarchy;
    SELECT   id, parent_id, print_order, lvl
    FROM     (SELECT     id, parent_id, print_order, LEVEL lvl,
                         hierarchy.branch (LEVEL, print_order) branch
              FROM       test_table
              START WITH parent_id IS NULL
              CONNECT BY PRIOR id = parent_id)
    ORDER BY branch
            ID  PARENT_ID PRINT_ORDER        LVL
             1                      1          1
             6          1           1          2
             5          1           2          2
             2          1           3          2
             4          2           1          3
             3          2           2          3
    6 rows selected.

  • SAP BPC - Recursive Dimension Member Formulas

    Hi BPC community,
    We have a customer requirement to create recursive dimension member formulas.  Has anyone dealt with this topic before?
    Example:
    Account A = Account B * .05
    Account B = Account A + Account C.
    Account D = Account B * .10
    Thanks,
    Jeff Holdeman
    EPM RIG

    Hi Nicolas,
    Thanks for pointing us in the right direction.  The math actually turns out a little different, as I think you slipped a decimal.  But none the less, your contribution is MUCH appreciated.
    Here is the proposed solution.  For more details, we also need to utilize the solve_order parameter to force the system to calculate the dimension formulas in the proper sequence.  Zero is the highest priority.
    Assume...
    A = B * .05
    B = A + C
    C = input
    D = B * .10
    Therefore solving for B...
    B = (B * .05) + C
    B = .05B + C
    B - .05B = C
    .95B = C
    B = (1 / .95) * C
    And...
    D = (1 / .95) * C * .10
    For example, if C = 100...
    B = (1 / .95) * 100 = 105.26
    A = 105.26 * .05 = 5.26
    D = 105.26 * .10 = 10.53
    I'll assume there are two accounts for "C"; one for input and one as a formula.
    [Account].[C] = [Account].[C input][, solve_order = 1]
    [Account].<b> = [Account].[C] * 1 / .95[, solve_order = 2]
    [Account].[A] = [Account].<b> * .05[, solve_order = 3]
    [Account].[D] = [Account].<b> * .10[, solve_order = 4]
    Edited by: Jeffrey Holdeman on Aug 11, 2008 5:58 PM

  • Recursive/Hierarchical Query

    Hello,
    I am trying to solve a problem that needs the use of recursive queries (more precisely the "connect by" clause). I have the following P table:
    P1 P2
    a1 a2
    a1 a3
    a2 a4
    a3 a5
    a4 a6
    The result of my query should be:
    P1 P2
    a1 a2
    a1 a3
    a1 a4
    a1 a5
    a1 a6
    a2 a4
    a2 a6
    As you can see, I am trying to get all the children, grandchildren, etc of every P1, going to the deepest level possible, following the transitivity property (if a1-a2, and a2-a4, then "a1 a4" will be part of the solution). The following query
    select distinct P1, P2 from P
    connect by P2 = prior P1
    order by P1
    gives me only the first level of inclusions (a1 a2, a1 a3, a2...), but I need all of them. How can I solve the problem?
    Thank you!

    In a 10g environment you can use the CONNECT_BY_ROOT operatory to get the root node:
    WITH P AS (SELECT 'a1' P1,'a2' P2 FROM DUAL
       UNION ALL SELECT 'a1', 'a3' FROM DUAL
       UNION ALL SELECT 'a2', 'a4' FROM DUAL
       UNION ALL SELECT 'a3', 'a5' FROM DUAL
       UNION ALL SELECT 'a4', 'a6' FROM DUAL
    SELECT DISTINCT CONNECT_BY_ROOT P1 P1, P2
      FROM P CONNECT BY P1 = PRIOR P2
    ORDER BY P1,P2
    P1 P2
    a1 a2
    a1 a3
    a1 a4
    a1 a5
    a1 a6
    a2 a4
    a2 a6
    a3 a5
    a4 a6
    9 rows selected

  • B2C ISA / E-Commerce 5.0 - Display the Productmenu recursively / hierarchic

    Hello. Is there any possibility or parameter, that the Productmenu will alway display the parentcategories, when someone clicks on a subcategory. Currently it looks like that:
    Products
    - parent1
    - parent2
    - parent3
    when a user clicks on parent1 the menu changes:
    Products
    - parent1
    - - child1
    - - child2
    - - child3
    - - child4
    But it should look like that:
    Products
    - parent1
    - - child1
    - - child2
    - - child3
    - - child4
    - parent2
    - parent3
    Anyone knows a solution? That would be great!

    Hello Thomas,
    We did something very simlar to this. We actually had the requirement to expand all the parents to start with.
    See this thread for hints.
    Re: B2C ISA / E-Commerce: Displaying products from subcategories
    Easwar Ram
    http://www.parxlns.com

  • Essbase Studio Drill-through for Recursive Hierarchy - Generation 1

    I'm using Essbase Studio 11.1.2.3 to build an ASO cube. All my hierarchies are recursive (parent-child). I would like to define a drill-through report and I understand that I have to use the Advanced Settings option to specify my intersections. Now one of my dimensions is optional for the users - they don't have to specify a member (they can leave it at the highest level - dimension name on the spreadsheet). Under 'Advanced Settings' for DT report in Studio I have to specify a Generation value of 2 or greater than 2. How do I enable drill through in cells where one of the dimension is at Gen1 ? Specifying the level number didn't work. I think if you specify Level in 'Advanced Settings', drill through is allowed only if that specified level of the dimension is chosen, if Gen 2 is specified, then drill through is allowed as long as the dimension-members specified are at or above Gen2. But what about Gen1?

    Yep, this is a limitation. I suggest you create two reports one that takes your "optional" dimension out and a second one that has it in. if they don't need the dimension, select the first report and if they need the filter then the second. I m always a little leery with recursive hierarchies and Gen 2 or 3 sine they create a list of level 0 members under the selection in the query and there are limits to the number of members in an in clause and at high levels in the hierarchy it is easy to surpass it (In Oracle it is 1000  members)

  • CO-PA Characteristic hierarchies in reports

    Hi Experts,
    I am aware that characteristic hierarchies can be used in CO-PA reports by specify in the hierarchy dialog box while defining characteristics in reports - but this is during creating/changing the reports
    My requirement is that I should be able to use this while executing the report.
    From SAP help, I understand that we can also use this hierarchy function while executing the report also by selecting Edit --> Hierarchy --> Choose...in report executed - I am not able to use this function. When I go to the specified place in edit....this choose hierarchy option is greyed out and so not able to select it. This is not an issue of SAp access
    Could you help me in using Characteristic hierarchies while executing the reports.
    I am pasting here wordings here from SAP help  -
    "If hierarchies exist for a characteristic, you can have the system display that characteristic in a hierarchy either when you define the report or after you have executed it. This function displays the chosen hierarchy in its entirety. The characteristic values not contained in the hierarchy appear in the report list in the row "Other characteristic values". You can also drill down on this row if you wish.
    To do so, choose the function Extras --> Choose hierarchy when you define the report or Edit --> Hierarchy --> Choose... after executing it"
    Regards,
    SKD

    Hi DSK
    This statement means that in the case of Customer or Product hierarchy, you can choose the hierarchy list after you have executed the report...
    Similarly, if you create hierarchy for others chars in KES3, I think you should be able to choose the hierarchy once you have executed the report
    Regards
    Ajay M

  • Changing hierarchies in BeX

    Hello
    I've two SAP FI/CO hierarchies in use that show different structures of cost elements. Now, I'd like to give users the possibility to change the hierarchies directly in BeX (e.g. in a drop-down) instead of using to different queries. Is that possible? Has someone an idea? Thank you!
    Regards
    Patrick

    Hi Patrick,
    You can create a Hierarchy variable (not hierarchy node variable) to achieve this.
    To do this, right click the characteristic and select properties.
    select the hierarchy name selection button.
    check the variables check box
    create a variable
    Now the user can chose which hierarchy to be diplayed before running the query and change it if they want after running the query
    Good luck,
    Vijay

  • RA calculation and hierarchical settlement

    Hello PS gurus,
    I am working with multilevel project structure. Example: Network>3rd Level WBS>2nd level WBS>1st Level WBS (billing element).
    Cost from Network are settled to 3rd Level WBS at first (via automatically generated settlement rule to attached WBS, as SAP defaulted standard).
    But I am having issue transferring the costs from 3rd level WBS to higher level in order to have all costs on the top level WBS (billing element).
    Question:
    Should I somehow modify my settlement strategy in order SAP would treat hierarchical structure of WBS during settlement (I tick with hierarchy and with orders in CJ88), or I can somehow do result analysis grouping costs from different WBSs without settling it to billing element at first and comparing it with revenue from billing element.
    Appreciate your help
    Donatas

    Thanks for your quick reply Pillai,
    Regarding your questions: "what issue are you facing while transferring costs from 3rd level to the top? This should not be a point of concern since your billing element is the top level. When you run RA all the costs on the subordinate WBS elements will be taken care of automatically"
    If I correctly understand your remark RA counts all cost from subordinates WBS elements that are linked to that billing element so settlement from subordinate WBSs to RA WBS is not needed as the initial step?
    I am facing the problem that costs is not transferred from 3rd level WBS to the 2nd level WBS and therefore to top level - Billing WBS on which RA is run, as I was thinking (maybe wrongly) to settle all costs from subordinate WBS to RA WBS (as mandatory step) and only afterwords carry Result analysis.
    Thanks

  • Dms and Edms Problem

    Dear All
    I face One problem is I add document from DMS (SAP Gui) it not show in EDMS but When I Store Document from EDMS ,a document show in DMS both document are store in FTP serve which i found but I cant understand why this happened I do this operation from Same user also.
    Nainesh

    .. when i use find option it show, so i confus that default it will not show when i login..
    Thats the way the easyDMS solution has been conceived.You would have to utilize the 'Find/Search' feature for accessing documents already created in R/3 DMS.
    In easyDMS,the structure consists of a 'Public' folder,a 'Private' folder and 'Search' result.By default,only the 'Search' feature is available when you login into easyDMS for the first time.Thereafter,the system prompts you to create a 'Public' followed by a 'Private' folder.
    'Public' and 'Private' folders essentially are documents in SAP easyDMS in hierarchical structures and save the files in the style of Microsoft Windows Explorer.'Public' folders provide quick access information and documents for all persons involved in a project and 'Private' folders serve as personal folder of the documents.
    Incase of any further clarifications,you may reach me on my contact details indicated in my [business card|http://www.sdn.sap.com/irj/scn/bc?u=nlytletznys%3d].
    Regards,
    Pradeepkumar Haragoldavar

  • Essbase Studio--cannot set essbase properties at parent level

    Hi,
    I have a recurssive hierarchy product dimension.Source is an oracle table something like
    Parent child alias
    P p1 ap1
    p p2 ap2
    p1 p11 ap11
    p1 p12 ap12
    I have an self-join between parent and child column and have no issues related to hierarchy building
    However i am able to set an alias to all other members except the member P.
    Any advice on the issue will be helpful!!!
    Regards,

    Is P the Dimension name?
    For example the dimension is entity and the hierarchy is
    Entity all entities
    Entity Alternate pollup
    All Entities zzz
    If so, you would set the properties directly for the Dimension member
    IF it is not, then can you add where P is a child of the dimension member?
    In recursive hierarchies, you should only be setting the properties on the child members as they should be the parent of other members or the level zero members themselves

  • Does essbase studio support Parent/Child build method

    Hi,
    I am trying to build essbase outline from Essbase studio where my source data is in Parent child format. Dimension hierarchies are not built correctly with this build method.. all members are appearing as siblings... could you please confirm if essbase studio does support Parent Child build method... so that i can try to fix the bugs at source if there are any. Thanks for your help in advance.
    Regards,
    Praveen

    HI John and Glenn,
    Thank you very much for your help. I have now built essbase outline with recursive hierarchies.
    I have total 11 dimensions and 1 fact table. During the cube schema built, chosen fact table column 'Amount' into measures/measure, 11 hierarchies into hierarchy section... and one dimension as "Account" dim from the 11 dims. The data load is failing with the below error:
    Failed to deploy Essbase cube.
    Caused by: Failed to load data into database: CurrrASO.
    Caused by: Cannot get async process state. Essbase Error(1003007): Data Value [8.23326e+007] Encountered Before All Dimensions Selected, [1] Records Completed
    The native sql issued by Studio does not contain the dimension column which is designated as Account dim. I have used custom sql (included one column from each of the 11 dims) but here the data value is also treated as member name and all the records are rejected.
    Member 37356.617844 Not Found In Database
    [2] Mar USD No Segment FY07 Actual-Detail E345 D310 R00 P0000 PL000 7306 37356.617844
    I cant open the rules files in AAS console to check what was going on.. so need your help to understand where i am going wrong.
    Thanks,
    Praveen
    Edited by: user8627339 on Dec 22, 2010 10:26 PM

  • Load Data to Hierarchy

    Hi,
    I have mainted the Cost Center Hierarchy in SAP, I see Hierarchies & Master Data transfared from SAP to BW
    I see that The Hierarchy is defined very well
    My problem is some values transferred to BW but falls under 'unassigned'
    Whay should I check else from Master data loading & Hierarchy load
    Thx

    aa

  • How to load data at non-leaf levels directly?

    Hi,
    We have a requirement where by Fact data for different scenarios gets loaded at different levels of ragged/recursive hierarchies.
    For example, the Actual sales are loaded at Product Leaf level but the Budgets data is available for loading only at Product Group level (which is one level above Product Leaf in Product Hierarchy).
    Please let me know if this is possible in Essbase.
    This is rater urgent.
    Thanks & Regards,
    Gurudatta

    Yes, as Gary said, performance is one factor.
    There are other less prominent reasons to keep agg missing on, but the overall reason for me is that it just makes more sense, especially when you consider the user operations involved in zooming in on data. When you do a zoom to bottom level, it's going to show you that the sum of the parts is equal to the whole in a well designed cube with agg missing on. With agg missing off, this may or may not be the case, and would NOT be the case if you load at non-leaf members. In that scenario, you end up with a "where did the data go?" issue that adds time to any hunt for answers as well as the likelyhood that more questions will be brought up that ultimately need answering. It's not obvious, but one scenario can be described as follows:
    (For convenience, I will use a standard time dimension hierarchy of YEAR|QUARTER|MONTH|DAY to illustrate the issue)
    2008 = 12000
        2008Q1 = 3000
            Jan 2008 = 1000 (input)
                1/1/2008 = #Missing
                1/2/2008...
            Feb 2008 = 1000 (input)
            Mar 2008 = 1000 (input)
        2008Q2 = 3000
          ... and so onIn the above example, there are two ways that confusion and errors can occur, the first is that somebody decides to upload some data to the days (level 0) instead of the month, and it doesn't add up to the total for the month. The second is that somebody decides to upload to the quarter, and thus the months no longer add up to the quarter amount. I treat these two conditions separately because in the first, the total is still represented by the amounts loaded to the monthly values, whereas the second case changes the grand total. If you were troubleshooting, you have to go level by level to see where the "breakdown" occurs by comparing each and every parent value to the sum of the children. It's a valid condition that is almost impossible to find quickly. There is no quick "show me all the inputs" approach, and no easy way to enforce an "input only at these levels" condition (there is, but there isn't as it's only practical in a perfect environment and trust me here you won't have it for long even if you could create it to begin with).
    So, long story short, data consistency goes out the window in a "load at upper level" cube, and the simple answer of providing an input member for the required generation(s) is much easier and reliable in the long run.
    Of course, there will always be exceptions, I just like to avoid them at all cost on this issue.

  • Hierachical table webdynpro and VC

    Hello everyone,
    Is it possible to do a hierachical table in VC and how?
    What i mean is it possible to create some type of tree structure in a VC table, comething like this:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce?quicklink=index&overridelayout=true
    If not, I would like to know if it's possible to pass data from a web dynpro to visual composer in VC 7.0 (no ehp). If it is possible could someone please give me a detailed explanation on how to do it. Or is it possible to integrate a webdynpro to VC?
    Thank you very much in advance for your help.
    Best regards
    Edited by: Khadija Sako on Jul 6, 2010 9:17 PM

    Khadijo,
    This SAP article may be helpful to you.
    How to Model SAP BI System Hierarchies in Visual Composer
    by Moya Watson    Article     (PDF 525 KB)     20 March 2006
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/4155b345-0a01-0010-ac9f-b3b2c34e993c
    Regards,
    Mark

Maybe you are looking for