Report Execution in Background
Hi
Our clients wants to know if this can be done in BI
Can we execute reports automatically in background at every morning 8:30am and then automatically email then to the users?
We are on BI 7.0 version.
I think in earlier version we had something called "Reporting Agent" but now we dont have that option...So how to achieve this functionality?
Regards
Annie
Hi......
check this link :
Executing queries automatically
Regards,
Debjani..........
Edited by: Debjani Mukherjee on Sep 30, 2008 5:37 AM
Edited by: Debjani Mukherjee on Sep 30, 2008 5:38 AM
Similar Messages
-
COPA Report - Execution in Background
Friends,
We have a COPA report that takes very long time to execute. For this reason the user wants to schedule the report such that it executes in the background at month-end.
In order to test the scheduling of the report execution in background in Development system, I followed the following steps:
1) Selected the report to be executed using the t-code KE30.
2) Clicked on Report - Execute in background.
3) Filled in the execution parameters and since I did not want the print of the report, I ticked the checkbox 'Rebuild frozen report data' (I was getting the error message "Select either 'Print' or 'Save'".
4) Executed the report by pressing F8. I got the message 'Report data for the report saved'.
My question is how to view the report on screen when the report is executed in background?
Please advise at the earliest.
Thanks & Regards,
Sameer S. Gupte
Office: +91 22 66452730
Cell: +91 93232747801Sameer
You cannot see this data as it is.
When you see the message 'Report data for the report saved'. It means that the system has performed a kind of summarization for the selection criteria you have entered. This is performance enhancement tool.
So you have to run the report again to view this report; but this time choose the option Read saved Data for the Read Mode under Status of Data. You can get to the see report output fairly quick.
SAP documnetation reads thus " <b>You create report-specific frozen report data by executing the report in the background and by choosing the Rebuild frozen report data option in the selection. When you call up the report again using the same selection, you have the option of displaying this frozen report data. If you would like more up-to-date frozen report data, you need to create this data again."</b>
Good luck.
Sridhar -
Report Execution in background at user command.
Hi,
I want my program to run in background when the user selects a checkbox to run the program in background. can you please tell how to execute the program in background?
regards,
ravi.Hi Ravi,
Follow below logic.
If check box is selected
AND sy-batch IS INITIAL. "Means currently u r running report in foreground
CALL FUNCTION JOB_OPEN.
SUBMIT ur program using SUBMIT statement.
CALL FUNCTION JOB_CLOSE.
ELSE.
Normal processing.
ENDIF.
Thanks,
Vinod. -
How to Run a Report automatically in Background for every night
Hi,
How to run a report program in Background automatically for every nigh.
Thanks
RameshHi Ramesh,
You can use SM36 and use the "Job Wizard" to define a background job in simple step by step procedure
Or
Goto SM37 and specify a job name.
Next specify the ABAP Program Name of the report you want to execute under Job Step.
Then click on "Extended Job Selection" and goto the Period Tab.
There select "Only Periodic Jobs" and then specify the frequency of execution based on Months, Weeks, Days, Hours or Minutes.
Hope this helps,
Regards,
Madhur
Message was edited by: Madhur Chopra -
Why do I get a status of 'waiting' when I run a report in the background
Happy new Year Experts!!
I am working with Ad-hoc query and I run reports in the background. When I go to System > Own Spool Requests the status is always waiting. When I go to SM37 the status is complete. I can open the report from my own spools requests and it is completed.
Thanks.
Regards,
JeanetteGo to SM36-> Own jobs - double click the job - Select Edit-Steps - DOuble click the step and check print specifications.
Moreover, if you wanna make the job printed on finish, make sure that there is a default printer defined in SU3 - Defaults - Output device field.
Regards,
Dilek -
SUBMIT REPORT AS A BACKGROUND JOB
Hi all,
I am executing one report in foreground in that report i want to submit one report which should be executed in background only. how it is possible to execute 2nd report in <b>background mode</b> only.
Regards
deepakThis is the Basic code to Achieve that.
Call Function 'JOB_OPEN'
SUBMIT RSBDCBTC
via background Job <Job info>
With QIE = <QID Returned by BDC_OPEN_Group FM>
AND RETURN.
Call Function 'JOB_CLOSE'
2) Also go through this
DATA: lv_job_name LIKE tbtco-jobname,
lv_job_nr LIKE tbtco-jobcount,
lv_job_released TYPE c,
lv_job_start_sofort TYPE c,
lv_print_parameters TYPE pri_params.
lv_job_name = 'Z_BGPROGRAM'.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_job_name
IMPORTING
jobcount = lv_job_nr
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF syst-subrc = 0.
" submit job with all the selection screen params...
SUBMIT (lv_job_name)
WITH applfile = applfile " these are the parameters of the background program
WITH p_lines = p_lines
USER syst-uname " you must use this
VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_job_nr
jobname = lv_job_name
strtimmed = 'X'
IMPORTING
job_was_released = lv_job_released
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF syst-subrc <> 0.
MESSAGE i162(00) WITH
'An error occured while closing the background job.'.
STOP.
ENDIF.
ENDIF.
ENDIF.
SKIP 1.
WRITE: / 'Background process', lv_job_name , 'called successfully' NO-GAP.
WRITE: / 'You can check the job in transaction SM37'.
Thanks -
Schedule measurement in SE30 - running a report in the background
Dear experts,
I have a long running ABAP report and I will need to analyze its runtime for performance improvements.
How may I correctly run this ABAP report in the background from SE30 (runtime analysis tool)? The report has to be run using a specific variant for its selection screen inputs as well.
This is what I have done:
1. Go to SE30
2. Click on "For User/Service" button under "Schedule"
3. Create new Schedule Measurement with the following details:-
- User (<my user name>),
- Client (<properly specified>),
- External Session (Any),
- Processing Category (Background Processing),
- Object Type (Report),
- Object Name (<ABAP report program name>),
- Max. No. of Scheduled Measurements (1),
- Expiration Date & Time (<properly specified>)
5. In the screen "Overview of Scheduled Measurements", I have the following displayed as well:-
- Scheduled = 1
- Started = 0
- Errors = 0
- Status = Being processed
Am I still on the right track here? (Started = 0 and there was no way I could specify the variant for the selection screen input values too)
Please help. Appreciate any inputs at all.
Thanks.Hi,
you can try it with ST12 and the <ALL Servers> Option for tasktype B.
see this blog:
/people/hermann.gahm/blog/2010/03/22/st12-150-tracing-user-requests-tasks-http
ST12 uses SE30 / ST05 behind the covers. But here you can switch on
the trace for all servers and therefore don't have to take care for that yourself.
Kind regards,
Hermann -
Run the Report as a Background job and Get the Output in Excel in Local PC
Hello Gurus,
I have one following requirement.
One should be able to run the report as a background job and it should be possible to get the report in Excel format, also when running the report in background. The excel report should have the same information and look as the current SAPreport.
Please provide some solution.
Any helpful answer get surely awarded.
Thanks a lot,
VarlanirGUI_* WS_* Function In Background, CSV Upload
GUI_* and WS_* function modules do not work in background
When scheduling a job in the background the appropriate statement to read in your file is OPEN DATASET, and the file must be on the file system that the SAP server can see.
At anytime, a user can switch of the Personal Computers even though the job is still running in the background. Therefore GUI_* and WS_* function modules are not designed to work in that way, as they need to access your personal computer file.
To choose the correct download method to used, you can check the value of SY-BATCH in your code,
if it is 'X' use OPEN DATASET and if it is ' ' use WS_UPLOAD.
*-- Open dataset for reading
DATA:
dsn(20) VALUE '/usr/test.dat',
rec(80).
OPEN DATASET dsn FOR INPUT IN TEXT MODE.
IF sy-subrc = 0.
DO.
READ DATASET dsn INTO rec.
IF sy-subrc <> 0.
EXIT.
ELSE.
WRITE / rec.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET dsn.
*-- Open dataset for writing
DATA rec(80).
OPEN DATASET dsn FOR OUTPUT IN TEXT MODE.
TRANSFER rec TO '/usr/test.dat'.
CLOSE DATASET dsn.
What is the difference when we use upload, ws_upload, gui_upload function modules?
UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts. ie., Batch Data Communication.
Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3. So , in these various Function Modules are used.
UPLOAD--- upload a file to the presentation server (PC)
WS_UPLOAD---- Load Files from the Presentation Server to Internal ABAP Tables.
WS means Work Station.
This is used upto SAP 4.6 version.
GUI_UPLOAD------- Replaces WS_UPLOAD. Upoad file from presentation server to the app server. From 4.7 SAP version it is replaced.
How to Upload csv file to SAP?
Common File Download Upload Questions:
How you upload the data from text file to sap internal table? From my knowledge its by upload or gui_upload.
How you download the data from sap internal table to text file?
How you upload the data from xls (excel) file to sap internal table how you download the data from sap internal table to xls(excel) file.
You can upload data from presentation server to an internal table using gui_upload. Use gui_download to download from internal table to flat file.
Use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload data frm excel.
Use function module GUI_UPLOAD
The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\test.csv'
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17. -
Creation of Spool for a Report Output in background.
Hi Gurus,
I am working on a Report and my requirement is that a Spool should be Generated for the Report Output in background. Instead of generating the spool manually, I need it to be generated in background.
Please let me know ASAP.
Regards,
Amit.Get print parameters using 'GET_PRINT_PARAMETERS'.
DATA : rep LIKE pri_params-plist,
w_title TYPE tsp01-rqtitle,
mstr_print_parms LIKE pri_params.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING destination = 'LP01'
copies = 1
list_name = rep
list_text = w_title
immediately = 'X'
release = 'X'
new_list_id = 'X'
expiration = 1
line_size = 132
line_count = 65
layout = 'X_65_132'
sap_cover_page = 'X'
cover_page = ' '
receiver = sy-uname
department = 'System'
no_dialog = 'X'
IMPORTING out_parameters = mstr_print_parms
valid = mc_valid.
and then use submit statement-
SUBMIT
zp1012_ar_rep_vendstat
TO SAP-SPOOL
WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS mstr_print_parms
WITH s_lifnr IN s_lifnr
WITH p_bukrs eq p_bukrs
WITH s_gjahr eq p_gjahr SIGN 'I'
WITH s_monat BETWEEN p_per-low AND p_per-high SIGN 'I'
AND RETURN.
COMMIT WORK.
Regards,
Aparna Gaikwad -
Discrepancy in report execution duration
Hello,
Everyday we are executing audit reports which tells us report execution time for all our daily scheduled reports. Here we have observed some discrepancy between the time shown in the instance history verses auditing report's data. For example, if XYZ report took 120 seconds to execute, our auditing report shows 110 seconds only (-10 sec difference); however instance status in report history shows 120 sec only.
Here are environment details:
Product: SAP BI 4.0 SP6 Patch 6
Server OS: Windows Server 2008 R2
CMS DB: Oracle 11g R2
Auditing DB: Oracle 11g R2
We would like to know why there is a difference? Please advise!
Regards,
Daya JhaIssue resolved after doing multiple activity.
- Adding 2 new cluster in PRD environment, After refering Server sizing Guide from SAP
- Adding 4 new Web Intelligence Processing Server in PRD environment
- Assign Static port in all 4 Nodes, Previously it was Dynamic Ports
- Proper spiliting of APS as per SAP APS Sliting KBA (1792286 ,1694041)
- Change Maximum Connection Paremeter in Web Intelligence Processing Server, Because we have more Web Intelligence Business user to view the Web Intelligence reports.By Default SAP provided 50 Connections.
- Change in Tomcat Parameters like
Parameter Old Value New Value
XX:MaxPermSize 384 M 512 M
Maximum Memory 2,048 4,096
maxThreads 200 900
Thanks,
Daya -
Reporting Services R2 log entries have stopped generating on report execution.
Hi -
I have a new instance of a reporting server and the log files have quit generating on report execution.
When the services restart this is the log file:
rshost!rshost!8e8!01/22/2014-17:08:33:: i INFO: CLR runtime is initialized.
rshost!rshost!8e8!01/22/2014-17:08:33:: i INFO: Derived memory configuration based on physical memory as 3931704 KB
rshost!rshost!8e8!01/22/2014-17:08:33:: w WARN: Failed to initialize performance counters: ffffffff. Possible setup issue.
rshost!rshost!8e8!01/22/2014-17:08:33:: e ERROR: Failed to start service, error=1063.
We have logging turned on on the server. Report Server Mode is Native. Dont see anything in the application log about failed service.
Any ideas?Hi dwrco,
Have you recently install any update such as MS12-070 (KB2716440)? If so, it is a known issue for some patches for SQL Server. The reason is as follows:
When a .NET application starts up, the .NET Framework tries to check if the Microsoft assemblies are right and have not been modified, this is done through connecting to a server that has a revocation list in internet. When the framework tries to connect
to the server to check if it has access to internet with an elevated timeout, this makes that any other .NET application that has less timeout setting fails (such as SSIS or SSRS) with timeout error.
For example, the error message "The request failed or the service did not respond in a timely fashion." means that the SSRS timeout is lower than the timeout of the connection to the revoke list server established by .NET Framework.
To work around the issue, we usually use two approaches:
Increase the value of ServicesPipeTimeout registry key of Reporting Services
Disable generatePublisherEvidence element of ReportingServicesService.exe.config file
For the detailed steps, please see:
http://blogs.msdn.com/b/mariae/archive/2012/11/12/reporting-services-service-doesn-t-start-after-the-installation-of-ms12-070-security-patch.aspx
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
Store z-table (during an report execution) in a BW system
Is there a way (and how- an example) to store z-table (during an report execution) in a BW system. We would not like Ztables to reside in R/3
Thank you in advanceIs there a way (and how- an example) to store z-table (during an report execution) in a BW system. We would not like Ztables to reside in R/3
Thank you in advance -
Oracle Apps - How to create a table before report execution?
Hi,
I'm new to oracle apps, I created a procedure to get some values for a report and created a query to get the remaining values. Now I need to populate those values into a temporary table and after the report execution I have to delete the table. In apps there is no before parameter form. If any one can help me, that will great.
Thanks in advance.Hi,
Do you really need to create a table INSIDE the report? It doesn't look like a good idea to me. For instance, what happens if 2 users try to execute the report at the same time? I would create a global temporary table before any execution of the report, and then I would just populate the data in the table in the 'Before Report' trigger. The data in a global temporary table is only visible at session level, so you wouldn't have any problems with multiple users executing the report at the same time and the data disappears once you finish your session, so you don't need to take care of deleting the data.
Hope it helps. -
Report execution time should displayed in Local Time
Hi,
I have a query related to the Report execution time.
Our SAP Servers are available in US. The Servers are configured in US Time.
We have developed a Z report and used SY-UZEIT to display the Report Run Time.
we also have a plant in India.
When we execute this report for India Plant we are getting the execution run time for US.
But we need to get the run time in India Time.
Please help ASAP.
Regards,
ShankarHi Shankaran,
In your Z report, give a condition to check if the Plant is in India. If it is in india, then get SY-UZEIT and add the time difference to get IST.
Display this time on your report.
For implementing this, you will have to convert the Date and Time into Timestamp (use FM "LXHME_TIMESTAMP_CONVERT_INTO"), add the Time to this Time stamp (use FM "TIMESTAMP_DURATION_ADD" and convert it back to Date and Time (use FM "LXHME_TIMESTAMP_CONVERT_FROM").
Reward points if useful.
regards,
Raj
Message was edited by: Rajagopal G -
Report Execution time in NQQuery.log should be display in Milliseconds
Report Execution time in NQQuery.log should be display in Milliseconds.
For Example :
--- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds)
Can we see the logical Query Summary Stats in milliseconds?
If so Where should i cofigure to populate this.No. If you query comes in less that 1 second then you got nothing to worry about. I haven't seen a single DWH where users would worry about queries returning in milliseconds.
Maybe you are looking for
-
How do you add captions to pictures
Some of my pictures have caption and some do not. How do I add missing captions?
-
HeartbeatMonitorListener fails
I get this exception when weblogic starts up and connects to the queue. I think i am getting the problem as i don't have license for jms cluster. It doesn't help even when i turn off "Replicate JNDI name on cluster" opti
-
Every time I run my project, I get something like the following output in the Debugger Console: \[Session started at 2010-07-29 00:06:57 -0700.] GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May 5 04:36:56 UTC 2010) Copyright 2004 Free Softwa
-
Copy items from SD order to CS order
Hello all, I'm implementing a sales process with CS order generated automatically from SD order. I'm already able to generate the CS order automatically when the SD order is saved. My questions is how can I defined that the materials from the SD orde
-
Hello everyone, I'm interested to know if any one know of or purchase the JVC GY-HD100 camera. I'm looking in to buy one but I need to know if I would have any problems editing the footages in FCP 4. Thank you for your reply Sabrina