Calculation in BEx on Hierarchy Link Nodes

Hello everyone. I am working on a BEx query that involves a hierarchy based on Controlling Area, Cost Center, and Cost Element. There is a case where I have 5 Cost Elements that belong to 2 Cost Centers. I can successfully create the duplicate nodes at the different Cost Center levels and activate the hierarchy. Where I am having difficulty is assigning a percentage factor to the key-figure at the parent-node (80%) and the link-node (20%). The high-level node at CO_AREA is correct. However, the COST_CENTER nodes show the total original value. I would like to apply these factors dynamically in the BEx query. I have tried structures and cell definitions and was able to apply the 80% and 20% factors correctly to the corresponding hierarchy nodes. Unfortunately, the amounts are not broken down as I would like to see them.
I have looked at the documentation on "Link Nodes" and "Modeling Nodes and Leaves: at help.sap.com.
http://help.sap.com/saphelp_nw04/helpdata/en/b3/fa3d3806136268e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6743e07211d2acb80000e829fbfe/content.htm
This is from one of the above links:
"For both duplicate leaves and leaves in subtrees under link nodes, the values of the duplicate leaves are only considered once by the system internally. When aggregating, the system automatically calculates what are called correction leaves for the superordinate node.
If a leaf Lo lies three times amongst the descendants of a node No, the value is added three times internally and then subtracted twice by the ’correction node’."
I'm wondering if it is even possible to do what I would like to accomplish.
I would appreciate any feedback and suggestions on how to solve this issue if you have done something similar.
Best Regards,
Albert Pecoraro
Sr.SAP BW Specialist
Ferro Corporation
Example:
CO_AREA_1000 = Total = <u><b>$1000</b></u> (AAAA = $800, BBBB = $200)
--><u><b>COST_CENTER_AAAA</b></u> = $1000 @ 80% = <u><b>$800</b></u>
>COST_ELEMENT_100 = 100 @ 80% = $80
>COST_ELEMENT_101 = 200 @ 80% = $160
>COST_ELEMENT_102 = 300 @ 80% = $240
>COST_ELEMENT_103 = 150 @ 80% = $120
>COST_ELEMENT_104 = 250 @ 80% = $200
--><u><b>COST_CENTER_BBBB</b></u> = $1000 @ 20% = <u><b>$200</b></u>
>COST_ELEMENT_100 = 100 @ 20% = $20
>COST_ELEMENT_101 = 200 @ 20% = $40
>COST_ELEMENT_102 = 300 @ 20% = $60
>COST_ELEMENT_103 = 150 @ 20% = $30
>COST_ELEMENT_104 = 250 @ 20% = $50

Hi Alberto,
Would you please post the resolution of the issue with the hierarchy node calculation? I too have a simillar requirement. It would be helpful if you share the solution for tha issue that you had.
Saravana

Similar Messages

  • Maintain the link node in a hierarchy

    Hello,
    I have loaded 2 hierarchies H1 and H2 from ERP system and maintained a hierarchy Z in BW consists of H1 and H2. The node names are exactly the same of the 2 loaded hierarchies. Now I want to maintain the “link node flag” for the 2 nodes H1, H2.
    When I maintain the hierarchy this field is only displayed (and it is blank).
    How can I change this field to ‘X’.
    Thanks!

    Hi
    Did you solve this? Im facing the same problem
    Thanks!

  • Account dimension hierarchy text nodes ACCTYPE property

    Hello,
    We have master data being populated into BPC from BW. So for the Account dimension in BPC, we use the 0GL_ACCOUNT infoobject in BW. This infoobject also has all the Financial statement version hierarchies which are being loaded to BPC. The question that I have is, how should the hierarchy text node values for ACCTYPE property be populated if I have to automate this load on a daily basis.
    For the actual GL accounts, we have the account number ranges defined. Like 1* series accounts are Assets etc..So we can easily define a rule for populating the ACCTYPE  property values. But not sure if there is any easy logic for populating the hierarchy text nodes as we dont have any pattern in them. Would we need to maintain it manually always?
    Thanks
    Gaurav

    Hello Richard,
    If there is really no logic behind them there is off course no way of automating this. Then I guess you will have to maintain each node separately.
    Some customers are also willing to change their text node structure. For example I had one when where the rules for the 0HIER_NODE records were as follows:
    *           EXP -> Starts with 32*, 311*, 312*, 321*, 3111*, 3112*,
    *                  3142*,  31111*,  31112*,  311111*
    *           INC -> Starts with TOT, 3000000000, 3100000000, 313*,
    *                  322*, 3113*, 3141*, 31113*, 311112*
    *           AST -> Starts with 1*
    *           LEQ -> Starts with 2*
    Kind regards,
    Christophe

  • How to import hierarchy text node from BW infoobject

    I tried to import hierarchy from BW InfoObject through process chain /CPMB/IMPORT_IOBJ_HIER.
    But BPC complains the hierarchy text node haven't been dimension member.
    As result, I have to export the hierarchy text node to a flat file and import again which is not convenient.
    Does anyone have some best practice for this?
    Thank you.

    Hi,
    You can follow the steps mentioned in the below How-to-Guide of sdn. This explains the steps to be implemeted to inport hierarchies.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c02d0b47-3e54-2d10-0eb7-d722b633b72e
    Hope this helps.
    Rgds,
    Poonam

  • Build Hierarchy  with nodes with ABAP for custom Infoobject

    Hi,
    Need to build hierarchy with nodes with abap for custom infoobject.
    Thanks

    Hi,
    Using information from:
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm
    you can bulid flat file with hierarchy data and then load in into BW...
    Krzys

  • Hierarchy link between configure material & configured material (VC Issue)

    We have a configurable material A770 and we have a configured material ZA720
    The configurable material A770 has 1500 components and these 1500 components has inturn has assemblies & subassemblies
    Is there any way, we can find out the hierarchy link between configure material  A770 & configured material ZA 720 i.e. we are not able to find parent material of ZA720
    We tried looking into Tcode CS11 & CS15, it was not much help
    Note: In CS03, when entered configured material ZA720 it display error message “ BOM can only be displayed via configurable material A770”
    Thanks
    Suren R

    Dear Suren,
    Eaht Imunderstood from you is,
    You have configarable material A770 and you have a semifished material ZA720 which has one of the material variant, if that is the case it will have its own std bom and routing.
    if that is the case please see the link below for more information, if that is not the case, please let me know
    http://help.sap.com/saphelp_470/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm

  • Server Side Links (Node Link): caught exception

    HI ,
    Following error is showing up in System Audit Trace Logs:
    Server Side Links (Node Link): caught exception
    I am not able to figure is out why this error is coming.
    Can any please explain the reason of this error..
    thanks

    Hi
    Thanks for the link, it is indeed a good example. However, whilst it has some interesting points, it seems to narrowly skirt around the issue i am having (as do most examples in fact).
    Perhaps i should have been more clear that the problem i am having relates specifically to entities that have already been persisted, and all i am trying to do is edit them. In the example you sent, if bean-validation fails then the entity is not persisted, so no problems. However, when editing an already persisted entity, form submissions trigger an automatic database update via the EntityManager (provided JSF validations are passed), so my real problem is avoiding this.
    Any input appreciated.
    -Rich

  • YTD calculation from BEx is not working in Advance Analysis for OLAP/OR Office

    I have AA for OLAP based on BEx. There are YTD calculation in BEx Designer: User enters Period in variable, and in user exits, the Period Range is populated as "1 ~ UserEnteredValue" in second variable. In BEx, YTD is calculated based on the Restrictive KF for the period range, calculated in User Exit. This is working fine in BEx Analyzer, however in Advance Analysis (for OLAP OR in Ofice), the YTD value is not coming up they way it is in BEx Analyzer...
    Anybody has any clue, why??
    Thanking all of you in advance  

    Hello Sharma
    If something is working for BEx Analyzer but not for Analysis OLAP or Analysis Office then this typically (but not always) indicates an issue with the BICS (BI Consumer Services) component.
    I would suggest you contact support about this so the appropriate logs can be captured and the issue investigated by the BICS team.
    Regards
    Ian

  • SAP BEx - Reporing - Hierarchy - nodes repead the details

    Hello out there,
    I got the problem, that I want to create a BEx Query which got in the rows a characteristic with a hierarchy and below an oher one without hierarchy. For every different entity in the second characteristic I got the corresponding number of records under the sheet of the hierarchy. That is ok. In the notes of the hierarchy the system will not aggregate on the basis of the first characteristic entities. That is also ok, but in my case not required. I went through all the settings and checkt the help and the sdn without success.
    The following solution is also not helpful:
    - The second characteristic would be an attributes of the first one
    A solution will be appreciated.
    With kind regards,
    Marco

    Hello,
    I want to achieve, that the nodes (hierarchy of the first characteristic) show one row with the aggregated value. So the entities of the second characteristic on the level of the sheets are not considered on the level of the corresponding nodes. With other words, the hierarchie shows only the detail of the second characteristics on the level of the sheets.
    Hope this clarify my requirements. I appreciate any ideas.
    Many Thanks and kind regards,
    Marco
    Edited by: Marco Schraner on Aug 25, 2011 5:51 PM
    Edited by: Marco Schraner on Aug 25, 2011 5:53 PM
    Edited by: Marco Schraner on Aug 25, 2011 5:54 PM
    Edited by: Marco Schraner on Aug 25, 2011 5:54 PM

  • In BEx, how to display hierarchy Upper Node with selected Lower Nodes only

    Currently I am displaying the Cost Centre (GFL Responsibility Cost Centre) hierarchy in a workbook. I want to be able to filter on this hierarchy dynamically. E.g. the upper node must be displayed including the rolled up results for this node, together  with a selection of the lower nodes e.g 2 nodes ( not all the lower nodes related to the upper node must be displayed in the query).
    What's possible when filtering :
    To filter on the 2 lower nodes only ( results are displayed as required)
    Not possible:
    When I include the higher node of the 2 lower nodes in the query, All the lower nodes of the higher node are displayed, and the filter selection of the lower nodes are over written.
    This is logically what's expected when the higher node is included in the filter.
    Creating a hierarchy variable gives the same problem, I am not able to filter on the hierarchy nodes as required.
                      <b>Upper Node</b>
              <b>Lower Node1 LowerNode2 LowerNode3</b>
    Filter the report for UpperNode and LowerNode 2 & 3 only
    <b><i>Thanking YOU in advance. Will reward points for the correct help</i></b>

    Hi
    Do you want to show particular node or particular level ?
    If you want particular node , then create hierarchy node variable and restrict to that node ( 3rd node)
    If you want particular level, what does that mean  say i am taking employee hierarchy and the hierarchy is as below.
    Ihe setting that we have is to expand upto n levels but  if yiou say i need level 2 what does that mean and how do you want to show in report ?
           A -
    (level 1)
           B,C,D( --child of A ) --- level 2
              E(Child of B), F(Child of C)   -
    level 3.
    Regards
    vamsi

  • Hierarchy: Postable node (or not) in Flat file

    Hello Experts,
    I have read several times, the links you provided on this subject and they were very helpful but I am still stuck here:
    If I am loading a hierarchy through a flat file, how do I specify which of these nodes are postable and which are not?
    I know the Leave notes are postable, but my issue is with the various interval nodes
    For example, in this Customer profit center hierarchy ....
    NodeID|InfoObject Name| Node Name----- |--Link-|-ParentID|Child-|----Next ID
    0001----|0Hier_Node|--Customer--||---0|2---|--0---
    0002----|-0Country--|-China||| -|----
    0003----|-???--|50000||| -|----
    0004----|-oRegion--|RegB||| -|----
    0005----|-???--|60000||| -|----
    0005----|-???--|70000||| -|----
    What I want to achieve in the flat file, is to place region and the profit center 5000 under country, and make the profit center 5000 postable but Region is not postable.
    Also, under Region is RegB which is supposed to be NOT postable, but it has 2 profit centers under it, 6000 and 7000 which should be postable.
    Root
    Country---5000
    Region
    RegB---6000 / 7000
    Any help on this flat file will be appreciated. Where I have ???, I only meant I have doubts but I think it should be 0ProfitCtr.

    Hi,
    I don't know if this is what you mean...
    NodeID|InfoObject Name| Node Name----- |--Link-|-ParentID|Child-|----Next ID
    0001----|0Hier_Node|--Customer--||---0|2---|--0---
    0002----|-0Country--|-China||---1| -|----
    0003----|-???--|50000||-2| -|----
    0004----|-oRegion--|RegB||--2| -|----
    0005----|-???--|60000||4--| -|----
    0005----|-???--|70000||--4| -|----
    (hope it is readable)
    In the hierarchy flat file you only need to specify the parent node of a row. That way your hierarchy will get linked. That is how we load our flat file hierarchies and it works perfectly.
    Regards,
    David.
    Message was edited by: David Sirvent

  • SAP BI - Hierarchy Characteristic Node key not displaying Web Analyzer

    I am using 0COMP_CODE as a characteristic node in my 0COSTCENTER hierarchy. Using BEx analyzer works fine, but in Web Analyzer the 0COMP_CODE key shows as a "#" in a query display regardless what I set the characteristic or hierarchy node to display.
    Thanks in advance.
    Tom

    Hi,
    If S0001 is a subtree node of A0003, then change the 'type of authorization' to 1 (subtree below node) for A0003 in your analysis authorization. Currently in your case, I guess its 0- selected node only (default type).
    Thanks
    Sandipan

  • Variable to store a result of a complex calculation in bex query

    Hello all,
    I've got a query in BEX with some key fields to display and also need to perform some calculations not supported in bex formulas.
    I think this could be made in a BEX user exit and I'm trying this by creating a project in CMOD assigning EXIT_SAPLRR0_001... Working with INCLUDE ZXRSRU01 and so on.
    I just want to know if this is possible this way because I execute my query and the variable created never get any value at runtime.
    Could anybody help me or give an idea on how to use BEx user-exits?
    Thank you very much,
    Carlos Hinestrosa.

    Hi!
      I think it should work .here are some links to help topics on using user exits.
    presentations
    https://websmp206.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700005475091999E
    Help:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    propably they might help you
    With regards
    Ashwin

  • Error in BO Webi using Authorization analysis in Bex with hierarchy display

    Hi Experts ,
    When we run the WEBI report created on bex query which has 0comp_code restricted with characteristic variable  of processing type Authorization and Not ready for input.
    The hierarchy display is active in Bex (as we want to see L01, L02.... in webi)
    The authorization analysis is working perfectly when I test in Bex analyser (at any drill down level).
    But in BO webi, I get below error
    The database error text is: The supplied XML is not valid. [char name & Level].
    I dont get this error when I deactivate hierarchy display in Bex.
    Also I dont get this error for user ids having 0BI_ALL
    Please help me to resolve this.
    Thanks
    Savio

    Hi Atul,
    You can achieve this by dragging these two fields in the filter bar section of the webi. then apply variables on these fields.
    hope it helps
    Regards,
    Rathy

  • Calculations Translation- Bex vs Transformation

    Hello gurus,
    here is the line that I d like to translate in BW, and I d like to know what's the better way of implementing it in BW, is it in Transformation (formula/calculation), or in Bex.
    result = (1/3) x (sum of prior 3 month balance from date entered) x (number of days in the past 3 months) / (sum of prior 3 month sales)
    Assumption is that user 's input is 1 Month period. (please write the line in abap if you re thinking that it is easier).
    Thanks,

    Hey Suhas,
    i have this code below, but  I am the call fm get days in Month return 0, what do you think is the problem?
    (i am operning a new thread although it is a continuation for this one here:
    Customer Variable to return number of days previous months )
    DATA: l_s_range TYPE rsr_s_rangesid.
    Data: noOfdays type i,
          date_prev1 type /OSP/DT_DATE, date_prev2 type /OSP/DT_DATE,
          date_prev3 type /OSP/DT_DATE,
          var_yr type n length 4,
          var_mth type n length 2, var_mnth_prev1 type n length 2,
          var_mnth_prev2 type n length 2, var_mnth_prev3 type n length 2,
          var_day type n length 2,
          ev_days_prev1 type /OSP/DT_DAY,
          ev_days_prev2 type /OSP/DT_DAY,
          ev_days_prev3 type /OSP/DT_DAY,
          I_NUM_DAY type n length 2,
          loc_var_range LIKE rrrangeexit.
    CASE i_vnam.
    WHEN 'Z_F_RETURN_3MONTH_DAYS'.
      IF i_step = 2.
        LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZC_PERIOD_SR'.
        CLEAR: var_mth, var_yr, var_mnth_prev1, var_mnth_prev2, var_mnth_prev3.
        CLEAR: date_prev1, date_prev2, date_prev3, ev_days_prev1, ev_days_prev2, ev_days_prev3.
        var_mth = loc_var_range-low+5(2).
        var_yr = loc_var_range-low+0(4).
        var_mnth_prev1 = var_mth - 1.
        concatenate var_mnth_prev1 '01' var_yr into date_prev1.
       var_mnth_prev2 = var_mth - 2.
       concatenate var_mnth_prev2 '01' var_yr into date_prev2.
       var_mnth_prev3 = var_mth - 3.
       concatenate var_mnth_prev3 '01' var_yr into date_prev3.
        CALL Function '/OSP/GET_DAYS_IN_MONTH'
        exporting IV_DATE = date_prev1
        importing EV_DAYS = ev_days_prev1.
        I_NUM_DAY = ev_days_prev1.
       CALL Function '/OSP/GET_DAYS_IN_MONTH'
      exporting IV_DATE = date_prev2
       importing EV_DAYS = ev_days_prev2.
       CALL Function '/OSP/GET_DAYS_IN_MONTH'
      exporting IV_DATE = date_prev3
       importing EV_DAYS = ev_days_prev3.
        noOfdays = ev_days_prev1 + ev_days_prev3 + ev_days_prev3.
        l_s_range-low  = noOfdays.
        l_s_range-sign = 'I'.
        l_s_range-opt  = 'EQ'.
        append l_s_range to e_t_range.
        ENDLOOP.
      ENDIF.
    ENDCASE.

Maybe you are looking for

  • Managed property in a site collection (powershell - SharePoint online)

    Link to my site collection -> https://web.domain.com/sites/SC/_layouts/15/listmanagedproperties.aspx?level=sitecol when opening an url similar to this one and filter on a property name refinablestring00 What I need is to is to add a mapping to do is

  • Help Please On Classes

    Can any one help me out in how to grant rights on classes to different schamas. Your Help will be highly appericiated. Chandan

  • Downpayment to check the MIRO payments for same PO

    Hi SAP Gurus, The system is allowing to make a down payment for a PO for which the the MIRO and payment for the entire PO value has already been processed. The standard system should not allow this transaction as it is a security threat. We have alre

  • Sequence Number Error

    When I try to use sequence number while creating a materialized view, I got errors: create materialized view ruby_keywords build immediate as select keyword, keyword_id_sequence.nextval from ( select distinct name as keyword from product union select

  • No SAP Systems in Database Assistant

    Hi, I am trying to connect to an SAP R/3 System out of Crystal Reports 2008. I have installed the Integration Kit for SAP and can connect to my SAP BW systems. However I would like to directly connect to an ERP, R/3 system. But when I select "SAP Inf