Schedule query
Hi,
is it possible to schedule a query in Bex 3.x? I mean, I'd like to perform a query each night at 9.00 pm with the value 001.2011:012_2011 for the madatory parameter 0fiscper and, the result of the query would be saved in c:\temp.
How can I do this?
Thanks a lot in advance.
Regards.
Hi,
You can acheive this using BEx Information Broadcasting wherein you can broadcast your Query,Web Template,Reports and workbooks(this is through Precalc Server).You Broadcast the report through Broadcast EMail option and you can schedule it to send automatically to the users.
Their are some steps which you can follow
Step1
Create and save a workbook
Step2
Open the created workbook in the in the Bex Analyzer
Step3
Go to Bex Analysis Toolbox and click on Tools button
Step4
Login to the IB page to create settings
Step5
Create a new setting by giving the appropriate e-mail id
Step6
In the Texts tab give the subject and Text
Step5
Provide the variable and server details
Step6
Click on schedule and give appropriate date and time.
Thanks,
Similar Messages
-
Configuring Scheduled query in query manager
Im trying to configure a scheduled query, and i have an error. If you could help me about it ill apreciate it
Hi Theodor,
I upgraded to 8.82 PL04 yesterday and I still can't get the report to execute. The email gets sent, but the attachment never comes with the email. This is the result from the log file:
Looking for first schedule to be executed before/on 20120416 14:28
Found Scheduled Report ID: 4
Added SRA2 entry
Handling schedule
XML configuration sent to SAP Business One Client:
<?xml version="1.0" encoding="UTF-16"?>
<SR>
<R D="20120416" T="1428" O="N">4</R>
<L S="SAPB1SERVER" T="6" C="SBO_IEC_Production" LL="2" CU="RRehman" CP="6F5F4783DEBD49B16834D4635E93AA8B8092959226ABDE385763" LS="sapb1server:30000" LC="3"/>
</SR>
Starting SAP Business One Client with configuration written to its stdin
Timeout set to 5 minutes
*** SAP Business One Client Log ***
Command line parsed
StatusBar Success Message: This use of the software is subject to the End User License Agreement (EULA)
StatusBar Success Message: No recurring transactions require posting today
Client and server dates match, 20120416
Starting Scheduled Report: Query
Error #-10 encountered
Executing XSLT transformation
XML Input is Empty
adding: BusinessOneb1loggerPid5552_20120416142820.Pid5552 (188 bytes security) (deflated 79%)
*** SAP Business One Client Log ***
SAP Business One Client return code:0
Distributing results
Unable to extract HTML report output to file C:\Windows\TEMP\Report.html
Unable to extract PDF report output to file C:\Windows\TEMP\Report.pdf
Unable to extract XML report output to file C:\Windows\TEMP\Report.xml
SMTP Server: 172.160.2.3:25
Sender Email: SAP Server<Server email address>
Sending email to <my email address>
Schedule processed
The only other thing that I can think off, is that the printer I have linked with my report in the Print Layout Designer is a network printer, as opposed to a physical printer. Could that have something to do with it?
Reza -
How to schedule Query Extracts using RSCRM_BAPI
Hi,
Can you give me the link to the document How to schedule Query Extracts using RSCRM_BAPI . I do not have userid password to view the same.
Thanks for the help.Hi,
this is the link for the document..
https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
thnks. -
Hi
I have a daily job, that runs several Warehouse Builder processes, scheduled to run at 2am each day. Normally this should complete by 9am, however if there are any performance issues, there is risk that the job may still be running at 2am the following day.
If this situation occurs, would the first job which started on a Monday 2am still carry on running until complete and then start the Tuesday job (even if later than Tuesday 2am). Or would the Monday job be killed on Tuesday 2am, and then the Tuesday 2am job start?
I realise I could create a window, however since the OWB processes will carry on running in the background, I do want all jobs to complete before moving onto the following day.
Can anyone help with this please?
Thanks
GBHello Mark...
Amer is right. You can create a broadcast setting to daily sends your
query as MHTML format.
You can send to your e-mail but there is a possibility to save on KM and CM repository.
There is a little explanation on the link below:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5c6b686a-0901-0010-8aab-c4d0e5a093a7?quicklink=index&overridelayout=true
To create a broadcast setting, open the query via Query Designer.
Click "Query" -> "Publish" -> "BEx Broadcaster"
While you are creating the broadcast, there is a "Output Format" option.
There is MHTML.
I hope you find this information useful.
Thanks
Edward -
Dear Experts
Please let me know how can to cinfigure scheduler on query reports in 8.81?
Thanks in Advance
Regards
Kanishka TyagiHi Kanishka ,
You can schedule the query by using Alert Management
You have to set a alert based upon that query
and have to set the frequency (may be Hours / Day / week / Months)
on a specified Time .
Hope it Helps
Thanks
Ashish -
I'm looking for the table that houses the evaluation schedule for my ADRs. I found the table that tells me what the last status was but not the schedule itself. I'm trying to create a report so I can have a secondary person look at the report to make sure
we didnt miss one of our many ADRs that has to be updated monthly for our patching prcoess.Hi,
Hope the following thread could give you a clue.
http://social.technet.microsoft.com/Forums/en-US/769e8201-18cb-4110-b990-190cbaf996bb/query-to-find-collection-update-schedules?forum=configmanagergeneral
Best Regards,
Joyce Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Purpose of scheduler$ query.
Hi,
I noticed that the following query is being captured in my AWR.Can anyone please tell me what is this query for??
select decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time), a.obj#, decode(bitand(a.flags, 16384), 0, 0, 1), a.sch_job from (select p.obj# obj#, p.flags flags, p.next_run_date next_run_date, p.job_status job_status, p.class_oid class_oid, p.last_enabled_time last_enabled_time, p.instance_id instance_id, 1 sch_job from sys.scheduler$_job p UNION ALL select q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid, q.last_enabled_time, q.instance_id, 1 from sys.scheduler$_lightweight_job q UNION ALL select j.job, 0, from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), 1, NULL, from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), NULL, 0 from sys.job$ j where (:1 = 1) and (j.field1 is null or j.field1 = 0) and j.job not in (select v.id2 from v$lock v where v.type = 'JQ')) a where bitand(a.job_status, 3) = 1 and ((bitand(a.flags, 134217728 + 268435456) = 0) or (bitand(a.job_status, 1024) <> 0)) and bitand(a.flags, 4096) = 0 and a.instance_id is NULL and (a.class_oid is null or (a.class_oid is not null and a.class_oid in (select b.obj# from sys.scheduler$_class b where b.affinity is null))) and decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) = (select min(decode(bitand(c.flags, 16384), 0, c.next_run_date, c.last_enabled_time)) from (select r.flags flags, r.next_run_date next_run_date, r.job_status job_status, r.class_oid class_oid, r.last_enabled_time last_enabled_time, r.instance_id instance_id from sys.scheduler$_job r UNION ALL select s.flags, s.next_run_date, s.job_status, s.class_oid, s.last_enabled_time, s.instance_id from sys.scheduler$_lightweight_job s UNION ALL select 0, from_tz(cast(k.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), 1, NULL, from_tz(cast(k.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), NULL from sys.job$ k where (:2 = 1) and (k.field1 is null or k.field1 = 0) and k.job not in (select w.id2 from v$lock w where w.type = 'JQ')) c where bitand(c.job_status, 3) = 1 and ((bitand(c.flags, 134217728 + 268435456) = 0) or (bitand(c.job_status, 1024) <> 0)) and bitand(c.flags, 4096) = 0 and c.instance_id is NULL and (c.class_oid is null or (c.class_oid is not null and c.class_oid in (select d.obj# from sys.scheduler$_class d where d.affinity is null))))The query looks to be recursive SQL fired for job executions. The issue could be related to Bug 9008161. I would advise logging a SR with Oracle support.
-
Hoi,
Recently i have create a query using transaction SQ01 on R/3 System, everything is going well.
My question is:
There a way to schedule my query, so it can be performed monthly en saving the output to an appropriate destination.
I will appreciate your help.
Kind Regards.
Nabil ZebbarWhen you execute the query, click System > Status to get the program name. It will be something like AQZZZ....
You should be able to schedule a job in SM36 for that program name. You will also need a variant saved for the query and will have to specify that variant.
Your output will be in a spool, or you could create a distribution list using S015. (Myself I'm not sure about saving the output to another destination.) -
Hi,
How can I schedule Broadcaster for Query to fill OLAP Cache?
Regards,
ShabbarAli,
This function is not provided with 3.x. In BI 7.0 you can use the BEx Broadcaster to fill up the OLAP Cache. Call the broadcaster from the query designer and from the query menu option choose publish and then BEx Broadcaster.
Choose create new setting and choose select Distribution Type: Fill OLAP Cache and select the Output Format options: OLAP Cache Content . Select the filter navigation when the query uses variables also a variant has to be maintained otherwise the variable could not be filled in the background job.
Save and schedule the job. You can either schedule the prefilling of the OLAP Cache to run at predefined times or with each data change in the Info Provider.
And when the Pre filling of the OLAP Cache is scheduled to run with each data change in the InfoProvider, an event has to be raised in the process chain which loads the data to this InfoProvider and when the Process Chain executes the process i.e Trigger Event Data Change which is for Broadcaster an event is raised to inform the Broadcaster that the query can be filled in the OLAP Cache.
Save and schedule the job. You can either schedule the prefilling of the OLAP Cache to run at predefined times or with each data change in the Info Provider.
And when the Pre filling of the OLAP Cache is scheduled to run with each data change in the InfoProvider, an event has to be raised in the process chain which loads the data to this InfoProvider and when the Process Chain executes the process i.e Trigger Event Data Change which is for Broadcaster an event is raised to inform the Broadcaster that the query can be filled in the OLAP Cache.
Hope it helps.
Thanks
Mona -
Training and events - schedule query
Hi,
I have created Schedules for training.
For e.g
For a 10 day training- 10 day schedule with day numbers as
1,2,3,4,5,8,9,10,11,12
(Omitting 6,7 as its a day off).
When a training begins on monday,the sytem takes the day offs correctly.
But if training begins on any other working day,then random 2 days are taken as offs.
Can anyone help to resolve this so that only Sat n Sun are taken as offs whatever may be the start date of the training?
Thanks,
ArpitaHi arpita
see there are two options one is if you select the start day as undefined or in business event type you can select without pattern just give number of days as 10 and number of hours then it considers irrespective of days it just takes 10 days and no of hours
bye
Naveen -
Hi All,
I want to create a schedule in SQL 2012 to perform steps.
**Note: I don't have SQL SERVER AGENT
Regards
Ishu BhardwajYou can use the Windows Task Scheduler.
See, eg
How to schedule and automate backups of SQL Server databases in SQL Server Express
David
David http://blogs.msdn.com/b/dbrowne/ -
PLS HELP IN THIS REGARD
WHEN TO USE JOB SCHEDULING FMS EG: JOB_OPEN / JOB_SUMBIT / JOB_CLOSE AND WHEN TO SCHEDULE JOBS THRU SM-36? PLS TELL ME IN RESPECT TO DEV / PRD SERVERS IE: IF I AM WORKING ON DEV SERVER WHICH PROCESS WILL I OPT AND WAT TO USE IN PRD SERVER ? WAT IS THE USE OF GET_PRINT_PARAMETERS IN JOB SCHEDULING?Hi,
JOB_OPEN / JOB_SUMBIT / JOB_CLOSE -> Used to schedule a report/program in background i.e on background workprocess.
AND WHEN TO SCHEDULE JOBS THRU SM-36?- PLS TELL ME IN RESPECT TO DEV / PRD SERVERS IE: IF I AM WORKING ON DEV SERVER WHICH PROCESS WILL I OPT AND WAT TO USE IN PRD SERVER ?-> Background WP
WAT IS THE USE OF GET_PRINT_PARAMETERS _. used to find the print parameters e.g in case you wnat to write data to spool -
Hi,
If i have 3 messages A, B and C which are in a queue and are to pass through a synchronized method Y . A particular thread X picks 1 message each from the queue and spawns a thread for each of 3.
A is executing Y and B and C are in BLOCKING State and waiting for A to finish so that they can enter Y.
Is it possible that C executes first before B.
Pls advice.
Thnx in Adv
AmandeepSetting a thread's priority is not the preferred solution namely because it is dangerously inconsistent. The only time to use thread priority is when you have tasks that do not have scheduling conflicts like this and you really don't care when a particular thread runs. As an example the garbage collection thread in a VM is normally a lower priority thread until such time that garbage collection is needed.
The preferred solution for thread scheduling and order of executing issues is to revisit the design.
In the example given by the OP I would first question the use of multiple threads at all. It seems that the OP wished tasks to be executed from a queue in the same order as they were added to the queue and that tasks later in the queue should not finish execution before ones earlier.
This does not seem a good use for multiple threads because this requirement seems to call for anything but parallel execution.
But perhaps I am reading too much into that statement. I would suggest a revist of the design though to look at doing the following.
Launcher thread
1) Gets next thing from queue
2) Calls synchonized Y method (that no longer needs to be synchronized probably) using thing from queue
3) Starts new thread with results from Y
4) Go back to 1
This design garauantees at least that the launcher threads will be started (and past the synchronized method) in the same order as they were received.
Does that mean they will complete execution in the same order? No. Does it mean they will actually start processing in the same order? No. But it does mean they will call Y in the same order and since I would guess that is the real issue here it solves the problem.
If the threads really must finish in the same order than one must consider either; not running seperate threads as I mentioned earlier or adding a semaphore at the end of the spawned "worker" threads so that they wait for previous threads to finish before exiting. -
How to use scheduled agent for query in database
Hi there I'm working with database on my app and when use the query for search in the database the application freeze for a maximum of one minute I want change that why I want what runs ok and I wonder if I can use a background agent for do that manage
the queries .
But I don't know how can I call the queries from the other project if the files are in the main project.Hi OzkarLeo,
Background task provides functionality to do work when your app not in foreground, it need some conditions to trigger.
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh977056(v=win.10).aspx. If you need scheduled query when app is active in foreground, then it’s no need to use background task.
Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
the survey. -
Hi All,
I want to read the query exception data in the background. for eg. a query with exception should be run in the background and if any of its exception rules are hit, the record or relative data should be read and stored.
Pls note I do not have an option of either using APD or Information broadcasting.
1. Pls tell me if after every data load, without executing the query manually, is there a possibilty of scheduling query execution in the background and reading the exception records into a table and/or any target.
2. Also is there a table in BI where all these exception hit data are stored.
Thanks
Sandeep Singhif you are reading in background file needs to be on application server.
you can use following function modules.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
MESSAGE MSG_TXT.
IF SY-SUBRC NE 0.
WRITE: 'Err', MSG_TXT.
EXIT.
ENDIF.
LOOP AT INT_TAB
*your code
ENDLOOP.
Closing the File
CLOSE DATASET FILENAME.
Maybe you are looking for
-
Error while activating Infocube
Following error while activating after creating new Infocube: No active nametab exists for /BIC/DDPCW14DFD1 Termination due to inconsistencies Table /BIC/DDPCW14DFD1 (Statements could not be generated) Enhancement category for table mi
-
How to pass a JavaScript variable into a java method
I would like to know how to pass a JavaScript variable into a java method with in a <% %> tag inside a JSP file like so: <%@ page contentType="text/html;charset=windows-1252"%> <html> <head> <script LANGUAGE="JavaScript"> myValue = someDynamicValue;
-
How to remove duplicates in SAP Query
Dear Frns, I created a simple SAP query with quickviewer by table join option. tables are MAST & STPO. Link is only STLNR. I am getting a duplicate extra line with same data. Can anyone suggest me how it happened. Is there anyway to remove these dupl
-
What happened to all the entries in the "Contacts and Calendars" section?
Suddenly all I see are about 30 topics, 76 messages on only two pages of messages. Looks like most of them are in the "Mail" section, including the ones that are specifically about syncing contacts and calendars. Very confusing... coop
-
Random numbers in Forte V 1.0
Hi everyone, has anyone implemented a method to generate random numbers in Forte Release 1? Forte release 2 has just such a utility object, but would love some already written code if anyone has it. Thanks John John Jamison Engineering Manager Sage S