Crystal report for Balance sheet from ECC6.0 directly

各位专家,
现在我想用水晶报表编制资产负债表,我们公司是直接连接ECC6.0 的表的.一般 ABAP 都是FAGLFLEXT表中取值的.
但应用水晶报表,我在循环取数方面遇到了困难,选择专家或公式都很难多次对一个字段取数.不知道大家有没有这方面的经验可以分享,或者有好的例子,让我参考一下. SAP 提供了一套模板,但是基于BW的,无法应用到 直接从SAP ECC6.0 表里面取数的.
谢谢
Benson

Sunny Zhang  先谢谢你的耐心回复
我接触CR不久,可能问题描述的不清楚,我把问题简化一下,看看你能不能帮到我
假设我的表里有如下5条记录,科目1001和1002属于货币资金,1100属于固定资产. 另外我设了一个参数变量为"月份".当份为1时,要把1001和1002记录的1月发生额汇总为货币资金,1100的1月汇总为固定资产.当月份为2时,要把1001和1002的1月发生额汇总加上2月发生额汇总, 1100的1月汇总和2月汇总相加.3月同理.
我现在的处理方法是,先建立运行总计字段, 分别对1月发生额,2月发生额,3月发生额进行汇总,并且在运行总计字段里面应用公式, 限制科目. 这样就要创建2*3=6个运行总计字段. 然后再创建2个公式字段分配给报表中不同位置(if  period=1 then 1月发生额; period=2 then 1月发生额2月发生额 ; if period=3 then 1月发生额2月+3月).
但是资产负债表有12个月的发生额,而且科目范围也有几十个,这样创建总计字段和公式字段就是很大的工作量.不知道有没有其他简便的方法.我研究CR不久,可能有些功能不了解.
数据记录
科目                  1月发生额   2月发生额  3月发生额
1001                     10
1001                                             20
1001                                                                 10
1002                                             30
1100                                                                 10
货币资金                 
固定资产

Similar Messages

  • PCA report for balance sheet accounts

    Hi,
    i have assigned Profit Center in Material.
    So the Cunsumption account hit the Profit center.
    If i see the GL document profit center assigned at line item, but i couldnot able to view the PCA report for Balance sheet account
    Can you please help.
    Thanks,
    Sudha

    Hi Wamman,
    We are in ECC 6 and New GL is not activated.
    Clssic PCA maintained PC in 3KEH.
    Assigned PC in Material Master  consumption entry   Consumption (P&L) to Inventory (B/S)
    Consumption (P&L) updated with Profit center and PCA document created
    Inventory (B/S) line updated with Profit center but PCA document was not created.
    Kindly help
    Thanks,
    sudh

  • Default profit centers Plant wise for Balance Sheet tax relevant Items.

    Dear All,
    We have an issue in profit center acccounting.
    In balance sheet accounts, Vat input tax payable, TDS payable, Cenvat clearing etc are picking profit center from 3KEH. When Exicse is getting captured cenvat clearing account having the profit center but while doing the MIRO cenvat clearing do not have profit center & plant.
    Why it is so?
    Basically we are doing the following steps.
    1. Purchase order creation ME21N.
    2.Goods received via migo
    3. invoice receipt via miro.
    At the time of miro posting, system creates automatically accounting document, with default profit center maintained in 3KEH, which are assigned to Vat input tax payable, TDS payable, other tax accounts. For GR/IR clearing account right profit center is picking without any mistake, while doing MIGO & MIRO.
    We need to extract the Balance Sheet profit center wise at plant level.
    Derivation rule is created for this balance sheet account along with Valuation area condition to post to correct profit center maintained under Tcode: 3KEI . But system is taking only default profit center (3KEH).
    I have checked configuration and the following areas like Material master costing view, tax code areas, and account group but did not find any mistake.
    Please advice and Guide us, how to get correct profit center at plant level for these balance sheet accounts instead of default. (I want to make default profit centers plant wise).
    It is urgent.
    Thanks,
    Shailendra Gupta.

    Hi!
    You can use following report :
    S_ALR_87013336 (Report for Balance sheet at Profit Center and Group Level).
    Hope this will help.
    Thanks & Regards,
    Taral Patel

  • Using Profit Center Accounting for balance sheet reporting on various plant

    Hi Gurus,
    Can anyone please tell me the steps I need to take to use PCA for balance sheet reporting on various plants under one company code. If there is a better way then please let me know. Thanks

    Hi,
    It depends on the organisation structure you decide on and as such PCA is recomended for your requirement.
    Cosider each plant as a Profit center and decide cost centers under each plant/profict centers.
    For all the materials under each plant assign the prfict center or that pant.
    Change the feild status groups for Profit centers as mandatory.
    If you are in 4.7EE You need to write derivaton rules & Assign dummy profit center for scenarios that overlap or for sales made by one plant of the stocks of other plant.
    Need to identify the Asset costcenter/Plant/location wise adn need to assign in ACSET.
    You need to rum F.5D , F.5E as period end process.
    Down payments need to be handled by way if user exits if you are in 4.7EE
    If you are in >= ECC5.0 then simply activating the document split will give you the PCA wise balances without much month end closing activities.
    Make Zero Balance and Profit centers as mandatory in document splitting charactersics.
    In any case you need to completely test the scenarios and how you are goinbg to get th eprofit center in all the scenarios.
    Reward if useful.
    Sarma

  • Crystal Report for Enterprise not displaying Long Text from BEx

    Hello,
    I am creating a report using SAP Crystal Report for Enterprise 4.0 (Version 14.0.2) and the source of data is BEx query via OLAP connection created using IDT. I am using SAP BusinessObjects BI platform 4.0.
    The Characteristic (which is hierarchy) in the Rows section of the BEx Query is set to display long text and as such, it displays long text when the query is executed in the BEx Analyzer. However, when it comes to Crystal Report, the short text is displayed in the report. Can I display long text in the Crystal Report? How?
    Thanks,
    KP

    Venkat,
    Thanks for your response. Please note, however, the transaction RAD1 does not exist. Let me provide more details about the current settings of the InfoObject.
    The Characteristic is 'Item' (0CS_ITEM) and upon going to RSA1 >  Modeling > InfoObjects > Item (0CS_ITEM) > Right Click > Display > Business Explorer (tab) > Text Type is set to 'Long Text' and BEx description is set to 'Long description' already.
    When I run/execute the query with this Item characteristic, the results in BEx Analyzer is showing appropriate long text, however, Crystal Report for Enterprise shows short text only
    K
    Edited by: Kumar Pathak on Feb 3, 2012 6:18 PM

  • Crystal Reports for VS2010 using a custom SAP ABAP function module data source

    I recently worked with Crystal Reports 2011 and was able to connect and retrieve data from our R/3 system via an ABAP function module. While researching other features, I found this version that can be installed into Visual Studio 2010. The parameters are not very user friendly in Crystal Reports so I was hoping to create a custom dialog to collect my report parameters.
    Does anyone know if I were to install Crystal Reports for Visual Studio 2010, would I be able to design a front-end selection screen in a Visual Basic form and then pass the input to through the Crystal Reports connection to my ABAP function module to retrieve the data filtered on the back-end by the selection screen parameters and return the results to be reported in the Crystal Reports output?
    I am using Visual Studio 2010 Professional Visual Basic with the .NET Framework 4.0 on 32-bit Windows 7. I was able to connect to our R/3 system in Crystal Reports 2011, so if I were to install Crystal Reports for VS2010, would there be a similar way of connecting to SAP?
    Any assistance or direction would be greatly appreciated.
    Thanks,
    Bryan

    Hello Bryan
    I don't know for sure, but I doubt this will work in CRVS2010. Only hope is that the utility available for download in this KBA will point you in the right direction.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Function types for Balance Sheet Planning missing in SEM-BPS 6.0

    Hi BPS experts,
    After upgrading our BI-system from SEM 4.0 to SEM 6.0 (level 10) as part of the upgrade from BW 3.5 to BI 7.0 (level 15), the BPS function types for balance sheet planning are not available in the planning environment (Transaction code BPS0).
    According to the SAP Library the balance sheet planning functions in SEM-BPS comprises of 6 standard function types - one of them is "Depreciation":
    <a href="http://help.sap.com/saphelp_sem60/helpdata/en/0a/242537cedf2056e10000009b38f936/frameset.htm">help.sap.com -> Business Planning and Simulation (BW-BPS)</a>   
    Menu path: Business Planning Functions -> Functions for Balance Sheet Planning
    In our existing SEM 4.0 we are using "Depreciation" and the functions based on this function type are of course short dumping when executed in our upgraded system (SEM 6.0) as the function type does not exist here.
    Odd though - we do have the function type "Allocation" available in SEM 6.0, which should be delivered with SEM together with the Balance Sheet Planning function types (It is listed directly under "Business Planning Functions" in the SAP Library) .
    I have tried to figure out whether we missed out on activating something during or after the system installation, but our basis consultant has not found anything in the installation guides related to this issue. Also I was wondering whether it could be a simple matter of activating some Business Content but without any luck.
    Does anybody know why the Balance Sheet Function Types are not available in SEM-BPS 6.0?
    Kind regards,
    Lars
    PS: Our system status is:
    SAP_ABA     700     0013     SAPKA70013     Cross-Application Component
    SAP_BASIS     700     0013     SAPKB70013     SAP Basis Component
    PI_BASIS     2005_1_700     0013     SAPKIPYJ7D     PI_BASIS 2005_1_700
    ST-PI     2005_1_700     0005     SAPKITLQI5     SAP Solution Tools Plug-In
    SAP_BW     700     0015     SAPKW70015     SAP NetWeaver BI 7.0
    FINBASIS     600     0010     SAPK-60010INFINBASIS     FINBASIS 600 : Add-On Supplement
    SEM-BW     600     0010     SAPKGS6010     SEM-BW 600 : Add-On Supplement
    BI_CONT     703     0007     SAPKIBIIP7     Business Intelligence Content
    Message was edited by:
            Lars B Rasmussen

    Hi Lars,
    It seems not all the planning function from SEM BPS are available in BW BPS. Please check the links below: -
    what is the difference between BW 3.5 BPS and SEM BPS 4.0
    BW- BPS and SEM- BPS
    SEM-BPS VS BW-BPS
    BCS Doc
    Regards,
    SK

  • MySQL 5.5, Crystal Report for Visual Studio not working when hosted IIS

    Software and Component detail
    Microsoft visual studio 2010
    MS .NET Framework
    Version 4.0.30319 RTMRel
    MYSQL SERVER Database
    Version 5.5
    MySQL Connector 6.6.4 64 Bit
    MySQL ODBC Driver Version 5.2.a
    Crystal Report for Visusl Studio 64 Bit 13.0.5
    (CRforVS_redist_install_64bit_13_0_5)
    Current Setup
    1. I have WebSite in ASP.NET Visual Basic which works fine and is connected to MySQL Database, using MySQl Connector 6.6.4 64 bit
    and is using a connection string,defined in web.confg.
    2. I am using a Crystal report( It is very complex report, so cannot dare to redo it). Data Source for the report is set using a connection string
    DRIVER={MySQL ODBC 5.2a Driver};SERVER=Licensedb;DATABASE=License;pwd=root;PORT=3306;OPTION=3 and this report is called from website using the below code
    Dim crystalReport As ReportDocument = New ReportDocument()
    Dim repPath As String = Server.MapPath("~/Reports/") + "LicenseReport.rpt"
    crystalReport.Load(repPath)
    CrystalReportViewer1.ReportSource = crystalReport
    crystalReport.SetParameterValue("InstanceID", CInt(Session("sessionInstanceID")))
    crystalReport.Refresh()
    crystalReport.SetParameterValue("InstanceID", CInt(Session("sessionInstanceID")))
    CrystalReportViewer1.Visible = True
    3. The above setup works fine, when I run the website from Visual studio 2010. But when i use IIS 7, the aspx page having crystal report viewer control load and its blank.
    However it work very well from studio it self.
    4. So I changed the setup in point 2, by having a ODBC Data source defined. And changed the report accordingly. It work fine in Visual studio , but from IIS
    it gives error "Failed to Open Connection, Failed to Open Connection <Crystal Report File name.rpt>"
    5. I tried creating a System DSN and same connection string in IIS Application Connection string. But nothing changed.
    Please can anyone point in correct direction. I must admit this is my first website development work, so I might have overlooked some minor details.
    Any help would be much appreciated.
    Thanks
    Dilpreet ([email protected])

    hello again. I fear that what is said in that article does not apply to my particular case.
    First of all i am using the Crystal Report Basic 2008, which I think is not the same product as Crystal Reports 2008.
    In addition, printing fails always, on my PC and on the web server.
    On the other hand I can not find anywhere printcontrol.cab file or printcontrol.dll, just do not exist either in my PC or on the web server.
    The folder where the report viewer is located is not CrystalReportViewers12, is CrystalReportWebFormViewer4, and is located at wwwroot\aspnet_client\system_web\2_0_50727\
    Investigating I found something, but has not helped me:
    [http://social.msdn.microsoft.com/forums/en-US/vscrystalreports/thread/0af08d25-dd71-41ce-92fa-ca374f933eaa/]
    This problem is what always happens to me when on my local PC I access my web server by its public IP.
    I think I must resign myself to use only the PDF print
    thanks anyway

  • Difference between Crsytal Report 2011 and Crystal Report for Enterprise 4

    difference between Crystal Report 2011 and Crystal Report for Enterprise 4.0?
    I think Crystl Reprt 2011 has more function, is it right?

    Hi,
    I recently attended a SAP Virtual trianing on SAP Business Objects BI 4.0.
    Here are few extracts from that which probably shows some light to you:
    SAP Crystal Reports 2011
    1. UI and associated processing servers remain the same as CR 2008
    2. Incremental update to CR 2008 with a few new features*
    3. Continue to provide current CR 2008 functionality as-is for existing customers
    SAP Crystal Reports for Enterprise 4.0
    1. Major update & redesign of the Crystal Reports Designer and associated processing servers
    2. Focus on streamlined report design, reporting against BI 4.0 Universe, & reporting against SAP BW data
    3. Provide the foundation for all future releases of Crystal Reports
    Differences between these two releases:
    Data Source & Usage Type                                       General Recommendation
    1. SAP BusinessObjects BI 4.0                                        SAP Crystal Reports Relational Universe (UNX) for Enterprise
    OLAP Universe (UNX)
    2. SAP NetWeaver BW 7 BEx Query (BICS)                    SAP Crystal Reports for Enterprise
    3. SAP NetWeaver BW 3.5 BEx Query                             SAP Crystal Reports 2011
    4. SAP Profitability Cost Management                              SAP Crystal Reports for Enterprise through Analysis View
    SAP Strategy Management
    SAP Budget, Planning and Consolidation
    SAP Extended Analytics
    5. Platform Driven Alerting                                                SAP Crystal Reports for Enterprise
    6. Business Views                                                           SAP Crystal Reports 2011
    7. Direct RDBMS or OLAP access                                    SAP Crystal Reports 2011
        SAP ERP/ Live Office Content/
        Enterprise search content
    Regards
    Gowtham

  • Tables for balance sheet figures

    friends,
    in which table the data in f.01 balance sheet and profit and loss account data is stored,
    how to pick this data from tables and which fields are required to write z program for balance sheet and prift and loss account,
    regards,

    Dear,
    Balance sheet or profit/loss statement does not store data it derives data from table rather. If you want to go for custom report then use following tables.
    1. If you are using classical G/L then use table GLT0.
    2. If you are using New G/L the use FAGLFLEXT.
    Regards,
    Chintan Joshi.

  • How to use Crystal Report Server with Crystal Reports for Eclipse

    Hi,
    is it possible to use Crystal Reports for Eclipse with the Crystal Report Server
    like i can do it in Crystal Reports.
    For Example open a Report file directly from the server edit and save there.
    Thanks
    Thomas

    Yes, you can use the CR Server product in your Eclipse project.  However, you will need to use the RAS SDK in your project instead of the CR4E SDK. 
    For more information about the RAS SDK, visit the DevLibrary.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    -MJ

  • Crystal Reports for Enterprise connection error to BI 4.0 Platform

    Hi All
    We are trying to connect Crystal Reports for Enterprise to our BI 4.0 Platform, however we are getting the following error: "Failed to establish a connection. The cause was: Cannot connect to SAP BusinessObjects Enterprise at this time. Please try again later".
    System Information:
    - SAP BI Platform 4.0 SP02 patch 6
    - Windows Server 2008 R2 64bit
    - Tomcat 6.0.24
    We have also installed the following client software:
    - SAP BI Platform Client Tools 4.0 SP02
    - SAP Crystal Reports for Enterprise 4.0 SP02
    - SAP BI Platform Client Tools 4.0 SP02 Patch 6
    - SAP Crystal Reports for Enterprise 4.0 SP02 Patch 6
    Our deployment of the BI Platform is a distributed system where
    - Server 1 hosts the BI Platform Services and
    - Server 2 hosts the web application server
    We have reviewed the following OSS Notes below from SAP first to determine if there is a technical issue :
    - 1598906 - Crystal Reports for Enterprise gives Cannot Connect to SAP Business Objects Enterprise at this time. Please try again later.
    We have adjusted the "dsws.properties" as mentioned in the OSS note 1598906 above to contain the correct CMS and CMS port number (for Server 1).
    - 1602024 - Error - Failed to establish a connection. The cause was - Cannot Connect to SAP BusinessObjects Enterprise at this time.
    We have entered the server context as "/dswsbobje" mentioned in the OSS note 1602024 above in the connection details for CR for Enterprise connections
    - 1636862 - Login for Crystal Reports fail on BO Server Cannot Connect to SAP Business Objects Enterprise at this time.
    We have checked the proxy settings of Internet Explorer and adjusted it to have the following exceptions defined:
    - Server 1.<domain_name>
    - Server 2.<domain.name>
    In the CMC, we also checked in the applications section for the web service option's access URL andchanged it from http://localhost:8080/dswsbobje to http://server2:8080/dswsbobje
    We restarted the tomcat service and tried to access the CR for Enterprise from the BI Launch Pad as well as starting it directly from Windows, howevere we still get the same error.
    Regards
    Derek
    Edited by: Derek Fox on Oct 27, 2011 1:07 PM
    Edited by: Derek Fox on Oct 27, 2011 1:10 PM
    Edited by: Derek Fox on Oct 27, 2011 1:11 PM
    Edited by: Derek Fox on Oct 27, 2011 1:20 PM

    Hi Anna-Marie
    I apologise for only responding now back.
    I have managed to logon successfully from Crystal Reports for Enterprise 2011 to the BI 4.0 Platform now, where we can create a report and save the report back to the BI Platform.
    As we have a distributed system, where the BI Platform is on one server (Server1) and the WebAs on another server (Server2). We had to adjust thefollowing settings on the WebAs system.
    1. On the WebAs server (Server 2), in the directory <install drive>:\Program Files (x86)\SAP BusinessObjects\Tomcat6\webapps\dswsbobje\WEB-INF we changed the file: web.xml by entering the default CMS.
        <context-param>
            <param-name>cms.default</param-name>
            <param-value>Server2:6400</param-value>
        </context-param>
    2.Then also in the directory <install drive>:\Program Files (x86)\SAP BusinessObjects\Tomcat6\webapps\dswsbobje\WEB-INF\classes we changed the file: dsws.properties where the section for domain=Server2 to domain=Server1 (example below from the file)
    #default host for CMS and will be replaced during installationdomain=Server1:6400
    3. In internet explorer's proxy exceptions, we set the following:
    server1.<domain>*
    server2.<domain>*
    4. In the local Intranet setting, we also set the site as:
    http://*.<domain>
    Now for my laptop the connection works with no issues, but another developer's does not work - so we are busy investigating what is different between my laptop and his laptop.
    Update:
    We found that a setting inside the Crystal Reports for Enterprise 2011 in the network settings had to also be adjusted.
    5. Use the menu path: Edit > Preferences > Network settings
    6. Switch from "use system proxy configuration (if available)" to "Manual proxy configuration"
    Enter the HTTP proxy address: proxy_server
    Enter the Port: 80 (example)
    Enter the list of servers to bypass: Server1;Server2
    Check the checkbox "Enable proxy authentication"
    Enter a username
    Enter a password
    Click on the OK button.
    7. Afterward change the setting from "Manual proxy configuration" to  "use system proxy configuration (if available)"
    Then Crystal Reports for Enterprise 2011 works correctly.
    What we found was that Crystal Reports for Enterprise 2011 must authenticate against the proxy server first otherwise one has issues.
    Regards
    Derek
    Edited by: Derek Fox on Oct 28, 2011 2:02 PM
    Edited by: Derek Fox on Oct 28, 2011 3:38 PM

  • Crystal Reports for VS2010 installation problems

    I downloaded and installed the CRforVS_13_0.exe. After installing Crystal for VS2010 the installer informed me that I required the 64bit Viewer runtime installed and asked if I would like it installed. I took the default (to install) and it failed, it looked as though the command line for the MSI was incorrect. I manually ran the CRRuntime_64bit_13_0.msi.
    I can create and view a report in VS2010 (Professional) but when I compile the application  get the following error:
    u201CThe type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)u201D
    I have checked that the assemblies are correctly referenced and I can view them in the object viewer by double clicking on them.
    I manually downloaded the CRforVC_redist_install_64bit_10.0.zip and installed that, but it made no difference.
    Can anyone tell me how I can overcome this?
    TIA
    FGBChad
    Edited by: FGBChad on Dec 7, 2010 3:27 PM

    The assemblies are
    C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll
    C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll
    C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll
    All assemblies are version  13.0.0.99.
    These references were added by the framework. I have tried manually adding the references and ensuring that they point to the correct files, as above.
    I get the same error if I remove the references, so it appears that they can not be accessed, In the Event Viewer, application log I found the following:
    The description for Event ID 4353 from source Crystal Reports cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    The keycode assembly, BusinessObjects.Licensing.KeycodeDecoder.dll, cannot be loaded.
    the message resource is present but the message is not found in the string/message table

  • Exception-Error when excecuting JSP-File in Crystal reports for Eclipse

    Hi,
    I have created a jsp-File from an rpt-File in Crystal report for Eclipse. When I start the jsp-File on Apache Tomact 5.5 then only errors occurs.
    Coud anyone help me?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.crystaldecisions.report.web.viewer.CrystalReportViewer resolves to a package
    An error occurred at line: 7 in the generated java file
    Only a type can be imported. com.crystaldecisions.reports.sdk.ReportClientDocument resolves to a package
    An error occurred at line: 8 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.application.OpenReportOptions resolves to a package
    An error occurred at line: 9 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase resolves to a package
    An error occurred at line: 10 in the generated java file
    Only a type can be imported. com.crystaldecisions.sdk.occa.report.reportsource.IReportSource resolves to a package
    An error occurred at line: 13 in the jsp file: /Bericht1-viewer.jsp
    ReportClientDocument cannot be resolved to a type
    10:      try catch (ReportSDKExceptionBase e)
    60:      
    An error occurred at line: 58 in the jsp file: /Bericht1-viewer.jsp
    e cannot be resolved
    55:
    56:
    57:      } catch (ReportSDKExceptionBase e)
    60:      
    61: %>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26
    Bericht1.jsp:
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer,
    com.crystaldecisions.reports.sdk.ReportClientDocument,
    com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,
    com.crystaldecisions.sdk.occa.report.reportsource.IReportSource"%><%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Bericht1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                   // ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET **************** 
                        // Create the CrystalReportViewer object
                        CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        crystalReportPageViewer.setReportSource(reportSource);
                        // set viewer attributes
                        crystalReportPageViewer.setOwnPage(true);
                        crystalReportPageViewer.setOwnForm(true);
                        // Apply the viewer preference attributes
                        // Process the report
                        crystalReportPageViewer.processHttpRequest(request, response, application, null);
                   // ****** END CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************          
         } catch (ReportSDKExceptionBase e) {
             out.println(e);
    %>
    Thanks
    Arnold

    According to the release notes, for the JRCHelperSample to compile, you must set the target runtime for the project.
    To do this, either create a project from scratch that uses the Tomcat 5.5 target runtime, or go to the properties menu and ensure that the target runtime is set to the application server you will be using.

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

Maybe you are looking for

  • Win 7 Pro.. X60T TPM Driver, Active Protection NO GO!

    BIOS has been updated to the latest release (1.15) The TPM device is recognized in Windows, however there is no driver available for it. The fingerprint software is installed and works fine; when going past the Power on password and HDD Password, how

  • Do not want launchpad to be the default import on images

    I have the new mac pro (late 2013) and lightrrom 5 on os 10.10.2 .  i import a lot of raw image files but when i do this on the new mac the launchpad wants to improt the files.  I want LR to be the default software to import the files ( Like my old m

  • Soundtrack locked, can't edit

    Working in Premier Elements 11.  Have been using without problem, but now my soundtrack, which has multiple song clips in it is locked.  Can't move clips, right-clip them, or adjust gain I was able to.  Not sure what caused it.  I did group some of t

  • What is the best way to update a dynamic vi?

    I am loading charts and graphs dynamically and I want to be able to update them using the same loop in the main vi. (Using LV 6.1)

  • Opening a new window from an event handler in IC WebUI

    Hello , I want to open a new browser window on the click of a button (through the event handler) .This can be done using javascript ,but I ideally want it to be triggered from the event handler .The URL is dynamically generated . Please do let me kno