Restricted Key Figure in Crystal Reports

Hi Gurus, I have to implement the Restricted Key figure logic in Crystal reports. I am able to filter the data at a report level but I need to filter the key figure with a particular characteristics. We try to implement this logic with subreport but client is forcing us not to use subreports. Please help me.
Thanks
Sasi

Hi,
you should make the restricted keyfigure as part of the BW query and Crystal Reports will leverage it.
Ingo

Similar Messages

  • Creating a restricted key figure in BI7 reporting

    Hi
    I am creating a restricted key figure globally in BI7 query designer, whenever I try to restrict Calender Year /Month, an error message pops up showing:
    Runtime error '457' (This key is already associated with an element of this collection), when I click ok another message opens
    Runtime error '429' (Active X component can't create object)
    and finally Microsoft VB runtime error
    Automation (The callee(servernot server application) is not applicable and disappeared; all connections are invalid. The call may have executed.
    I am working in BI 7, SAP gui 640 what could be the problem in BI 7???because the same thing is working in BI 3.5 environment.
    Regards
    Indraneel

    Hi Indraneel,
    Try to look for the patch level you are using for SAP GUI, it should be level 14. If lesser than this apply and check. And always disable VB macros.
    Assign points if helps.
    -Harshal

  • Not Displaying "Net Sales" key figure in Crystal Report

    Hi All,
    I have made one Info cube (with Characteristics -Product, Region and Customer and Key Figure - Net Sales) from Flat File.
    I want to make crystal report on this. For that i have connected this infocube in crystal Reports via OLAP Connectivity. I am getting all the characterisitc in Field Explorer and one more Field "Measure" in which two field is displayed:
    - Measures, Level 0
    - Measures, Level 0 (long)
    Now i have dragged all the characterisitcs in detail section with Measure, Level 0(long). While i am viewing the preview of this, i am not getting value of that line item.
    Ex.
    Product Region Customer NetSales
    Actual one:
    AC East BigBazar 14000
    with Measure, Level 0(long):
    AC East BigBazar NetSales
    with Measure, Level 0
    AC East BigBazar [Measures].[ZNETSALES]
    I am not getting 14000 i.e. Actual value.
    Hope i am clear with my idea. Am i missing something?
    Regards,
    Rishit Kamdar

    col1 col2 col3 col4 col5.......say you have 5 columns
    for the denominator calculation
    the value should be
    numerator /
    select (select count(column) from table) - (select count(column) from table where column<>0)
    Thanks,
    Ganesh

  • Bex Query calc key figures in Crystal report not showing technical names.

    Hi,
    I have created calculated key figures in a BEx query for which the data comes from a SAP BW cube. I have assigned each of the calculated key figures a proper technical name which I expect to see when I bring it to crystal report. When I bring that query in Crystal as a data source the calculated key figures show a wier network id names instead of the technical names. I am having a problem in using those wierd technical name in my report and my formula's as I am not able to identify what is what.
    Please urgent help requested.
    Thanks
    Mahendra

    I dont have an account on such website. I will explain u the problem in detail.
    When I create a calculate key figure in SAP BEx query designer I assigned a technical name to it, a meaningful one. In my case one such example is Actual_revenue is the name that i have assigned and the description is Actual revenue. When I create a crystal report from it and in that report if i create a formula.
    I get this {ZIC_COPA_Z_SALES.[Measures]-[25V1KYL4VE92X0T4OMHVYM90V]}
    If u see it its a wier 25 digit name.
    Instead of this I want to see
    {ZIC_COPA_Z_SALES.[Measures]-[ACTUAL_REVENUE]} which is what I have given in the query. I am using the SAP BW MDX driver to connect to Bex query.

  • How to Create a Restricted Key Figure in BO Webi Report

    Hi Experts,
    Please tell me How to Create a Restricted Key Figure in BO Webi Report.
    Thanks in Advance.
    Regards,
    Rafi

    Hi,
    1. Define a new measure in the designer.
    2. In the select clause give the reference to the key figure on which restriction to be applied.
    For example
    @Select(Key Figures\Number of Records)
    3. In the where clause, give the MDX expression for the filter to be applied.
    For example
    <FILTER KEY="[0PURCH_ORG].[LEVEL01]">
    <CONDITION OPERATORCONDITION="InList">
    <CONSTANT CAPTION="HAS"/>
    </CONDITION>
    </FILTER>
    Regards

  • Calculate key figures totals in report based in multiprovider doesn't work.

    Hi dear Friends:
    We have a requirement where the data are in 2 different cubes, the layout defined is
    selections parameters :
    Zsales_offices
    0calweek
                   Columns.
                   0calweek  KFCalc1..............................KFcalc2.....................etc.
                   In rows.
                   01.2007   Qty on demand X unit cost.    sum of all qty's prods
                   02.2007
                   03.2007
                   04.2007
    the structure in cube z1mis contain:
    Zsales_offices,product,0calweeek,unit cost.
    the Second cube structure zdemand contain:
    Zsales_office, product,0calweek,qty on demand
    Our problem is:
    1. As you can see we need keep into KFcalc1 the product from multiply Qty on demand * unit cost but when the result is displaying the result is a wrong amount and the reason is because didn't´t exist a characteristic product in the layout, without this characteristic the amount for qty on demand and unit cost are summarized and multiplying with these amounts.
    We are trying to find a solution vía restricted key figures, calculating before aggregation, but it's not woks.
    I hope that you can give one suggestion.
    Regards.
    Eg@n

    Hi,
    putting product in the rows will slove the issues as the unit cost  depends upon the  prdoduct and therefore it will uniquely identify each of the material and then it will get multiplies with the qty and therefore you will get the correct result.
    this kind of issue you will always face when you are going to multiply cost with the Qty and as the cost differ with the individual material.
    Also putting material into the rows will cause the no. of rows to increase as all the materials will show up in the individual rows for the particular month.
    Also you can make a claculated key fgure for the multiplication and use before aggregation.
    But for that your both the key figures should be in the same cube i.e. in the same rows or the before aggregation will not work you will not even get an option of before aggregation in the CKF if the key figures belong to two different cubes.
    Since your qty and cost are coming from two different cubes before aggreagtion will not work here.
    And if you do before aggregation then you report will become quite slow as it will do all the multiplication anf then will bring the result.
    So it depends on your requirement and your design how to proceed.
    Hope it helps
    Thanks

  • Query Designer restricted key figures using a prompt value

    Hallo Experts,
    I would like to restrict key figures after user has beeen prompted to enter a date. I have 2 key figures:
    a) KF1, Date1
    b) KF2, Date2
    User should be prompted to select a specific date: e.g. 01/2011. After selecting/entering the prompted date value, it should be given to date objects for intance Date1=01/2011 and Date2=01/2011.
    How could I achieve it in Query Designer without using customer_exit function? Reason is that non-experienced users will use this report and they should not be confronted with complex query. Do you have any idea?  
    Many thanks
    Mamadu

    Hi,
    I assume that you need to restrict the value of keyfigures by date based on user input data on variable selection screen.
    First create one user input variable on your date field say for eg calday.
    Now restrict your KF1 with calday and choose that vairable which you created.
    For second KF2 which seems to me need to be restricted with offset of +1 based on the date entered by the user.
    So restrict this KF2 with calday and use the same variable with offset of +1
    I just misunderstood you ned calmonth or day because in requirement you have given month but you are calling it as date.
    If its month then replace calday with calmonth..
    Hope it helps.
    Regards,
    AL:
    Edited by: AL1112 on Dec 21, 2011 9:42 AM

  • "new selection", restricted key figure and basic key figure

    Hi,
    I have a test report and i have a basic keyfigure "ZRevenue" and "restricted key figure"(its defined over "ZRevenue") and
    a "new selection"(its defined over "ZRevenue").
    Now that i have "material number" and "material color" and "request id" in the rows. ("Material color" is a navigational attribute of material number).
    In the column level i have a basic key figure  "ZRevenue" and "restricted key figure"(its defined over "ZRevenue")  and
    a "new selection"(its defined over "ZRevenue") .
    In a "restricted key figure" or "new selection", we can include a basic key figure or new formula or calculated key figure or an already restricted key figure into it, then we restrict it, with one or more characteristic values. In the report output we get KF values only for those characteristic values, with which it has been restricted. Please correct me if my understanding is wrong.
    Initially i restricted the "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4).
    In the cube i have material numbers 1 to 11. Now all the values were displayed from 1 to 11, but for the
    "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4) i got values only for 1 to 3 and values for 1 to 4 respectively. This is as expected and is working fine.
    Now i tried to restrict the basic keyfigure  "ZRevenue" with material number 1, the output was only until the material number 4 (this is the greatest value of the material number defined over the "restricted key figure").
    Then i tried to restrict the "new selection" (with material number 1 to 9) , then the output was from 1 to 9 material numbers.
    If i remove the restriction over the basic keyfigure  "ZRevenue" , then i get all the material numbers from 1 to 11, for "new selection" i get values for the material number 1 to 9 and for "restricted key figure" i get values for the material numbers 1 to 4.
    Can some one explain me why this behavior?
    Edited by: sapbi enthusiastic on Jan 31, 2012 11:48 AM

    Hi,
    This is where set theory comes in handy
    So what you have is a basic KF (BKF), a selection (SEL), and an RKF.
    When producing an output, BEx seems to be looking for the union of all the restrictions you place on these. So when your BKF is not restricted, the union comes out to everything in the underlying DSO. When you restrict the BKF for material number 1, this is how the restrictions might have been processed internally
    BKF: Restriction on material 1
    RKF: Restriction on material 1-4
    SEL: Restriction on 1-3
    Union of these three: 1-4
    When you remove the BKF restriction and make SEL restricted to 9, this is how it plays out
    BKF: NO Restriction on material
    SEL: Restriction on material 1-9
    RKF: Restriction on 1-4
    Union of these three: everything.
    As the union ends up giving you everything, you get 11 records. However, as SEL is restricted for 1-9, the SEL will have values for the materials 1-9. Likewise for RKF, you'll get values only for materials 1-4. Hope this clears things up!
    Regards,
    Suhas

  • How to show filter values of restricted key figures in BEx Analyzer?

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

    Hi,
    I have following report.
                         Quantity USA        Quantity China
    Product           100                        150
    Quantity USA is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = USA
    Quantity China is a restricted key figure using key figure 'quantity' and a restriction on characteristic 'country' = China
    I notice that when I put only one of these resticted key figures into the query, there is a line in the filter area of the report in the BEx Analyzer that shows the characteristic 'country' and the value on which it's restricted in the restricted key figures.
    E.g.:
    Country          USA
                         Quantity USA
    Product           100 
    If I put both restricted key figures in the query, this line is not shown.
    Does anyone of you know how I can display this line again when using multiple restricted key figures like this in the query?
    Thanks!
    Regards,
    Pascal

  • Multi provider objects and restricted key figure definition

    I have the following scenario:
    1. I have a multi provider which is used as a template to build a second multiprovider the difference being one of the part provider cubes is replaced by a new cube
    2. There is a query built off the original multi provider which consists of a restricted key figure.  The definition of the restricted key figure is as follows
        Characteristic 1 - restricted to records with value 'A'
        Characteristic 2 - restricted to records with value 'Blue'
        Key Figure - Total Amount
    3. If I go to the original multiprovider and look at how the characteristics are identified and the key figure assigned the details are as follows
         Characteristic 1 - identified from all part providers including the part provider to be replaced
        Characteristic 2 - identified from all part providers including the part provider to be replaced
        Total Amount - assigned from two part providers (which are also involved in the identification of   Characteristic 1 and 2)  not including the part provider to be replaced
    4. In the new multi provider the details are as follows
    Characteristic 1 - identified from all part providers excluding the replacement part provider
        Characteristic 2 - identified from all part providers excluding the replacement part provider
        Total Amount - assigned from two part providers (which are also involved in the identification of   Characteristic 1 and 2)  not including the part provider to be replaced
    My thoughts are that it does not matter that Characteristic 1 and 2 cannot be identified from the new part provider since as long as the two part providers which are used to assign Total Amount are available in the new multi provider the values shown from the restricted key figure will be the same.  Is this correct? Thanks

    Hi,
    Yes this is correct. As long as you are reporting on Total Amount, the replacement cube will not make a difference because you never identified total amount from it. Did you face any issues?

  • Can't change a Restricted Key Figure technical name in QD BEx 7.1.0

    A few days ago I created a new Restricted Key Figure in Query Designer and it was autopopulated with a default technical name.  So I immediately changed it to 'ZRNPVORDINTFACTPPP_FY'.
    Now, today, I realized that the 'F' in the technical name is a typographical error and I need to remove it.  I clicked the Restricted Key Figure on the left from within the list and clicked the Change/Display pencil icon in the properties window, but the Technical Name field is still greyed out.  Also tried right clicking and selecting Edit, but same problem.
    Would removing all instances of where the figure is used in the query and other queries allow me to change it?  Could it be a user rights issue?
    As always, thanks for the help!

    Hi,
    After creating a RKF , you cannot change its technical name.
    If the RKF has a lot of restrictions and creation of another similar RKF is a big process ,
    you can create a copy of the same through transaction RSZC.
    In RSZC , give the source and target cube name as the name of the multiprovider on which your query is built,
    select restricted keyfigure ,click on execute ,  in the list which comes after execute find your KF 'ZRNPVORDINTFACTPPP_FY'
    and click on transfer/copy option available.Change the technical name as you want and then click on execute. A similar keyfigure with the desired technical name will be created in query designer ,global keyfigures .
    Replace the same with your Old keyfigure in report.

  • How to build Restricted Key figures in Universe?

    Hi All,
    I have been trying to find a way to build restricted key figures at BO universe level.
    I have gone through the best practices documents and the mdx syntax documents.
    Even though building Restricted key figures at universe level is not a recommended approach, we had a requirement to achieve it.
    I have tried the below possilbe ways but could succeed only half way.
    Please help me and others who has been trying to build the restricted key figures at universe level by guiding us.
    Eg: A restricted key figure A1 is based on a basic key figure A, with a restriction on cost element  C (detail object,cost element key)
    I have built A1 with below syntax and  could get correct result in web intelligence report
    Select block of  A1 measure object in designer
    <Expression>@Select(Key figures\A)</Expression>
    Where block of A1 measure object in designer
    <FILTER KEY="[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="ABCD/1234567"/></CONDITION></FILTER>
    But when I build another restricted key figure A2 out of basic key figure A with restriction on the same cost element key field but a different value like  ="ABCD/678910".
    Both A1 and A2 give correct results individually when they are dragged in a web intelligence query.
    But when both of them are required to be dragged in the same query , no result comes because of the conflicting where clauses,as cost element key can't have both values at same time.
    Then I tried building A1 in below ways, as mentioned in the mdx examples document
    Trial 1:
    Select block of  A1 measure object in designer
    <Expression>(@Select(Key figures\A),[0COSTELMNT].[LEVEL01].[[20COSTELMNT]].[Value].[ABCD/1234567])</Expression>
    Trial 2:
    Select block of  A1 measure object in designer
    <Expression>(@Select(Key figures\A),[0COSTELMNT].[ABCD/1234567])</Expression>
    Trial 3:
    Select block of  A1 measure object in designer
    <Expression>([Measures].[D787I2PW5YTGMTKL83RWBH80W],[0COSTELMNT].[ABCD/1234567])</Expression>
    All the above expressions parse OK at universe level. Trial 1 gives a database error while running the query.
    Trial 2 and Trial 3 nither throw any error nor return any result for A1.
    If any one has tried and succeeded in implementing restricted key figures at universe level,please provide us some inputs.
    Thank You.
    Naresh

    Hi,
    this seems to be identical to this one:
    Re: Condition Object for previous month data on current month input
    I would suggest you close one of them as two entries asking the same is not a good idea
    Ingo

  • Building a new Cube Vs Restricted Key figure in Query - Performance issue

    Hi,
    I have a requirement to create  a OPEX restricted key figure in Query. The problem is that the key figure should be restricted to about 30 GL Accounts and almost 300 Cost centers.
    I do not know if this might cause performance issue in the query. At the moment, I am thinking of creating a new OPEX cube and load only those 30 GL Accounts, 300 cost  centers and Amount. and  include OPEX  in multiprovider in order to get OPEX
    amount in the report.
    whats the best solution - creating OPEX restricted key figure or OPEX cube ?
    thanks,
    Bhat

    I think you should go for cube as all the restrcited key figure are calculated at OLAP runtime so it will definitely affect the query performance.There are a lot of costcenter for which you have to restrict it so definitely during the runtime of query it will take a lot of time to fetch tha data from infoprovider.Its better that you create a cube with the restrictions and include it in MP.It will definitely save a lot of time during query execution
    Edited by: shyam agarwal on Feb 29, 2012 10:26 AM

  • Restricted key figure

    HI,
    can any body explain me what is the difference between Restricted key Figure and the filter option in BEX reporting.

    Hi Ali,
    If you want restrict particuler key figure based on characteristic value, that you have to go for restricted key figure.
    For example: You have calender year month data from 2005 to 2006.An dyou have also have sales data for the period.
    If you want see the say some feb 2005 to may 2006.
    than you can use restricted key figure to see the values.
    where as Filter will show the values which you have filtered irrespective of key figure (only characteristic value).
    just go throw the below description.
    Hi,
    Restricted key figure:
    Use
    You can restrict the key figures of an InfoProvider for reuse by selecting one or more characteristics. The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures, or key figures that are already restricted.
    Procedure
    Defining a new restricted key figure
    1. In the InfoProvider screen area, select the Key Figures entry and choose New Restricted Key Figure from the context menu (secondary mouse button).
    If a restricted key figure has already been defined for this InfoProvider, you can also select the Restricted Key Figures entry and then choose New Restricted Key Figure from the context menu.
    The entry New Restricted Key Figure is inserted and the properties for the restricted key figure are displayed in the Properties screen area.
    2. Select the New Restricted Key Figure entry and choose Edit from the context menu (secondary mouse button.
    The Change Restricted Key Figure dialog box appears.
    You can also call the Change Restricted Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Calculated key figure:
    Use
    In the Query Designer, you use formulas to recalculate the key figures in an InfoProvider so that you can reuse them. Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
    Procedure
    Defining a New Calculated Key Figure
    1. In the InfoProvider screen area, select the Key Figures entry and from the context menu (secondary mouse button click), choose New Calculated Key Figure.
    If a calculated key figure has already been defined for this InfoProvider, you can select the Calculated Key Figures entry and, from the context menu, choose New Calculated Key Figure.
    The system adds the New Calculated Key Figure entry. The properties for the calculated key figure are displayed in the Properties screen area.
    2. Select the New Calculated Key Figure entry and, from the context menu (secondary mouse button), choose Edit.
    The Calculated Key Figure dialog box appears.
    You can also call the Change Calculated Key Figure dialog box from the Properties screen area by choosing the Edit pushbutton.
    Formula:
    Use
    You can recalculate the key figures in a structure using a formula. You can include basic key figures, restricted key figures, and calculated key figures in the formula definition.
    Procedure
    Defining a Formula
    1. If the query does not yet have a key figure structure, create a New Structure in the Rows or Columns of the Query Designer by highlighting the row or column directory using the secondary mouse button and selecting New Structure from the context menu.
    2. If the structure does not yet contain any key figures, use drag and drop to transfer a (basic) key figure of the InfoProvider into the directory of the new structure.
    3. Select the structure directory, and choose New Formula. The New Formula entry is inserted and the properties for the formula are displayed in the Properties screen area.
    4. Select the New Formula entry and, from the context menu (secondary mouse button), choose Edit. The Change Formula dialog box appears.
    You can also call the Change Formula dialog box from the Properties screen area by choosing the Edit pushbutton.
    Regards,
    Shailaja

  • Restricted Key Figure Column heading text missing

    Hello,
    I created a restricted Key Figure in a BEX report and dragged this RKF into the columns tab. when i execute the report , the column header text for the restricted key figure is missing. The values are fine, but the header column text  for that KF is missing. any help?
    Thanks
    justin

    Hi Justine...
    I think u r doing something wrong..........Either u can create Global Restricted Key(Infoprovider level) or Local restricted ket figure(Query level)..........If u create Global........then  in the left pane............Right click on the Keyfigure >> New restricted Key figure...........to create in the Query level..........In the context menu>> choose Edit........... or select the heading of the Rows or Columns directory
    and use the right mouse button to choose New Structure..........In both the cases....there is a Description Field........u hav to write the description there............U can change the technical name also.........then save it........
    May be it is a temporary bug............just come out the query..and again reopen it......
    Regards,
    Debjani.....

Maybe you are looking for

  • Trouble with auto size text in a single line form field

    Hi.  I'm having an issue with filling out a form in Adobe Reader on my iPad.  The text field is single line.  The font is set to "auto" so that the line of text will not exceed a certain width.  When filling out this form on my laptop using Adobe Rea

  • User mapping certificate in UME (J2EE) with ABAP system as Backend (SNC)

    I hope someone can help me with the user mapping concept (X.509 V3 certificates) for both "worlds" (ABAP and JAVA Stack). I know how to install and configure certificate based (X.509) login to SAP ABAP and SAP JAVA (J2EE) Stack (--> enable encryption

  • Item transfer in process in SC for ECS

    Hi, I am using SRM 4.0 in Extended Classic scenario. I have some shopping cart items that are in status item transfer in process. Ideally once approved a PO should be created out of it. We can push it to sourcing by sourcing relevant indicator as wor

  • Browser Crash

    While I was running my browser based software and attempting to use captivate, I found that after three times of hitting print screen the browser would crash. This happened with Firefox and with IE. Any help would be appreciated.

  • Strom 9520 , not disconnecting calls.

    Hi, I bought first blackberry phone, Strom2 . It works quite fine but sometimes when I make a call its not disconnecting them. I have to take out battery and then use it for 1 day and then again the same problem During this, My whole screen get locke