How to automate the queries

hii everyone
I want to automate queries.i.e they should be executed automatically on a particular day in the week. can we do it through oracle jobs..actually wht the case is i will be executing 5 queries evey tuesday.the output frm these queries are used to process another job tht runs every tuesday evening.rather than executing all these queries everytime i want to automate these queries.
can anyone help me how to automate this job.
thnakx

hii justin
thnkx for the reply..
the queries wht im executing are little bit complex.one query is dependent on the other..im sending u the steps wht i will be doing when the queries are executed
Below mentioned are the steps to be followed to check if the rewards job ran successfully or not –
1.     Run the QUERY #1 in Rewards_Queries_Weekly_Test.sql
2.     Note down the number of records returned in STEP 1.
3.     Run the QUERY #2 in Rewards_Queries_Weekly_Test.sql.
Enter current date as INPUT parameter.
4.     Note down the number of records returned in STEP 3.
5.     Compare the number of records returned in STEP 1 and
number of records returned in STEP 3. BOTH THE NUMBERS
SHOULD MATCH TO PROCEED TO NEXT STEP.
6.     Copy the results of QUERY #1 to an excel sheet. Do not copy
the serial number generated by PL/SQL Developer.
Copy only the fields returned.
7.     Copy the results of QUERY #2 to an excel sheet.
Do not copy the serial number generated by PL/SQL Developer.
Copy only the fields returned.
8.     Assuming that the results of QUERY #1 were copied to the
columns A1 & B1 and the results of QUERY #2 were copied to
the columns D1 & E1, copy the following formula
to F2 =IF((A2=D2)*(B2=E2),0,1)
9.     The output of STEP 8 would be either 0 or 1 in the cell F2.
1 indicates the records with mismatch and 0 indicates the correct
records which can be ignored. It is possible that the records with
mismatch have an entry in job special pay table and these records
also can be ignored. These records can be filtered
by following next steps.
10.     Copy the data in the cells D1,E1 and F1 to H1, I1 and J1 respectively.
While pasting use the option paste Special and select Values option
in the dialog box.
11.     Sort H1, I1 and J1 data by J1 descending and next by H1 ascending.
This would list all the in correct records first and correct records next
so that they can be ignored.
12.     Now run the QUERY #3 and copy the results to K1. Do not copy the serial number generated by PL/SQL Developer. Copy only the fields returned. These records indicate the rewards special pay records given in the last one week.
NOTE: The QUERY #3 expects two dates in the IN clause. These dates should be Current Date (Since the reward jobs run on Tuesday it will be always current Tuesday’s date) and Last Tuesday’s date.
13.     Select all the incorrect records in the cells H1, I1 and J1 and apply
the following conditional formatting formula with format as RED color.
= VLOOKUP($H2,$K$2:$K$220,1,FALSE) <> " "
NOTE: In the above formula change the value of K$220 based on the number of rows you get in the cell K from the results of QUERY #3.
14.     The records with BLACK color are the actual records with some issue. Investigate each record manually and analyze the issue. Keep negative hours adjustment, 26 weeks rule in mind while doing so.
the above are 14 steps i will be doing every tuesday when im executing the queries
i want to automate the whole process wht im doing in the 14 steps..
could u suggest me something on this
srikanth

Similar Messages

  • OB52 Posting Period Close:  Does anyone know how to automate the close?

    Does anyone know how to automate the FI Period Close (trans code OB52)?  Currently, the business users go into the screen and open and close any periods manually.  For the MM period close, we are able to do so because we found the program to use in the batch job.  For some reason, the FI side shows the program SAPL0F00 but this is only a view and will not allow a batch job to be created.  Does anyone know of the actual program used for the FI period close?

    Use program RFPERIOD_OPEN.  It may help.  For further details you may check the following thread.
    RFPERIOD_OPEN

  • How to delete the queries in  BW Production which are no longer existing.

    Hi,
    How to  delete the queries in BW production which are no longer existing in DEV.
    1. I tried Using RSZDELETE in Production it is not getting deleted and the below message given.
    Query object 4A7V83T3RB4ABIOKSDJT2HWDL is blocked. Deletion has been cancelled.
    2. I tried creating another query in dev with the same technical name and send a transport with deletion
    it is not working.
    Please advise me on this for any function module or any other method.
    Thanks
    Surya

    Hi,
    If you transported the query from DEV and now you want to delete it, you should open a BEx request (Dev Class under which it was originally transported -- or-- Standard - type) in DEV delete the query and move the transport to Production.
    As far as your error is concerned, usually  when you  can delete a query using the delete option in query designer itself,
    Business Explorer> query-> delete objects , when you press execute the system offers you a list of dependent objects on the query(workbook,views), in case the sysytem is unable to delete them i.e.they being used as a input query for a characteristic variable (replacement path),then system throws this error.You can delete these all depndents under there prescribed roles , fav s & then proceed.
    Hope this will be expedite.
    Thax & regards.
    Vaibhave Sharma

  • How to populate the Quering data into Excel sheet in Oracle

    Dear Guys,
    How to populate the Quering data into Excel sheet in oracle.
    Please provide a solution.
    Thanks & Regards,
    Senthil K Kumar

    Hi
    To make Excel sheets from sqlplus, you can use the markup html tag in sqlplus.
    Here's an example.
    Example
    <code>
    SET LINESIZE 4000
    SET VERIFY OFF
    SET FEEDBACK OFF
    SET PAGESIZE 999
    SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF
    SPOOL c:\test_xls.xls
    SELECT object_type
    , SUBSTR( object_name, 1, 30 ) object
    , created
    , last_ddl_time
    , status
    FROM user_objects
    ORDER BY 1, 2
    SPOOL OFF
    SET MARKUP HTML OFF ENTMAP OFF SPOOL OFF PREFORMAT ON
    SET LINESIZE 2000 VERIFY ON FEEDBACK ON
    </code>

  • How to automate the flatten transparency in illustrator?

    How to automate the "Flatten Transparency option" in illustrator via javascript. Please share with me.
    Thanks

    I'm looking for the same thing.
    app.executeMenuCommand('Flatten Transparency'); works in CC but all it does is it brings up the window and you still have to click OK to make the script continue.
    Before anyone asks why do  you want to do it etc. In print thereare instances where you have to open and edit (not text) large numbers of pdfs to change colours, outline fonts etc otherwise there's trouble on print devices.
    My script for instance looks for 100K blacks and replaces them with rich black, looks for empty text frames, overprint, bleed settings, clipping paths etc.
    The only way to edit successfully a pdf without fonts is to place it and flatten transparency outlining fonts and then work on it.
    So back to the point. After the window pops up, is there a way to simulate a keystroke like "Enter" or maybe app.executeMenuCommand('Flatten Transparency'); takes arguments like:
    app.executeMenuCommand('Flatten Transparency',preset_name);...?
    Anyone? Adobe SDK team? :-)

  • How to automate the data load process using data load file & task Scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
    Thanks

    To follow up on your question are you using the maxl scripts for the dataload?
    If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
    If you are using maxl use this as the batch
    "essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt.

  • How to automate the exchange rates in BI

    Hi Guys
    can any one let me know the step by step approach of how to automate the exchange rates in BI...I know that if we right click in source system and say transfer exchange rates ..we will get those values ....But I want to automate this process in BI with a Process chain...I have created a start variant and connected it to a ABAP process type and calling the RSIMPCURR programm in sync..local....Do I need to call any Program event ? Iam not able automate this..please advice step by stepp
    After ABAP process type do I need to create any other steps ?
    regards

    Hi,
    All you have to do is to define the ABAP Process as new process variant, call mode syncronous, called from local, program name RSIMPCURR, and define a program variant for example number 12 and create it, there you select the update exchange rates., go to attributes, give a meaning and save all. You can automate the start of the porocess chain and select it as period job.
    Regards
    MK

  • How to automate the Acrobat Reader plugin in Internet Explorer

    Hi,
    I have been trying to figure out how to automate the Acrobat Reader plugin in Internet Explorer. My goal is to find a way to allow users of our web application to print PDFs to the default printer without having to go through the plugin's GUI. Our application includes a browser helper component, and I had hoped it would be possible to use the IWebBrowser2 interface's get_Document() method to get at some sort of interface to the plugin (as is possible for, say, a Word document hosted in Internet Explorer) and then use this to print the document. However, this does not work: get_Document(), when called on an IWebBrowser2 instance with a PDF loaded, returns E_NOINTERFACE. I also tried calling the IWebBrowser2 interface's ExecWB() method with OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, and PRINT_DONTBOTHERUSER, and printed a blank page rather than the PDF.
    Is it possible to do what I am attempting? Like I said, my core goal is to print a PDF from within Internet Explorer without requiring user interaction. I'd appreciate any suggestions as to how I might accomplish this -- it doesn't _have_ to be by automating the plugin (maybe that is a the wrong approach... though it sure would be nice if the plugin provided access to its object model via IWebBrowser2->get_Document()).
    Thanks in Advance,
    Steve Mckinney
    Senior Developer
    Paxon Corporation

    IF that were entirely true, then the whole purpose of this thread is moot (automating printing server side). It is possible to load the file via URLs using the following html code:
    "<"body>
    "<"OBJECT id="pdf"
    type="application/pdf"
    width=800
    height=600 >
    "<"param name="src" value="http://localhost/pdfs/vorder_nc.pdf"/>
    "<"/OBJECT>
    "<"script language="JavaScript">
    function waitLoad()
    setTimeout("printFile()",2000);
    function printFile()
    var objPdf = document.getElementById('pdf');
    objPdf.PrintAllFit(1);
    "<"/script>
    "<"/body>
    So, if I used php or some other scripting language on the server to fill in the name of the pdf, I can load it via a URL, wait a couple of seconds for it to load, and then print it without user interaction. I wish that the LoadFile method would load a URL so that when it returns, I know it is loaded and I don't have to put faith in a timer that may not be enough for a large file.
    This is the situation I'm in. This way works but I don't like the timer. I'd rather have the plugin let me know when it's loaded. Is there another method that can help me do what I want?
    Thank again.

  • How to automate the data flow to content servers?

    We have ECC connected to CS. Could you help tell how to automate the data flow into the CS? Thanks a lot!

    What do you use the Content Server for? If its for archiving you need to run the STORE job to send the data to the CS.
    I can't see a reason to automate that process
    Regards
    Juan

  • How to get the queries behind a concurrent request

    Hi to all
    how to get the queries behind a concurrent request in oracle Apps R12
    Regards ,
    Zulqarnain

    IMHO you can not simple say that this query executed or another
    because many queries can be executed by one cp
    >
    My actually problem is that, i want to know that when Cost Summary Report from FA Responsibility is running then this concurrent program also run another CP. Populate Balanace Report . This CP also attach with
    Populate Balanace Report GT Data executable , This executable run FA_BALREP_PKG.populate_gt_table procedure.I want to know that which query is running for Cost Summary Report in above mention package.
    >
    it's look like that "Cost Summary Report from FA Responsibility" is main cp which generate the report based on some just-in-time data which generated by "Populate Balanace Report "
    in other words
    "FA_BALREP_PKG.populate_gt_table" populate data in some temp table for report and "Cost Summary Report" use it

  • How to automate the creation of this workbook?

    Hi
    I generate the same report for 3 departments at the end of each day and would like to place them in a workbook as 3 worksheets and a fourth worksheet (tab) as the total of the three tabs.
    How best can I automate this process so that the formatting (colors, etc) will remain the same.
    Please provide detail steps if possible.
    Thanks

    generate the same report for 3 departments at the end of each day
    what do you mean by that? you create a new query everyday - it means 90queries for a month.
    If i get this right, you run the same query with different variables. Run the queries, save them as workbooks with ur required format - and everyday the user would refresh them with the required variables.
    Correct me if I got the whole issue wrong

  • How to automate the creation of Function Module & Class Object (SE24)

    Experts,
    I have the requirement to automate the creation of any type of programs: ie function module (like how we normally create in SE37 together with the parameters), class object (like how we normally create in SE24 together with attribute & method), normal report (like how we did in SE38), module pool and so on.
    For example. I backuped my program into a flat file (the entire source code in txt formal or HTML) through a download program and I need to upload back this flat file into another installation of SAP.
    Does SAP provide any predefined FM to cater for the above cases or better still, does anyone know of any upload program which I can use for the above requirement.
    Thanks in advance.

    Hi Kris, I can't use the transport system as these are 2 separate SAP installation in a different place. The requirement came in the form of creation of program to be able to generate FM/Class/Report on the go.

  • How to automate the length of a rectangle solid to a text layer ?!

    How can I automate the length of a rectangle to be larger/smaller as a text layer is made longer or shorter.
    Example = https://www.dropbox.com/s/0lqu7iff5bnlzd1/Capture%20d%27%C3%A9cran%202014-04-04%2015.00.23 .png

    There are two events that can be used to check the text length,
    The first is the action event for the text field, which is called when the field loses focus, it's a dialog object member with the same name as the item_id.  This event could also be used to update another field on the dialog that shows the number of characters, you could even have a little alert image that becomes visible to make it obvious that there is a problem.
    The other event, as already mentioned, is the validate event.  Use this to block exiting the dialog and display an alert popup to the user.
    You'll find some examples of dialogs here:
    http://www.pdfscripting.com/public/65.cfm
    Take a look at the dialog for the resize pages tool.  It'll give you some ideas of what can be done.
    There is an Acrobat plug-in for creating dialogs here:
    http://www.windjack.com/products/acrodialogs.html
    It's a visual drag and drop editor.  You can download and use it for free for 10 days.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/javascript.html
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Shift Planning (PP61) in SAP. How to automate the process of entering  data

    Hi Friends,
    With using PP61 tcode we can able to enter data manually.
    I want to upload data from excel file. Is there any automation process? like any programs are function modules will useful?
    Many thanks in advance for the solution.

    hai sandeep,
    In PP61 we have to select either target plan or actual plan and also there are radio buttons for selecting the periods,how do you automate the data upload,i think there is only one field to upload (organizational unit )only then what about other parameters,if it is possible to upload all the parameters,let me know.

  • How to automate the process of Uploading RPD ?

    Hi All,
    I am on 11.1.1.6.0 and Windows server 2008. What I am wanting to do is to automate the process of uploading the repository on my development server and restarting the server automatically. And I want this to happen 3 times a day at specified intervals. For ex, I want that automatically, at 6:00 AM, 3:00 PM and 6:00 PM everyday my MUD repository should be uploaded to my development BI server without any manual intervention whatsover.
    I know this can be done using the wlst sctipts. I have couple of questions around that will appreciate if anybody can answer both of them.
    1. I don't know and understand the language which wlst scripts use. And even if somebody gives a ready script I should be able to understand that. So the question is from where can I learn that language. Like for BIP, we can learn xslt from w3 schools. How can i do for wlst tool/ scripts?
    2. Lets say I learned the language and created a script abc.py which uploads the repository. But How will that be automatically called or run on my Development Server? By a windows batch script? If yes, then who will run that windows batch script ? Do I need to manually run that? Or running of Windows Batch script can also be automated and can be run at specified intervals as I want?
    I'll appreciate if somebody can explain me this in detail.
    Thanks,
    Ronny

    Check this
    http://ssssupport.blogspot.com/2012/10/obiee-11g-deployment-using-shell-script.html
    Any updates on this :)
    How you end up with this?
    Edited by: Srini VEERAVALLI on Dec 28, 2012 8:21 AM
    Any updates Ronny!!
    Edited by: Srini VEERAVALLI on Jan 2, 2013 7:33 AM

Maybe you are looking for