Crystal Report Prompt Help

I am working on a Crystal Repot where i am having my query as Command. My Query is as follows
select SHR_NM  from UDAC_SHARE_OWNRSHP
where EXTRT_DT=  {?arg start date}
  group by SHR_NM having count(*) = 1
I have declared an argument called arg_start_date which is based out of a table and its a dynamic prompt.
When i try to compile I get the following error mesage
Failed to retrieve data from the database
Details : 42000:[Microsoft] [ODBC SQL Server Driver] Syntax error or access violation.
Can any one help with this error message.

Your query has "{?arg start date} ", but you state you have declared "arg_start_date".  Shouldn't your query be using ("arg_start_date} (with underlines)??
HTH,
Carl

Similar Messages

  • Crystal Report prompts for username / pwd when deployed to Bus Obj Server

    Hi All,
    I'm relatively new to Crystal Reports development.  My day job is test analyst.  I'm reasonably technically proficient.
    PROBLEM
    I have created a number of Crytsal Reports which have now been deployed to an Enterprise Business Objects Report Server.  The Server is Business Objects Server XI release 2.
    When I run the report in Crystal Reports Desiger 2008 it does not prompt me to enter the database credentials except if I have modified the SQL command or some other report detail.  Most times I run the report, no database username / pwd is required because I already set this up in the datasource config.
    I' connecting to an Oracle database using ODBC (RDO) connection type.  I cannot get the ODBC (RDO) connection type working from my PC using Crystal Reports Designer 2008, because I don't have ODBC configured for my datasource.  Instead, Im using the native Oracle Server driver to connect to my datasource.
    An existing user in the client organisation configured my report to use the ODBC (RDO) conneciton type for me because the Business Objects Server in the client organisation does not (currently) support the native Oracle driver.  Other reports this user has created and deployed using the ODBC conenction type run successfully without prompting user to enter the database connection credentials.
    NOTE:
    This report users an SQL Command (new to Crystal 2008 I beleive?).  The command is reqiured for this report due to the complexity of the underlying SQL query.
    Does anybody know why the report keeps prompting me to enter the database credentials at runtime?  Obviously for security reasons I don't want report users to have to enter the database schema name and password in order to run the report.

    Hi,
    You need to uncheck "Propmt the user for database logon when viewing". You will find this when you deploy the report on the BOE XI R2.
    The deployment step main heading is
    Specify Databse Crendentials.
    Hope this helps,
    Thanks
    -Azhar

  • Crystal Reports prompting for creds when viewed from BO 4

    The environment:
    Business Objects Enterprise 4, sp2 patch 8
    SAP ECC 6.0, kernel 701, sup. pkg. lvl 137
    This is a new BOE 4 installation on a test system.  The BOE installation has been configured to use Windows AD authentication with SSO.  When I run a Crystal Report that is based on SAP ECC data, I am prompted for credentials.  So I used the following document to configure BOE for SSO to DB:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/HowtosetupSSOagainstSAPBWinSBOBI4.0forLDAPusers
    This didn't fix the problem.  SAP ECC reports in BOE still prompt for creds when viewed.  SAP Authentication is verifiably working, but I'm not sure if SSO to DB is working.  One thing I've noticed is that when I log in to BOE using SAP authentication and view the report, I'm not prompted for creds.  In BOE I added my Windows AD acct as an alias in my SAP acct, but I may have either done this incorrectly, or there may be something I need to do in addition.
    question 1:  Is there an easy way to verify if SSO to DB is working correctly?
    question 2:  In CMC --> Authentication --> SAP --> Entitlement Systems --> User Name, I'm assuming that this is an SAP user name.  What roles/profiles does this account need?  Should it be a dialog acct?
    question 3:  Our ECC system is configured to use SNC.  Do I need to configure SNC in BOE for SSO to DB to work?
    question 4:  I added my Windows AD user as an alias on my SAP user record.  I'm not sure this is correct...  can someone verify?
    Any help or suggestions are much appreciated.

    Thanks, Ingo.  Once I got snc configured, everything began working wonderfully.
    I used this document as a guide:
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3134343630363726

  • Preview and print a Crystal report prompted for the sa password

    Dear All,
    Our customer has Crystal report add-on to be installed. When we Preview and print a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password...
    Every time when I open my report in Crystal Basic 2008 on the server, then go database expert >> My connections >> click + in front of the connection name, it asks my sa password. I type in my password then save and close. Next time when I open the report and go my connections, I have to type in my password again. This only happens on one customer.
    Any idea? Thanks a lot.
    Regards,
    Yuka

    Hi Yuka,
    1) All their SAP client workstation, they have to have use SQL2008 CD and install SQL Client on it
    Correct, MS does NOT support MDAC or WDAC when connecting to SQL 2008.
    2) Then go ODBC >> SQL Native Client 10.0 >> Create a new connection to SAP server. Should we use sa user or another use that has the same authorization as sa?
    Correct again if they are also using ODBC to connect, as for using the sa account or creating a new one is up to you. I suggest creating a Crystal account with what ever rights your app needs, this way if tracing it turned on etc. you can confirm who is actually running the report.
    3) Then from MY Crystal report, I have to use ODBC connection as well?
    Just to clarify, if you created your reprots using OLE DB then they can do so also. But you need to update your connection properties. Open each report click on Database, Set Location, scroll down to OLE DB and expand and then choose MS SQL Server Native 10 as your OLE DB provider, fill in all the logon info and then verify the database. Do the same for each subreport also.
    Save your report and either send them the new one or if you are doing this remotely then replace the original report.
    VERIFY your reports to confirm they still return correct data and do work as expected.
    Or if you are using ODBC then yes you do select the MS 10 driver with a new DSN. Then do the above to update the reports to all use ODBC as their data sources.
    Hope this is all clear now....
    Thanks again
    Don

  • Crystal Report Prompt For Enter Parameter Values

    Hi,
    I did a report with 2 subreports embeded in VS2005 using VB and it worked fine but when I ported the whole application to VS2008 the above problem occurs. Here are some codes:
        Private Sub btnPreview_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPreview.Click
            Dim viewer As New frmReportPreview
            Dim rpt As New ReportDocument
            Try
                rpt.Load("C:\Report\crptMain.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text)
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport1.rpt")
                rpt.SetParameterValue("Code", Me.cbxCode.Text, "crptSubReport2.rpt")
                viewer.report = rpt
                viewer.WindowState = FormWindowState.Maximized
                viewer.ShowDialog()
            Catch crptEx As CrystalDecisions.CrystalReports.Engine.EngineException
                MessageBox.Show(crptEx.Message, "Crystal Report Errors...")
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Crystal Report Errors...")
            End Try
        End Sub
    Private Sub frmReportPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
            Try
                Me.CrystalReportViewer.ReportSource = m_report
                Me.CrystalReportViewer.RefreshReport()
            Catch ex As Exception
                MessageBox.Show(ex.Message, "Error...")
            End Try
        End Sub

    Subreport Parameters are contained within the Main Report's ParameterFieldDefinitions collection. Passing Subreport Parameter values directly to the Subreport will result in the values not being applied and the user being prompted at runtime to provide new values.
    Ludek

  • Crystal report prompting for login to Dataset [Problem]

    Hello,
    I'm developing a C# windows application with an Access db
    I'm getting the data from the database and load it to a dataset then pass the dataset to the report
    every thing is working fine on my local machine but..
    When I run it on any other machine it prompts me to enter the login information while there are no login informations to enter because I'm connecting to a data set
    here is my simple code to load the report
    VisitReasibReoirt VisitReasonRPT = new VisitReasibReoirt();
                            VisitReasonRPT.DataSourceConnections[0].IntegratedSecurity = true;
                            VisitReasonRPT.SetDataSource(ds);
                            crystalReportViewer1.ReportSource = VisitReasonRPT;
                            crystalReportViewer1.RefreshReport();
    Also there is an other problem in the design
    I cannot change the language of the datetime fields like what I did with text fields.. How can I solve this ?
    please tell me what to do...this is very important I searched a lot but I found nothing usefull
    Edited by: Mando! on Aug 26, 2010 2:04 AM

    Hello,
    Information needed..
    Version of Crystal Reports?
    Version of Visual Studio?
    Type of data connectivity used? (i.e. OLEDB, ODBC)
    Did you diploy the application? How? (MSM's or MSI's)
    If the new machine is also a developement environment, does the report work from designer?
    Version of windows on prev and new machine?
    Make sure that..
    If the application is deployed, the proper runtimes are installed.
    The database provider is installed.
    The target database is located where it should be.
    The target database is unchanged.
    One question per thread please.
    see [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement].
    Thanks,
    Bhushan.

  • Migration between SharePoint07 and Crystal Reports - please Help !

    I downloaded trial ver. of CR XI R2 with SP3 ( version 11.5.9.1076) 
    so we could use the integration kit to MOSS 2007 (new upgrade).
    What do I need in order to install the Portal integration kit on Microsoft SharePoint 2007 server ?
    We have Crystal Reports v10 with license but I want to try migrating SharePoint with Crystal reports
    and if it will be OK we will purchase the new version.
    My purpose is to install the integration kit (keep asking for SP3 in installation menu)
    Do I need to Install Business Objects XI 3.1  in order to install the integration kit to SharePoint 07 ?
    Where can I download it  (trial) ? SAP site keep deny me.
    thanks..
    BTW, Does Crystal Reports 2008 will work fine with SharePoint server 07 ?

    Hi Raj,
    Please have a look at the below documents for ECC and Crystal Reports integration.
    http://help.sap.com/content/bobj/bobj/index.htm
    BusinessObjects and SAP Part 4
    Hope it helps.
    Regards,
    Raghu

  • Crystal Reports prompt issue on export: "The report you requested requires further information"

    I have searched through forums for a solution but none seem to work for me.
    I have an ASP Webform/MySql application which displays Crystal Reports.
    The ones which do not require a user to enter a parameter display fine and I am able to click on export on the CR toolbar and download, e.g. .pdf format.
    On the report that require a user to enter a parameter, the report renders fine but when I click on the export button, i get the prompt:
    "The report you requested requires further information"
    asking for DB login credentials. How can I avoid this?
    My Code:
    Aspx page:
    <%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <div>
              <CR:CrystalReportViewer Width="960px" ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
    </div>
    protected void Page_Load(object sender, EventArgs e)
             if (Request.QueryString["report"] != null)
                    string reportToGet = Convert.ToString(Request.QueryString["report"]);
                    switch (reportToGet)
                            case "payslip":
                            PaySlip();
                            break;
                            case "pastpayslip":
                            PanelPastPaySlip.Visible = true;
                            break;  
                           default:
                           break;
    protected void btnSearch_Click(object sender, EventArgs e)
          if (txtDate.Text != null || txtDate.Text != string.Empty)
          if (DateTime.TryParseExact(txtDate.Text, "yyyy-MM-dd", CultureInfo.InvariantCulture,
          DateTimeStyles.None, out date))
          PastPaySlip();
    private void PastPaySlip()
                // Some code....
                PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter ta =
                    new PayMasterDataSetTableAdapters.pastpayslipcasualviewTableAdapter();
                PayMasterDataSet.pastpayslipcasualviewDataTable dt = new PayMasterDataSet.pastpayslipcasualviewDataTable();
                ta.FillBy(dt, userId, businessId);
                cReport = new ReportDocument();
                string reportPath = Server.MapPath("~/Views/CasualLabour/Reports/PastPaySlip.rpt");
                cReport.Load(reportPath);
                cReport.SetDataSource((DataTable)dt);
                cReport.SetParameterValue("Date", date);
                cReport.SetDatabaseLogon("userID", "password", "server", "database");
                CrystalReportViewer1.ReportSource = cReport;
                CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
    I am using CR V. 13.0.9 and VS 2013 Update 2

    This is because almost any action on the viewer result sin a postback. This includes paging, zooming, drilling exporting and printing. E.g.; you will have to place the report in session. See the following KB for how to:
    1985571 - How to use sessions in web applications using the Crystal Reports viewer (the complete code)
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Crystal reports prompt issue

    Hi  All,
    I had created the simple crystal report by connecting to  bex query (with prompts).
    For example in my  crystal  report ,circle prompt  as below list of values
    Values                                  Description
    [YPES_AREA].[ANPR]     Andhra Pradesh Circle
    [YPES_AREA].[ASSM]     Assam
    [YPES_AREA].[BIAR]     Bihar
    [YPES_AREA].[CHAI]     Chennai
    [YPES_AREA].[CHRH]     Chattisgarh
    [YPES_AREA].[CORP]     Corporate
    [YPES_AREA].[DLHI]     Delhi & NCRs Circle
    [YPES_AREA].[EAST]     East Region
    At the time of preview,user can select the above list of  value ,so that the corresponding  prompt value need to display in the report.
    Here i want to known,when user select the "Assam" circle in the above list of values,prompt value is showing as "[YPES_AREA].[ASSM]" but i want to show it as a description instead of technical name.
    please suggest me is it possible or not?
    Regards,
    Vinay

    Unfortunately the "description" is only available in the LoV and cannot be accessed for use on the report (I believe there is an Idea Place suggestion concerning this very issue...) but there are work arounds.
    If the LoV is a static list it's fairly easy. Just use the following formula:
    IF {?ParameterName} = "YPES_AREA.ANPR" THEN "Andhra Pradesh Circle" ELSE
    IF {?ParameterName} = "YPES_AREA.ASSM"THEN "Assam" ELSE
    IF {?ParameterName} = "YPES_AREA.BIAR" THEN "Bihar" ELSE
    IF {?ParameterName} = "YPES_AREA.CHAI" THEN "Chennai" ELSE
    IF {?ParameterName} = "YPES_AREA.CHRH" THEN "Chattisgarh" ELSE
    IF {?ParameterName} = "YPES_AREA.CORP" THEN "Corporate" ELSE
    IF {?ParameterName} = "YPES_AREA.DLHI" THEN "Delhi & NCRs Circle" ELSE
    IF {?ParameterName} = "YPES_AREA.EAST" THEN "East Region"
    If your LoVs are dynamic it's a little trickier... and I've never tried it using a data warehouse...
    but I've always done it using a separate SQL Command. Something along these lines
    SELECT
    FieldUsedInTheDescription
    FROM TableName
    WHERE FieldUsedAsTheValue  = {?Parameter}
    Still pretty simple as long as the parameter only accepts a single value.
    If the parameter accepts multiple values you need to use a sub-report.
    HTH,
    Jason

  • Preview a Crystal report prompted for the sa password

    Dear All,
    When our customer preview a Crystal report, we got a window prompted for the sa password. Even we type in a correct password, it still says wrong password.
    Only two user computer have this problem.
    How do I solve it?
    Regards,
    Karen

    I install Crystal Reports Designing Software on those computers which canu2019t preview reports.
    Then start the Crystal Reports design software to open the problem report.
    It usually asks to enter the column on the interface u201COLE DB (ADO) u2013 Connect Informationu201D.
    But it gets into the interface u201COLE DB (ADO) u2013 OLE DB Supplieru201D.
    I correct the setup and save the report.
    The problem is solved.
    I try many methods, but only this one can solve my problem.
    If you have another solution, please tell me, thanks!
    Regards,
    Karen

  • Crystal Report Deployment Help

    Hi,
    We have developed Winforms, which uses Crystal Reports. When we were loading the report using "..\..\Reports\Reportname.rpt", the path inside the project's subfolder in development was working fine. As soon as we deployed the set up project, which was created by Visual studio team system 2008 Setup project, we are receiving an error message "Load report failed"  when we load the Crystal Reports from the application.
    It seems that it could not find the path of the report, or it could not find the required Crystal Reports DLL files to load the report. We'd be very appreciated if any of you can help.
    Thanks,
    Wilson

    See [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0] wiki. Find your version of CR and the runtime link. Download that, install the CR runtime.
    Ludek

  • Where is the Crystal Reports developer help file?

    Hi everyone,
    I'm looking for the CR devloper help file - the one that documents the object model for programming against CR from .Net.  Any ideas?
    Would be good if CR installed a helpfile link in the Start menu > Programs etc like other products.
    Thanks,
    Rod

    Hi Rod,
    See this kbase article on how to install them:
    [1530989 |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533333330333933383339%7D.do]- Crystal Reports for Visual Studio 2010 help files
    Also, if you got to help.sap.com, click on the Business Objects tab, select All... and the filter on Crystal Reports for VS .NET there is a SDK chm file.
    Thank you
    Don
    Edited by: Don Williams on Jun 27, 2011 6:56 AM

  • Crystal Reports 2008 - help with formula to retrieve lastfullmonth

    Hi, I'm new to this forum.  First post.  I have a SQL query where
    :month(CAST(a.LAST_MOD_DT / 86400 AS datetime) + CAST('01/ 01/1970' AS datetime)) = (MONTH(getdate())- 1)
    I need to create a CR formula that will pull in data from last month as this report will be run on a monthly basis.  If I use 'getdate() -31' there will be a problem with the months that don't have 31 days.
    I'm also very new with creating formulas so including an explaination would be helpful.  Thanks,
    Joyce

    Sorry for the slow repsonse in getting back to you.
    I wasn't able to get the SQL query to work.  I did find one that does work except I need to find out how to pull in the minimum date and the maximum date of the records into the report.
    Here's the SQL query:
    --to query for the prior month,  if January then month = 12 else month = (current month - 1 month).
    and
    month(CAST(a.LAST_MOD_DT / 86400 AS datetime) + CAST('01/ 01/1970' AS datetime)) =
    CASE WHEN cast(DATEPART(Month,GETDATE()) as datetime) = 01
                          THEN month(cast((str(12)+'/'+ str(01) +'/'+STR(YEAR(Getdate())-1)) as datetime))
                          ELSE MONTH(cast((str(DATEPART(Month,GETDATE())-1)+'/'+ str(01) +'/'+STR(YEAR(Getdate()))) as datetime)) END
    --to query for the proper year, if January then year = (current year - 1 year) else year = current year.
    and
    year(CAST(a.LAST_MOD_DT / 86400 AS datetime) + CAST('01/ 01/1970' AS datetime)) =
    CASE WHEN cast(DATEPART(Month,GETDATE()) as datetime) = 01
                          THEN year(cast((str(12)+'/'+ str(01) +'/'+STR(YEAR(Getdate())-1)) as datetime))
                          ELSE year(cast((str(DATEPART(Month,GETDATE())-1)+'/'+ str(01) +'/'+STR(YEAR(Getdate()))) as datetime)) END

  • Crystal Reports prompt single value variable from BEX

    Hi,
    after upgrade to BO 4.1 SP2 Patch 3 the prompt from BEX variable in CR doesn't work.
    After investigation the issue is happened for variables containing more than 9 values.
    Bex Setting: Variable -> Details -> Variable Represents -> Single value
    Variable which shows Jan-Dec
    The issue happens only on CR file stored in BO server in Cr design time it works fine.
    Is the bug known? Is there any solution?
    Harald

    Yep.
    Now tell me how you want to show that Prompt @ WebI report level.
    My problem is that in WebI selection screen we get list of date values from the info provider instead of Calendar prompt
    where user can enter the values directly. Exactly, i didn't get this??
    @Prompt:
    You have flexibility to show options like:
    Mono/Multi: User can select Single value or Multiple.
    BW Variable: Same we have (Single/Multiple)
    Free/Constrained: User can Enter his/her value directly or No change option.
    BW Variable: By defalut you will get this, once you made it to Optional input.
    Persistent/Not_Persistent: Refreshed report has to show last selected value means use Persistent otherwise Not_P.
    By seeing the Prompt syntax , I can say your Variable is after Customer Exit, Correct??
    Workaround for your Problem is:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A','Date\LovDate (Previous Day)Base',mono,primary_key)"/></CONDITION></FILTER>
    You have to remove that Date class and objects from prompt syntax. Because of that it showing up LOV's not calendar.
    Like:
    <FILTER KEY="ZV_DATE"><CONDITION OPERATORCONDITION="Equal"><CONSTANT TECH_NAME="@Prompt('Date (Previous Day)','A',',mono,primary_key)"/></CONDITION></FILTER>
    Why, It should be blank??
    Because Date needs no class\object to show up, by default you will get Calendar on the fly.
    Hope you got my point.
    Thank You!!

  • User Defined Reporting (Prompts) Problem

    I'm running Crystal Reports XI R2.  I want to write a report that uses user-input to determine the parameters of the report.  The Crystal Reports Online Help says that, to do this, I need to employ "prompts" and that you do this by dragging the field you want to be the determining factor to the "Query Filters" pane.
    Problem is, I've torn through this thing and, as far as I can tell, there is no "Query Filters" pane.  Is that a BO thing?  I'm not running BO, just CR.  Is there a way to do this with just CR?  Am I staring the "Query Filters" pane in the face, and I just don't know it?  Help isn't helping on this.
    Thanks!

    Scarring it for life. 
    Actually, I was working with General Ledger data, so account numbers are made up of fund number, location number, department number, etc. all squished into one account number which the table I was reporting on was keyed by.  Well, the Money Guys (TM) needed a report on all transactions in X fund, at Y location, in Z department.  Those were my parameter fields that needed prompts.  Well, you can't create a parameter field for a formula field (rats!) so I couldn't extract those parts of the account number and then filter on them, so I had to pull in a custom view from SQL Server that had the numbers broken down into their components and do parameter prompts on them.
    For the record, I did NOT design this database. 
    Thanks again for the help!

Maybe you are looking for

  • I need to find an Unibody 2.66GHz core i7 logic board  for my MacBook Pro 15"

    I need to find an Unibody 2.66GHz core i7 logic board  for my MacBook Pro 15". Where can I find it?

  • Use of imp/exp to restore a database will fail ??

    I have a database that uses mdsys and other user-defined objects. This week I've had the "pleasure" to try to restore a database from scratch using imp, but had to abandon because imp refuses to create tables if they refer to objects, that upon expor

  • Time scale on 3D graph

    Hi, I'm having major problems converting the axis on my 3D curve from seconds into proper time. I've tried everything but nothing seems to work. I've attached a very shortened version of my code. Attachments: 3D_graph_for_NI.vi ‏29 KB

  • 10.4.9-10 - Samba SIGTERM

    I've seen old (almost a year) topics on this already. However, it seems it never was "really" resolved. And many of the old threads were archived. We seem to be seeing Samba SIGTERM every few days. Since this newest one we checked, and added, reverse

  • Why does my CC Photoshop & Bridge suddenly fail to update?

    Mac OS X 10.9 CC Photosop & Bridge plan Suddenly 'Update failed' since day before yesterday.