Run Crystal Reports in background on event from asp
How would I run a Crystal Report file in the background after an onClick event from an ASP web page?
Are there any code samples of how this can be configured?
I have Crystal Reports Server 2008 and Crystal Reports 2008.
See if the solution in [this|Re: CR2010 Production Release; thread will help.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]
Similar Messages
-
Running Crystal Reports in background mode
Ist there any way to run Crystal Reports against R/3 (ECC) in background mode instead of as a dialog user? We're having timeout issues since the dialog timeout is set to 30 minutes. We have several reports that run quite a bit longer than that.
Update: I just answered my own question. Pages 58-59 of the install and configuration guide shows you how to do this.
Edited by: Mike Garrett on Jan 22, 2009 4:57 PM
Edited by: Mike Garrett on Jan 22, 2009 8:41 PMHi,
SIA should be all you need because it is starting the other processes as well. Keep in mind that if you do that that most likely all you reports will run in batch mode (also those called on demand.)
Ingo -
Run crystal report 2008 with cmc event
it is possible to run the report only when i have some new record in a table ?
or a new file in the disk ?
i created one event in cmc but when i tried to schedule i don't have the option "with events"
any help ?
Thanks
RicardoEvents can be based on a new file, and reports can be scheduled to wait for the event. However, you do need to use the "with events" scheduling option in order to do so. I don't know why you would not have that option (unless, maybe, if the event that you defined wasn't saved - i.e. no events - and/or you don't have an event server running).
One thing on events, though, is that they work in conjunction with the scheduled time of the report. The report has to pass the schedule time, THEN the event has to be triggered before the report will run. Once triggered, a new or recurring schedule must evoke the report again before it will start watching for the event. So, in other words, I don't believe that you can have a report triggered solely by an event.
HTH,
Carl -
When deleting running crystal report from BOE CMC, it leaves Oracle thread?
hi, Yesterday, we discovered an anomaly. From BOE's CMC, I deleted a running Crystal Report instance. I believed that this would "cancel" the running report. However, later, it produced a message. It apparently kept on running in Oracle until it finished.
My question: when I delete a job from BOE's CMC, what else must we do to cancel it from continuing in Oracle? Apparently, it continued to be a "thread" in Oracle.
What additional steps should I take or are there any setup steps? Thank you.
Our BOE version (copied from the CMC about screen) is: Product: 12.1.0 © 2008 Business Objects (or Product Version: 12.2.0.290).
Thank you,
DeanI'd just been trying instructions in SAP note: 1407795 when this reply came through.... I can confirm this worked for me.
The error codes I found in the Windows Event viewer, both yesterday and today are listen below:
RCIRAS0240
RCIRAS0622
RCIRAS0567
RCIRAS0244
The issues that are described in this post and the ones I have seen first-hand when the screen hangs when viewing this report on-demand, or the report running for a longer than expected time when scheduled, are covered by the above error codes.
A known cause of the issues you are experiencing is that when these particular reports were created, a network printer was specified as the default printer, this printer may now either be unavailable, IP address may have changed, etc.
There do seem to be two options available:
Option 1 - Remove the printer driver dependency
Open this report in the Crystal Reports Designer.
Under the File menu, click on Page Setup.
Select the No Printer option.
Option 2 - Add or correct the printer that the report is designed with
Open the Report in the Crystal Reports Designer
Under the File menu, click on Page Setup
Make not of the printer that is listed in the Page Setup dialog
Log on to the BusinessObjects Enterprise Server that houses the Crystal Reports Processing Servers.
Make sure you log in as the user account that runs the Crystal Reports services. This is generally the account that runs the Service Intelligence Agent (SIA)
Go to Control Panel and click on Printers
Ensure that the same printer is configured on the server that is used in the Crystal Report
In the printer already exists, try removing it and re-adding it. -
Error while running Crystal Reports from application
Hi,
I am getting the below error when I try to run Crystal Reports from my application.
There are no Page Servers connected to the Cache Server or all connected Page Servers are disabled or all connected Page Servers are not part of the specified server group. Please try to reconnect later.
I am able to preview the reports in CMC and Infoview, but when I try to run the same report via my application the above error pops up.
Sometimes I get a different error:
The Page Server you are trying to connect to is not accessible. Please contact your system administrator.
Looks like some configuration settings are missing/ corrupted.
I tried to look in a number of websites... tried few workarounds, but none seems to be working.
Any help is highly appreciated.
Meena
Edited by: meenakshitikoo1 on Apr 19, 2011 12:46 PMCheck the following SAP note
https://service.sap.com/sap/support/notes/1032461
Regards,
Stratos -
Unable to run Crystal Report due to error code called "database code:102
I have created a View on the SQL server and Now I am trying to run crystal report using that view. However, I get Database Vendor Code error message 102. Need your help, How can I ran a report using SQL veiws in Crystal?
thanks!
MansoorHi,
The report is getting an error code 102 from the database driver.Try with searching the RDBMs type for error code 102, to narrow down the issue.
If data from database is failed to retrieve then,there are several causes of this error like disconnected tables, tables that are not connected properly.
Run your query in SQLcon32 and check that getting accurate output or not.
Regards,
Shweta -
To run a report in background in selection screen using a new button
hi friends iam new member to this site
nice to meet u all
i want to run a report in background using the selection screen of the same report and i want to keep a button in application tool bar.
after enter the values in the selection screen by clicking that button it should move to the screen which we get generally by menu option
program-->execute in background
and by entering the output device and start condition it should be scheduled in the background.
with job_open,job_submit and job_close we need variants.
for this i tried through bp_jobvariant_schedule and
bp_jobvariant_overview but with this we can run with variants only
but the user wants to enter the values in selection screen and need a button to run background
ok friends i think u understood me
please inform soon ok bye have a nice timeHi Jagadish
There are two ways for you to handle the situation.
1. Train the users to enter the values in selection screen and manually go for backgroung scheduling.
2. Use At user command and within that basing on the option selection selected, use FM:JOB_OPEN with sy-repid get the job number, submit the program with the values on the selection screen and lastly executing FM: JOB_CLOSE with the job number from JOB_OPEN and SY-REPID.
Note that you have to set 'X' for export parameter something like startimmed while calling FM: JOB_CLOSE for immediate execution. Am not on SAP to give you the exact parameter.
Hope the above info helps you.
Kind Regards
Eswar -
Issues in running crystal reports 2013 with SOQL as a datasource
Hi Experts,
We have some crystal reports created in CR 2008 with command as a data source and all the commands are written in SOQL pulling data from SFDC, now when I open and run those reports in crystal report designer 2013 it is giving below errors:
Failed to retrieve data from the database.
Details: 42S22:[Simba][SQLEngine] (31400) Qualified column could not be bound: c.Investor__r.Relationship_Formula__c. [Database Vendor Code: 31400 ]
Failed to retrieve data from the database.
Details: 42S22:[Simba][SQLEngine] (31400) Qualified column could not be bound: k.Account_Relationship__r.PE_Priority__c. [Database Vendor Code: 31400 ]
We are running crystal reports in both the version with system admin user who has access to all the objects in SFDC. It works well for CR 2008 but not for CR 2013, means relationship is not an issue.
We have done some analysis and found that if the field in query contains two periods (.) it is not recognising that field, if we remove that field from query, CR 2013 takes that as a valid statement.
Any help or suggestions on this issue would be a great help.
Regards,
ApoorvHi Apporv
Please check your database documentation for error 31400.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
CNTL_ERROR while running a report in background mode
Hi,
I am running a report in background on daily basis. I am using cl_gui_custom_container class here and calling the constructor of this class. I am getting a CNTL_ERROR exception at this point. But if i run the same report directly, it is not throwing any exception. The problem is if i schedule it to background. I am not able to sort it out. So please if any body knows, answer this.
Thanks,
KumarHi Nithin,
I was facing the similar issue in a custom report program. I did apply the logic that you'd mentioned.
I've implemented the code as below.
IF gr_container IS INITIAL.
*** Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
* Run in foreground
CREATE OBJECT gr_container
EXPORTING
container_name = 'WORK_AREA_CONTAINER'.
CREATE OBJECT lv_grid
EXPORTING I_PARENT = gr_container.
ELSE.
* Run in background
CREATE OBJECT lv_grid
EXPORTING
I_PARENT = gr_dockcontainer.
ENDIF.
ENDIF.
i_parent_control = gr_dockcontainer.
CREATE OBJECT m_base_splitter
EXPORTING
parent = i_parent_control
ROWS = 1
columns = 2
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
CALL METHOD m_base_splitter->get_container
EXPORTING
row = 1
column = 2
RECEIVING
container = m_splitter_right_part
EXCEPTIONS
OTHERS = 1.
After I've implemented the above code I'm getting the following error in the batch job:
Category ABAP Programming Error
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED
Except. CX_SY_REF_IS_INITIAL
You attempted to use a 'NULL' object reference (points to 'nothing')
access a component (variable: "M_BASE_SPLITTER").
An object reference must point to an object (an instance of a class)
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using the
CLEAR statement.
Would you be able to help me in the above issue? -
Error when running crystal report
i saw the error in log file 'Only TrueType fonts are supported. This is not a TrueType font' and 'Error while running Crystal report'
Help me to fix this problem.Thanks inadvanced.
I used some software developed in vb6.It changed some system font when running :D.
i want to run both that soft and sap.Hi,
Please refer to the link, [Re: CR XI R2, Crystal Report Viewer Opentype Font not supported|Re: CR XI R2, Crystal Report Viewer Opentype Font not supported].
What is the version of your crystal report, we will try to apply some service packs.
Regards,
Clint -
Crystal report : Export to Text format from BI Launch pad
Hi,
We are facing issue in exporting the Crystal report to text format option from BI Launch pad view mode. Currently BI launch pad doesn’t support export to Text format option for crystal report in view mode. But export to text format option is feasible in schedule mode. But customer is not interested in exporting the reports through schedule mode.
Please advise, if we have any alternative way of exporting the crystal report to text format option from BI Launch pad.
Thanks,
Chinnu AHi Chinnu,
The question is better suited to be asked in the BI Platform space.
-Abhilash -
Authorization object for running a report in background
Good day experts,
I tried running a report in background, I choose immediately so that it doesn't have to be scheduled. But when I checked it in my own jobs, It remains at scheduled status. When I tried it on my admin account, It works and with status finished. It seems to be an authorization problem. What object could I be missing with my user account? I tried S_TCODE SMX and SP02 but still not working.
Thanks in advance!Hi karshbax,
What you're looking for is authorization object S_BTCH_JOB. You need authorization for field JOBACTION = RELE.
In future use transaction SU53. It shows last error authorization error, so if this is authorization problem then after try of manual releasing of job you'll find in SU53 precise info what went wrong.
Best Regards
Marcin Cholewczuk -
Error While running crystal report
Dear All,
i have some crystal reports in SAP.while opening any crystal report its through some error like "Error While running crystal report ".
Kindly suggested me how to do this .
Thanks&Regards,
P.PratapHi All,
Thanks for your reply,
already i close this Issue.
they have one addon for crysatl report .so it show error like Error while Running crystal report
thanks&Reagrds,
P.Pratap -
Is it possible to run ALV report in background if Yes how?
is it possible to run ALV report in background if Yes how?
Hi,
Why not?Through se38 only you create ALV report. there you can give your report name and go to program on menu bar - click - execute buton- click-Background . You will get new screen there you can choose Execute immediate or schedule.
<REMOVED BY MODERATOR>
Cheers,
Chandra Sekhar.
Edited by: Alvaro Tejada Galindo on Mar 4, 2008 2:12 PM -
How run a report in background process ?
Hi Experts,
I wrote a code in which I am have multiple selection screens....means in first screen there will 3 radio buttons.
So, depending upon the radio button selected, the other selction screen will be displayed...
So, here i want to run a report in background process...But in menubar im not able to find 'program'.
So, please help me this to run my report in background process.. with any simple code...
Thanks,
Rocky.Hi,
Try to see this example and adapt it for your case:
constants : c_jobname like tbtcjob-jobname value 'ZRFC_CM_38',
c_jobclass like tbtcjob-jobclass value 'A',
c_x type c value 'X',
c_msgclass type arbgb value 'ZXXXSD',
c_error type bapi_mtype value 'E',
c_status type bapi_mtype value 'S',
c_msg1 type msgnr value '177',
c_msg2 type msgnr value '178'.
data : v_jobcount like tbtcjob-jobcount.
ranges:
r_auart for vbak-auart,
r_wbstk for vbuk-wbstk,
r_mtart for mara-mtart,
r_reswk for ekko-reswk,
r_vtweg for vbak-vtweg.
call function 'JOB_OPEN'
exporting
jobname = c_jobname
importing
jobcount = v_jobcount
exceptions
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
others = 4.
if sy-subrc = 0.
Assignment of Ranges
append lines of:
distribution_channel to r_vtweg,
order_type_range to r_auart,
status_range to r_wbstk,
material_type_range to r_mtart,
plant_range to r_reswk.
Submit program in background
submit z_beve_salesorder_list
with p_spart = division
with p_file = file_name
with p_land1 = country
with s_vtweg in r_vtweg
with s_auart in r_auart
with s_wbstk in r_wbstk
with s_mtart in r_mtart
with s_reswk in r_reswk
via job c_jobname
number v_jobcount
and return.
Close the Job
call function 'JOB_CLOSE'
exporting
jobcount = v_jobcount
jobname = c_jobname
strtimmed = c_x
exceptions
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
others = 9.
if sy-subrc = 0.
Status Message
return-type = c_status.
message id c_msgclass
type c_status
number c_msg1
into return-message
with c_jobname
sy-datum
sy-uzeit.
else.
Error Message
return-type = c_error.
message id c_msgclass
type c_error
number c_msg2
into return-message
with c_jobname.
endif.
endif.
Regards.
Maybe you are looking for
-
How do I print from HP Connect Photo
I've been looking for an app or program which will permit me to select a photo from my album and print it. I have just downloaded HP Connect and Photo OK but I cannot get past the opening page. According to the video, there should be a place where I
-
I have found Adware.Adpopup on my Mac. How can I get rid of it?
Two days ago every time I open Safari I am getting heaps of adds and pages opening when I click on anything; In addition, I noticed that a lot of the words now are blue with two lines under them and they are ads. My Anti-virus has detected Adware.A
-
PO value limits - approval limits local vs standard
Hi Experts, I have the following problem: for reporting purposes I need to identify an user approval limit. Looking in the organizational structure --> extended attributes --> Po value limits I find two values: - Standard values - Approval limit; - L
-
I have been trying to change the password for MyBT. But when I enter the new password and hit "save" on the change password screen it just redirects me back to the change password screen, with not confirmation or error messages. When I try to log bac
-
Itunes only imports some of my songs
When I drag my library from my music folder into my iTunes library, only 401 of my songs get imported into iTunes. Why is this happening and how can I get all of my music into iTunes so I can synch my iPod?