Crystal Report requests Database logon if SAP BW is datasource

Hi all
I experience the following:
1. SSO from SAP Portal to BOE works: I can view Sample Crystal Reports based on the BO-iView-template without additional login
2. SSO from SAP Portal to SAP BW works: a) I can view custom BW Web queries without additional login and b) the connection tests on the system object in SAP Portal run fine
3. I assume SSO between BOE and BW works because I can view Xcelsius dashboards based on BW queries within SAP Portal without additional login
Nevertheless I am presented a login screen ("The report you requested requires further information. -
Database Logon") if I try to view a crystal report based on a BW query, no matter if I start the report from InfoView, SAPGUI or SAP Portal. If I enter my SAP credentials in "Databse logon"-window I can see the report runs fine.
SAP Authentication in BOE seems to work (I can import users & roles). In all 3 systems I have at least Admin or equivalent permissions. If I change the Database Configuration for this report within InfoView ("Use SSO") it does make any change (I also read somewhere a reply from I. Hilgefort that this is not necessary if BW publisher service is installed correctly).
We use SAP BW 701.06, BOE XI31FP3.4 and SAP Portal 701SP6
I publish the report from Crystal Reports 2008 SP2 with the SAP-Menu -> Save Report.
I logon to InfoView-App with my SAP-BW credentials.
Any help appreciated!
BR
Kanan

Real solution is different, my other post is only a workaround:
1. SNC settings in CMC were not correct (Certificate path, path to sapcrypto.dll)
2. Relevant Serices have to run under local username
3. Username has to be added to PSE
See here: https://websmp130.sap-ag.de/sap/support/notes/1364536

Similar Messages

  • Using excel file as datasource in crystal report asking database logon

    hai all,
    we uisng  plain excel file in crystal report to develop some reports it is working fine. Issue is when we are using  parameters and  using the crystal report in live office it  is asking for database logon details. we are not using any database as it plain excel file even without any odbc driver . please suugest what credential we have to give.
    Thanks and regards.
    suresh.p

    Looks, your Live Office settings are set to "OnDemand".
    Give BO logon credentials(Infoview) & try it out.
    I'm Back

  • Crystal Reports: Unexpected database connector error

    Hi experts,
    I have a Web Module DC that uses JSP to show Crystal Reports. In my report I use POJO as datasource. The POJO itself is a JPA entity and is located in other EJB Module DC that has dependency with the Web Module DC. At design time everything looks fine and I can retrieve the data I need from other EJB Module with Session Beans but as a result I see the following error: "Unexpected database connector error". The architecture is the following:
    SessionBean EJB Module----
    |
                                                       >>dependency to >> Web Module DC with Crystal Reports
    JPA Entities EJB Module----
    |
    And in my report as datasource I use entity from the JPA EJB Module. And the source in my jsp is the following:
         Object object = null;
         try {
              Context c = new InitialContext();
              object = c
                        .lookup("ejb:/appName=sap.com/slauto_viewer_app, beanName=GeneralBean, interfaceName=com.sap.crs.slautoviewer.beans.GeneralBeanLocal");
              Class clazz = object.getClass();
              try {
                   //Open report.
                   Method method = getMethod(clazz,
                             "getGeneralDataByHostAndID");
                   List<General> generals = (List<General>) method
                             .invoke(object,
                                       new Object[] { "localhost", "b", 10 });
                   POJOResultSetFactory factory = new POJOResultSetFactory(
                             SlAutoGeneral.class);
                   POJOResultSet resultSet = factory
                             .createResultSet(generals);
                   ReportClientDocument reportClientDoc = new ReportClientDocument();
                   reportClientDoc.open("CrystalReport1.rpt", 0);
                   ITable table = reportClientDoc.getDatabaseController()
                             .getDatabase().getTables().getTable(0);
                   String tableAlias = table.getAlias();
                   reportClientDoc.getDatabaseController().setDataSource(
                             resultSet, tableAlias, tableAlias);
                   session.setAttribute("reportSource", reportClientDoc
                             .getReportSource());
                   CrystalReportViewer viewer = new CrystalReportViewer();
                   viewer.setOwnPage(true);
                   viewer
                             .setDocumentViewType(CrDocumentViewTypeEnum.webLayout);
                   viewer.setHasDrilldownTabs(false);
                   viewer.setDisplayToolbar(false);
                   viewer.setPrintMode(CrPrintMode.ACTIVEX);
                   Object reportSource = reportClientDoc.getReportSource();
                   viewer.setReportSource(reportSource);
                   viewer.processHttpRequest(request, response,
                             getServletConfig().getServletContext(), null);
              } catch (ReportSDKException ex) {
                   out.println(ex);
              } catch (Exception ex) {
                   out.println(ex);
         } catch (NamingException e) {
    protected Method getMethod(Class clazz, String name) {
              Method[] methods = clazz.getMethods();
              for (int i = 0; i < methods.length; i++) {
                   Method method = methods<i>;
                   String methodName = method.getName();
                   if (methodName.equals(name)) {
                        return method;
              return null;
    Please tell me what could be wrong
    Regards,
    Martin
    Edited by: musaka on Dec 11, 2009 2:51 PM

    Please check the Preview tab for formatting before posting. If People can read the question they may reply. Limit your posts to 1500 characters, then formatting is not lost.

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

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

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

  • Crystal Reports 2008 database error

    I want to make a change to an already existing Crystal Report.  The database table(s) were specified with the "add Command" command and so the report uses an SQL command to access the tables. (An ODBC connection is used to access tables.)  When I go to the database expert and edit the "Command", make a change (or no change for that matter) and click save, I get the following error message: 
    Invalid Argument Provided.
    Details: The alias requested 'Command', contains a combination of characters which is not considered to be valid.
    I know a similar error occurred in an earlier version of Crystal, but please note I am using Crystal Reports 2008.  Has anyone else experienced this issue?  Does anyone know a fix or workaround?
    Thanks,
    Larry
    Here is one of the SQLs that I am talking about:
    SELECT T.BatchNum, T.InstNum, T.SiteNumber, T.RecDate, T.RecTime, T.Dept, T.VoidStatus, T.BookCode, T.BookNum, T.BPageNum, Concat(T.BookCode, ' ', T.BookNum, ' ', T.BPageNum) as 'Cd Bk Pg', T.InstCode, T.InstDescIndexing, T.TotalPages, T.Operator, A.Code
    FROM TBL_Transactions T
    left outer join TBL_ARtrans A on A.BatchNum = T.BatchNum
    where T.BatchNum = {?Com_BatchNum}

    Larry, I'd recommend posting this query to the Crystal Reports Design forum:
    SAP Crystal Reports
    That forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Ludek

  • Crystal Reports Integration Database Login error

    Hi guys,
    We have installed crystal reports integration on our customer's server and client PCs. They are using SAP 2007 A PL10. We created a report and the report works perfectly on the server and on another client pc. There is however 3 clent pcs (all of which use Windows XP) on which the report does not connect to the database when you try to run it. When we try and run the report on these PC we get a window asking for the database log-in information on which the server name etc is greyed out.
    The reports use a OLE DB connection.
    Anyone know how this can be solved?
    Thanks

    Hi,
    is client side SNC enabled on those client PCs ?
    Ingo

  • Crystal Reports Ver 11 Logon Failed  IM014 [Microsoft] [ODBC Driver manager

    Please help. I am using Crystal Reports Version 11. I have Windows 7 and 64-bit browser. I am receiving the following error message: Details: IM014: [Microcsoft] [ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

    Hello,
    Two issues, CR XI is not support on Windows 7. To get this working upgrade to Cr XI R2 SP 6 for free, use your XI keycode.
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    and then
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    Do not run CR between patches, When SP 6 is installed then CR should work.
    Next issue is CR is a 32 bit application only and it will run on 64 bit OS's but it will not support any 64 bit third party applications including IE. To connect to your database you must use the 32 bit client.
    Run the ODBC Administrator from the \syswow64 folder to create your DSN.
    Thank you
    Don
    Edited by: Don Williams on Nov 4, 2010 10:06 AM

  • Crystal report can't find any SAP infosets

    Hi all,
    I am using Crystal Report which connect to SAP info sets.
    I can logon the backend system, but I can't find any info sets.
    Do you have any idea? Shall I config anything in R/3 system?

    Hi Ingo,
    you saved my day. I assigned in SAP ERP in SQ03 Transaction my Crystal User to the usergroup which owns the InfoSets, and now i can see them in Crystal !!!
    Thanks a lot, greetings from Munich
    Sebastian

  • Crystal Report orange link arrow to SAP B1 not working

    Hello,
    I couldn't find a way to insert the actual "arrow" icon into a Crystal report so I copied one from one of the Crystal Reports imbedded in SAP B1 9.0.  I subsequently edited the hyperlink to point to the document number I wanted.
    From the Format Editor dialog box, Hyperlink, the hyperlink website address is:
    http://$b1$/link?table=OPCH&key=1
    There was a formatting button to the right of the website address line.  Clicking on it yielded a formula workshop dialog box that I edited as follows:
    'http://$b1$/link?table=OPCH&key='+ToText({OPCH.DocNum},0,"","")
    The Crystal Report runs fine in B1 and shows the link arrows.  Hovering the cursor above the hyperlink in print preview yields the specific information for that record. For example, when the report shows A/P Invoice #4394 the screen shows a small pop-up with "http://$b1$/link?table=OPCH&key=4394".  Clicking on the arrow brings up a window with a blank! A/P invoice with the cursor located in the "Vendor Invoice No." box (OPCH.NumAtCard field).
    Why is this not working to bring up the correct A/P invoice?  There are no errors indicated.
    Thanks for any assistance.

    Thank you, Nagarajan.
    Those instructions are exactly what I've done with my report.  However, the instructions start with the phrase "manually insert link arrow into Crystal report".  OK, I did a Google search on "insert link arrow" and "crystal" and "reports" and "SAP" and there was only ONE webpage with these words on the ENTIRE internet--the page you sent me to.  Crystal reports online help has nothing relating to a "link arrow".  If there's some special aspect of this link arrow that I'm missing, it sure is a secret because there's nothing out there on this subject.  I guess I'll have to copy the graphic from previous reports each time I need to do this.
    CORRECT ANSWER:
    In any case, I was able to resolve the issue by changing the text in the formatting dialog box from OPCH.DocNum to PCH1.DocEntry and it worked.  Why it worked is beyond me.  Guessing seems to be the one defining feature of doing work with SAP B1.

  • Unable to see Oracle driver from Crystal Report's Database Expert

    I have installed Oracle client (version 10g) on my laptop that also has Crystal Reports 2008 ver 1 SP3.  I then installed data driver 5.3 (Datadirect ODBC database driver) but I canu2019t see the Oracle driver nor the Oracle wire protocol driver from crystal reportsu2019 database expert.  I have checked the path and it correctly  points to the oracle client (c:\orant\bin).  I am running Windows 7 professional.
    Kindly assist.

    Hi Serah Muiruri
    In Windows 7 64 bit ODBC Drivers 32-bit is stored under "C:\Windows\SysWOW64"
    DIRECT PATH   C:\Windows\SysWOW64\ODBC.EXE
    Right click ODBC.EXE
    Create a shortcut and place it on the desktop/Right Click and Pin to Task bar/Start Menu.
    It is easy to access.
    CR Oracle ODBC Driver 5.3 CONNECT CREATION STEPS
    In ODBC Data Source Administrator  Select CR Oracle ODBC Driver 5.3
    DataSource name: Give any name to identify
    Description:(Optional)
    ServerName: IP ADRESS:PORT NUMBER/ SERVICE NAME
    Eg:   192.168.0.120:1521/orcl
    Client Version: slect the client version From the list
    To know the connection is correct
    Click the button Test Connection
    Provide the username/password(Eg: scott/ tiger)
    Press OK
    Finally Click Apply button. Next OK
    Thank you
    Pardhu
    Edited by: pardhasaradhi.t on Sep 26, 2011 2:41 PM

  • Crystal Report Date Prompt  Query from SAP BW

    Dear Support,
    Using Crystal Report 2008 and Query is design In SAP BW
    Date Prompt is made mandatory in Query at Query Designer.
    Problem:  Requirent is that Date promt shoud take value currentdate-1
    when report is excuted first date prompt will show in that prompt value should have today date - 1 which is yesterday date.
    how to pass formula to date prompt?
    Thanks

    If the prompt value should always be CurrentDate -1, then there is no need to use a prompt at all. Just put the formula to the selection criteria.
    If you want the prompt to default to CurrentDate -1, while allowing the user to change the prompt to another date if they wish... That won't work. CR won't allow you to use a formula as the default value in a prompt.
    If there is a BO Universe between you and the tables... IE, you're building against the universe, you'll need to get with the universe designer and have them make an alternate field available that has the formula hard coded in the SQL as opposed prompting.
    HTH,
    Jason

  • Run a Crystal Report published on BW from SAP NetWeaver Portal without BOE

    Hi all,
    We need to create a report using Crystal Reports, save it to BW, publish it to SAP NetWeaver Portal, and run it from SAP NetWeaver Portal. We do not want to use BOE here.
    Currently, we are able to save the report on BW.
    With Xcelsius, we have seen that we can directly refer to the dashboard's technical name from SAP NetWeaver Portal. Is similar thing possible using Crystal Reports? If yes, how this can be achieved?
    Regards,
    Dhanesh Aradhye

    take a look here:
    Portal Part 1
    /people/ingo.hilgefort/blog/2010/03/29/sap-businessobjects-enterprise-sap-enterprise-portal--part-1-of-4
    Portal Part 2
    /people/ingo.hilgefort/blog/2010/03/30/sap-businessobjects-enterprise-sap-enterprise-portal-part-2-of-4
    Portal Part 3
    /people/ingo.hilgefort/blog/2010/04/08/sap-businessobjects-enterprise-sap-enterprise-portal--part-3-of-4
    Portal Part 4
    /people/ingo.hilgefort/blog/2010/04/21/sap-businessobjects-enterprise-and-sap-enterprise-portal--part-4-of-4
    but you still need the BusinessObjects Enterprise system as only the BusinessObjects system will actually render the report.
    Ingo

  • Crystal Report Server Database Log File Growth Out Of Control?

    We are hosting Crystal Report Server 11.5 on Microsoft SQL Server 2005 Enterprise.  Our Crystal Report Server SQL 2005 database file size = 6,272 KB, and the log file that goes with the database has a size = 23,839,552.
    I have been reviewing the Application Logs and this log file size is auto-increasing about 3-times a week.
    We backup the database each night, and run maintenance routines to Check Database Integrity, re-organize index, rebuild index, update statistics, and backup the database.
    Is it "Normal" to have such a large LOG file compared to the DATABASE file?
    Can you tell me if there is a recommended way to SHRINK the log file?
    Some Technical Documents suggest frist truncating the log, and the using the DBCC SHRINKFILE command:
    USE CRS
    GO
    --Truncate the log by changing the database recovery model to SIMPLE
    ALTER DATABASE CRS
    SET RECOVERY SIMPLE;
    --Shrink the truncated log file to 1 gigabyte
    DBCC SHRINKFILE (CRS_log, 1000);
    GO
    --Reset the database recovery model.
    ALTER DATABASE CRS
    SET RECOVERY FULL;
    GO
    Do you think this approach would help?
    Do you think this approach would cause any problems?

    my bad you didn't put the K on the 2nd number.
    Looking at my SQL server that's crazy big my logs are in the k's like 4-8.
    I think someone enabled some type of debugging on your SQL server, it's more of a Microsoft issue, as our product doesn't require it from looking at my SQL DB's
    Regards,
    Tim

  • How to change Crystal Reports XI database name at run time from ASP code using ADO

    Dear All,
    I need advises regarding to my problem below
    I have two database in same SQL 2005 SERVER for TEST01 and LIVE01 Environtment, and I've created more than 100 reports with Crystal Reports 11 and call it from ASP classic page.
    The problem is how can I change a database from TEST01 to LIVE01 at the run time from ASP code as I already using TEST01 database on Crystal Reports and I do not want to set a new database location inside crystal for each reports
    Thanks and wait for your reply soon.
    Below is my code, which has no effect to crystal reports although I've change the database from TEST01 to LIVE01:
    <%
    Dim oADOConnection, oRptTable, oADORecordset, sql
    Dim struser, strpwd, strdriver, dblocation, dbname, strConnect
    struser = "sa"
    strpwd = ""     
    strdriver = "{SQL SERVER}" 
    dblocation = "SQL200501"     
    dbname = "LIVE01"    ' Changed from TEST01 to LIVE01
    strConnect = "User Id=" & strUser & ";"
    strConnect = strConnect & "PWD=" & strPwd & ";"
    strConnect = strConnect & "DRIVER=" & StrDriver & ";"
    strConnect = strConnect & "SERVER=" & DBLocation & ";"
    strConnect = strConnect & "DATABASE=" & dbName
    sql="Select * from Employee"
    Set session("oApp") = Server.CreateObject("CrystalRuntime.Application.11")
    Set session("oRpt") = session("oApp").OpenReport("C:\REPORTS\RPT01.RPT", 1) 'USING TEST01 DATABASE
    session("oRpt").MorePrintEngineErrorMessages = False
    session("oRpt").EnableParameterPrompting = False
    session("oRpt").DiscardSavedData
    Set oADOConnection = Server.CreateObject("ADODB.Connection")
    oADOConnection.Open (strConnect)
    Set oADORecordset = Server.CreateObject("ADODB.Recordset")
    Set oRptTable = session("oRpt").Database.Tables.Item(1)
    oRptTable.SetDataSource oADORecordset, 3
    session("oRpt").SQLQueryString = CStr(sql)
    session("oRpt").ReadRecords
    %>

    Did you ever find a solution to this problem?  I have the same problem when moving reports from development to Test to Production environments.  If the DBName is not the same the report ignores the name provided at runtime.

  • 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

Maybe you are looking for