Regarding exception aggregation based on 2 infobjects

Hi All,
I have a report in which I have to use Exception aggregation based on two Infoobjects.
How we can do it ?
I have tried using nested aggregation but its not working.
Example:
I have three Infoobject :
0Material
0Sold_To
ZSalesRep (Sales representative of Sold to)
In Report:
Rows section, I will have only ZSalesRep Infoobject.
Column Section (i.e. the Keyfigures) I will have one keyfigure which should be calculated based on 0Sold_to and 0Material.
Any inputs will be helpful.
Thank you.
Vamsi.

Hi,
I think exception aggregation should work in your scenario, first you get the total with reference to material and then put that key figure in reference to sold to party.
Just check the below article for more information,
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d08b56a8-daf5-2e10-2397-904d6aeb55c2?QuickLink=index&overridelayout=true]
Regards,
Durgesh.

Similar Messages

  • Exception aggregation based on two characteristic

    Hi Guys
    i have enhanced the datasource  i.e 2lis_12_vcitm for sales order qty
    now i have to get the unique qty based on order no and item no to devide it to get a ratio
    how can i do the exception aggregation to take one value based on two characteristics that is order no and item no
    Regards
    Amiya

    hi 
    Exception aggregation based on 1 characteristics i know very well but my requirement is different i have to get unique data based on two characteristics i.e
    order    item   qty
    100      10      5
    100      20      3
    100      10      5
    100      10      5
    100      20      3
    200     10       15
    200     10       15
    now i want to get 5 for order 100 and item 10
    and 3 fro 100 and 20
    i think by exception aggregation its not possible is there another way?

  • Regarding exception Aggregation

    hiii firends...can any one pls tell me wat is exception agregation? In which scenario we use it? thanks Ashok

    hi ,
    pls read article in below link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0b8ed5b-1025-2d10-b193-839cfdf7362a
    Hope it helps you.
    thanks
    nilesh pathak

  • Problem in Nested Exception Aggregation

    Hi Experts,
    Can you please give me an idea of how & Steps to do the nested exception aggregation based on the 3 to 4 characteristic and agregate the volume for 1 key figure,
    Thanks Regards
    Dolly.

    Hi AL,
    here is my requirement what i have been asked to get this output result.
    i have keyfigures KF1, KF2 and total KF.
    three characteristics dist,inch,load.
    dist-inch-load--KF1-KF2-Total KF                         
      5---A--010-0-----10=10                         
      5---A--120-20----20+10=30                         
    10--B---050-0-----50                         
    12--C---160-60----60                         
    13--D---270-70----70                         
    14--E---080-0-----80                         
    15--E---120-20----20+80=100                         
    15--E---230-30----302080=130     
    KF1 is the initial volume coming from the file directily.based on this keyfigure i have to calculate KF2,Total KF.     
    In order to calcuate KF2 and Total KF i have some conditions.which are mentioned below;
    KF2---> if  load=0 then KF2=0 elseif load>0 then KF2=KF1 ;
    Total KF--->if load=0 then Total KF=KF2KF1 elseif load>0 then KF2=KF2KF1
    How to achieve this dynamic summation.Do i have to do nested exception aggregation based on the above three characteristics. what would be the open options.please do help me.

  • Bex Exception Aggregation in 3.5 equivalent to 'TOTAL'

    Hi All,
    Can anyone help me in getting a functionality equivalent to exception aggregation 'TOTAL' in BW 3.5.
    I have  a requirement which can only be fixed using the exception aggregation 'TOTAL', my bad in my current client they dont have BI 7.0. So can anyone tell me what is the equivalent function of 'TOTAL' in BW 3.5.
    Regards,
    Anand

    I need to develop a report which will show Org unit & degree (education data) wise head count and annual salary.
    As the education records for an employee will be more than one, the annual salary will be doubled or tripled in the DSO or cube.
    If I do an average of annual salary based on employee the overall result goes wrong.
    Say for example, empl 20045789 as three record with KF value 10,000, the result in the report I see as 30,000.
    SAY in the backend
    EMPLOYEE    |  Degree | Annual Salary
    20045788  |     A | 50,000
    20045788  |     B | 50,000
    20045789  |     A |10,000
    20045789  |     B |10,000
    20045789  |     C |10,000
    In the query I get it as
    Org Unit |      Employee |     Annual Salary |  Average(Annual salary/ Number of employee)
    100001 |           20045788 |     100,000 |          50,000
    100001 |          20045789 |     30,000    |          10,000
    overall result                130,000 |          26,000  (130,000/5)
    The expected result is 50,000 + 10,000 = 60,000 / 2 = 30,000.
    Pls provide me solution.
    Regards,
    Anand
    Edited by: araj123 on Jun 3, 2011 3:45 AM
    Edited by: araj123 on Jun 3, 2011 3:46 AM
    Edited by: araj123 on Jun 3, 2011 3:47 AM
    Edited by: araj123 on Jun 3, 2011 3:48 AM
    Edited by: araj123 on Jun 3, 2011 3:50 AM
    Edited by: araj123 on Jun 3, 2011 2:25 PM

  • Exceptional Aggregation in Query Designer

    Hello Gurus,
    we have an existing  Report at the Material Level on the InfoCube.
    Each Material may have multiple POs and we are having multiple
    records for each PO varying the date. Now the user want to view
    only the record latest changed Record at the PO level
    and Sum of all the records at the Material Level.
    For this i have created a CKF using the Exception Aggregation
    as Maximum for the 0calday. But client want the Report at Material Level
    he dont want the PO's details. When i remove the PO from the report
    it gives the result for only the latest PO not all the PO for that Material.
    For Example we are having below records in the cube.
    PO             Material     Calday       Qty         Price
    101            ABC          1/12           100         10
    101            ABC          2/12            100         10
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    I am getting the result with PO in Rows as Below
    PO             Material     Calday       Qty         Price
    101            ABC          3/12            100         11
    102            ABC          4/12           100         10
    104            ABC          5/12            100         10
    103            ABC          7/12            100         11
    When I remove the PO's From the Rows then it will display
    as below i am placing the calday for under standing the
    question actually it is not present in the  output of the below report only.
            Material     Calday       Qty         Price
              ABC         7/12          100         11
    Which is not currect I have to get the Result as
    Material            Qty         Price
        ABC              500         42
    My Concerns:
    !. Kindly let me know if it is possible and what are the
    other things that i need to consider.
    2. Did it will impact the performance.
    Waiting for your quick replies
    Thanks & Regards
    KK
    Edited by: KK on Dec 23, 2009 11:08 AM
    Edited by: KK on Dec 23, 2009 11:15 AM
    Edited by: KK on Dec 23, 2009 11:22 AM

    Hi KK
    Confirmation:
    First I need to confirm one thing,
    as you mentioned expected output is,
    Material            Qty         Price
        ABC              500         42
    But I think, it should be
    Material            Qty         Price
        ABC              400         42
    right?
    Answer:
    Can you please try below steps and let me know whether it is working as expected or not
    Create a basic Key figure for calday and include it in your InfoCube. In the transformation, assign it to same fileld which is a source of calday.
    In query, Create a calculated key figure based on calday key figure with exception aggr as last value and reference characteristics as PO.
    Regards
    Rohit

  • Exception Aggregation InfoObject

    Hi experts,
    I have a key figure set like you can see just below :
      - Aggregation : SUM
      - Exception Aggregation : MAX
      - Aggregation reference : 0CALDAY
    NB : I can't modify this parameters since this object is used in a lot of InfoProvider.
    I created a query based on a multicube (which does not content 0CALDAY) using this key figure and I want a SUM.
    I am very desapointed because a Max aggregation is applied.
    Could you please help me to solve this problem ?
    Thanks for your help.
    Regards,
    Bertrand

    Why cant you change the property? Are these properties used anywhere else? If your concern is that this KF is used in my InfoProviders and chaing this KF will result into Inactive state of InfoProvider, then I would suggest you should try in development to do it.
    I did change the same property, but none of my InfoProviders were affected as this property is realted to Bex query and not the value loaded to that KF.
    Another thing is, if you dont want to change the KF property, I would sugggest you to overwrite the exception aggregation definition in frontend.
    You can always set new exception aggregation in Query designer for his KF. (Actually Formula based on this KF). Set it to Total and mention any other reference char as you dont have 0CALDAY.
    Before you set this property, you can try one more property "Calculate Result as..." (Total) with your current setup and see if that works.
    Else once you set the exception aggregation, please set "Calculate Result as..." (Total) to see Total correct in the resutl row.
    - Danny.

  • Exception Aggregation -selection

    Hi
    I need to use Exception Aggregation option in a selection but it seems to be set to 'Use Standard Aggregation' and disabled for changes.
    I tried creating new selection to see if it works but its not.How can I use Exception Aggregation option here at selection level?
    More Info
    The Keyfigure on which this selection is to be based has following settings at infoobject definition level(in 'Aggregation' tab):
    Aggregation MAXIMUM
    Exception Aggregation NO AGGREGATION(X ,IF MORE THAN ONE RECORD OCCURS)
    Aggr.ref.char. 0CALDAY
    Thanks for your help.........

    Hi
    I made new formula and put my keyfigure in it and then choose 'Exception Aggregation'.But the problem is I am unable to create selection on this new formula.
    When you are trying to create selection,it only shows the characteristics and keyfigures in cube but not formulas created.
    Do you see any solution? or any other approach to solve the problem ?
    Regards.

  • Exception aggregation for calculated key figure

    Is it possible to have exception aggregation for calculated key figure in BW 3.5? As per Note 1151857, it is possible, however this note applies to BI 7.0.
    As per note 152638, it is possible in older version only simple ckfs like 'CKF = Base key figure'.
    Is there any workaround to define exception aggregation for complex CKFs in BW 3.5?
    My requirement is like this -
    CKF = (sales quantity - forecast) %share (sales quantity).
    Aggregation for CKF over time should be sum whereas, for all other characteristics calculation of CKF should be done after aggregation(normal scenario).
    So, defining exception aggregation of CKF as 'Summation' over time should fulfil my requirement.
    I can not use calculate result as 'summation' setting for CKF because of following design of report.
    Report contains structure(characteristic)
    Elements of structure are -
    Last 3 months(April - June)
    Last 3 months - 1 (Mar - May)
    Last 3 months - 2 (Feb - Apr)
    and so on...
    When data is aggregated for each element of structure, base KFs will be aggregated and calculations will be done on that.
    Changes in the backend are also not possible because, normal aggregation of CKF-alike in backend will be summation for all characteristics.
    Is there any way in BW 3.5 to model such a scenario?
    Thanks and Regards,
    Anup Kulkarni

    Sum of individual values of CKFs is not same as the Calculation on 'sum of basic key figures(result of basic key figures)'.  - Yes, you are right.
    I need to aggregate CKF over time as SUM. However, calculation for result of all other characteristics should be based on results of basic key figures and not the 'Sum of individual values of CKF'.  -
    What i understood is that whenever the time char is in row, then result should be simple on the sum what ur getting but when other char are there then it should go for calculation based on the sum of key figure.
    If im not wrong in getting ur point.
    How can two differenct activites be perofrmed on same key figure depending on the characteristic .....!. For this u have to think some other possibility or let somebody else update the thread.

  • Explain Exception Aggregation and Aggregation?

    Please search forums
    Hi eXPERTS,
    While creating Keyfigure infoobject  there is an additional option called
    Aggregation and it has Exception Aggregation plz explain abt this topics briefly.
    Thank u,
    Edited by: Pravender on May 21, 2010 1:19 PM

    Hi,
    there is a slight difference in between them.
    When you select the Aggregation as Minimum then it will pass only the minimum values into the target.
    Where as Exception Aggregation will be always based on some ref Characteristic, in this if you select the option as Minimum based on 0CALDAY Characteristic then it will show you the minimum values in the report but not in the target based upon the 0CALDAY Characteristic..
    Aggregation will fetches the data into cube from PSA and exception aggr will fetches the data into report from cube.
    just go through the example which was explained by some of our techie..
    For Ex in PSA u have data like dis.
    01.01.2007 1000
    01.01.2007 2000 it will take only the minimum value into cube
    In case if you have many records based on that particular date then it wont do the aggregation. Since you have chosen the ref char as 0CALDAY, there might be lot of records which have generated on the same day, so when you select this option then it wont do the aggregation and further it will place X in that area.
    assign points if it helps..
    regards,
    ashok

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All,
    We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
    Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

    Hi,
    Here you go..
    1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
    Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
    2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
    3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
    This step you get query reference sheet or column or query general UUID for next step.
    4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
    Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
    Hope this helps.
    Please keep in mind, it might take more time depends on how many query elements you have in the system...
    Comments added for better DB performance by: Arun Thangaraj

  • ABAP OO Exception Class based processing

    Hi there,
    Note: In going forward with SAP WAS 6.20, one can handle exceptions using exception-class based handling using RAISE EXCEPTION TYPE abc and then CATCHing it in TRY/ ENDTRY block. Standard method like GET_TEXT can be used to get the text of the exception raised.
    Question: If I know the EXCEPTION CLASS and Exception ID of my exception class, is it possible to get the exception text directly from the repository without creating the exception class object?
    E.g. Exception class is CX_MY_SECRET_ID
    and Exception IDs for this class are
    ID_NOT_FOUND,
    ID_EXPIRED,
    ID_IS_FOR_SPECIAL_ACCESS
    E.g. last two exception IDs are my warning conditions, and if such conditions are encountered, all I want to do is collect the warning messages. Whereas first exception ID condition (i.e. ID_NOT_FOUND) is an error for me, in which I have pass the exception back to the calling program. E.g. the source code is like this:
    PERFORM.......
    If ID is not found
       RAISE EXCEPTION TYPE ZCX_MY_SECRET_ID
               EXPORTING TEXT_ID = 'ID_NOT_FOUND'.
    else if ID has expired
       ...... then do I have to first raise the exception like raised above and CATCH it before I can get its text? or can I get the exception text directly without raising the exception first (as I know i have to retrieve the text of ZCX_MY_SECRET_ID exception class for Exception ID ID_EXPIRED)?
    In other words, if a certain condition is warning for my program, can I get the condition for that exception (from exception class based on exception class name and exception ID), or do I have to RAISE it first explicitely and then CATCH it immediately and execute GET_TEXT to get its text?
    Thanks very much!

    Hello Chetan,
    in basic the raise exception type xxx creates an exception object and aborts normal execution continuing in the enclosing try block.
    The Abap runtime contains some optimizations regarding the try block has an 'into xxx' clause. But as long you use the same exception you cant take benefit from this.
    As far I understand your problem you have two different kind of severities. So I would use 2 differnt exception classes (maybe derived from a common parent type, or one from the other).
    So both the code which throws the exception and the one which catches it are aware of the different semantic.
    Kind Regards
    Klaus

  • Use of filters and aggregations based on hierarchy nodes in an update rule

    Hello,
    I need to calculate some indicators from a ODS (BW 3.5) that contain raw data to another one that will contain indicators. These figures are the results of the use of filters and aggregations based on hierarchy nodes (for example: all sales accounts under a node).
    In fact, this is typically a query but I want to store these figures, so I need
    I understood I have to use a start routine. I never did that before.
    Could you provide me with easy-to-understand-for-newbies examples of:
    - filtering data based on the value of an infoobject (value must be empty, for example)
    - filtering and aggregation of data based on the appartenance to hierarchy nodes (all sales figures, ....)
    - aggregation of the key figures based on different characteristics after filtering of these
    Well, I am asking a lot ...
    Thank you very much
    Thomas

    Please go through the following link to learn more on aggregates:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e55aaca6-0301-0010-928e-af44060bda32
    Also go through the very detailed documentation:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a
    Regards,
    Mahesh

  • Problem with exception aggregation

    Hi forums,
      Can any one help in this issue?
    We checked the data in the ECOM cube for the order 63349312 where it is giving 6 records eventhough we are deleting the adjacent duplicates of the order number in the start routine. (Is it like the deletion of adjacent duplicates happen in data packet level instead of happening in the entire cube level? B'cos the same order might present in the different packets.)
        Hence the data is aggregating for the key figure, 'Number of Days' in the ECOM report. But if we check the keyfigure properties in the RSA1, there we selected the Exception Aggregation as 'First Value' and aggregation reference char as 'ZN_CORD' (Order number). Still it is aggregating the number of days value in the report.
    Regards,
    Charan.

    Hi Rohit,
             We are doing same procedure as you mentioned. We assigned order number as refer characteristic to keyfigure No. of days in infi object level. But this operation is not working in report level
          Order number     ZCUDATE                  ZN_GSTRP            ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
            63349312     18.01.2009     01.10.2008     1,000     109
    I want o/p as
    Order number     ZCUDATE                   ZN_GSTRP               ZN_CORDKF     ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000     109
    but it is showing as
    Order number     ZCUDATE                      ZN_GSTRP     ZN_CORDKF  ZN_DAYSKF
            63349312     18.01.2009     01.10.2008     1,000            676

  • Exception aggregation on Non-cumulative key figure

    Dear experts,
    I have a problem. We have an InfoCube in BW in which the Activity Journals are loaded every day. In this Activity Journals it is registered that a Material was listed (available) at a customer (value 0 or 1).
    We have a non-cumulative key figure MXW_LISTN with inflow (MXW_LISTI) and outflow (MXW_LISTO). In time this key figure receives +1 or -1 for a customer, material combination.
    I want to use MXW_LISTN in the query in a specific way. The key figure on itselve tells me how many listings there are. However, I want to know how many business partners there are with a listing.
    I was thinking about an exception aggregation on MXW_LISTN with reference characteristic 0BPARTNER and "Count <> 0". BW however refuses to do so and only lets me do simple aggregations such as AVG, MIN, MAX etc.
    Can you think with me and come with an proper solution to count the number of business partners with a listing?
    Your help is very much appreciated and rewarded!
    Best regards, Hans de Klein

    Maybe a solution with virtual key figures is an option?
    Please help me out!
    Best regards, Hans de Klein

Maybe you are looking for

  • How do you identify the Logical system in start routine of a transformation

    My scenario is this.  I have five r3 systems that I am extracting from.   In the start routine of the transformation from the r3 data source to my data store I  am going to delete data and I need to know the source system id.    How do I identify the

  • Foreign languages

    My customer has asked that I come up w something that will interchange the english text in my vi to a foreign language.  He said something about including an *.ini file.  Not sure I have a full grasp on what he wants.  I think what he was getting at

  • CacheFullException in WebLogic Server 8.1SP4

    Hello, in our production system based on Weblogic Portal 8.1SP4 we are experiencing severe problems because of CacheFullExceptions lately. This is especially problematic, since we are a Webservice Server and our Webservice Clients do get this Excepti

  • Content removed by author...

    Content removed by author due to concern voiced about this posting being "spam"... Thanks, Mike

  • Iphoto journals from iPad to mac via itunes

    Where do iphoto journals go to when they are uploaded to itunes from the ipad? I know journals created on the ipad have to stay on the ipad if you want to edit them.  I just want to save them on my mac as a historical record.  I was advised about sav