Setting Data Souce dynamically in Crystal Enterprise

A friend of mine sent me this:
"Got a question for you.  I'm working with a vendor who is trying to deploy Crystal Reports in an Enterprise environment.  Can you tell me how to change the data source name dynamically for a RPT file?  They are telling me that the DNS name has to be in the RPT file and therefore changed manually for each environment.  This doesn't sound right to me."
Doesn't sound right to me either. 
Is there any reason why the data source can't be passed in code here ?
I've changed the data source before in code and passed it to the report using VB.
I mean, I'm not  working in the Enterprise environment much, so I'm not sure.
Is it any different ? How would I do it ?
Thanks,
The Panda

Enterprise has the ability to enter logon info and change the database info when scheduling and using the report. Local Administrator should know how to do this.

Similar Messages

  • Unable to save the Crystal Report with Dynamic paramters in Enterprise

    Hello,
    We are not able to save our Crystal Report with dynamic parameters in Enterprise, Error message as follows :
    "Failed to read data from report file C:\DOCUME1\...\crw{...}.rpt. Reason : Failed to read parameter object"
    CR Developer Version 12.0.0.683
    help us in this regard..
    thanks,
    Narasimha Murty

    Hello,
    The error message occurs because the user or group who created the LOV does not have the appropriate rights in Business View Manager.
    Try this hope its helps
    To resolve this issue follow the steps,
    1.Log on to Business View Manager as administrator.
    2.Click View > Repository Explorer.
    3.Right-click Dynamic Cascading Prompts. Click Edit Rights.
    4.Click the appropriate user or group receiving the error.
    5.Click the Granted option for the right to View, Edit & Set Security rights.
    6.Click OK. Close Business View Manager.
    The user or group is now able to save a report with dynamic parameters to Enterprise.
    Regards,
    Vinay

  • Crosstab not refreshing for dynamic publication using Crystal Enterprise

    We are using Edge 4.0, and are setting up a dynamic publication where we pass in an account number into a Crystal Enterprise report to filter each recipients document to their specific data.
    In the Header of the document, there is a crosstab report that summarizes some data.  When the publication is run, for example, for 2 accounts, the crosstab table contains the same data for both client accounts.  This happens even though the detail data within the lower section of the report contains the appropriately filtered account data.
    Initially I was thinking that it was picking up some cached data and using it to boost performance, but I have adjusted the locations I can find within the CMC for "Oldest On-Demand Data Given to Clients (seconds):" to 0.
    See the image below for the layout in Crystal - http://screencast.com/t/eyqJ08Tu7
    The account number in the header and the data in GroupHeader1 is filtered appropriately based on the dynamic recipient, but the crosstab data is pulled from another publication recipient.

    I was able to get this to work as desired.  In order for the crosstab report to contain data that matched the rest of the report, I had to set "Filters" options within the personalization section of the publication section.
    In Crystal Reports 2011, the parameters section, by itself, filtered the data correctly.
    This can be seen at the following URL:
    http://screencast.com/t/MS7HjFEUk

  • Dynamically Set date not changing in schedule Job

    Hi,
    I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days".
    I have scheduled this program to run in background with the 'X' variant daily at certain time.
    Now, for the day on which I created this job , the Order Date is set to correct date . For ex if I am scheduling the job tdy it will be set to 06/10/08. However, for next day , that is tom this date is not getting changed. i.e Tommorrow again Order date is 06/10/08 but it should have been 07/10/08.
    So basically this dynamically set date is not chaning in the scheduled job.
    Any idea why this is happening and what is the corrective measure for this.
    Thanks!

    There is an INITIALIZATION event in the program.......
    Do the processing your date in that event only....
    for ex....
    select-options: date for order-date.
    INITIALIZATION.
    date-low = sy-datum or wat ever.
    Thanks
    Saurabh

  • How To Run a Parameterized Report Stored in Crystal Enterprise on demand

    I have been integrating into Crystal Enterprise 10 for  many years now with no problem.  We use .net to schedule and run reports as well some administration tasks.  Users can view reports through our asp.net web application using the crystal viewers.
    However, I now have a task that requires us to run a report that is stored in CE on demand.  This can NOT be done through the viewer because it will not have direct user interaction.  The crystal report has to be bundled with other documents and then displayed to the user in a single PDF.  I have everything working right now if the report has already been scheduled and ran through CE.
    What I can't figure out to do is how to actually run the report in CE on demand and immediately get the results back.  I can't schedule it (even for immediate running) because I can't have it backed up in the job server queue.  If the report was local on the machine that Integerate with CE, I think it is as simple as loading document, setting parameters, and calling refresh.  However, I need this to happen in CE with the RAS or PageServer server.  In other words, the execution of the report needs to occur on server and I need the end results.
    I have scoured the Net looking for an example but everything either talks about scheduling through Job server or on demand through the viewer.
    Hopefully someone can help.

    Thanks for the answer Elaine, but I am still not quite there.
    We already had interactive on-demand report viewing working through our web app.
    The problem is that I need non-interactive on-deman report running.  Let me explain the process a little more to help paint the picture of the process we have.
    1.  While working in our application, the user selects an "information dump" on the selected the employee.  This dump is information from a number of different places and document types.
    2.  The application then goes to each of these different information areas and converts the information to PDF format.
    3.  Application stitches all the individual PDF files into a single PDF which is what is returned to the user via the web application.  The delivery mechanism cannot change due to requirement limitations.
    Currently, the information is coming from multiple MS Word mailmerge documents merged "on-the-fly" with data for the employee and a stored HTML worksheet that is also converted to PDF.
    We now have to add a PDF version of 2 reports that are ran when the user requests the information dump. 
    I already have the code to connect to CE and get a reference to the RASReportFactory.  We do this today using the interactive viewer.  However, we use the viewer to display reports that have already been scheduled and ran.  This means we simply make a call to RASReportFactory.OpenReportSource to get the source for the viewer.
    We now can't have a viewer in this process.  I found the call to the method OpenDocument on RASReportFactory to get a handle to a ReportClientDocument.
    I know how to properly set the values for the report arguments as well as the database information.
    What I don't see is a method to tell it to run the report.  I see Save and SaveAs but this simply saves the document by to CE or to a local file with the changes I made to parms and db info. 
    What do I call to tell it to execute the report so I can turn around and export it to PDF?  Thats the million dollar question.
    Edited by: Stephen Barrett on Aug 20, 2008 12:11 AM

  • Can Crystal Enterprise be configured so that  it does not create files in the FileStore - Output

    Post Author: christof
    CA Forum: Administration
    We are using the API to create pdf files using Crystal Enterprise but the problem is that now files are create in duplicate.We have one file which is stored in the filestore/output and another file which is stored as requested true the API. Is their a setting, configuration which could make it possible that no files are added in the filestore/output when the API is used. (when a onther filenam/path is given true the API)  For now we should use a bat that removes those files every month.

    Post Author: TAZ
    CA Forum: Administration
    Hi Christof,
    If instances are being generated in the output FRS that would indicate reports with saved data as opposed to the input FRS which contains the report without saved data. I think this is needed for the conversion to PDF but you can post this question in the DEV forum and posibly find out for sure.
    Regards,
    Tim

  • Error when trying to connect Crystal Enterprise to Peoplesoft (tools 8.49)

    We have been using crystal enterprise with our peoplesoft for a while now, but with the tools version 8.43 on DB2 database. We are now upgrading our tools to version 8.49 on Oracle database.
    We have tons of crystal reports developed on crystal enterprise on the tools version 8.43 on DB2 database, connecting to peoplesoft thru peoplesoft user authentication and accessing the peoplesoft queries.
    We are now trying to point the crystal enterprise to peoplesoft on tools version 8.49 on Oracle database and are receiving the below error.
    Is anyone familiar with this error and know how to fix it. Please help!
    Thanks
    Savina
    Edited by: SChidella on Dec 22, 2009 6:01 PM
    Sorry the screenshot didn't get copied for some reason. Here is the error message....
    " Query Engine Error: 'An error occured in the crystal query server for peoplesoft while accessing a component interface. The interface may have encountered an application error within peoplesoft. "
    Thanks
    Savina

    Hi
       Sorry for being late in response.
       Writing Custom applications to set database location for a PeopleSoft data source Crystal Report document, should be the same as Crystal Reports documents based on other data sources. (PeopleSoft can be considered as one of the many supported data sources for Crystal Reports.)
       You may want to check this out via the Crystal development forums:
    .NET Development Forum
    SAP Crystal Reports, version for Visual Studio
    Java Development Forum
    SAP Crystal Reports, version for Eclipse
       Here is the related document you may want to reference.
    The .NET API reference document
    http://help.sap.com/businessobject/product_guides/cr2008V1/en/rassdk_net_apiRef_12_en.chm
    Hope this help to clarify.
    Best Regards
    Carlos Chen

  • Set Database path dynamically

    Post Author: santoshk
    CA Forum: Data Connectivity and SQL
    Hi All,
    I am using asp dot net 2.0 With craystalreport and C#.
    While crating report i am giving server,databsename and all the credentials as per my computer. My crystal reports work fine.
    But problem occurs when i try to run the crystalreport other than my machine. It always ask for databse password,server name.
    Is it possible to set database path dynamically for sql server.
    Please help me.
    If anybody give me the detail procedure in c# ,it will be appriciated.
    Waiting for reply.
    thanks in advance

    Post Author: DLO34
    CA Forum: Data Connectivity and SQL
    I recently came across this issue. I was able to get a
    Crystal Report to work dynamically under limited conditions. If you create a
    direct connect report for an Oracle database then, it will only connect to
    other Oracle databases. The same is true for MSSQL and Sybase. When using the
    CRPE or RDC API you must set the logon credentials for the report as a whole
    and for each object within the report. Below is a snippet of my code C++ using
    the RDC API. This should help get you going.
    IReportPtr pReport;
    IDatabaseTablesPtr pTables
    IDatabaseTablePtr  pTable
    Int num_tables, i;
    // set for whole report
    pReport->Database->LogOnServer(DB_DLL, DB_Server_Name, DB_Name,
    DB_User_Name, DB_Password);
    pTables    = pReport->Database->GetTables();
    num_tables = pReport->Database->Tables->Count;
    for (i = 1; i <= num_tables; i++)
        pTable = pTables->GetItem(i);
        pTable->SetLogOnInfo(DB_DLL, DB_Server_Name, DB_Name,
    DB_User_Name, DB_Password);   // set for each object

  • SSO to Crystal enterprise eportfolio with SAPLOGONTICKET

    Hi
    We have setup Crystal Enterprise V10 to SAP Authentication and we are able to connect to Crystal eportfolio with SSO from EP6SP2 app integrator based iview without any problem, by giving R/3 userid, password via usermapping.
    We have loaded verify.der from EP6SP2 in SAP R/3 and SAPLOGONTICKETS are working fine with other ESS iviews.
    However for the Crystal eportfolio app integrator based iview if we change the logon method from UIDPW to SAPLOGONTICKET we are  getting the login screen from Crystal eportfolio prompting for userid/password. 
    We have loaded verify.der in SAP R/3 and SAPLOGONTICKETS are working fine with other ESS iviews.
    These are our settings on the app integrator based iview in EP6SP2:
    URL template:
    <System.protocol>://<System.server><System.uri>?<Authentication>
    URL template fraction for SSO2:
    MYSAPSSO2=<Request.SSO2Ticket>
    URL template fraction for usermapping:
    usr=<MappedUser>&pwd=<MappedPassword>&aut=secSAPR3
    Required instance profile parameters on R/3 were set correctly, and all servers are referred with their FQDN.
    Did we miss anything else that is specific to Crystal eportfolio? Has anyone successfully connected to Crystal eportfolio V10 from EP6SP2 using SAPLOGONTICKETS ? Appreciate if someone can share their experience.
    Thanks
    Nagesh

    Hi Ingo
    Thanks for your response.
    1. URL that I am calling from inside the 'App Integrator' iview to access Crystal eportfolio is:
    Name of the server:
    <hostname>.<domain>.com
    Protocol of target system:
    HTTP
    URI of Web Application:
    /crystal/enterprise10/sap/ePortfolio/en/logon.csp
    URL template fraction for Single Sign-on (SSO2):
    MYSAPSSO2=<Request.SSO2Ticket>
    2. URL of the Portal:
    http://<portal_hostname>.<domain>.com
    In both the above URLs, the <DNS domain> is same.
    3. Log on to standalone eportfolio works perfect with 'SAP' Authentication.  SAP User can logon to eportfolio directly from the browser using SAP userid/password.
    For the above iview when SYSTEM is changed to UIDPW logon method it works perfect, and Portal user can get into crystal eportfolio from the app integrator based iview without any problem.
    Once the logon method ( SYSTEM property) for the above iview is changed to SAPLOGONMETHOD single sign-on is not working anymore and the user receives Crystal eportfolio login screen.
    Question is:
    a)  Can logon.csp file from Crystal handle SSO cookie coming from Portals and authenticate the user against SAP R/3, and let the user login successfully ??
    b) Is the URL template fraction for single sign-on (SSO2) given above is corrrect/complete?
    c) On support.businessobjects.com website I found that  this is a known problem for Crystal 8.5 with Track/Problem ID: ADAPT00094464 and fix was given via CE8.5 Service Pack-I.  Since we are running Crystal V10 I assume that this has been taken care of in the new release.  Is it not true? or is there seperate service pack for V10 too..?  Please let me know.
    Thanks in advance.
    Nagesh Seemakurty

  • How to delete data from dynamic internal table

    Hi,
    I have dynamic internal table and I have some slection screen fields , using these selection screen fields
    (select -options), I have to filter the data? assigning will work with READ , but I have select options not the parametre,
    and also delete will not work for dynamic table..
    as we cannot use assigning with delete..
    So how to do this?
    and one more thing is , I cannot filter the data while selection( in select, I cannot filter the data-> as it's not coming directly from table, it's coming from buffer),
    so now after selection of data, I need to filter the data from dynamic table.
    Is there any way to do this?
    Regards,
    Mrunal

    Hi matt,
    I tried with below code as  you said. But I am getting dump. can you help?
    here is my piece of code.
    FIELD-SYMBOLS: <LS_DATA> type any,
                               <LT_DATA> TYPE table,
                                <L_FIELD> type any.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LS_DATA>.
        ASSIGN <l_buffer_entry>-dataptr->* TO <LT_DATA>.
    LOOP AT <LT_DATA> ASSIGNING <LS_DATA>.
    ASSIGN COMPONENT 'BUKRS' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BUKRS.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ASSIGN COMPONENT 'BELNR' OF STRUCTURE <LS_DATA> TO <L_FIELD>.
    IF <L_FIELD> NOT IN SO_BELNR.
    DELETE <LT_DATA>.
    ENDIF.
    UNASSIGN <L_FIELD>.
    ENDLOOP.
    and here is the description of my dump:->>>
    You attempted to access an unassigned field symbol
    (data segment 32772).
    This error may occur for any of the following reasons:
    - You address a typed field symbol before it is set using ASSIGN
    - You address a field symbol that points to a line in an internal table
      that has been deleted
    - You address a field symbol that had previously been reset using
      UNASSIGN, or that pointed to a local field that no longer exists
    - You address a global function interface parameter, even
      though the relevant function module is not active,
      that is it is not in the list of active calls. You can get the list
      of active calls from the this short dump.

  • Report crashes while formatting refreshed Report in Crystal Enterprise

    Hi,
    I have created a report on Crystal Enterprise 4 based on IDT universe.
    Thereafter I had refreshed report data for viewing layout to get an idea of further formatting improvements.
    While doing subtle changes report gets crashed frequently returning the following error:
    Grid row too large to fit in the page. - [JRC00002186]
    Any idea why this error occurs frequenly and how this can be handled ?
    Regards,
    Ray

    What kind of objects are there on the Report Header?
    Could you try suppressing it to make sure it's one of the objects on this section that's causing the issue?
    -Abhilash

  • Date Based Dynamic Member Calculation Performance (MTD, YTD, PeriodsToDate)

    I'm working on an SSAS 2012 cube and I have defined several dynamic calculations based on a Date (MTD, YTD, TD, Thru Previous Month, etc.).
    The cube has a well defined Date dimension and I have set up a DYNAMIC calculated set in the cube as shown below.
    CREATE DYNAMIC SET CURRENTCUBE.[Latest Date]
    AS TAIL(EXISTS([Payment Date].[Calendar Date].[Date].Members,[Payment Date].[Calendar Date].CURRENTMEMBER,"Claim Payment"));
    ... and here is an example of one of my calculations.
    CREATE MEMBER CURRENTCUBE.[Measures].[Face Amount Paid MTD]
    AS SUM(MTD([Latest Date].ITEM(0).ITEM(0)), [Measures].[Face Amount Paid]),
    FORMAT_STRING = "$#,##0.00;-$#,##0.00",
    //NON_EMPTY_BEHAVIOR = { [Claim Payment Fact Count] },
    VISIBLE = 1 , DISPLAY_FOLDER = 'Face Amount' , ASSOCIATED_MEASURE_GROUP = 'Claim Payment';
    This calculation returns the correct results, but performs horribly.  I've noticed that changing the [Latest Date] set to STATIC, performance greatly improves, but numbers are no longer accurate as they are based on the Tail of the Claim Payment measure
    group without considering the filtered dates.  This is because the date is evaluated at process time, but needs to be based on users date selection to be accurate.  Therefore, STATIC does not appear to be an option.  Is there a better way to
    perform this calculation dynamically based on the filtered or unfiltered date dimension?

    Typically I would just do YTD/MTD/etc off the date the user has selected.  It seems like you want to do it based on the last date with data within the range they have selected.  Why not just give the user what they are asking for?
    In other words, why not
    YTD([Payment Date].[Calendar Date].currentmember)

  • XML and Web Service Data Source Missing in Crystal Reports for VS

    I would like to use a Web Service as the data source for a Crystal Report that will be running outside of my Visual Studio application.  So setting the data source to the web service in code is not possible.  My understanding is Crystal Reports has a connection (in the Database Expert under New Connection) named XML and Web Service.  Here you can select web service and enter the WSDL URL for the web service.  However it does not appear in the list for Crystal Reports for Visual Studio.  Does this connection type come with the Visual Studio version of Crystal Reports and if not is their a way to obtain it? 
    Thank you for your assistance.

    None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
    So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
    - Ludek

  • Date Parameter in XML Publisher Enterprise

    Hello,
    Can someone tell me how to set up a date parameter in XML Publisher Enterprise? I cannot seem to get the right format for a date parameter, so my report will run. This report requires a date to be entered before the report can run. I am trying to use the format 'YYYY-MM-DD'.
    Any help would be greatly appreciated...
    Thank you,
    Susan

    Hi Susan,
    I also had some problems but found out the spelling is the key, so letters for day and years has to be small letter, letter for month has to be capital - a sample date format looks like
    dd-MM-yyyy ( check the possible formats of fields in RTF-Templates! )
    But anyway using date parameters seems a little instable in 5.6.2 - I have to save the parameter all the time even if I didn't change anything otherwise there was runtime errors
    Dirk

  • Upgrading from Crystal Enterprise 10 to Business Objects Enterprise 11

    Here's the situation:
    We decided to upgrade from Crystal Enterprise 10 on server A to Business Objects Enterprise 11 on server B. We went with the method of importing all the objects and users from Crystal Enterprise 10 to Business Objects Enterprise 11. The import also brought in all the DB connection settings that were set in Crystal Enterprise 10. I also brought over all the ODBC System DSNs so that those can be consisten with the old server.
    The problem we are having is that the reports are failing due to the connections to the database. I thought importing the database connection settings from Crystal Enterprise 10 along with bringing over the ODBC System DSNs would not make this an issue but it hasn't.
    I checked the server logs in SQL and it's telling me that it's trying to log into the server as NT AUTHORITY\ANONYMOUS LOGON. Shouldn't it try to log under whatever I define in the report's database settings or ODBC System DSNs?
    These same reports work fine in Crystal Reports and Crystal Enterprise 10.
    Edited by: Gingerbread Man on Feb 9, 2010 10:41 AM

    go into the properties of the report and verify that the Database Login values are still set.  I found that it doesn't always transfer those when doing the import.

Maybe you are looking for

  • How to get data from serial port to GUI textArea

    From Serial Port..... Messages from base (always 5 bytes): 0xAA, 0, 0, 0, 0xBB - IDLE Mode 0xAA, 0, 0x80, 0x80, 0xBB - Question Mode messages from terminal (always 6 bytes): 0xAA, a, b, c, chksum, 0xBB where chksum = a+b+c; a = address (0-250) the 2

  • Strange behaviour using XPath functions

    Hi guis, I have next simple code: DECLARE v_xmltype XMLTYPE; l_xml LONG := '<?xml version="1.0" encoding="UTF-8"?> <document xmlns="http://www.sepbulgaria.com/services/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

  • Using SMC within a LDOM

    When we fire off smc with a ldom it doesn't load fully. The start up screen pops up but the option to connect to the system doesn't load. Any ideas?? Using zfs within ldom also.

  • Imovie o6 has a bug in transitions?

    How to get support on imovie 06 HD? It recently started to shut down all the time, or transitions do not stay where they are supposed to or a transition would freeze. It's frustrating. I have worked with imovie 06 for three years, i am not ready to l

  • Bridge CS4 desaturating thumbnails

    Approximately 1 second or less after opening Bridge CS4 it slightly desaturates the colours of the thumbnails - this is especially noticeable with greens. When any image is then opened in PsCS4 it contimues to display the desaturated colours. I have