Launch a Crystal Report Based on a Bus. Objects Universe with code

Post Author: BobM
CA Forum: .NET
Launch a Crystal Report Based on a Bus. Objects Universe with code
We have purchased Business Objects Enterprise XI R2 and have designed a universe.  We have hundreds of scheduled reports that have been configured through the InfoView.  The problem is that we run these reports on a very odd date schedule and it is extremely cumbersome to go into these report definitions and change the dates in InfoView.
We would like to be able to store all the report parameters in a table (outside of the BO universe) along with the date and time we would like it to run.  All of this would need to be tagged with the report name so we know what report we are referring to.  Then we would like to sweep this table periodically (or use some other triggering mechanism) and launch the reports as specified (hopefully) using an API/SDK (like the one that used to be available with Crystal) to launch the .RPT file and pass all of the appropriate parameters, and possibly the credentials if need be.
In short we want to roll our own report scheduler due to some limitations we have found in the InfoView scheduler.
My main question is, does an API/SDK exist that can launch a crystal report that is based on a Business Objects Universe?  As I had stated, it needs to be able to pass parameters in the report call.  Based on my previous projects using Crystal connected directly to a SQL Server DB, I beleive this is possible, but I would like to hear from others that may be doing something similar with a Business Objects Universe back end.
We are using Crystal Reports XI R2.  Just to be clear, all of the functionality I specified up to the point where the report needs to be called is not an issue, we know how to do all of that.
Thanks in advance,Bob
Code; API; Business Objects; Universe; Crystal; BO Enterprise X11; Crystal Reports XI

With the code, you've presumably logged on to the database. To insert objects on to a new report you'd want to use code along the following lines:
private void AddTableFromDataSet(ref CrystalDecisions.CrystalReports.Engine.ReportDocument rpt, System.Data.DataSet ds)
ISCDReportClientDocument rasReport = rpt.ReportClientDocument;
// Convert the DataSet to an ISCRDataset object (something the ISCDReportClientDocument can understand)
CrystalDecisions.ReportAppServer.DataDefModel.ISCRDataSet rasDS;
rasDS = CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
// Add the dataset as a data source to the report
rasReport.DatabaseController.AddDataSource((object)rasDS);
// Add a field to the report canvas
// Note: This is quick and dirty. No positioning, resizing, formatting, etc.
CrystalDecisions.ReportAppServer.Controllers.ISCRResultFieldController rfc;
CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable crTable;
CrystalDecisions.ReportAppServer.DataDefModel.ISCRField crField;
rfc = rasReport.DataDefController.ResultFieldController;
crTable = rasReport.Database.Tables[0];
crField = crTable.DataFields[2]; // Hardcoded field "Customer Name" in the Customer table from Xtreme Sample Database
rfc.Add(-1, crField);
// Save the report template to disk (without data)
//object path = @"c:\documents and settings\administrator\desktop\";
//rasReport.SaveAs("test.rpt", ref path, 0);
//MessageBox.Show("Done!");
For more info, see sample apps on the following link:
http://wiki.sdn.sap.com/wiki/x/IgBmBQ
Also, consult your 'Report Application Server .NET SDK Developer Guide" and  "Report Application Server .NET API Guide". I'd provide the appropriate links, but you do not mention the version of CR you are using...
Thread moved to the '.NET - SAP Crystal Reports" forum.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Similar Messages

  • How to bulid a Crystal report based on Bex query as source

    Hi,
    I have requirment where the end user wants the query in Crystal.I built a Bex query in Bex query designer.I would like to know how to create crystal report based onthe Bex query.
    Thanks,

    Hi
    The Crystal Reports are integrated with BW such that the query built in BW can be used to bulit Crystal Reports on them.
    After launching the Crystal Reports, you will have and option : "Open reprt from BW" whcih will help you in opening the BW Queries and create Crystal Reports.
    Also in the Menu there is an optin SAP-->Create New Report from a Query
    Regards, Hyma
    Edited by: Hymavathi Yanamadala on Aug 13, 2009 5:52 AM

  • Crystal Report based on Universe and RAS SDK missing functionality

    Hi,
    In Crystal Report Designer Application i can select Universe as a data source for the Crystal Report and on the query panel construct the actual query using Universe objects and conditions.
    Now, my question is how can i do the same PROGRAMMATICALLY. I.e. i want to make a new or take an existing crystal report, check if it's based on universe, then access the actual universe query structure and construct/modify the query by operating with the actual Universe objects and conditions.
    I tried to use RAS SDK for this, but i could only access Tables that dont even show on which universe they are based on. 
    Should i use some other SDK to do this?
    Thanks,
    Roman.

    Thanks for your response. Ok, if it's so complicated, then i'm not concerned about universe query creation. I have more specific questions now:
    1) You've said that CrystalReport stores Universe SI_CUID values that it connects to. Let's say i have 3 tables based on universes in the report. What is the best way to determing which universe correspond to which table using RAS SDK?
    I looked at ConnectionInfo for each table, it sais that it's based on universe, but it DOES NOT have universe CUID property.
    Using Enterprise SDK i can access SI_UNIVERSE_INFO of ProcessingInfo for report InfoObject and see the list of universes used, but they are not matched to the actual tables, so i cannot really find out which universe belongs to which table.
    2) If EXISTING CrystalReport is based on Universe, is it possible to retrieve the actual universe objects and conditions used in this report? I can see that field names correspond to object names, BUT i also need a parent class name, becuase object is NOT identified by it's name only withing the universe.

  • Issues with Infoview data refresh on Crystal Reports based on BW BeX query

    Hi all,
    We applied the Business Objects XI3.1 fix pack 3.1 with Integration toolkit fix pack 3.1 in our environment.
    After that we started having trouble with Crystal Reports based on BeX queries that use manual input variables.
    The data refresh would not work in Infoview.
    The data refresh would work using the Crystal Reports designer gui on local machine.
    regards,
    Abhishek

    Hi all,
    This thread is for the benefit of all the BW/BO people who faced issues with BO reports not working after certain fix pack installations.
    After lot of time spent in debugging this and researching and some help from SAP, we found that BASIS had missed a step in the BO patching. This step was relating to applying some BW transports in the BW system related to the new Integration toolkit.
    Please use below notes for the BW transport task of patching BOE Integration toolkit.
    Refer to Note#1472104 which explains about loading the
    transports when we install BO Service Packs or Fix Packs. Also please refer to the Note#1271751 for the advice on transports for BW systems.
    Please go through page 206 (Configuring transports) in the SAP Integration Kit installation guide. You can download this document at below link.
    https://websmp106.sap-ag.de/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf
    Refer to Note#1345919 which explains about the process of loading transports for SAP IK.
    regards,
    Abhishek

  • Performances with Crystal Reports (based on BW queries)

    Hi,
    I've created some Crystal reports based on BW queries, and I'm really interested in performances purposes. The BW queries I created are quick (with neither free characteristics nor hierarchies), and when I use them in a Crystal report, I identify a loss of time in the data extraction (BW --> Crystal), in the Crystal management of the layout and then in the publication to BOE.
    To be able to use Crystal on BW queries is very useful, but if the response times are too much important, that's not good...
    Is there any customizing to perform to get better performance ? Are there some analysis already performed with Performance point of view ?
    If you have any best practice or piece of advice to shorten the response time in Crystal reports, I'm really interested in.
    Thanks for your replies,
    Best regards
    Jonathan

    Hi,
    there are many SDN threads or forums dealing with the integration BW and Crystal.
    You should have a look to the forums created by Ingo Hilgefort (SAP expert on the BW-BO integration).
    You can start with that one :
    /people/ingo.hilgefort/blog/2008/09/17/businessobjects-and-sap--installation-and-configuration-part-1-of-4
    Best regards,
    Jonathan

  • How to biod Crystal Reports based on ABAP Tables/Views

    Hi,
      Can any one post me some document stuff on building Crystal reports based on ABAP Tables/Views please!
    Thanks,
    Madhu.

    Hi,
    Check out the links below for Crystal Reports :
    Re: Crystal report in SAP BW
    http://support.businessobjects.com/documentation/product_guides/
    http://help.sap.com/saphelp_nw04/helpdata/en/86/06a8d3be17fc47aa8d850e50cf5f24/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/46/dfd33b1ed4b47de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/34/c0523e83464644e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5f72b7c0e943d99f4f5cef2bfacfe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/06/00a63b60f26e3be10000000a114084/frameset.htm
    Hope this helps.
    Cheers,
    Kedar

  • BUSINESS OBJECTS- Crystal Reports-based out of Function module

    We are right now creating BUSINESS OBJECTS- Crystal Reports. Our client requirement is to create this report based out of u201CFunction moduleu201D.
    With the current parameters settings at the Crystal Reports designer we are able to create the report based on View and Linking various table. The reports get executed and fetch data. But when we create a report based out of FM, the report returns nothing. The screen stays in u201CNot responding stageu201D and terminates after without any message/pop-up.
    Can anyone please help us resolving this? Are there any parameters/settings to be done which we are missing?
    Thanks,
    Pallavi

    Hi Pallavi,
    Not much info to go on. What version of Cr are you using?
    What database and version are you using?
    How are you connecting to the database, ODBC, OLE DB or native driver?
    Have you turned tracing on the server to what SQL is being passed from CR?
    Have you copied the SQL from Show SQL in the Designer and paste that into a DB SQL test tool to verify you should be getting data back and that you are not returning so much data it's going to take a week to get?
    Not responding simply means CR is waiting for data, try being patient and see if you ever get data or add a Record Selection formula so you only get a few rows of data.
    Try reporting off of a single table itself to verify it works and you have permission to run the SQL.
    Thank you
    Don

  • Comparison between Crystal Report Server XI R1, Crystal Report Server XI R1 , Business objects Enterpirse XI R1 and BOXI R2?

    Hello Everybody,
    I am new to Business Objects Enterprise. I need to know what is differnce between   Crystal Report Server XI R1and Crystal Report Server XI R1 ; Business objects Enterpirse XI R1 and BOXI R2?
    As a beginner, it will be very much helpful for me to learn in a better way and to go in the right track.
    Thanks in Advance.
    Regards,
    Annapoorani

    Annapoorani,
      I will start off with the basic difference beteen Crystal Report Server and Business Objects Enterprise.  We can continue on after this initial bit of information.
      Essentially, Crystal Report Server is a much like a subset of the full Enterprise Product line.  Whereas CRS is used for storing and scheduling Crystal Reports,  the Enterprise product extends this usability to also include Desktop Intelligence Reports as well as Web Intelligence reports.  There are also added features available with the full Enterprise Suite (depending on the licensing and installation) that also provide Performance Management, Dashboards and other enhancements.
    In the sence of XI vs XIR2,  XIR2 is more up to date with fixes and service packs.  You will find the original XI products to be closer to an end of lifecycle when it comes to support. 
    As well, the newest release not mentioned in your line of questioning is Business Objects XI3.0.  Currently this is a java based deployment, but there will be a .NET version forthcoming.  Many new features have been added and you can find more information directly at www.businessobjects.com pages.  There is a full section on the website that outlines the various products.
    Edited by: Tony Foster on Jul 16, 2008 11:22 AM

  • BI Publisher report based on VO (View Objects)

    Hi,
    I would like to know, can we generate BI Publiher report based on VO (view Objects ). Actually we are creating VOs for ADF and want to know if that can be used for generting BIP report.
    Thank,s
    Niraj

    Hi Niraj
    Yes, you can, there is a method on the VO to get the data from it in an XML format. Then use our APIs >> documentation to format it with a template.
    Regards, Tim

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • How to migrate crystal report 8.5 to business object ?

    HI friends,
    i am newbie in one project assingment - migrating of all crystal report 8.5 to business object ?
    pls let me know how to do this.
    any help is greatly appreciated.
    Thanks.

    Hi
    https://bosap-support.wdf.sap.corp/sap/support/notes/1219131
    Regards
    Roland

  • Difference between Crystal Reports Server 2008 and Business Objects XI R2

    Can anyone please help me know the difference between Crystal Reports Server 2008 and Business Objects XI R2? Both the support guides says that it supports Office 2007. I have a problem in exporting the reports to Excel 2007 .I have downloaded the trial version of Crystal Reports Server 2008 but still unable to view my  complete reports in Excel 2007 through infoview because few of my report's colums are truncated and it still exports in Excel 2003.I have LiveOfficeXIR2_SP4 and Office 2007 installed. Is it so that i have to switch over to Business Objects XI R2 or any other to solve my problem instead of using Crystal Reports Server 2008 or is it the problem with the version of my Live office.Pls help me regarding this..
    Babita.

    Babita,
    request you to post the same in the BO forums for more relevant answers...
    Arun

  • Crystal Reports 2008 - saving to Business Objects Edge

    Post Author: GWilks
    CA Forum: Crystal Reports
    Hi,
    When trying to Open or Save a report in Crystal Reports 2008 to the Business Objects Edge server, the following message is received:
    Access denied. You cannot log on to an older version of the CMS.
    Does anyone know when or if these two versions will be updated to support each other?
    Thanks,
    Garry

    Hi Jeffrey,
    The problem when ever you see that error is due to the versions mismatch. The is due to a call into one the updated or older versions of the dll that doesn't exist where it is expected.
    They MUST be the same version number.
    Options are to bring BOE up to SP3 and FP 3.1 also or roll back CR to SP 2 and Fix Pack 2.7.
    Thank you
    Don

  • Single Crystal Report based on Five different SAP BEx Quries.

    Hi,
    I need to create 5 different Charts (in a single report)  based on five different SAP BW BEx Queries. These are charts with 3- axes i.e. X,Y,Z.
    The example requirement is to create Line charts (Vertical Mixed Line Charts) and deatils are as follows: The chart should show CPU Utilization % for different servers (eg. Servers1,2,3,4,5) for each day in a particular month.
    Axes details:
    X- Axis - Date eg: 01 /09/2010 to 30/09/2010
    Y-Axis - CPU Utilisation Percent
    Z-Axis - Servers from 1 to 5
    The above detailed chart comes from a BEx Query . In this way there are four more BEx queries which should give four other charts.
    My queries are:
    1. Is this possible to create a single report using five different BEx queries and Create 5 different charts(one chart from each BEx Query) in a single tab as in the current manual report.(All the five Line charts should be downloadable to a single sheet in Excel)
    2. One more, should I use Crystal Reports only? The charts are of high format natute so Web Intelligence will not produce the same.  Is any other tool that helps for this requirement.
    3. I can create five different Universes based on BEx Queries. Is this possible to create a single report from five different Universes.
    Please advise.
    Nanda Kishore.
    Edited by: Nanda Kishore B on Oct 21, 2010 8:05 AM

    To start with you cannot use SAP BW universes in Crystal Reports., YOu have to use the BW MDX driver.
    For performance reasons I would suggest to add 4 subreports into your main reports containing each on of the 4 remaining charts.
    Regards,
    Stratos

  • Crystal Report based on BEX 3.X query + Hierachies

    Hi,
    I have built a Crystal Report (2008) based on BW Bex 3.5 query.
    The report has a hierachical group based on a hierachy
    similar to the strategy used in
    http://blog.mastering-sap-and-businessobjects.com/2009/07/10/crystal-reports-and-sap-bw-hierarchies--conditional-formatting-part-2.aspx
    Certain sub and parent nodes in the hierachy have suppressed to make sure the report is formatted correctly.
    The user running the report does NOT have the option of choosing the level of nodes to hide  or show.
    At this point in time the report is showing the correct nodes, however there is a concern that once users start re-arranging the hierchies and adding nodes that the reports will have to be maintained. (Which I think is a catch 22 situation)
    Does anyone have another suggestion how to have the reports be "Dynamic" (based on the hierachy) and still not have the danger of the hierachies changing and affecting the Reports
    (I certainly can think of no other ways EXCEPT creating a structure in the BW Query - which means that in any case if the hierachies changes, the BW Query will have to be maintained)
    Kind Regards,
    Nicole

    Hi,
    Crystal Reports is using a parent child relationship which means the complete hierarchy is dynamic and in case your hierarchy is changing on the BW side Crystal Reports will pick up those changes automatically - assuming we talking about additional levels or levels been removed.
    ingo

Maybe you are looking for

  • How to change hostname on NetWeaver  2004s NW (Win2k3 + MSSQL)

    Hi, I'm a Virtualization expert @SAP IT. I was aked to provide a solution for hostname change process for cloned virtual machines. Here, i'm posting my solution but use it on your own risk and sideeffects can appear too (applicable to NW 2004s - don'

  • XML - SAX or DOM?

    Hi folks, I'm on the verge of emotional breakdown trying to get my head around working with XML in Java, and I would really appreciate a bit of help. What I would like to do is to store database metadata in an XML file. The steps I have taken so far

  • List of PO with no GR

    Hi SAP Gurus, Is there any transaction to get the list of POs, for which no GR has been made yet. Means: Ordered qty = Still to deliver qty Or, in other words, Delivered qty = 0 Regards,

  • Attribute Order

    Hi, I have a data type that amongst other things has an element which has three attributes. Those attributes look correct when I view the data type. However, in the message mapping the attribute order has changed. Surely the attributes should be in t

  • How can I flag HTTP session attributes to not be replicated ?

              WLS 5.1 SP8 - In memory replication of a stateful servlet. Is           there any way to flag data that has been, or is being, loaded into           a HTTP session so as to not be replicated ? It's a long story,           but we have some d