Hierarchies Combine

Hi,
I have requirement of generate (or Create) new Hierarchy(Say z) Combining existing two Hierarchies ((Say X and Y)for 0COSTCENTER
There is a daily load Process Chain running for updating Hierarchies X and Y from R/3 to BW.
Present Requirement is generate (or create) New Hierarchy (Say Z) from X and Y Hierarchies (for Selective Child Nodes level 3)
Provide some clue to proceed on this. In Case if we have to write Custom Exit ( EXIT_SAPLRSAP_004 -- INCLUDE ZXRSAU04) then, what are Hierarchy tables, I have to use.
Also what are Cost center related function modules in BW side
Thanks in Advance,
Madhu

Hi Madhu,
I need to combine the different heirarchies of 0BPARTNER into one single heirarchy.
There are around 1500 0BPARTNER heirarchies.
Could you provide me the sample code to combine the heirarchies?
Thanks in advance.
Regards,
Yogesh Ranade

Similar Messages

  • Code Combinations for Segment Hierarchies

    Dear Members,
    I have one question on Hierarchies in GL Accounting Flex fields. I read the documentation on Flexfield hierarchies, in which its said that generally hierarchies are used for only GL accounting flexfields.
    Suppose One of the Accounting Flexfield Segment Value hierarchy structure is like this :
    1000
    _________|_______
    100 200 300
    ____|____ ____|______
    101 102 301 302 303
    _______|______
    303A 303B 303C
    __|__
    303BB
    This hierarchy is not coming properly when i post it so i am explaining it in detail here :
    Parent Child
    1000 ---> 100 200 300
    100 ----> 101 102
    300 ---> 301 302 303
    303 ---> 301A 303B 303C
    303B --> 303BB
    Here 1000 is the parent which has childs and they inturn have childs. This is used maily for reporting purpose in GL. I do not understand how a code combination is generated for the above structure in gl_code_combination table.
    Suppose we have 5 segments in our accounting flexfield structure
    ex: seg1,seg2,seg3,seg4,seg5 and 1000 in the above mentioned structure is seg3.
    how does a combination is generated if we want the information pertaining to 303BB which is the leaf node value in the hierarchy.
    seg1.seg2.seg3.seg4.seg5 --> how does this change if we have hierarchies.
    It would be great if you can help me out in this.
    Thanks
    Sandeep
    Message was edited by:
    user340
    Message was edited by:
    user340
    Message was edited by:
    user340

    Hi :
    1000 is a parent ---> 100 200 300 are chid
    100 is a parent ----> 101 102 are chid
    300 is a parent ---> 301 302 303 are chid
    303 is a parent ---> 301A 303B 303C are chid
    303B is a parent --> 303BB
    Here 1000 is the parent which has childs and they inturn have childs. This is used maily for reporting purpose in GL. I do not understand how a code combination is generated for the above structure in gl_code_combination table.
    seg1,seg2,seg3,seg4,seg5 and 1000 in the above mentioned structure is seg3.
    a combination is generated for every single combination oif child values (child valued should be posting allowed = yes meanwhile parent values should be posting allowed = no) for every segment
    so at the end the combination is created whenever you use child value for every single segment
    if you have rollup groups associated to the parent values, you can define summary accounts and balances are going to be automatically updated for parent values so even you can query onbalances on parent values
    I hope this gives you some light

  • DRM- Validation to check properties combination in other/Parent Hierarchies

    Hi,
    We are currently working on DRM version 11.1.2.2.302.
    Metadata of client is not unique in a single field. To attain the same we proposed them combination of several fields as a node to bring uniqueness. However we are ending up combining 6 fields as a node which users are not ready to accept.
    We are now working for a sequenced number as a node, however we face a challenge when the combination of nodes are to be verified in the parent hierarchy to check whether the combination of properties existing previously or not. We can check whether node exits in other hierarchy or not using 'NodeInHier' and also we can only retrieve the property of a node using 'NodePropValue' but we are not able to use these functions to check if a property of Hierarchy B exist in a property of Hierarchy A.
    Please suggest/help on the issue. Please let me know if you need any further info on the same.
    Thanks
    Venkatesh

    Hi All,
    This issue is closed now using UniqueProp Validation.
    Thanks
    Venkatesh

  • Hierarchical query to combine two groupings into one broad joint grouping

    Hi there,
    I would like to know if anyone knows a way to solve the problem below with a SQL querie, maybe using some hierarchical queries or window functions (or anything else in SQL for that matter).
    My environment is:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit
    The problem is this:
    I have a list of items that are grouped together in two different grouping ways (two columns).
    This gives the ability for items to be linked to other items in two ways:
    1. Directly if both have same value on GROUP1 and/or GROUP2;
    2. indirectly if they have an item in common with at least one match on either GROUP1 or GROUP2.
    The idea is to start from this dataset:
    WITH T AS
      SELECT 1 AS ITEM_ID, 'A' AS GROUP1, 100 AS GROUP2 FROM DUAL UNION
      SELECT 2 AS ITEM_ID, 'A' AS GROUP1, 100 AS GROUP2 FROM DUAL UNION
      SELECT 3 AS ITEM_ID, 'A' AS GROUP1, 101 AS GROUP2 FROM DUAL UNION
      SELECT 4 AS ITEM_ID, 'B' AS GROUP1, 100 AS GROUP2 FROM DUAL UNION
      SELECT 5 AS ITEM_ID, 'B' AS GROUP1, 102 AS GROUP2 FROM DUAL UNION
      SELECT 6 AS ITEM_ID, 'C' AS GROUP1, 103 AS GROUP2 FROM DUAL UNION
      SELECT 7 AS ITEM_ID, 'D' AS GROUP1, 101 AS GROUP2 FROM DUAL
    SELECT * FROM T;
    And end up with this dataset with a one single joint grouping:
    WITH T AS
      SELECT 1000 AS JOINT_GROUP_ID, 1 AS ITEM_ID FROM DUAL UNION
      SELECT 1000 AS JOINT_GROUP_ID, 2 AS ITEM_ID FROM DUAL UNION
      SELECT 1000 AS JOINT_GROUP_ID, 3 AS ITEM_ID FROM DUAL UNION
      SELECT 1000 AS JOINT_GROUP_ID, 4 AS ITEM_ID FROM DUAL UNION
      SELECT 1000 AS JOINT_GROUP_ID, 5 AS ITEM_ID FROM DUAL UNION
      SELECT 1000 AS JOINT_GROUP_ID, 7 AS ITEM_ID FROM DUAL UNION
      SELECT 2000 AS JOINT_GROUP_ID, 6 AS ITEM_ID FROM DUAL
    SELECT * FROM T;The relationships are:
    Item 1 is linked to Item 2 by GROUP1 and GROUP2;
    Item 1 is linked to Item 3 by GROUP1 only;
    Item 1 is linked to Item 4 by GROUP2 only;
    Item 1 is linked to Item 5 through Item 4 by GROUP1;
    Item 1 is linked to Item 7 through Item 3 by GROUP2;
    Item 6 is not linked to any other item since it does not match on GROUP1 nor GROUP2 with any other item.
    NOTEs:
    - JOINT_GROUP_ID values could be any sequential value. I used 1000 and 2000 just to avoid confusion with the other IDs and group values used to picture the problem.
    - The level of relationship is not restricted to 2 like the example above. There could be deeper relationships.
    This seems to me like something that could be solved with a hierarchical query, but I could not get my head around it to solve the problem.
    Hope one of you guys can help me on this.
    Chears.

    Hi Bruno,
    You are correct. Frank's solution does not work. You can do this using CONNECT BY on smaller problems, but it will be very inefficient for larger problems wirth significant looping. I wrote a quick blog article on this subject after reading your question this morning. This is actually an example of a very general class of problems and I already had three SQL solutions. I'll put the CONNECT BY one here, and you can look at my blog if you want more details (I include a diagram so I can't just post it here).
    Data
    item_groups
    SQL> SELECT *
      2    FROM item_groups
      3  /
    ITEM_ID    GROUP1                         GROUP2
    01         A                              100
    02         A                              100
    03         A                              101
    04         B                              100
    05         B                              102
    06         C                              103
    07         D                              101
    08         E                              104
    09         E                              105
    10         F                              106
    10 rows selected.Query
    WITH links_v AS (
    SELECT t_fr.item_id node_id_fr,
           t_to.item_id node_id_to,
           t_fr.item_id || '-' || Row_Number() OVER (PARTITION BY t_fr.item_id ORDER BY t_to.item_id) link_id
      FROM item_groups t_fr
      JOIN item_groups t_to
        ON t_to.item_id > t_fr.item_id
       AND (t_to.group1 = t_fr.group1 OR t_to.group2 = t_fr.group2)
    ), nodes_v AS (
    SELECT item_id node_id
       FROM item_groups
    ), tree AS (
    SELECT link_id, CONNECT_BY_ROOT (link_id) root_id
      FROM links_v
    CONNECT BY NOCYCLE (node_id_fr = PRIOR node_id_to OR node_id_to = PRIOR node_id_fr OR
                         node_id_fr = PRIOR node_id_fr OR node_id_to = PRIOR node_id_to)
    ), group_by_link AS (
    SELECT DISTINCT Min (root_id) OVER (PARTITION BY link_id) group_id, link_id
      FROM tree
    ), linked_nodes AS (
    SELECT g.group_id, l.node_id_fr node_id
      FROM group_by_link g
      JOIN links_v l
        ON l.link_id = g.link_id
    UNION
    SELECT g.group_id, l.node_id_to
      FROM group_by_link g
      JOIN links_v l
        ON l.link_id = g.link_id
    SELECT l.group_id "Network", l.node_id "Node"
      FROM linked_nodes l
    UNION ALL
    SELECT '00 (unlinked)', node_id
      FROM nodes_v n
    WHERE n.node_id NOT IN (SELECT node_id FROM linked_nodes)
    ORDER BY 1, 2Output
    Network       Node
    00 (unlinked) 06
                  10
    01-1          01
                  02
                  03
                  04
                  05
                  07
    08-1          08
                  09

  • Combine two hierarchies for the same characteristic

    Hi experts,
    I need to show the values of the characteristic 0COMPANY that are in different levels of two hierarchies.
    For example,
    Hier. 1
         Level 1
              Company A
              Company B
    Hier. 2
         Level 1
              Company A
              Company C
    Well, I need the intersection of the two levels 1 --> Company A.
    Is this possible?
    Thank you in advance
    Manuel

    Hi Silvio,
    The regular text variable will not work for your 3rd column because there are two years are involved. If  "Actual vs. Previous" is not sufficient and it has to be "2008 vs 2007", you will have to use a user exit Text variable. Within the user exit, you should be able to find the  "Actual Fiscal Year" (2008).
    Hope this helps!
    Bill

  • How can I use one hierarchical table as a node of another hierarchical tabl

    I have a requirement where I have two hierarchical tables and one table should  work as node for other table . How to achieve this??
    To elaborate more the structure is like
    Main Table (Company Structure)
    Sub table “Consolidation Groups” which has got hierarchical structure
    Sub table “Entity” which is also hierarchical.
    The Entity table should act as a node for table “Consolidation Groups”
    How can I achieve this functionality??
    Thanks
    Suvarna

    you misunderstood me apparently. I said you can't organinze to tables so one serves as a node's value of the other. Let me show you wnat I suggested by an example.
    First table has such values:
    -A
    |-B
    |-C
    and the second one is
    -x
    |-y
    |-z
    -p
    |-r
    |-s
    I thought you wanted to confine relationships between them so fo B node be able to select only x's branch and for C - only p's branch. If it's similar to the truth then let's create another table with two fields. Field one points to table containing capital letters and field two - lower case letters. Both fields are of type lookup pointing to an hierachial tables. Now when you populate this table you'll create records like (I list two columns):
    B - y
    B - z
    C - r
    C - s
    from your orinal table from now you should point to the above table. So instead of having two fields each pointing to its own table and compeling you to think how to organize two hierarchies, now you have only one field pointing to a table with all valid combinations. When you populate this table though YOU have to decide what such combinations are. It may make sense (if you have different users) to restrict access to this table on read-only level  for regular users to preserve the valid combinations.
    Hope it helps but if I understood your wrong give a concrete example.

  • Time-dependent BW hierarchies in Analysis for OLAP

    Hi all,
    We are using time-dependent hierarchies in combination with a key date variable.
    Tools used: Query designer based on SAP BW 7.4 and BO 4.0.
    The following steps are executed:
    Report is executed and key date is prompted
    According to the key date, the correct time-dependent organisation hierarchy will be used in drill-down
    Bring up variable screen again and select different key date
    The drill-down changes according to the now correct time-dependent organisation hierarchy
    The above scenario works for BEx Analyzer, BEx Web, Analysis for Office - but not for Analysis for OLAP.
    Whenever I run through this scenario and confirm the updated key date, the following error is displayed:
    cube.get.dimension.info.runtime.error : java.lang.IllegalStateException: There is no default hierarchy for dimension [ORG].
    In the user guide I don't find any specifics about the hierarchies and since it works in all the other applications, I wonder where the error is coming from. I also could not find it anywhere else in the forum.
    Has anyone experienced the same error or any suggestions?

    Hi Peter,
    This issue is captured in SAP Note 1941865. Resolved in 4.0 (8.5, 9.2 or SP10) and 4.1 (1.6 or SP03).
    Symptom
    In BI 4.1, Analysis for OLAP returns errors similar to:"An error occurred in the MDAS service while processing a request from Analysis, edition for OLAP. Try the operation again. If the problem persists, please contact your administrator. (AOC00041)" and/or "cube.get.dimension.info.runtime.error: java.lang.IllegalStateException: There is no default hierarchy for dimension [DIMENSIONNAME]"
    The BW Query the AOLAP workspace is created against has 2 different hierarchies that have the same text description
    Environment
    SAP BusinessObjects Business Intelligence platform 4.0
    SAP BusinessObjects Business Intelligence platform 4.1
    Analysis, edition for OLAP
    Reproducing the Issue
    In CMC, create an OLAP BICS connection to a multi provider
    Connect to BI launchpad and launch Analysis, edition for OLAP.
    Use the connection to create a new workspace.
    The error is observed
    Cause
    This issue has been logged as a defect under ADAPT01720287 for BI4.0 and ADAPT01713663 for BI4.1
    Resolution
    A fix for this issue is included in the following maintenance releases:
    BI4.0:
    Patch 8.5
    Patch 9.2
    Support Pack 10
    BI4.1:
    Patch 1.6
    Support Pack 03

  • Free goods secquence with customer hierarchie and product hierarchie

    Hi  guru's,
    I'm currently working with a secquency for free goods with customer hierarchie ans product hierarchie, but is giving me a lot of problems of dums ,  I think that SAP standard doesn't allow it because the customicing is diferent than the secquence for pricing that has 2 more fields open: V_T682Z-FSTST and V_T682Z-MBWRT that could allow me to set the levels of the hierarchie. Despite it works with the same table T682Z.
    Has anybody had the same problem as me? Can you help me please.
    Marta Gallego

    Maintain your entries in " Determine Item Category For Free Goods Item"
    For the combination of Order Type-ItemCatgrp(ERLA)-Usage(Free)-Item Category(Tan)
    Lets see if it works for you.

  • Data extraction from R/3 Hierarchies to BW

    Hi Guru's
    I am not comfortable with uploading of  Hierarchies from r/3 to BW. i always get confused .
    My reporting Scenario is to show cost center ( Regions ), Cost element group , costelements under it and amount corresponds to it.
    In R/3 I could see Hierarchy build on costelement and cost centers.
    i need to extract the data from r/3 to BW inorder to show same in my report.
    please don't ask me to go through the sap help. i have already gone through it and am confused .
    my confusions are
    i need to maintain costelement group in external characteristic in costelement. and how this costelement group and costcenter hierarchy will combine. 
    please through ligth on this.
    Thanks
    Roopa

    Have you tried to look through RSA5 with any datasources with patterns of Cost, cost element, and Hier that may meet your requirements.
    From the BW test system you can replicate the datsources and see if the hier will load.
    Also do a search for uploading hier form flat file. You can also write an ABAP to do this using sets. Do a search on GS01.
    Message was edited by:
            The Renaissance

  • How to send two seperate queries from OBI and combine the results

    Hello all,
    I am trying to understand how to combine results of two queries in OBI. Here is the scenario.
    There are three tables, User, Security Roles joined though a Bridge Table Role_User
    Each user has multiple roles, The roles to which a user has access is identified by a flag column with value T or else it will have value F.
    I am trying to create an analysis as below
    User Id
    Roles with Access
    Roles without Access
    So column 2 will show all the roles with flag T for particular user and column 2 will show all the roles with flag F for same user.
    I tried creating two Fact tables and using Filter condition on the flag value, but in analysis I could only use one at a time. When I add both the columns , I get error as None of the fact table are compatible with the query request. I do have hierarchies created for the dimensions and assigned them in the content level for all dims and facts.
    Any hint will be highly appreciated.
    Thanks  

    Got the solution. I am posting it here in case anyone face similar issue.
    I added this SQL code in the advanced tab:
    Select A.saw_0 saw_0, A.saw_1 saw_1, B.saw_1 saw_2
    FROM( Select Col1 saw_0,Col2 saw_1 FROM Table1) A LEFT OUTER JOIN
    (Select Col1 saw_0,Col2 saw_1 FROM Table2) B
    on A.saw_0=B.saw_0
    I created to Logical Facts using same source with two different filter conditions and used them with sub-query as above
    Ref: OBIEE Interviews: Reports

  • Representating Hierarchical (Parent-Child) relation graphically using Swing

    Hi,
    I have to represent a hierarchical data which is having Parent-Child relation using Swing. I am not able to upload the image overhere, so I am represnting the data in such a way so that one can understand this problem. If anyone knows how to upload image on Sun forum, please let me know it will be great help for me.
    Parent Root - A
    Child of A - B, C, D
    Child of C - E, F, G
    Child of F - H
    Child of D - J, K
    The data needs to be represented in two formats-
    1. Tabular Format
    I am able to represent data in this format using combination of JTree and JTable. The data is getting represented in tabular format and I am able to expand and collapse the parent nodes to see the childs. The tabular data will look like below structure,
    A
    I_B
    I
    I_C
    I I_E
    I I
    I I_F
    | I |_H
    | I
    I I_G
    I
    I_D
    I
    I_J
    I
    I_K
    2. Graphical Format
    This is the other way in which I need to represent the data. The above shown tabular data needs to represented in graphical form. The end result should look like,
    I A I
    ____________________I__________________________
    ___I___ __I__ __I__
    I  B  I I  C   I I  D   I
    ____________________I____________ ______I________
    ___I___ __I__ __I__ __I__ ___I__
    I  E  I I  F   I I  G   I I  J   I I   K    I
    __I___
    I   H   I
    Each box representing alphabates will be a component (like JPanel) which will have details about the item to be displayed. The parent and child should be connected with each other using line. This representation should be created at runtime using the hierarchical data. Also the parent and child relations should be expandable/collapsible as they are in JTree.
    I am not able to find any component or any solution in Swing which can provide me this graphical representation. It will be great help if anyone can help me out in this.
    Thanks in advance.

    Sorry for inconvinience for the data representaion in graphical form. I don't know how this get jumblled. Please try to figure out the tabular/graphical representation using pen and paper as forum is not providing any help to upload an image.
    Sorry again for inconvinience.
    Thanks
    Manoj Rai

  • BW Authorizations Hierarchies

    Greetings All;
    This is yet another question regarding BW Authorizations.
    I have two fields 0COMPANY and 0PROFIT_CTR, both Authorization Relevant, both containing hierarchies.
    I need to allow a user to see all profit centers for a given company <u>and</u> also selected profit centers for another company ...
    example - All profit centers for company A and
              Profit Center 1 for company B
    ... this must be an AND condition.
    I've been through RSSM and PFCG but can't get it right.
    I created an authorization object with ...
    1KYFNM, 0COMPANY, 0PROFIT_CTR, 0TCTAUTHH
    ... and tried specifying a role with ...
    Key figure = *
    Company = ' '
    Profit Center = *
    Unique ID for Authorization = Y_COMPANY_A
    ... and ...
    Key figure = *
    Company = 'B'
    Profit Center = *
    Unique ID for Authorization = Y_COMPANY_B
    ... this shows me everything for both companies. As soon as I add ...
    Profit Center = '1'
    ... to the second grouping I get an authorization failure.
    It's possible I haven't specified the Authorization Definitions Y_COMPANY_A and Y_COMPANY_B (in RSSM) correctly, but I've followed all the documents I've found in SAP HELP and SDN.
    Is it an issue with both the fields having hierarchies?
    Any, and I do mean any, help would be greatly appreciated.
    Regards
    Jim

    Hi Jim,
    If you replace '' with '1' in the second authorization, the variable (auth-based) is filled with '' from the first auth and with '1' from the second auth --> result is still no restriction in the ProfitCenter-Variable ('' and '1' = ''). Try to filter the query with company 'B' - do you see know a result? (At the moment your CompCode-Variable is filled with CompCode 'A' and 'B' but you don't have authorisation for all ProfitCenters combined with Company 'B').
    I hope, this will help you.
    Best regards,
    Thorsten

  • Setting up Hierarchies and dimensions

    Do you have any idea what i need to do if the commissions depend on discounts, item numbers and customer numbers?
    We are on 3i- 3.1.2 and pay commission after invoicing and have used indirect mapping from AR. How to bring in discount related info.
    How many hierarchies will I need to setup. Will I need one hierarchy for items, customers and rules apart from the sales and revenue class hierarchies. Also what should revenue classes and how should the rev class hierarchy look like if we have several thousand items and customers.
    Will I need to create each combination of item and customer as a revenue class and assign all of them to each compensation plan.
    null

    You will need a hierarchy of values for each dimension of classification that you need to determine the basis of classification. Your objective is to create the FEWEST rules that accomplish this objective. For example,
    A company sells 5000 products through two distribution channels. On the face of it, this would imply 10,000 rules and revenue classes. However, when we looked closer, it was the method of distribution that really determined how much they they paid. The product id was important to capture for auditing and reporting but was not actually needed for classification. Therefore, the only classifcation categories required were the two that distinguished the different distribution channels (which presumably paid different rates)
    Be sure to distinguish between the concept of classification to determine the basis of calculation and the linkages between salesreps and customer accounts. For example,
    does every customer have seperately negotiated rates for every product?
    The revenue class hierarchy will ultimately reflect the groupings of rules that you need for classification. The revenue classes are simply bundles of rule combinations...but you should only create the combinations that you definitely need. Think twice before blindly creating revenue classes for every combination.
    The sales hierarchy is completely different since that simply indicates the chain of credit receivers who potentially receive credit. The presence of a specific revenue class in their plan is the second determinant.
    I believe in 3i there is a plan element function which covers discounts. Not needed for classification.
    The customer dimension is not needed for classification unless individual accounts have seperately negotiated commission rates in addition to the discounts mentioned above. If that is the case, you will still want to look for ways to group similar customers together.
    Thinking this through can be challenging but the payoff is a system that is easier to implement and administer.
    null

  • When do u go for elementary test and combined test(rsrv)

    hi all,
    Can anyone explain me with an realtime scenario ? when do we go for elementary test in rsrv trns code and combined test.
    thanxs
    hari

    hi hari,
    RSRV is used for analysis and repair of all BW objects.You can perform consistency checks on the data and metadata stored in BW System.RSRV tests the foriegn key relationships between the individual tables of the enhanced starschema of the BW system
    There are 2 types of tests
    1.Elementary Tests- these tests are related to master data,transaction data,ODS objects,Hierarchies.database(indices,parametres,statistics),aggregates,PSA tables and documents.
    2.Combined Tests-This test determines which elementary tests are performed according to the parametres entered.
    Hope this helps!
    partha

  • Loading Customized Hierarchies in BPC 10.0

    Good day!
    Has anyone tried combining the InfoObject Hierarchy of 0COSTCENTER (Cost Center) and 0PROFIT_CTR (Profit Center) into one hierarchy in BW?
    I am asking this in order to execute a single load for Master Data Hierarchies of a dimension COST_PROFIT_CTR in BPC 10.0.
    If yes, how were you able to load the hierarchy successfully?
    Hoping for your reply.
    Thank you very much.

    Thank you very much for your reply, Bishwajit.
    I created two transformations connected to a customized InfoObject. When I opened the Hierarchy of the said InfoObject, I saw two separate hierarchies - one for Cost Center and one for Profit Center.
    What is the best approach to create a "merged" custom hierarchy in BW if this is the scenario?
    There are Profit Centers which have the same ID as Cost Centers. However, in their respective hierarchies in R/3, there are instances wherein the parent of the base member of a Profit Center is different from the parent of the base member of the same Cost Center.
    Thank you.
    Regards,
    Paola

Maybe you are looking for