Crystal Reports publication personalization with an OR statement

Hello,
I want to publish a crystal report but do not see a method to implement an OR statement like you can with interactive filters or query prompts.
Currently any personalization’s I make are all AND filter. My report when run on demand can bring back data where a Program (department) is either the Identifying Program OR the Responsible program. 80% of the time they are the same, but there are cases where they can be different. For example a Laboratory identifies an issue that the Emergency department is responsible for.
Example Filter for Publication
Health Authority = Organization 1
AND Facility = Hospital 1
AND (
    Responsible Program = Medicine
    OR
    Identifying Program = Medicine
AND Specific Location = 3 South
Currently am using dynamic recipients, but am open to any method to make it work. Dynamic recipients are used since we send 90% of publications to users outside of our analytics.
Thank you
Darren

Hi Dareen,
This is related to BI Admin(Infoview), But this is crystal design forum. I think you can post this thread in this link (BI Platform)
--Naga

Similar Messages

  • How to get one crystal report to work with two different backends?

    We have a software that can work with either SQL2008 or Visual Fox Pro backend.  We are trying to compile One Crystal report that will work with either of the two backends.  How to you make sure that your Crystal Report is compiled so that it will work with both backends?
    Right now my reports were originally created using the SQL2008 backend and are retaining the DBO reference in the statement, which then will not allow the Crystal report to work with the VFP backend.

    You can write your data sets as a command using hand coded SQL. As long as "dbo" is the only schema used in your SQL Server database, you don't need to specify it in the SQL. SQL Server will automatically assume the dbo.
    The 2nd thing... The SQL needs to be 100% compatible with both SQL Server 2008 AND VFP.  This will limit the list available functions to those that are common to both platforms AND work exactly the same in both platforms.
    The other part is to make sure you are using an ODBC type connection instead of OLD/DB. That way all of the connection properties are set on the local machine and the report is simply looking for the System DSN name.
    HTH,
    Jason

  • Crystal Report 9 connectivity with WebLogic 10.3.5

    Hello,
    Is the Crystal Report 9 certified with WebLogic 10.x? Currently WebLogic 8.x is in use. Trying to upgrade the WebLogic.
    Thanks

    What does this have to do with Database Connectivity?
    An I doubt it, CR 9 is about 8 or 9 years old well before 10.3 was released. Check the Platforms PDF's for more info.
    Don

  • Problem with crystal report that comes with VStudio 2008 Database edition

    Hello,
    I'm using crystal reports that comes with Visual Studio 2008 Database edition. But I'm having a problem these days. When there are more than 4 pages in the report, the summary field in the pagefooter(usually sum of data in the Details section) show 0 in the first page.It will be displaying in all other pages. I couldnt sort out the problem.I'm binding data to the report from an SQL Server 2005 table.
    Thanks in advance.I really appreciate if some one can sort out the problem quickly.

    Have not heard of the issue, but download SP1 and see if that helps:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Can we put additional Crystal report in menu with rights?  Is it inbuilt ?

    dear all
    one of my clients want crystal reports in menu with user rights. is it possible. if yes how.
    regards
    sri

    Hi Sri......
    It is possible if you have SAP 8.8 and above version.
    Once you designed Crystal Report and Import it to certain menu then please go to Authorization and give it permission accordingly......
    Regards,
    Rahul

  • Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c

    Need help Connecting Crystal Reports 8.5 with GBS Agency Expert 6.7.6c.  I need assistance on connecting these together so I can run a report.  I am not an IT person so if someone could dumb it down it would be great.
    Thanks,
    NBGHealth

    Hello,
    I assume GBS Agency Expert 6.7.6c is some sort of database or data source? If you have an ODBC driver then create or use a System DSN to the database. Then you can create a report using that DSN.
    Otherwise I suggest you contact the makers of GBS Agency Expert 6.7.6c and ask them how to connect to the database.
    Let them know CR is ANSII 92 ODBC 3 compliant.
    Thank you
    Don

  • Crystal Report 2008 included with SAP integration Kit

    Hi
    We want to know the crystal report 2008  come with SAP integration Kit

    Take a look into the following document:
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948
    It might help.

  • Crystal Reports Publication fails when using dynamic recipients

    Hi experts,
    We are facing a problem related with the BOE 3.1 Dynamic recipients Publication.
    We have created a Publication with just one Crystal Report based on a MDX Query.  We send the report in PDF format to email destinations
    Dynamic recipients are defined in a WebI report pulling data from a BW query universe. We can display the email, user ID, Use Name and other fields we would like to use as dynamic parameters.
    Server side trust seems to be configured (is there any way to test it is properly configured?).
    The Publication is working fine with enterprise recipients (which have SAP BW account), and each recipient receive its PDF by email.
    When we execute same report with dynamic recipients without selecting dynamic personalization parameters it is working fine. But when we select one dynamic parameter (which is coming from the WebI report we use for dynamic recipients) eg: Profit Centre, the Publication fails and we get a Database Connector error:
    2011-02-14 08:53:25,275 ERROR [PublishingService:HandlerPool-13] BusinessObjects_PublicationAdminErrorLog_Instance_31036 - [Publication ID # 31036] - Scheduling document job "P&L" (ID: 31,051) failed: Error in File ~tmp191067bfa343ff0.rpt: Database Connector Error (FBE60502) [1 recipients processed.]
    How can a dynamic parameter affect on the Database Connection?
    Does anyone have an idea about what could be wrong?
    Thanks!

    Ino, what do you mean for "technical name or the member unique name"? Are you talking about the SAP User name? So in the dynamic recipients we can find  these parameters:
    - Recipient Identifier (required):      
    - Full Name:      
    - Email:      
    In the Recipient Identifier I should refer to a SAP user?
    Dynamic recipients option is working for same recipients. The problem appears when I assign one parameter to a field coming from the dynamic webi report.It fails with the previously detailed error. This parameter assignment seems to be causing the Database Connector error.
    Message in CMC:
    2011-02-14 17:00:25,590 ERROR [PublishingService:HandlerPool-24] BusinessObjects_PublicationAdminErrorLog_Instance_31594 - [Publication ID # 31594] - Scheduling document job "B1 - P&L" (ID: 31,603) failed: Document for recipients {BD1~500/EVER} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients {EVER, JOHNDOE} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error (FBE60502) [4 recipients processed.]
    Error in the Adaptive jobserver trace does'nt give more details:
    |1c2fd2be-3ba1-f414-f8fa-e4f7b004f1ee|2011 02 14 17:00:18:974|+0000|==| | |jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0| 2560|4856|| |6187|1|11|2|CMC.WebApp|vwd2520:1624:39.23486:1|CMS.runJobs|localhost:8392:11648.936338:1|jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0.run|localhost:2560:4856.5:1|CntazqXlSEO7hcDJVIv11545bbb|||||||||||(.\src\reportdllerrors.cpp:140) ras21-cr: procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [707] with extended error string [Database Connector Error: ''
    Failed to retrieve data from the database.
    Failed to export the report.
    Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]. Localized error string is [Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]
    I would like to discard thats a SNC misconfiguration error. Can I consider that SNC server side trust is properly configured if I can run Publication for many SAP users mapped in Enterprise?
    Thanks!

  • Crystal Reports not working with PL/SQL

    When I try and connect a Oracle stored procedure in ODBC using Oracle 8.1.7 client and Crystal 8 Reports I get the following error:
    ODBC error: [MERANT][ODBC Oracle 8 driver][Oracle 8]ORA-06550: line 1, column 13: PLS-00302: component 'TEST_PROCEDURE' must be declared
    ORA-06550: line 1, column 8: PL/SQL: Statement ignored
    This code worked just fine in Crystal Reports 7. Does anyone know how to get this to work? Any successful code snippets to share? I called Crystal Decisions Support with no luck at all.
    Thanks!

    Yes, the dialog is different than in Crystal 7 but the box is already checked.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Rick Post:
    Do you have 'Stored Procedures' checked in the 'Allow reporting on' section of the SQL page on the 'File - Options' properties page?
    Depending on how Crystal 8 was installed this setting may be different than what you have been using in Crystal 7.
    <HR></BLOCKQUOTE>
    null

  • Error while scheduling Crystal Report within CMC with Destination as Email

    Hi,
    I have added a Crystal Report within the CMC. Before scheduling it, I have specified the Destination as Email and entered  the necessary details. After scheduling it, the Report Instance gives a Failure with Error Message as -
    destination DLL disabled.CrystalEnterprise.Smtp
    How to rectify this?
    Thanks,
    Amogh

    Hi,
    go to the CMC and invoke the server list under Servers. Locate the entry for the Crystal Reports Job Server, select it and invoke the context menu using the right mouse button. Select Destination and add Email in the list of the possible delivery options. Configure the connection data for your SMTP server and restart the Crystal Report Job Server.
    Regards,
    Stratos

  • Crystal Reports Dynamic Parameters with SAP Business One

    Okay, I've got this very strange issue with dynamic parameters in Crystal Reports connected to SAP Business One.
    Let's start with the software versions:
    - Crystal Reports 12.3.0.601
    - SAP Business One 8.8 (8.80.231) SP: 00 PL: 13
    - Windows XP SP3
    (SBO Server on Windows 2003 and SQL 2005)
    What I'm about to describe is something I've tried in several reports and for which I created a very, very simple test report to see if it was reproducible in a very simple situation.
    - I connected to a Business One server through CR's SBO connection type. Logon is successful, tables are shown.
    - I pick OCRD and plac CardCode and CardName in the details section on the report. Previewing the report shows data.
    - I create a dynamic parameter on CardCode and in the Select Expert I select the CardCode field and define that that should be equal to the parameter.
    - I preview the report again. Now it asks me in such a parameter screen for logon credentials. It shows the server and database it tries to connect to and in the username it shows the SQL Server username I used to connect to the SQL Server in the first place. However, the password for that user is not accepted. I also tried to login with the Windows administrator user and with the SBO manager user, but no success with any attempt.
    I also tried to add a static parameter and add all database values to the list. Same screen, different result:
    Crystal Reports 2008 wrote:
    Logon Failed.
    Error in File UNKNOWN.RPT:
    Unable to connect: incorrect log on parameters. (rptcontrollers.dll)
    (On a side note: the report is saved as report1.rpt)
    Anyone else got similar issues and found a solution?

    Hi,
    When you have fixed your crystal installation following the note posted earlier, please take a look at the [how to guide|http://service.sap.com/sapidb/011000358700000882232009E.pdf] and also at the [e-learning|http://service.sap.com/sapidb/011000358700001370262010E] about SAP Business One 8.8 and Crystal Reports.
    There are so called "tokens" which you need to use instead of dynamic parameters.
    Dynamic paramters don't work in SAP Business One 8.8, if they are not defined as a static paramter with token.
    Best regards,
    Darius

  • Crystal Report and InfoObject with Compound Key

    Hi,
    I have Characteristic with Compound Key in SAP BW 7.0. This Characteristic use to store the Purchase Order Item Line. The Compound Key is the Purchase Order Document.
    So I will have the following fields created for this Characteristic:
    Compound Key (Purchase Order Document) 5600001982, Purchase Order Item Line 10
    I created a Query for this Characteristic and I have the following as result:
    10 ...
    20 ...
    30 ...
    All works fine.
    Now I created the Crystal Report from this Query. When I display this Characteristic in Crystal Report, I have the following:
    5600001982/10
    5600001982/20
    5600001982/30
    Is this a bug or Crystal not support the Compound Key?
    Please advise, thank you.

    a

  • Crystal Report Viewer integration with Sharepoint 2010

    We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
    display the data in the report. The challenge was to open the report in the web browser.
    The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
    load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
    to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
    So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
    expect a rude shock because it isn't. Here are the steps -
    1. Deploy the WSP to the sharepoint server
    2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
    3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
        <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
    />
          <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
    4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
    SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
    5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
    And we are done. Fingers crossed it should all work.
    Prasad Matkar MCP, MCTS

    Hi Mahesh,
    How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
                    SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
                    SPWeb thisSite = mySite.OpenWeb();
                    // Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
                    EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
                    SPFolder folder = thisSite.GetFolder("Reports");
                    if (folder.Exists)
                        // get collection of Crystal Reports rpt files in the document library
                        SPFileCollection files = folder.Files;
                        // open the rpt file and get the contents
                        SPFile srcfile = files[reportToLaunch];
                        byte[] content = srcfile.OpenBinary();
                        // make a temporary folder
                        DirectoryInfo dir2 = new DirectoryInfo("~/temp");
                        if (!dir2.Exists)
                            dir2.Create();
                        if (File.Exists("~/temp/temp.rpt"))
                            File.Delete("~/temp/temp.rpt");
                        // write the report definition to a temporary file
                        // EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
                        //EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
                        BinaryWriter bw =
                          new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
                        bw.Write(content);
                        bw.Close();
                      //  EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
                        // set up the crystal report
                        ReportDocument reportDoc = new ReportDocument();
                        reportDoc.Load("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
                        ConnectionInfo connection = new ConnectionInfo();
                        connection.ServerName = "SQLServerName";
                        connection.DatabaseName = "SQLDatabase";
                        connection.UserID = "sqluser";
                        connection.Password = "sqlpassword";
                        TableLogOnInfo logon = new TableLogOnInfo();
                        logon.ConnectionInfo = connection;
                        reportDoc.SetParameterValue("@Parameter1", parameter1);
                        reportDoc.SetParameterValue("@Parameter2", parameter2);                                               
                        EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
                       foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
                            t.ApplyLogOnInfo(logon);
                        EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
                        // and the Crystal report Viewer                                    
                        CrystalReportViewer1.ReportSource = reportDoc;
                        EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
                        // clean up
                        File.Delete("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
    Prasad Matkar MCP, MCTS

  • Dynamic crystal report generation - issues with column headings

    Hi All,<br>
    I'm trying to generate a crystal report dynamically based on a "result set" data(Query: select REPORT_ID, REPORT_NAME, REPORT_DESC, RPT_FILE_NAME, LOCATION from IRS_REPORT_DETAILS). I'm able to generate the report run time, But the report is without columns heads. I would like to include the column headings as well. <br><br>
    I searched the API(RAS) and found that there is a 'add(java.lang.String fieldName, java.lang.String headingText) " method present in "ReportObjectController" using which we can add the headings.<br><br>
    ReportDefController reportDefController = clientDoc.getReportDefController();
    ReportObjectController reportObjectController = reportDefController.getReportObjectController();
    reportObjectController.add( "{Table.Field}", "FieldName" );
    <br><br>
    I'm facing problems in using this code. When trying to use this function for my fields(Ex: reportObjectController.add( "{ IRS_REPORT_DETAILS.REPORT_ID}", "Report ID" );) it is giving me the following error:<br><br>"com.crystaldecisions.sdk.occa.report.lib.ReportSDKGroupException: The field was not found.---- Error code:-2147213310 Error code name:fieldNotFound"<br><br>
    <b>The following is my dynamic crystal report generation code:</b><br><br>
    public ReportClientDocument execute(String repName, String query) {
              ReportClientDocument boReportClientDocument = null;
              try {
                   boReportClientDocument = new ReportClientDocument();
                   boReportClientDocument.newDocument();
                      // Add a table based on the given Resultset to the report.
                   dbConnResultSet mySampleResultSet = new dbConnResultSet();
                   //mySampleResultSet.execute(query);
                   boReportClientDocument.getDatabaseController().addDataSource(
                             mySampleResultSet.execute(query));
                   IReportSource test = boReportClientDocument.getReportSource();
                   // Access all the database fields
                   DatabaseController databaseController = boReportClientDocument
                             .getDatabaseController();
                   IDatabase database = databaseController.getDatabase();
                   Tables tables = database.getTables();
                   ITable table = (Table) tables.getTable(0);
                   int NO_OF_FIELDS = table.getDataFields().size();
                   int LEFT_POSITION = 200;
                   // Add all the database fields to the report document
                   for (int i = 0; i < NO_OF_FIELDS; i++) {
                        IField field = table.getDataFields().getField(i);
                        FieldObject fieldObject = new FieldObject();
                        fieldObject.setFieldValueType(field.getType());
                        fieldObject.setDataSource(field.getFormulaForm());
                        IReportObject rep = (IReportObject) fieldObject;
                        IObjectFormat objformat = rep.getFormat();
                        objformat.setEnableCanGrow(true);
                        objformat.setHorizontalAlignment(Alignment.from_int(1));
                        rep.setFormat(objformat);
                        rep.setLeft(LEFT_POSITION);
                        rep.setWidth(1000);
                        LEFT_POSITION = LEFT_POSITION + 1000 + 50;
                        ISection section = boReportClientDocument
                                  .getReportDefController().getReportDefinition()
                                  .getDetailArea().getSections().getSection(0);
                                   //***************** Data being added to the report here, But headings are not added*****************
                        boReportClientDocument.getReportDefController()
                                  .getReportObjectController().add(rep, section, i);
                   boReportClientDocument.createReport();
                   /*Some report saving code is present down*/
              } catch (ReportSDKException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              return boReportClientDocument;
    <br><br>
    appreciate your help.

    IField field = table.getDataFields().getField(i);
    Here you are getting the first field in the array.  This may not be the field you want to add since we aren't sure how the arrays are ordered when retrieving fields from the report.  It is better to retrieve the fields with the findObjectByName method, thus ensuring you are retrieving the field you want to add to your heading.

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

Maybe you are looking for