Constant selection in Crystal Reports (like BEx)

Hello! I'am sorry if this question have printed answer already but I can't found it.
I have BEx report like this:
          month1                   month2                         monthN
items     amount                   amount                         amount
item5     100                      50                             50
item8     200                      150                            100
item9     150                      20                             200
and I have hierarchy on infoobject "items" too, for example:
item1
    item2
         item5
    item8
item3
    item9
I created hierarchy group in Crystal Reports and got the report like this:
                          month1                   month2                         monthN
items                     amount                   amount                         amount
item1                     300                      200                            150
    item2                 100                      50                             50
         item5            100                      50                             50
    item8                 200                      150                            100
item3                     150                      20                             200
    item9                 150                      20                             200
But I need in calculate one more key figure - item amount percentage of item1 amount ({amount of current item}*100/{amount of item1}). Item1 have amount = 300 in my example, so I need report like this:
                          month1                   month2                   monthN
items                     amount perc              amount  perc             amount perc
item1                     300    100%              200     100%             150    100%
    item2                 100    33%               50      25%              50     33%
         item5            100    33%               50      25%              50     33%
    item8                 200    66%               150     50%              100    66%
item3                     150    50%               20      7%               200    133%
    item9                 150    50%               20      7%               200    133%
In BEx I used KF amount with restriction items="item1" and option "constant seklection" but I can't find instruction, how-to or example - how I can design it in crystal reports???
Please help me - I think you know it as it's common report users wish.

There really isn't anything like a conditional SUM (like SUMIF in Excel), but you can sum an IF statement, kinda like this...
SUM (IF {Amount} > 100 THEN {Amount} ELSE 0)
As far as the sub-report idea... Yea that should work.
1) You can pass a value from a sub-report back to the main report by using a shared variable. {Look up "Shared variables" in the online help for more info}
2) Yes. The sub-report will refresh with the main report.
3) Yes. Formula results from the main report can be passed to the parameters of the sub-report. This will also automatically hide the sub-report parameters from the user.
3a) From the main report, right click the sub-report and choose "Change subreport links..."
- Find the field or formula in the "Available Field:" window and click it over to the "Field(s) to link to:" window.
- Find the corresponding sub-report parameter in the "Subreport parameter field to use:" area.
Not too tough actually.
HTH,
Jason

Similar Messages

  • Crystal Reports with BEx Query using Custom Exit Variable

    Hi,
    We have BW BEx Query using Customer User Exit variable to derive  the Fiscal Week for Last Year (called it VAR2) based on another user input variable Current Fiscal Week (called it VAR1).
    VAR2 is derived from VAR1 in CMOD via some codings and thus it DOES NOT have the "Variable is Ready for Input" flag ticked in the BEx. VAR1 is user input variable, so it has "Variable is Ready for Input" flag ticked in the BEx.
    When we create a Crystal Reports with the BEx Query using variable VAR2, and when we run it we got an error message saying "Failed to execute query; '[]<java.lang.UnsupportedOperationException: No Selection State Support!ZP_MI_LYPUBWEEK>'. Redesign your query or contact the data source maintainer to solve the problem".  (note: ZP_MI_LYPUBWEEK is VAR2 in this case).
    Could anyone please assist? Surely, CR supports BEx customer user exit variables like the above, right?. I also refer to the forum below as it seems to have a similar issue (except mine with an error message), but it does not provide a solution in it.
    Crystal Reports with BEx Query using Custom Exit Variable
    Thanks,
    Andy

    Hi Vibhav,
    We have the SAP Crystal Reports for Enterprise XI4.0 Version 14.0.0. Not sure if SP0 or other SP, got to check with Basis Team later.
    We tried that "mandatory" option and did not work either.
    Anyway, SAP has now come back again saying it is something they will fix it in next release/version. We got a phone call from them and a reply below to our OSS.
    23.08.2011 - 08:20:49 CET - Info for Customer by SAP  
    I have raised this issue on the Idea#s Place as an enhancement request
    on the below link:
    https://cw.sdn.sap.com/cw/ideas/5586
    This ER contains the information of including the customer exit
    variables in the report without checking the #input for ready# option.
    This ER can be considered for being implemented in the future
    versions. You can refer to SAP Note: 1515837 - How To: Enhancement
    Request Process - "Idea Place" for more information regarding the Idea
    Place.
    Cheers,
    Andy

  • Reporting tools for the Business user - Crystal reports or BEx tools ?

    Hi,
    We have recently implemented BI/BO infrastructure. Scope of the inital implementation was an executive dashboard based off COPA data. We have used Xelcisus for dashboard and BEx tools for query design etc.
    We would like to set up some of our key business users (analysts in respective functions) to be able to write their own queries off this COPA cube. The discussion point is whether to roll out Crystal reports for business users or have them trained on BEx tools i.e BEx query designer/analyzer.
    Any inputs to my question "Crystal Reports or BEx tools for the Business users - pros and cons", is appreciated.
    Thanks,
    Girish

    Our user currently do not have anything.  It's fresh implementation. We would like to get the business users involved. The question is - what's the best start for a business user - Crystal Reports or Bex ?

  • Creating webi/crystal report on BEx and retrieving data, an error ocured?

    Hi Experts,
    I have a problem which many couldnt able to provide a better solution and solve it.
    Need your expert solutions.
    Installed SAP BI with BO(R/3) integration kit SP3.
    Created WEBI report on BEx report via Universe. While trying to load/ refresh/ retrieving the data for display it is throwing an error message like the mentioned below.
    Query1: UniverseOnSAPBEx2
    A database error occurred. The Database error text is: The MDX query SELECT { Measures.ZPrice } ON COLUMNS, NON EMPTY CROSSJOIN( ZVNAME.LEVEL00.MEMBERS, ZVID1.LEVEL00.MEMBERS) ON ROWS FROM $ZICTEST failed to execute with the error.
    UNKNOWN error. (WIS 10901)
    Some fields in the Cube/ BEx/ Universe/ WEBI that i have used are ZPrice, ZVendorId, ZVendorName etc.
    Regards

    looks like it could be the same issues as your other post.

  • Strange behaviour of Crystal report with BEx Query

    Hiii. All
    I have created a crystal report on top of BW-BEx query. My query contains a structure other than Keyfig.
    Thats why I am using BW-MDX query option to build my Report.
    i Have created a cross tab in my report taking the structure as Column and some key figures in Summarised fields.
    till here it works fine. but whenever I am dragging some fields say "Project Defination or Location" to  report header section, which are also coming frm BEx query. then my cross tab is not showing all colomn of the structure(Precisely it removing one column of the structure).
    Can anyone pls tell me  why is it happening. and how to proceed to solve this.
    Waiting for your reply..
    Thanks
    Anish

    Hi,
    Thanks for your reply.
    Yes it returning data . Structure contains total 13 columns .
    So It is suppose to return all 13 of them. and it is doing so till i don't drag-drop the field. once i do this its behaving strangely and returning me only 12 columns.
    CR 2008 Version : 12.3.0.601
    BO Version : BO XI  3.1
    Regards,
    Anish

  • Crystal report blocks bex query

    Hi,  gurus.
    I'm in such situation - i need to delete BEX query wich is used in crystal reports. Changing database in my report i simply made new crystal report. So i need to delete it from bw. If you know the way please tell me.
    Any help ll be appreciated
    regards, andrew

    Hi,
    I assume you saved the report to the BW system and then the system will show you - and not allow to delete - the query before it is used in a report - standard "where used" functionality of BW. you need to delete the report first
    ingo

  • Crystal reports and Bex

    Hi all,
    First of all I want to let you know that I am new to SAP. So please excuse me if I am not perfect with my question.
    I have a user who wants to replace all the crystal reports they have with the Bex reports. I got the table names and the hardcopies of the crystal reports. By seeing the table names I found that the data is of HR. Now I don’t know where and how to start.
    I thought that I need to create infocubes and load data into the cube and then get the reports. For that to do I don’t know what exactly I need to know. How to work with HR related data.
    Hope I am clear. I asked the user whatever I am comfortable with. Please let me know if anything else is required.
    Thanks,
    Rahul

    Hi,
    pls chk this links for HR-BW Extraction;
    https://websmp201.sap-ag.de/~sapdownload/011000358700004478862001E
    http://help.sap.com/bp_biv170/
    /thread/581227 [original link is broken]
    /people/swapna.gollakota/blog/2008/01/14/one-stage-stop-to-know-all-about-bw-extractors-part1
    Pls check these links for HR;
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/174b9990-0201-0010-2abe-86a515869fbe
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4930fe9e-0501-0010-4998-e5de1456183c
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7e3f9990-0201-0010-9a97-e971112aa2b2
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b27b019f-0501-0010-97b3-9a86dcab255a
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e1cba990-0201-0010-43ae-af579aee7a73
    0HR_PT_2 , Time and Labor Delta load
    Tables in an InfoCube
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/0a693866ff230ee10000009b38f842/frameset.htm
    HR pre configured scenarios here..
    http://help.sap.com/bp_biv170/
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/505351fe-ec8c-2910-c5b5-a43bbf53f6fc
    sap help business content
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/77eb3cad744026e10000000a11405a/frameset.htm
    e.g you need 'personnel administration'
    http://help.sap.com/saphelp_nw04/helpdata/en/63/351e3c6a2fc036e10000000a114084/frameset.htm
    expand node 'datasources'
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/28a63afb214549e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/acb3392f65f530e10000000a114084/content.htm
    or 'recruitment'
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/36bf39f6335871e10000000a114084/content.htm
    and bi best practice 'human capital management'
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    Regards
    CSM Reddy

  • Unknown error when executing MDX when refreshing Crystal Report with BEx

    Hello Experts,
    I have created a Crystal Report (Crystal 2008 SP1) with BEx Query (7.10) and have been able to refresh successfully when the SAP_ALL authorization is included in my user role. I don't want my end users to have SAP_ALL so I created a role and assigned the authorizations recommended in the SAP Integration Kit for BusinessObjects 3.1 Install Guide.
    When I run the report as one of the users assigned to my new role I get the following error in the trace file.
    ERROR: .\crdb_bwmdx_execution.cpp [200]: l_bapiGetStreamInfo failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    Unknown error when executing MDX
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    I tried all the Fix Packs (ie 1.1., 1.2 and 1.3) for XI 3.1 Integration Kit to try resolving the error but it didn't work.
    The same query works fine in BEx Web when running as one of the users in the new role I created for Crystal Report users.
    Are there any other Authorizations that I need to include in the role?
    Cheers.
    Paul.

    We have been able to identify what causes the MDX driver to error and I will explain what we are trying to implement with the hierarchies.
    Firstly, we are creating reports of the HR cube Mutliprovider using the SAP MDX Driver which works well when there are no authorization analysis set on the cube. But with the authorization analysis set for on 0ORGUNIT for BEx Explorer Crystal returns the MDX error.
    Each of the Business Unit managers are assigned to an Organization Unit that will be used to restrict the employees that will be reported. To restrict the Managers to only see their Org Unit we have set the 0ORGUNIT object to use authorization ananlysis and a custom authorization variable to return only data for the Org Unit they belong too.
    In Crystal this works well when a manager has an Org Unit that is a head department of other Org Units. This scenario will give Crystal the NodeID and Parent NodeID to create the hierarchies in the report. But when a manager does not have any other Org Units beneath there own department then Crystal doesn't have a Parent NodeID to create the Hierarchies with the NodeID. In the RFC trace I can see an error when Crystal is trying to get the Parent NodeID but the user is not authorized to that Org Unit then it throws the error.
    We have got a temporary workaround which is to create the managers a dummy Org Unit below their own department. The workaround will do for now but shouldn't the MDX driver be able to recognise that it has returned the last level in the Org Unit Hierarchy and not return an error?
    The customer is looking for a product fix as they believe this should be handled by the driver. Is this a bug or a limitation of the product?
    Paul.

  • Font selection in crystal reports

    Post Author: kuldevbhasin
    CA Forum: General
    hi guys...i am using vb.net 2003 and crystal reports....is there any option to change the fonts of the entier report through the prog. itself...i mean can i give the user an option to select the font and then the selected font can b applied to the entier report....in any way...pls. guide...thankx a lot in advance....

    Post Author: timg
    CA Forum: General
    Not that I am aware of.

  • Creating hierarchies in crystal reports on BEx Hierarchies

    Dear Experts,
    I was trying to create a crystal report in Crystal enterprise
    on BEx Hierarchical report as a source. But when I executed
    a query with all objects including hierarchical objects its giving
    detail output.
    Why is it giving detail output instead of hierarchical report output. 
    My requirement was to create  hierarchical report.
    Pls help me with step by step details to complete this task at the earliest.
    Thanks in advance.
    Cheers,
    Armadhu.

    And here are some tutorials:
    http://scn.sap.com/docs/DOC-34462
    http://scn.sap.com/docs/DOC-21818
    http://scn.sap.com/docs/DOC-21816
    http://scn.sap.com/docs/DOC-21817
    Regards,
    H

  • How to design crystal report like bellow..

    patient Name:-Basuraj Kumbhar
    1) Tablet   ABCD    10
                   At night 1 tablet.
                   Morning 1 tablet.
    2) Capsule  XYAZ  100
                   At night 2 tablet.
                   Morning 2 tablet.
    3) Syrup  JKLM   100ml
                   At night 2 spoon.
    here Tablet,Capsule,Syrup are type of medicine, ABCD,XYAZ,JKLM are name of medicine and 10,100,100ml are medicine quantity.
    I want to create report like this.
    How can create the like this.
    Thanks in advance....

    Hi Basuraj,
    Create report using below groups :
    First group on PatientName
    Second Group on MedicineType
    Now place MedicineName & TotalQuantity on second group header
    Place MedicineTime & TabletEatingQuantity on Detail section and suppress rest of the sections.
    Try to move your field positions to get better formatting.
    -Sastry

  • Crystal Reports SAPToolbar should work with BEx 7.x without needing BEx3.5

    Hello,
    first I would like to begin with the used versions in our landscape:
    Clients:
    - Windows 7
    - Crystal Reports 2008 SP3 FP3.3
    - SAP 7.20 Patchlevel 9
    - Bex 7.x SP5
    Servers:
    - BOE XI 3.1 SP FP 3.3
    - BW 7.01 SP5
    Our problem is that the SAPToolbar in Crystal Reports requires Bex 3.5 and doesn't accept Bex 7.x. The start aborts with the following message:
    COM exception caught in CExtToolBar::GetRemoteFileCookie(). HR = 0x80004005
    COM exception caught in CExtToolBar::InitOpenSaveDialog(). HR = 0x80004005
    You are connecting to BW server version < 702, please install BEx3.5 to use SAP Toolbar functionality.
    Since the installation of SAPGUI 7.20, due to the fact that SAPGUI 7.10 is out of maintenance, BEx 3.5 is delivered as separately installable package and therefore not installed with SAPGUI 7.20. Further please note that full PAM support of BEx 3.5 cannot be granted by SAP - as Microsoft has removed, e.g., support for some components within Windows 7 that had been used by BEx Web Application Designer 3.5.
    For further details please check the notes: 1322923, 1410878, 1424366 and 1391689.
    Is there a solution for SAP Toolbar not supporting Bex 7.x? I know that the note 1196843 referencing to this issue and the support of SAP says more or less, that this is known and tracked but can't say when it will be solved. For me it's hard to understand, that BEx 7.x isn't supported.
    Do other have the same problems? If yes please vote for the IDEA: https://cw.sdn.sap.com/cw/ideas/8186
    Best Regards,
    Michael Raab

    Hi,
    If i'm not mistaken, the 3.5 add-ins are still part of the SAP GUI 720 installer, but they need to be selected (ticked) to be installed.
    Unfortunately, Crystal 2008 is considered a legacy tool, and as such, it still uses the old integration points. That add-in is also required for the Dashboard Design (xcelsius) SAP toolbar.
    Regards,
    H

  • Constant Selection in BEx Query Designer on BI7

    Hi guys
    According to this blog <a href="/people/prakash.darji/blog/2006/09/19/the-hidden-secret-of-constant-selection Selection</a>, we can create constant selection on both Characteristics and Key figures. I understand how to do it with restricted key figures.
    Can anyone give me a step by step guide on how to create constant selection for a Characteristic in BEx Query Designer on BI7. I can't find options for 'constant selection'
    Or is this the same thing when you include or exclude values?
    Message was edited by:
            jimi ogun

    Thanks Krishna
    I am actually using a Multiprovider for my queries but business requirements mean I need to create joins.
    I am trying to avoid Infosets and I believe another way is to use the Constant Selection feature in Query Designer.
    Going back to my previous posting, I know how this is done with a restricted KF but I don't know how when it comes to characteristics.
    Can anyone help?

  • Crystal Report error on creation connexion on Bex Query

    All,
    I'm trying to create a Crystal report on Bex Query but unfortunatly I've got an error message when I try to authenticate after clicking the on the new report on the Bex toolbar.
    The message is :
    Run-Time error '-2147417848 (80010108)':
    Automation error
    The object invoked has disconnected from its clients.
    Bex is woking fine.
    No error in the crw32_*.log
    Env:
    SAP GUI 7.1
    BOE XI 3.1
    Crystal Report 2008 SP2
    SAP IK 3.1

    Hi
    it is recommended to have the same version of the int.Kit and the CR Designer. ie.
    Crystal Reports 2008 V0 + int.Kit 3.0
    Crystal Reports 2008 V1 + int.Kit 3.1
    Crystal Reports 2008 SP2 + int.Kit 3.1 SP2
    Did you install the SP2 for the CR designer after you installed the int.Kit for SAP?
    Regards,
    Stratos

  • Crystal Report doesn't prompt for SAP credentials / errors out on refresh

    2 Environments tested with same results:
    <p>
    BOE XI 3.1 SP2 & BOE XI 3.1 SP2 FP2.5<br>
    SAP Intg Kit on mirrored SP/FP levels in each environment.
    <p>
    We've been successfully creating Crystal Reports against BEx queries in BW for months now as well as ECC master data.  We've also built universes and have WebI reports actively working against similar BEx queries in the same.  However, we're getting some curious behavior when we refresh the Crystal Reports against BEx queries in BW.  Verified all necessary transports and authorizations have been provided for both authoring, as well as refreshing/viewing on demand, etc.
    <p>
    We've setup all the Crystal Reports we're testing to:
    <p>
    a) Use custom database logon information specified here.<br>
    b) Specify a custom driver, leveraging the crdb_bwmdx driver<br>
    c) Prompt the user for database login
    <p>
    We have not enabled SNC as of yet.
    <p>
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server. 
    <p>
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    <p>
    However:
    <p>
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials.  We immediately get the "LOV" prompts.  Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through.  However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data.  Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to.  An error is then spit back.  We run the same queries with the same users within SAP and get normal behavior.  It's as though as soon as we apply security to the query the mdx driver doesn't like it.  Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    <p>
    Interactive Viewer: "Error in File %reportname%: Encapsulating Page Failed"<br>
    Java Viewer:  "Error in File %reportname%: Database Connection Error"
    <p>
    Nothing glaring in the event logs on the BO servers or in the Crystal logs that I can see, however just because it isn't spitting a specific error in the crystal logs doesn't mean I'm not missing something because I don't know what to look for behavior wise. To reduce the liklihood that it has to do with the way the report was built, we've tried against the same query by building a report using standard methods, as well as the SAP Toolbar using a very plain jane report.  Same behavior.
    <p>
    Thoughts?
    Edited by: Jay Riddle on Mar 1, 2010 8:55 PM

    Hi,
    1) When we refresh a WebI report hitting a BEx query with security applied, it doesn't prompt for the credentials, but we confirmed through tracing on the SAP side that if the user hits a paramater it has access to, the data comes through and when we hit a paramater they do not have access to, we can clearly see SAP reject it and it spits out a logical error on the BO side in InfoView and in the WebI logs on the BO server.
    >> Which authentication are you using to logon to InfoView ? Whats the configuration in the Universe Connection for Authentication ?
    2) When we refresh a Crystal Report hitting ECC data, we are prompted for the SAP credentials and everything works as expected
    >> The user is using which authentication ? and against which system does he log on ?
    However:
    3) When we refresh a Crystal Report hitting a BEx query in BW, we are not promtped for SAP credentials. We immediately get the "LOV" prompts. Now, if we use a test user in SAP that has NO SECURITY restrictions at all and open access to the query, the data comes through. However, as soon as any security is applied to the query level, even if it is SAP ALL, we cannot retrieve the data. Tracing is also strange, as we can see on the SAP side it buffer the selected paramaters, but unlike with the WebI reports, it never shows it reaching the point where it checks each paramater against what the role has access to. An error is then spit back. We run the same queries with the same users within SAP and get normal behavior. It's as though as soon as we apply security to the query the mdx driver doesn't like it. Dependant on the type of InfoView viewer we use, the errors we consistently get on the BO side are:
    >> The user is using which authentication ? and against which system does he log on ?
    >> You mentioned security restrictions and I assume we talk about BI authorizations in form of data level security. If so - does the BW query include the authorization variables ?
    Ingo

Maybe you are looking for

  • Creating a DBI Report with a Generated Data Source

    Hi all, I am on a customer site helping them to implement DBI. We're using DBI Designer to create some Custom Reports. We're interested in using Generated Data Sources in order to simplify handling of the complex Time Hierarchies implemented as stand

  • Multiple indexes using same columns on one table - is this doable?

    Hi I have a table like MyTab(a int, b int), and I am required to create a primary key index and a non-unique index on this table using columns (a,b) in a specific table space. The back end database is Oracle 10g. Here's what I have tried so far, need

  • Captivate 7 course published to html5 not working

    I recently created an elearning course and published to both SWF and HTML5 for SCORM 1.2. However, in doing so, I could not get it to play on my iphone, and on the Mac only some browsers worked. I separated the two outputs in two different versions a

  • Is there a way to embed multiple javafx components to one html

    Hi All, I have created a javafx component which is similar to the speed meter. Currently I have now embedded one instance of that speed meter. But I tried to put another one as the same but it didn't work where only one instance worked. Is there any

  • Why I do not have Siri on my ipad2

    Why I do not have Siri on my ipad2