Generated data can be exported to word doc, or in rich text format. Just click on ‘Export’ icon in the menu. Export dialog box will be popped up. It will ask for the ‘Format’ like comma-separated value (csv) etc and the ‘Destination’ like disk, application etc. After that it will ask for the file name and save the data.
Only restriction is formatting of data will be lost, but crystal report will try to maintain as much formatting as it can.
Yeah we can do that using crystal report.
For crystal reports the data-source that SAP business one supports are
Generally we use Crystal Reports with VB@However we can make crystal report stand-alone application also. But for that limitation is for viewing the report user should have crystal reports installed on his/her PC.
Select the field –>Click FORMAT–>Click FORMAT FIELD–>Select the COMMON tab–>Click the FORMULA BUTTON to the right of SUPPRESS (Don’t click the suppress check box)To suppress a field on odd numbered pages PageNumber MOD 2 = 1To suppress a field on even numebred pages PageNumber MOD 2 = 0 –>Click SAVE Icon–>Close the formula editor–>Click OK on the FORMAT screen
For formatting any field just right click on it and you will get many options like ‘Format Field.’ ‘Browse field data’ etc. Click on ‘Format Field.’ You can align data, suppress, make it multiline, change the font size, style, and type, make it hyperlink etc.
If it is an amount field then you can display currency symbol also. Right click on the field select ‘Format Field’.
We can very well give parameters to the report. For creating parameters select ‘Parameter Field’ in Insert menu item. ‘Create Parameter Field’ dialog box will popped up, it will ask for the name of parameter, prompting text and datatype. Now when you run the report it will prompt for these parameters.
In SAP Crystal, you have following features:
Crystal report is a report generation tool. Generally have interface with VB@Crystal report basically generates dynamic data. You can format the data in whichever way you feel like.
With Crystal reports explorer one can quickly create and modify reports on the web, and since its built on the trusted Business object enterprise platform, it can easily manage massive user loads, individual access, and application customization.
To create SAP business token the general syntax includes
<Parameter Name>@ SELECT….FROM…..WHERE, the SELECT command is not necessary for all tables.
We can create our own formulas in reports. Select ‘Formula Field’ in Insert menu item. Write the formula in ‘Formula Editor’. Here you will get ‘Field Tree’, ‘Function Tree’, and ‘Operator Tree’, which will display the report fields, functions that are supported by crystal reports (like CDATE () etc.), operators (arithmetic, strings etc.) respectively.
We can create report using more than one database like Oracle, Access. Create data source name for both the databases. Select tables from them and create the report.
Only restriction is if you use two databases then you cannot see the SQL generated by crystal reports.
No, Crystal report does not support all the functions. Like Decode function is there in SQL but not there is crystal report. You need to convert that in crystal report format (in if and else etc.). However if you use ‘.qry’ files then it take the SQL as such. There is no need of changing any syntax.
There are certain limitations in crystal reports. They are: –
If database is having field whose length is more than 255 characters, then you cannot make formula using that field.
While exporting data formatting is lost.
When you browse data just by right clicking on the field then it displays that is there in the database not the data selected by the query.
Yes, we can suppress printing if no records are fetched. Select ‘Report Options’ in File menu item. ‘Report Options’ dialog box will pop up. In that there is one option ‘ Suppress printing if no records’ Check this option. If no records are found then nothing will be printed on the report.
Yes. The following steps work assuming you have Crystal Reports on the machine and the appropriate export dlls loaded.
Report has got standard sections like ‘Page Header’, ‘Page Footer’, ‘Report Header’, ‘Report Footer’, and ‘Details’.
However you can add other sections also. Select ‘Sections’ in the Insert menu item. You can insert group sections also.
If you don’t want to show any section just right click on that section and suppress that.
calling crystalreportcontrolname.reset (by selecting Report menu under Refresh the report menu item at design time) will refresh the report[crystalreport1.DiscardSavedData=True]
To edit crystal reports layout in the SAP business one
Go to the main menu of the SAP business one -> choose administration ->set up -> General -> Report & Layout Manager
In Report & Layout Manager window, in the navigation panel on the left, scroll down to the document type of the layout you need to edit
In the work space on the right, select the crystal reports layout you need to edit and select edit.
Yes, it is possible to create your own formulas in Crystal reports. For that from insert menu item choose “Formula Field”. Write the formula in “Formula Editor”, here you will see “Function Tree” , “Field Tree” , “Operator Tree” which will show the report fields, functions supported by crystal reports, operators etc.
To connect crystal report to the databases, there are two ways
1) Use crystal report built in query
2) Use the tool “Crystal SQL Designer” given by crystal report
Choose File–>Options menu.
In the Options dialog box –>Click the Database tab and ensure that Stored Procedures is selected. Selecting “”Stored Procedures”” automatically displays any available stored procedures when you log on to an SQL database.–>Click OK to exit the Options dialog box. –>On the Start Page, click Blank Report.–>Locate and select the SQL Server data source that contains the stored procedure you want to use.–>Click Next to go to the Connection Information dialog box–>Enter the required information to log in.–>Click Finish–>Highlight an SQL stored procedure in the Stored Procedures folder, and click the–>arrow to add it to the Selected Tables list.–>The Enter Parameter Values dialog box appears.–>Highlight a parameter in the Parameter Fields list–>Assign a value by typing into the Discrete Value box and then click OK–>You are returned to the Database Expert–>Click OK and create your report using the fields in the stored procedure.
Reports in a Windows Forms application as opposed to say rolling our own reports as HTML and displaying them in the Internet Explorer control
(1) Secure as End user cannot modify the data which is appear in the report if we use crystal report to show the report but in HTML, user can modify the report data
(2) Report layout is not transparent, so that end user will not know about how we design the report. But in HTML, anybody can study the report layout and can copy the technology
(3) Can export into different format like PDF, HTML, XML, etc, and many more.
(1) End user need to have the crystal report viewer in his PC in order to see the crystal report output. But this can be overcome if you export the report as PDF/HTML
(2) You need to buy Crystal Report license for each pc you are used to design the crystal report.
(3) Must buy the version which allows you to install run time components in end user PC
(4) Crystal Report is slow as compare to Active Reports
(5) If we have 100 pages report then crystal will need to process all pages and then it shows the output. and many more.
We can also make our own query using ‘Crystal SQL Designer’ tool provided by SQL. Here you can insert your SQL statement as such. It will save this file as ‘.qry’ . And when you create a report instead of using ‘Database’ button use ‘Crystal SQL Statement’ button.
Yes, we can use stored procedure.
Crystal reports provide features like grand total, sub-total, running total etc. You can select any of these features in Insert menu item.
You can sum up records on the basis of each record or on change of group using ‘Running Total ‘ option in Insert menu item.
We cannot edit the SQL made by crystal reports. However we can view the SQL. For that select ‘Show SQL Query’ in Database menu item. Limitation is if you are using only one database. If you use two databases then you can’t even view the SQL prepared by crystal report.