SAP B1 Closes when Running the Crystal Report

Hi SAP Expert,
I have a problem during running the customized report i've created in Crystal. I created a stored procedure please see my code below. The Crystal Report is running during development but when i exported to SAP B1 and run the report. The SAP Business One will terminated. Any help please...
CREATE PROCEDURE [dbo].[SP_ACTUALPURCHASESV3]
     -- Add the parameters for the stored procedure here
     @FROM DATETIME,
     @TO DATETIME
AS
BEGIN
     SET NOCOUNT ON;
     SET @FROM = CAST(CAST(MONTH(@FROM) AS NVARCHAR) + '/' +
                    CAST(DAY(@FROM) AS NVARCHAR) + '/' +
                    CAST(YEAR(@FROM) AS NVARCHAR) + ' 00:00:00:000' AS DATETIME)
     SET @TO = CAST(CAST(MONTH(@TO) AS NVARCHAR) + '/' +
                    CAST(DAY(@TO) AS NVARCHAR) + '/' +
                    CAST(YEAR(@TO) AS NVARCHAR) + ' 23:59:59:000' AS DATETIME)
     SELECT
          (SELECT DocEntry FROM OPOR WHERE OPOR.DocNum = PDN1.BaseRef) as  PODocentry,
          PDN1.BaseRef AS PONum,
          OPDN.DocEntry,
          OPDN.DocNum,
          OPDN.DocType,
          (select ocrd.lictradnum from ocrd where ocrd.cardcode = opdn.CardCode) as LicTradNum,
          OPDN.CardCode,
          OPDN.CardName,
          OPDN.DocDate,
          CASE WHEN PDN1.WhsCode IS NULL THEN PDN1.AcctCode ELSE PDN1.WhsCode END AS WhsCode,
          CASE WHEN PDN1.WhsCode IS NULL THEN (SELECT OACT.AcctName FROM OACT WHERE OACT.AcctCode = PDN1.AcctCode) ELSE (select OWHS.WhsName from OWHS where OWHS.WhsCode = PDN1.WhsCode) END AS WhsName,
          CASE WHEN PDN1.ItemCode IS NULL THEN 'N/A' ELSE PDN1.ItemCode END AS ITEMCODE,
          PDN1.Dscription,
          PDN1.Quantity,
          PDN1.unitMsr,
          PDN1.Price,
          PDN1.PriceBefDi,
          PDN1.PriceAfVAT,
          CRD4.WTCode,
          OWHT.RATE,
          (case when pdn1.quantity > 0 then (pdn1.Price * pdn1.Quantity) else PDN1.Price end ) * (OWHT.rate/100) as EWTVALUE
     FROM OPDN JOIN PDN1 ON OPDN.DOCENTRY = PDN1.DOCENTRY left join CRD4 on OPDN.CardCode = CRD4.CardCode left join OWHT on OWHT.WTCode = CRD4.WTCode
     WHERE OPDN.DocDate BETWEEN @FROM AND @TO  and OPDN.CANCELED = 'N'
     --WHERE OPDN.DocNum = 2542
     ORDER BY OPDN.DocDate
END

Hi,
Does it means we are allowed to create stored Procedure inside the Company Database. We only use selecting and joining tables and somehow some complex sql procedures to meet our requirements.
Thanks, but my question is if there's nothing wrong with it why my SAP B1 Closes when previewing the Crystal Report. Im running on Windows 7 64-bit, i will not imagine that the capacity of memory of my Terminal Unit is not enough because my memory is 8GB. I run crystal report but it shows the record, but when running the Cystal Viewer inside SAP B1 it illegally terminated.
Thanks for clarifying the creation of Stored Procedure.
Ben

Similar Messages

  • Error when running the Crystal Report 9.1 (visual studio 2003) in the deployed server

    Hello,
    1) I am suddenly getting an error message ‘Load Report failed’ in a production server (where the VS2003 application is deployed) when the Crystal Report is executed. This has happened maybe because of the Windows/Crystal Report Updates!
    I am able to see the same report perfectly fine in the development computer using VS 2003.
    I am using the 9.1 version which is part of the Visual Studio 2003.
    The event logs show 'Either the keycode library is not registered or it cannot be loaded ...EventID=10029'. See attached screen shot.
    Please help?
    2) Since I was getting a registration suggestion window  for using Crystal Reports, I registered twice using different email address and it said that it will send me the KeyCode for the Crystal report but after successful registration I never got any keycode but just an email acknowledging the Registration.
    I believe the KeyCode is required to use it in the server to execute/run a report.
    Can SAP representative email the keycode to my gmail account?
    My product key is: 
    Please help to resolve both my problems
    Thanks in advance,
    Sanjay Chudasama

    If I memory servers, you have to open the Crystal_Regwiz2003.msm in the .NET deployment project. One of the properties of the msm was Keycode (or similar). You entered the keycode here. To find your keycode; in VS2003 IDE, go to the Help | About screen. You will see one of the installed components as Crystal Reports and the keycode will be on the right of that. Copy the keycode from here, paste in the above.
    For more details see the article Crystal Reports and Visual Studio .NET - Application Deployment.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Error while trying to run the Crystal Report ADD ON on SAP 8.8 Patch 12

    Hello Expert,
                        I have installed Crystal addon version 2.0.07 on SAP 8.8 P12.While trying to start the crystal addon I am getting the following error.
    "External connection to DB Failed.Please re-run the account setup with super user login."
    regards,
    pankajk

    Hi Gordon,
                    I am unable to see the crystal manager in the menu after the installation of SAP 8.8.Only at the Tool there is Preview for th external crystal report.How to visualize the cyrstal report manager in SAP 8.8.
    regards,
    pankajk

  • Error when preview the crystal report

    Hi All,
    When i am click on preview button in crystal report it show an error:
    error:-
    could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=nutral, PublicKeyTocken=,culture= neutral,publickeytoken692fbea5521e1304.' or one of its dependencies. The system cannot find the file specified.
    please tell me why this happened.
    Thanks & Regards
    Manoj S

    Hi Manoj ,
    You may check these threads first:
    Crystal Report - Crystal Designer
    Cannot run Crystal report in SAP
    Addon Crystal Report
    Thanks,
    Gordon

  • Database Connector Error : when refreshing the crystal report in Infoview

    Hi,
        I've created a crystal report on SAP R/3 tables and the report is refreshing fine in my local system. But however when I publish the report to the BOE, and when I try to refresh the report it gives the error:
    Error in File <file name>: Database Connector Error. I'm using Crystal reports 2008 and the BOE is XI 3.1.
    How can I solve this?
    Thanks,
    Sanjay

    Hey folks,
    i suppose  we are facing the same error. But where do i check if the key for the server-side integration kit has expired? There is no explicit key in our CMC.
    We use BOE XI 3.1.
    Thanks in advance!

  • SAP System Log on issue using Crystal Reports:

    Hi All,
    I have installed Crystal reports, Business Explorer and Business Objects XI  Integration. But when I tried to create a new report using SAP Table, Cluster or Functional, I couldn't able to select SAP System since it shows SAP System Log on selection was blank.
    Note: I have undergone the following trials:
             1) All the trials are done after connecting to the Internal Vpn.
             2) Re-installed the Crystal reports, Business Explorer and Business Objects XI. But result was the same.
             3) Compared all the setting parameters with another System which works fine.
             4) Only difference seems to be that I am using Win Vista and other one is Win XP OS.
             5) Tried in the net for Win Vista specific patches or software to run the crystal report but couldn't helped.
    Did any one come across similar experience or is there any idea why it could be? Thank you in advance.
    Best Regards,
    Sujith
    Edited by: Sujith Kumar Naithalath on Jun 22, 2009 8:29 PM
    Edited by: Sujith Kumar Naithalath on Jun 22, 2009 8:30 PM

    Hi Don,
    Thank you very much for your reply. I was wondering from where we could download XI R2 ( 11.5 ) SP 2. I have tried downloading Software Forces .rpt Inspector 3 Professional suite (for CR XI R2) . But this doesn't seems to be the right one. Also I have cheked in sdn Crysal Report 2008 download (https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm ). But no luck. Thanks again.
    Best Regards,
    Sujith.

  • Failed to Install the Crystal Reports 2008

    Post Author: cechow
    CA Forum: Crystal Reports
    Hi,
    I am facing some error message when installing the Crystal Reports 2008 that I have purchased. I am currently working on a Windows XP Pro SP2, 1 GB RAM, 60 GD Free Space to install the Crystal Reports but failed. The error stated on the Crystal Reports installation screen is "Crystal Reports 2008 Setup has Failed".
    Thanks.
    Adrian

    Post Author: cechow
    CA Forum: Crystal Reports
    Basic Template
    Product: Crystal Report 2008
    Version:
    Patches Applied: I'm not sure what patches need to be installed
    Operating System(s): Windows XP Professional SP2
    Database(s): SQL Server 2000 sp3a
    Error Messages:  Failed to INstall the Crystal Reports 2008.Steps to Reproduce: When I entered the CR disc in the CD ROM, there was no auto-run, then i decided to browse into the CD and execute the Setup.exe which then prompt the error above. Please advise.Is there some Pre-requisites that I need to install, any JRE or some other application?

  • Data missing while running a crystal report from SAP B1 2007A

    Dear All,
    I am facing an issue that is if i run a report from SAP B1 using Crystal reports AddOn, it misses out some data.
    Few Initial pages and a last page appears in the report. But when i run the same report using Crystal reports Designer it shows the actual number of pages. I have tested the above discussed issue on the server & workstation machines.

    Dear All,
    I would like to explain the above posted problem in detail. I need your generous help, I am facing an issue that is for Crystal Reports which are based on 'Financial Templates' data is missing out. For Example, If i run the report using 'Crystal Reports Designer' it is showing the whole Financial Template based on 5 pages, but if I try to run it from 'SAP Business One'
    using 'Crystal Reports AddOn' it is missing out the data e.g. it is showing Page 1 and then Page 4 & 5.
    Page No. 2 & 3 is missed out. For your information it was running fine from the past two months now I am
    facing issues in running it. Rest of the reports are running fine.
    I have tried reinstalling the Crystal Reports Runtime and Crystal Reports AddOn for SAP B1 on
    Client machines, but the problem is not resolved yet.
    Server Machine Details
    Version : SAP B1 2007A Server SP01 PL08
    OS: Windows Server 2008 R2 (64-bit)
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio
    Client Machine Details
    Workstation 1
    Version : SAP B1 2007A Client SP01 PL08
    OS: Windows Vista Enterprise (32-bit)
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio
    Workstation 2
    Version : SAP B1 2007A Client SP01 PL08
    OS: Windows XP
    Crystal Reports AddOn for SAP B1 (64-bit)
    Crystal Reports Runtime
    Crystal Reports Runtime for Visual Studio

  • Exception when there is "~" in the Crystal report applicaiton name

    Hi all,
    I am new in using the Crystal report and i faced the follwing problem:
    1. I am using Crystal report for eclipse version 1.0.8.v1541.
    2. The application name with which the Crystal reports are deployed on the engine contains "~" in the name.
    3. In the jsp I use the following code to request the report:
    ReportClientDocument reportClientDocument = new ReportClientDocument();
    reportClientDocument.open("CrystalReport_IssuesPerCategories.rpt", OpenReportOptions._openAsReadOnly);
    4. I get the following exception :
    com.businessobjects.reports.sdk.d: Report file /D:/usr/sap/LKG/J00/j2ee/cluster/apps/sap.com/test%7Efeedback_crystal_report_app_v2/servlet_jsp/sap.com%7Etest%7Efeedback_crystal_report_v2/root/CrystalReport_IssuesPerCategories.rpt not found
         at com.businessobjects.reports.sdk.c.a(Unknown Source)
         at com.businessobjects.reports.sdk.b.v.if(Unknown Source)
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at com.crystaldecisions.reports.sdk.ReportClientDocument.open(Unknown Source)
    (When I try to run the jsp from an application with a name without "~" in it everything works ok.)
    Is this a bug? Is there some work around? Or maybe it is a fixed in some newer version?
    (I am using NWDI + CBS as a build sustem and the ~ in the name is added automaticaly , so i cant skip it)
    Thanks in advance!
    Best regards, Svetlomira

    Typically the Shift charater sets are reserved characters for names, temp files etc.
    Don't use it.

  • "Selected report cannot be loaded" when running published crystal analysis

    Hi,
    When running published crystal analysis reports (*.car) within Crystal Enterprise 10 i receive the message below. This is happening to all published crystal analysis reports. Can open the reports fine within Crystal Analysis Professional itself.
    "Crystal Analysis Professional - The selected report cannot be loaded because one or more required parameters do not have an assigned value. "
    any assistance would be appreciated
    tks.

    If I memory servers, you have to open the Crystal_Regwiz2003.msm in the .NET deployment project. One of the properties of the msm was Keycode (or similar). You entered the keycode here. To find your keycode; in VS2003 IDE, go to the Help | About screen. You will see one of the installed components as Crystal Reports and the keycode will be on the right of that. Copy the keycode from here, paste in the above.
    For more details see the article Crystal Reports and Visual Studio .NET - Application Deployment.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Error While Run the WebI Report on SAP BW Query

    Hi
    I have build the universe on SAP BW Query . I built the same universe on the SAP BW DEV and SAP BW Test
    When I tried to run the WEBI Report on the Universe which is built on the SAP BW Test
    WebI Report is prompting for the below values
    Calendar Year
    Profit Center
    Profit Center Hierarchy
    Version.
    Here I can see the List of values for the Calendar Year and Profit Center. Its giving me below error when I look  for list of values for the  Profit Center and Profit  Center Hierarchy.
    u2018Database error: [SOFA Driver] : The operation completed successfully.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)u2019
    My Questions:
    1.     Why I am getting this error. Because of authentication or configurations set on the Profit Center and Profit Center Hierarchy objects? If so , please let me know what I need to set?
    When I tried to run the same WEBI Report  on universe which build on  SAP BW Dev Query. I can see list of values for the Calendar Year, Version, Profit Center, Profit Center Hierarchy.
    But when I selected the values and tried to run the report. I got below error.
    u2018Query 1 - P&L Structure Monthly_Devtst
    Database error: [SOFA Driver] : The MDX query SELECT NON EMPTY HIERARCHIZE( {[Measures].[4CEX5LZ5571LCZHJBK0L0360P],[Measures].[4CEX5MM6Q2UPWV3VT27LU9261]} )  DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS , NON EMPTY HIERARCHIZE(  { [0CALMONTH].[LEVEL00].MEMBERS }  )  DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON ROWS FROM [ZFIGLPCBM/ZZFIGLPCBM04_Q011] SAP VARIABLES [!V000001] INCLUDING =[0PROFIT_CTR                   1000HCICONS08] [!V000002] INCLUDING =2 [!V000003] INCLUDING =2008 [!V000004] INCLUDING =000 failed to execute with the error Value "0000000002" for variable "Profit Center" is invalid. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)u2019
    My Questions :
    1.     What is this error? Please suggest the solution to run the report successfully.
    Also I am attaching Print Screens of  DEV and Test  reports Prompts and Errors.
    Here I am using Business Objects XI R2 SP4
    I am sorry if I confused you with elaborated explanation, I have very less knowledge of BO and SAP BW .. 
    Please help me with your valuable suggestions.
    Thanks,
    Anitha

    Hi Ingo,
    - the BI Query in the Test system is running correct and all the variables do work ?
         Yes, BI Query is working fine in the Test System and I can see all the variables too
    In BI Query I can see values for  Calendar Year, Version, Profit Center, Profit Center Hierarchy
    - the Universe has all the variables ?
      Yes, Universe has all the variables.
    - do you see values in the Web Intelligence prompts when you run the report ? 
       No,
       I can only see values for the Calendar Year & Version  in the Web Intelligence Prompt.
    When I try to see values for the Profit Center & Profit Center Hierarchy in the Web Intelligence Prompt, its showing below error.
    u2018Database error: [SOFA Driver] : The operation completed successfully.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)u2019
    I can send you the Print Screens of Prompts & Errors, but i don't know how to attach the file here.
    Thanks,
    Anitha

  • Password is lost when I save the Crystal Report

    We use Crystal Reports v. 11.5.3.417, and our users access the crystal Reports using InfoView (Web Portal)
    We store the username and password inside the different Repor so the end-users of these reports don't have to know our database passwords in order to run the reports. (Oracle DB)
    We have 2 problems with our Crystal Reports
    1) Every time I change and the Save a report, the Password is lost, and I have to remember to go into the "Manage Object" and Process->Database and enter it again. It's really annoying to have to remember this every time we change a report.. Is there an option somewhere to avoid this?
    2) The password and username are occationly failing. When the users (accessing Crystal Reports through the Web Portal / Infoview) get an error message "Incorrect logon parameters..." The funny thing (actually not that funny) is that if I try to open the report like 10-15 times, just by clicking on the Crystal Report in the Infoview, it usually starts to work again. Some times after 5 clickes, and other times after 10-15 clicks. Its just not logical. Also when it starts working in my web-browser, it also start to work on our users browser as well.
    Every week I have to tell a couple of users to try like 10-15 times, but its not that funny to say this to a user.

    Hi   Roy Ingar Hansen,
    If  you think not to provide the password for your End user then we can  do that go into the "Manage Object" and Process->Database  enter the password  and Enable the option in :
    When viewing report:
    Use same database logon as when report is run.
    For the first time you need to enter the logon credentials and enable the option and click on update.
    It wont prompt for the password and it will not show password to your user's.
    If you have problems with Original database logon , then try with Custom database logon and update the option.
    Try with this...
    Regards,
    Naveen.

  • How to set printersettings for the crystal report viewer in SAP BI dynamically

    Hello
    I have set the URL method for my crystal report and with parameter passing as shown below, it was displaying the crystal report viewer by connecting to the SAP BI 4.0 server with this method.
    http://cr:port/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?sDocName=CRLabelParam&sType=rpt&lsSnPrinted=0&lsSsTestProjectNr=1
    This URL will be called from Web application by different users, i would like to set the printer settings differently for different users for this crystal report viewer how shall i need to set the printer options?
    shall i need to set the printer settings programatically for each user. Please advise me how do i need to proceed.
    Thanks & Regards,
    Rajeswari.

    There are no BI / CR APIs that would do this for you. The way I see it, you'll have to have your own print button and populate it with the correct printer information for each user as they request the report. Of course, alternatively, use the viewer printer button and get the users to choose the correct printer.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Getting the MDX query select error when running a webi report on BI query

    Getting the following error when running a webi report on BI query :
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D8JBFK099LLUVNLO7JY49FJKU] }  ON COLUMNS , NON EMPTY [ZCOMPCODE].[LEVEL01].MEMBERS ON ROWS FROM [ZTEST_CUB/REP_20100723200521]  failed to execute with the error Unknown error. (WIS 10901).
    I have gone through many threads related to this error. But not able find the steps to follow for resoultion.
    Please help in this regard.
    Thanks,
    Jeethender

    The Fix Pack is also for Client Tools--it is a separate download.  Please see the text below for ADAPT01255422
    ADAPT01255422
    Description:
    Web Intelligence generates an incorrect MDX statement when a characteristic and a prompt are used.
    The following database error happens: "The MDX query ... failed to execute with the error
    Unknown error (WIS 10901)."
    New Behavior:
    This problem is resolved.
    This information is also available in the Fixed Issues document for any Fix Pack greater than 2.2.

Maybe you are looking for