Possible solution: Open Crystal Reports Print Layout from UDO form
Hi all,
I recently had to print information of a UDO which I have on a new form. I searched through the forum and found different solutions, but none that used the new "integrated" crystal reports viewer. So I came up with this workaround, which so far works great. I post it here for anybody else needing this kind of workaround, or in case somebody has a better solution, pick that up.
Here it is:
1) Create your Crystal Report file and import using the Reports and Layouts screen in SAP Business One. Give it a meaningful name and location in the menu. Have at least one parameter to take the DocNum or DocEntry, or whatever your primary key is. (Note: I know the import can be done by SDK, but as far as I can see there's no way to place it in the menu structure just yet.)
2) In your Add-On in the event ID 520 (print), call the following function with the Document Number grabbed from the open form:
public static bool printUDO(string strDocNum)
// get menu UID of report
Recordset oRS = (Recordset)B1Connections.diCompany.GetBusinessObject(BoObjectTypes.BoRecordset);
oRS.DoQuery("SELECT MenuUID FROM OCMN WHERE Name = 'ReportName' AND Type = 'C'");
if (oRS.RecordCount == 0)
B1Connections.theAppl.MessageBox("Report layout 'ReportName' not found.", 0, "OK", null, null);
return false;
// execute menu and enter document number
B1Connections.theAppl.ActivateMenuItem(oRS.Fields.Item(0).Value.ToString());
Form form = B1Connections.theAppl.Forms.ActiveForm;
((EditText)form.Items.Item("1000003").Specific).String = strDocNum;
form.Items.Item("1").Click(BoCellClickType.ct_Regular); // abrir reporte
return true;
I know it's kind of a dirty solution, but it works, and if you have any suggestions, I'd be happy to hear them.
Thanks!
Joerg.
Hi Joerg,
It's not a dirty solution... I like it and i'm using it
Thanks!
Best regards,
Ana Silva
Similar Messages
-
Crystal Report print layout error during print preview
Hi Everyone,
When I try print preview a marketing document, it will work the first time, and then when I try to print preview again it brings up a window asking me to login into the database with the sa username and password.
When putting in the correct password, the login fails.
When I click cancel, SAP hangs up and requires a restart.
All print layouts were done in Crystal Reports, and imported via the report layout manager.
This occurs on all marketing documents where there is a crystal print layout.
Anyone will be able to help me with this?
Thanks
Best Regards
Dario Moutinho
Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PM
Edited by: Dario Lopes Moutinho on Jul 7, 2011 3:19 PMHi Rahul,
Your solution worked. Thank you very much.
I also did not include a stored procedure into the connection that was needed in the layout.
This could have also added to the problem (for future reference).
Best Regards
Dario -
Having trouble opening Crystal Report files from a document library
I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
I have referenced for possible solutions:
http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
Here are the steps I have done to try to get the .rpt files to open:
Added the Crystal Report extension .rpt as a MIME type
Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
Installed the 64-bit Crystal Reports runtime
I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
Thank you,
AlexWe are having the exact same issue, has anyone resolved this yet?
-
How to open Crystal Report from the SAP GUI ?
Hi experts,
We have developed some reports for our ECC 6.0 system by using Crystal Report 2008 and SAP integration kit , these reports are published to BO edge 3.1 server. To view the report, our user have to open IE and login Infoview first.
For convenience, we want to open Crystal report from SAPGUI directly without login BOE, How can we do it?
Thanks.Hi
please take a look here
Crystal Reports
Regards,
STratos -
Failed to read data from report file : Reason: Crystal Reports: Print Engin
Hi,
When we try to migrate the crystal reports from BO R2 to BO R3, some of the reports are faling with the error:
Failed to create a new Report.Reason: Failed to read data from report file C:\DOCUME~1\xxxxx.rpt. Reason: Crystal Reports: Print Engine Error
Would please someone help me in fixing the issue.
Thanks and Regards,Few quick checks to identify the cause -
1. Are you able to run report in your R2 system?
2. In XI3.1, check SIA running on which account.
3. Check the acount have sufficient rights on file system and registry.
4. What's your web server?
Give proper rights and import again. Hopefully it will resolve.
Edited by: Das on Dec 6, 2010 9:47 PM -
Unablo to open Crystal report from infoview
Hello Experts,
I have an issue while opening crystal report from BOBJ Infoview.
The report opens for some users and some users are getting this error.
" Internal error. Please contact your system administrator. [RCIRAS0216] ", the report is based on bw query and the users has access to this query,the users are able to execute other report based on same query.
Even some users who are administrator group members are getting this error.
Any help is appreciated.
Thanks
KishIt happens to only one report,but when i changed the option to "Use same database logon when report is run" in CMC, it resolved the issue.
But i was wondering why the report encountered this error for the same user for whom it was working good in the past.
Thanks,
Sai -
Open programatically Crystal Report Viewer XI from MS Access 2003
Thank you in Advance!!!
I got the following VBA code.
1) What library do I need to include to access Crystal Report Viewer XI?
2) How do I declare CRViewer11 to open Crystal Report Viewer XI and a created report?
Please look at ***???
Dim crrpt As New CRAXDRT.Report
Dim crapp As New CRAXDRT.Application
***???Problem here: Dim CRViewer11 As New CrystalActiveXReportViewer
Dim myParamField As CRAXDRT.ParameterFieldDefinition
Dim intCounterPartyId, intNoCreditLimit, intAllAccounts, intOpenTrades, intOpenFail, intOpenOver As Integer
Dim dtFirstDayOfYear As Date
Dim dblCreditUsed, dblYTDAmount As Double
Dim db As Database, rs As Recordset, strSql, strFileName, strMsg As String
Dim strAttachDir, strAttachment, strReportDir, strCrReport As String
'Set db = CurrentDb
strAttachDir = "T:\Work\"
'open crystal report(rpt)
strReportDir = "T:\Work\"
strCrReport = "TimeDetailwithData.rpt"
Set crrpt = crapp.OpenReport(strReportDir & strCrReport)
strFileName = Format(Now(), "YYYY-MM-DD-HHMM") & "-TimeDetail.rpt"
strAttachment = strAttachDir & strFileName
crrpt.DiscardSavedData
'SET PARAMETER FIELDS
Set myParamFields = crrpt.ParameterFields
For Each myParamField In myParamFields
With myParamField
Select Case .ParameterFieldName
Case "StartPeriod"
.SetCurrentValue CDate("2008-7-16")
Case "EndPeriod"
.SetCurrentValue CDate("2008-7-17")
Case "Org - Comp"
.SetCurrentValue "2WV"
Case "Org - Dpt"
.SetCurrentValue "300"
Case "Org - Fac"
.SetCurrentValue "01302"
End Select
End With
Next
crrpt.EnableParameterPrompting = False
crrpt.ExportOptions.FormatType = crEFTCrystalReport70
crrpt.ExportOptions.DestinationType = crEDTDiskFile
crrpt.ExportOptions.DiskFileName = strAttachment
crrpt.Export False
Set CRViewer11 = crapp.OpenReport(strAttachment)
***???Problem here: CRViewer11.ReportSource = strAttachment
***???Problem here: CRViewer11.ViewReportYou will have to use the Crystal Reports Report Designer Component (craxdrt.dll). Before you do however, it may be good to know that CR XI r2 is the last version of CR that includes the craxdrt.dll as this is considered to be a retired technology in CR 2008. This may impact your efforts as the life cycle of the app may be limited(?).
Here is a link to more details of the RDC lifecycle:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bd35e5-c71d-2b10-4593-d09907d95289
A bit of code help:
https://smpdl.sap-ag.de/~sapidp/012002523100006013432008E/rdc_vba.exe
A note on connecting to databases:
https://smpdl.sap-ag.de/~sapidp/012002523100006008462008E/crxir2.zip
Help file:
rdcsdk_com_dg.chm
C:Program FilesBusiness ObjectsCrystal Reports 11.5Helpen
dcsdk_com_dg_docdoc
Ludek -
Transaction Journal Report - Print Layout Design
Hi all
Is it possible to add Journal Entry Project Codes to this Transaction Journal Report (Print Layout Design)?
I tried to add Journal Entry Project Codes to this system PLD but the result still not showing any Project Code.
KedaleneHi Kedalene Chong
ou don't need a list of variables to use them. Simply go to View -> System Information so whenever you hover around a field with the cursor, in the left bottom corner of the screen you will see the details of that screen along with the variable number if it is a variable.
So you will see something like:
[Form=139 Item=29 Pane=0 Variable=91]
-> in this case the variable number is 91 - use it in Print Layout Designer.
So you can just use the variable specified in these details. When creating the print layout, just go back to your form, stand on a field with your mouse and you will see what variable to use.
Also Check with the PLD Variables Note No 867048...
Symptom
Using system variables when designing a print template for the General Ledger report.
Please note that variable numbers might change when upgrading to a higher version.
Cause
FAQ
Solution
Field Name
Variable Number
Posting Date
62
Due Date
63
Document Date
112
Series
140
Document Number
141
Transaction Number
65
Journal Voucher
66
Reference 1
67
Reference 2
68
Reference 3
69
Details
70
Transaction Code
71
Project Code
72
Costing Code
73
Offsetting Account
74
Indicator
137
Total (LC)
75
Debit (LC)
96
Credit (LC)
95
Balance (LC)
76
Total (SC)
77
Debit (SC)
98
Credit (SC)
97
Balance (SC)
78
Total (FC)
79
Debit (FC)
100
Credit (FC)
99
Balance (FC)
80
Creator
138
Internal Reconciliation
131
External Reconciliation
132
System variables from the Business Partner Master Data window available for use in the General Ledger report:
Phone
117
Fax
118
Contact Name
119
Address
120
Sales Employee
133
Remarks
134
Full Address
135
Hope Hepful
Regards
Kennedy -
Dunning Report Print Layout Issue
Hi
I have a problem with the Dunning Report Print layout (Dunning All (system)). In the wizard I select all the Invoices (Which are over due and current) for the BP and sent to printer.
In the print out all the due dates are mixed with the acctual Due dates.
Acctuall Invoices
Doc No. DOC Due Level
======================================
10000 05.11.07 2
10001 25.02.08 1
10002 03.03.08 1
10003 03.04.08 0
Print out
Doc No. DOC Due Level
======================================
10000 05.11.07 2
10001 03.03.08 1
10002 03.04.08 0
10003 25.02.08 1
How can I fix this. This is coming from the System template and we havent change anything.
Could you please help me.
Thanks
SanjayaHi
I solved the problem. But the issue was when i ran the dunning wizard the layouts messed up. For example if I had a dunning letter with 3 lines (overdue documents). The last line would copy itself 4-6 times (it would show the last document 4-6times so the total lines in the dunning letter would be 7-9 lines). But I solve the issue. Somehow the attention person (which I got from the contact persons (ocrp) and not from the document contact person (oinv) ) did the issue. When i switch it to the oinv the issue was gone.
kind regards
Søren
Edited by: Bundgaard Søren Hollænder on Jan 26, 2009 9:56 AM -
Error: Failed to open the connection when opening Crystal Report in CMC or
Hello all,
I am getting theError: Failed to open the connection when opening Crystal Report in CMC or Infoview
with access database as the datasource which is in the network drive.Hi Sonali,
This is because Crystal Reports does not recognize database connection from share drive
1. Save the database locally on server machine
2. Create a new database on server and link the new database with the database on Network.
Steps to link the database.
1.Create a new test database on server.
2. Go to File --> Get External Data --> Link tables | Select the database on Network Drive.
3. Select all the tables from the database.
4. Save the Database e.g. Test.mdb.
5. Create an ODBC Connection on server machine, with the same name as on client machine using test.mdb database.
Note: Click on Advanced button, enter the default user id and password for the odbc connection, it is not mandatory to give Login Name and Password, only if the user id and password are given then we need to provide the same user id and password in the CMC database configuration.
6. Create a report using this ODBC connection, and save the report to Enterprise.
Regards,
Navin -
Crystal report using ABAP from SAP ECC6.0 EHP 3.0
Hi Gurus,
Can i create crystal report using ABAP in SAP ECC 6.0 EHP 3 . as i am not able to see this link in SPRO.
IMG > SAP NetWeaver > Application Server > SAP List Viewer > Maintain SAP GUI Specific Settings.
Kindly guide me urgently.http://help.sap.com/saphelp_slc/helpdata/en/27/c9ee1951fc4fb9ac322ac7e6fa7372/content.htm
If I understood your question correctly.
Have a look in the link above.
It is possible to use Crystal Reports from ALV.
Tammy Powlas also has some good guides on how to do this.
The ABAP however is not covered that much.
Best Regards
Ingrid -
hi,
Now i am working in Asp.net.In this website i did one crystal report.if i have to take print from crystal report print icon .the will like some boxs will continuously appear.i attached the print image.
And one think if i will use export to pdf and then take print it will proper.
Please Help me.Ramesh, you have asked the same question in three different posts. This one, then
Crystal Report Print
and
Report
This, by definition is spamming and will get you banned from these forums. Please read and make your self familiar with the Rules of Engagement.
If this is a critical issue, you have the option of creating a phone incident here:
Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
At this time, I am locking this thread. I encourage you to continue here:
Crystal Report Print
Make sure you answer my question on that thread as well as provide the info Bhushan requested in this thread.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Crystal Report Print Out Template
Hi Dear;
How can i create or from where can i Get Crystal report print out template for sales and purchasing Documents in SBO 8.8
best regards;Link for documentation of B1 8.8
https://websmp104.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000680297&_SCENARIO=01100035870000000183&_ADDINC=011000358700002837782005E&
Thanks
Krish -
Error while opening Crystal report 2008
Hi All,
I get the following error when I try to open crystal report 2008 trial version:
"Entry Point Not Found The procedure entry point ?CanStackDump@SLogger@CXLib400@@SA_NXZ could not be located in the dynamic link library cxlibw-4-0.dll."
To over come this I tried to install crystal report 2008 SP1 but it didn't help,
even I uninstalled all Crystal report setup and tried to install Crystal report 2008 server even that didn't helped.
Kindly suggest some solution.
Thanks
Deep KulshresthaHi Deep,
Try these links:
http://boardreader.com/thread/ERROR_SvcMgr_exe_Entry_Point_Not_Found_5cb3X2r3z.html
http://www.tek-tips.com/viewthread.cfm?qid=1505754&page=11
I hope they will help.
Jesper -
How to open Crystal report 11 using the Visual c++ 6.0 code
I am using Visual c++ 6.0.I can't open crystal report X1 from my vc++ application. The same code which I have used for crystal report 7.0 is using for crystal report X1.But it shows "Unbale to load the report". Please help me out.
The code snippet I have used is given below for the reference
//m_Crystal_Image - Object of CCrystalCtrl class
//csDBFilePath - Access Database File path
//csReportFilePath - Crystal report 11 file path
m_Crystal_Image.SetReportFileName(csReportFilePath);
m_Crystal_Image.SetWindowTitle("Test Report");
m_Crystal_Image.SetDataFiles(0,csDBFilePath);
m_Crystal_Image.SetDiscardSavedData(true);
m_Crystal_Image.SetDestination(0);
m_Crystal_Image.SetWindowState(2);
m_Crystal_Image.SetAction(1);
Thanks for ur help in advance.....same as:
How can I open the crystal report X1 report from the vc++ application?
Locking thread
Ludek
Maybe you are looking for
-
Hi Friends, In file to file scenario i am getting this error. Transmitting the message to endpoint http://spcc-sappidev:50000/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.Recovera
-
Unable to deploy to Discoverer - OWB 10.2.0.2
Hi all, I'm having problems deploying anything to Discoverer with OWB 10.2.0.2 (patched). I can test the BI Discoverer location successfully, there is an empty EUL in Discoverer and I can manually create Business Areas and Item folders. However, EVER
-
My main file displays a large number of dynamically generated graphics. I have a listener to remove and then re-position the graphics if the browser is re-sized: stage.addEventListener(Event.RESIZE, stageResized) //When stage is resized, remove all c
-
Read LabVIEW shared variables ( network variables?) with VB6
Hi, i need to read some LabVIEW shared variables (network variables?) using a VB6 program. Is it possible? I think that yes, using Measurement Studio for VB6 but I don't know how and I haven't found information in the Measurement Studio for VB6 help
-
Uninstalling Premiere Pro CC on a Mac
I think I messed up big. Premiere Pro CC wasn't running properly on my Mac, so I was going to try to uninstall it. I dragged the Premiere Pro CC folder from the Applications window to the trash bin and trashed it and now the Creative Cloud software d