Storing Cummulated key figures in cube

Hi,
Can someone share on how to store cumulative key figure ? We have an Inbound and Staging layer that stores the inventory movements quantity. The staging layer contains material document and material item. At the reporting layer we need to be able to use the movement quantity and cummulate them by posting period. can someone share your thoughts on how this is coded with some performance considerations and delta. Is there an easy way to implement this in 3.X ?
I.e.
Material | Plant | Calendar Day | Quantity | Cummulated
A | XYZ | 01.01.2011 | 10 | 10
A | XYZ | 12.01.2011| 5 | 15
B | XYZ | 12.01.2011| 40 | 40
A | BBB | 13.01.2011 | 6 | 6

if youre staging is a dso then you are in luck. you could create a transformaiton routine to read the active dso table, find the key and read all the quantity on it and then store the quanity in the new infoobject result..
it should wok with delta.. unless somebody else comes up with a better idea..
or you could do it in CMOD before you bring it in BW system, makes it run even faster..
if your main object is a structure i could send u some code that help you figure it out..

Similar Messages

  • Computing 2 cummulated key figures

    Hi All,
    We receive a requirement to develop a report that would able to compute 2 cummulated key figures in BW. I was informed this was not able to be done in the normal BeX query formula as the cummulative values are computed during query execution.
    Example:
    Usages   Loss/Gain       %LOSS/GAIN (=SUM(Usages)*100/SUM(Loss/Gain))
    is there a way to do this in BeX or must this be done during back-end execution.

    Thanks Suman - but i think BeX is not able to handle 2 cummulated key figure values and calculate them in a formula correctly:
    The % Tol - is picking up cummulated values from Usages and Daily Gain/Loss - only way i can think of is to store this in the cube.
    Usages     % Tol     Daily Gain/Loss
    25,713     372             95,666
    32,584     -64.52     -133,278
    31,302     0.35              37,924
    29,915     0.56              362

  • Cummulative key figures

    Hi experts. please explain me what are cummulative KFs and how to use them?
    regards
    rajesh

    Dear Rajesh
    Flow/non-cumulative value
    You can select the key figure as a cumulative value. Values for this key figure have to be posted in each time unit, for which values for this key figure are to be reported.
    Non-cumulative with non-cumulative change
    The key figure is a non-cumulative. You have to enter a key figure that represents the non-cumulative change of the non-cumulative value. There do not have to be values for this key figure in every time unit. For the non-cumulative key figure, values are only stored for selected times (markers). The values for the remaining times are calculated from the value in a marker and the intermediary non-cumulative changes.
    Non-Cumulative with inflow and outflow
    The key figure is a non-cumulative. You have to specify two key figures that represent the inflow and outflow of a non-cumulative value.
    Note
    For non-cumulatives with non-cumulative change, or inflow and outflow, the two key figures themselves are not allowed to be non-cumulative values, but must represent cumulative values. They must be the same type (for example, amount, and quantity) as the non-cumulative value.
    Aggregation Behavior of Non- Cumulative Key Figures Locate the document in its SAP Library structure
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/content.htm
    The non-cumulative key figures are used in the Inventory cube.
    Assign Points if useful
    Regards
    Venkata Devaraj !!!

  • Snapshot Inventory Management with Cummulative key figures

    Experts,
    We are implementing the snapshot model in parallel with the Daily cube. When trying to create the update rules from 2LIS_03_BX, we get a warning message saying 2lis_03_bx is setup for noncummulatives only followed by an error stating that there are no key figures in the cube.
    How do we circumvent this issue?
    All thoughts appreciated!

    Pls go though below link which will help you to implement snapshot Inventory " How to handle Inventory"
    https://websmp108.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002121282004E
    Regards
    Sangita

  • How to Selectively Delete ONE Key Figure from Cube....

    Hi:
    On a Daily basis (Via Process Chain), I need to do the following:
    1.  DELETE Single Key Figure from my planning cube.  When the "PYMNT DATE" is greater than System Date, then delete the
         key Figure.
    2.  Once Deleted, LOAD the same Single Key Figure from another cube when the PYMNT DATE is GT  System Date. 
    How can I do this in a Program.  What would be the code for this?  Need help with ABAP.
    Thanks in advance.....  PBSW

    Hi,
    See Article on Selective Deltaion in
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Using Selective Deletion in Process Chains
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/using%20selective%20deletion%20in%20process%20chains.pdf
    Thanks
    Reddy

  • How to filter rows according to calculated key figures in cube?

    in my cube , i use V3 update for scheduleding lines of sales items.For example , in last delta update , valid row is last column ,other two rows make zero each other for key figures but i dont want to display first two rows in Bex.i want to get rid of these rows.because of not deleting previous data in cube, how to discard the rows , can i filter by calcuated key figures in query analyzer (like not display if sum of key figures zero)   
    Doc_No       Doc_Type   Reject_St          Item_No     Net_Price(Key_Fig)     Total_Pric(K_F)
    0002207615    TA           99               10        17,000             295.630,00
    0002207615    TA           99               10        17,000-            295.630,00-
    0002207615    TA           04               10        17,000             295.630,00

    if you do compression with <b>Zero Elimination</b> your problem will be sloved.
    or
    In the calculated Keyfigure, set to After Aggregation.
    Nagesh Ganisetti.

  • Key Figure in cube loaded zeros, Strange problem

    Cube with three key figures
    1)counter(for each record, CONSTANT 1)
    2)Count with Exception aggregation (CONSTANT 1)
    3)NO OF DAYS
    NO OF DAYS is calculating and displaying correctly, where as   other two key figures in the cubes are zero (backend cube data as well as query).
    Working fine in DEVELOPMENT AND NOT IN TEST.

    Hi TR,
    Pls do activate the update rules in test. Also check the  update rules display. I hope the reason for this problem is the 'update type' set to 'no update' for the keyfigure.
    Hope this helps...Let me know
    Regards,
    R.Ravi

  • Summing up key figure in Cube - data load from ODS

    Hello Gurus,
    I am doing a data load from ODS to cube.
    The records in ODS are at line-item level, and all needs to be summed up at header level. There is only one key-figure. ODS has header and line-item fields.
    I am loading only header field data ( and not the item-field data) from ODS to Cube.
    I am expecting only-one record in cube ( for all the item-level records) with all the key-figures summed up. But couldn't see that.
    Can anyone please explain how to achieve it.
    I promise to reward points.
    =====
    Example to elaborate my point.
    In ODS
    Header-field  item-field   quantity
    123                301          10
    123                302           20
    123                303           30
    Expected record in Cube
    Header-field       Quantity
       123                    60  
    ====================
    Regards,
    Pramod.

    Hello Oscar and Paolo.
    Thanks for the reply. I am using BW 7.0
    Paolo suggested:
    >>If you don't add item number to cube and put quantity as adition in update rules >>from ODS to cube it works.
    I did that still I get 3 records in cube.
    Oscar Suggested:
    >>What kind of aggregate do you have for your key figure in update rules (update >>or no change)?
    It is "summation". And it cannot be changed. (Or at least I do not know how to change it.)
    There are other dimensions in the cube - which corresponds to the field(s) in ODS.
    But, I just mentioned these two (i.e. header and item-level) for simplicity.
    Can you please help?
    Thank you.
    Pramod.

  • Help Required for Mapping Key figures from Cube to APO Planning area.

    Hello Experts,
    We have created cube in APO BW and now we want to map it to Planning area how we can map.
    Can any body explain how we can map keyfigures?
    What is the use of livechache how it will be updated?
    Regards
    Ram

    Hi,
    I am not very sure about the 9ARE aggregate (haven't used it in backups), but RTSCUBE is used to copy time Series (TS) KF data from cube to planning area (SNP or DP).
    Are you trying to restore some time series data from your backup cube to the planning area? If yes, then do a mapping of characteristic from cube to planning area in RTSCUBE, and also map the TS KF between cube and planning area.
    If your KF is not a time series KF, then you can't copy it from cube to planning area. You could get data to cube for some reporting, otherwise I am not sure what use the backup is for you. For SNP, most of the data would be received from R/3, so there's not much point in having a backup.
    Hope this helps.
    Thanks - Pawan

  • Sum up key figures in cube

    Hi,
    I would like to include an ABAP code in a start routine.
    My infocube contains account numbers.  for each account there is an amount (0QUANTITY) and a 0CALMONTH.  Each line in the cube contains an account number and a 0CALMONTH.
    On every line of my infocube (for every account number with its 0CALMONTH) I would like to calculate in a new column the total amount for a duration of a roll back year.  Ex: Account Number 123, 0CALMONTH = 01/2009, 0QUANTITY = 10 -> In the new colomn I want the sum of 0QUANTITY for a roll back year (0QUANTITY 01/2009 + 0QUANTITY 12/2008 + 0QUANTITY 11/2008 + ... + 0QUANTITY 02/2008).
    Can someone give me an example of the ABAP code to perform this?
    Thanks a lot!

    When applying the solution you describe, beware of the modification on the different axis you use in your query.
    For instance, if the characteristic owner is linked to the characteristic Account, and if it can changed, you can encounter some difficulties to consolidate your data:
    On January :
      Account N° 123 Owner 001 -> 0CALMONTH 01/2009 -> Quantity 10
      Account N° 123 Owner 001-> 0CALMONTH 02/2009 -> Quantity 10
    On February :
      Account N° 123 Owner 002 -> 0CALMONTH 02/2009 -> Quantity 20
      Account N° 123 Owner 002-> 0CALMONTH 03/2009 -> Quantity 20
    Here, data on february are assigned to the owner 1 and 2 (for the same account), this is not what you necessarily want...
    The problem is that you assign values in the future (and here, you don't know which owner will be assigned to the account in this future)...
    Regards,
    Fred
    Edited by: FCI on Jun 18, 2009 4:22 PM

  • Calculations for Key Figure at CUBE Level or REPORTING Level

    Hi Folks,
    What are the conditions to decide whether we need to go for keyfigure calculations at infocube level or at reporting level.
    How to achieve them if done at cube level.
    Could anyone provide some KT with examples?
    Regards
    Kittu

    Hi,
    I got your point.
    Could you tell me how to use below mentioned formula at transformation time?
    In brief the formula calculates the number of policies using field  " s endorsement type".
    Formula is as below:
    SUM(CASE WHEN S Endorsementtype IN ('004','015') THEN -1 WHEN S Endorsementtype IS NULL  AND S Gross IS NOT NULL  THEN 1 ELSE 0 END)
    No of policies is a calculated keyfigure.I dont have this field in my datasource.
    could you tell me the steps ?
    Regards
    kittu

  • Problem in using formula when key figure is commulative

    Hi all ,
    I am problem in generating the report when we use the  of cummulative key figure to the formula..
    consider the following senerio..
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2      -1 (wrong result)
    6.10.2005 3   4   4(1+3)  6      -1
    7.10.2005 5   6   9(4+5)  12     -1
    System is taking the actual KF1data is subtracted with KF2 data it not taking cummulative data, Actually my requirement i want to subract the cummulative data between two key figure (ie KF1(c)-KF2(c))
    My Required Output:
    Date      KF1 KF2 KF1(C) Kf2(C) Formula (KF1(C) - KF2(C)
    5.10.2005 1   2   1       2            -1 (Correct)
    6.10.2005 3   4   4(1+3)  6            -2 (4-6)
    7.10.2005 5   6   9(4+5)  12           -3 (9-12)
    pls let through the lights on the above issues.
    with Regards,
    Hari

    Hi Murali..
    Thanks a lot, now i got a proper output and working fine..
    what i did yesterday was i have creted a two key figure as a cummulative key figure ..
    and when i try to subtract two cummulative key figure system is subtracting with actual key figure and hence i got wrong result.
    Today i did same thing, only diffence is i made the third formula key figure as cummulative ..
    With regarsds,
    Hari

  • Multicube with Cumulative and Non Cumulative Key Figures

    Is there any problems if I build a Multicube which consists of InfoProviders which have non-cumulative key figures (Inventory cube) and those which do not
    In the query I will be summing the key figure for example Stock Quantity across the InfoProviders? Thanks

    Hi,
    There is no problem if you do that only thing is when you assign key figures in the multiprovidesr you have to be careful in deciding the infoprovider from which the key figure comes.
    Hope this helps
    Assign points if useful
    Regards,
    venkat

  • Calculated key-figures are wrong in result rows

    Hi,
    I developed a BEx query which shows profi-centers and materials in the rows, and the price, the amount and the amount-value in the columns.
    Price and amount are basic key-figures on the cube, the value is calculated via a calculated key-figure in the query (price*amount).
    Now I have added result rows an profit-center level in the workbook. Everything works fine, BUT when I hide the materials, the result-row on profit-center level is calculated wrong.
    Is there any possibility to hide the material-lines without having the resul-rowts calculated wrong? Is there any feature like "caculate material in background but hide in the workbook"?
    I don´t like to create other basic key-figures on cube level, as this is only an example for lots of calculated key-figures which I use.
    Thanks for your help,
    Patrick

    Hi Patrick,
    Since the prices and amounts are on the material level, therefore the calculation for amount value will be correctly done only when you have materials in the rows.
    Now when you hide the materials, then the system would not know on what basis to do the calculation: I'll explain with an example.
    Let's take four materials which have the same profit center assignment. But the prices for each of them are different and so are the amounts. Now if you remove the materials from the rows, then say the system calculates amount-value by taking the average price and multiply that with the total amount of the four materials. That would also give an incorrect result - isn't it?
    So there is no way to define what the system should do when material is removed from the rows.
    So material would be the minimum required granularity for such a report to show correct results.
    Regards,
    Shweta

  • How To Add New Key Figure in Manual Planning

    Dear All
    Please Help
    I Already implement BPS for 2 year.
    Now user want to add new key figure in Cube.
    I already add new key figure to cube and activated it.
    But in Manual Planning, The new key figure not show in selection
    what I must do?
    Please Help.
    Thanks

    Hi,
    not all key figure types are supported in BPS.
    1. All key figure types must have aggregation SUM, SUM.
    2. Supported key figure types:
    - amout
    - quantity
    - number (integer, float, dec)
    - time, only type DEC
    - datum, only type DEC
    All other key figures are filtered out and are not available in BPS.
    Regards,
    Gregor

Maybe you are looking for