Automated Report Generation

Hey,
I have a report created which accepts 3 parameters which are now defined as dropdowns. I needs to set up an automated job that passes the oracle report all combinations of these three parameters every night and saves the generated pdf in this case to a specified directory, but I am not quite sure on how to do this, so am I looking for pointers on how to do it and where to start.
Thanks

You could set up a dbms_job (unix daemon) to call the report and execute at a given time.
When you call the report then you can pass the parameters without any problem. (with no user intervention)
I don't have any example but you should be able to find a lot of them.

Similar Messages

  • Fully automated report generation and email

    I am trying to get a report (from a query) to run automatically every Tuesday morning.
    This is my job
    BEGIN
         dbms_scheduler.create_job (
              job_name          => 'GEN_XLS_RPT_AND_EMAIL',
              job_type          => 'STORED_PROCEDURE',
              job_action          => 'gen_bomreport_proc',
              start_date          => to_timestamp('05-12-2009 07:00','DD/MM/YYYY HH24:MI'),
              repeat_interval     => 'FREQ=DAILY; BYDAY=TUE; BYHOUR=7',
              enabled               => true,
              comments          => 'Weekly CSV Reports Output at 7:00AM'
    END;Then I have a procedure
    PROCEDURE gen_bomreport_proc IS
    DECLARE
        l_id number;
        l_document BLOB;
    BEGIN
         l_document := APEX_UTIL.GET_PRINT_DOCUMENT (
              p_application_id          => 109,
              p_report_query_name          => 'qry_Report_1week',
              p_report_layout_name     => 'qry_Report_1week',
              p_report_layout_type     => 'application/excel',
              p_document_format          => 'xls'
         l_id := APEX_MAIL.SEND (
              p_to        => 'to@me',
              p_from      => 'from@you',
              p_subj      => 'Weekly Report',
              p_body      => 'Please review the attachment.',
              p_body_html => 'Please review the attachment'
       APEX_MAIL.ADD_ATTACHMENT (
           p_mail_id    => l_id,
           p_attachment => l_document,
           p_filename   => 'report_' || to_char(sysdate-8, 'YYYY') || '_' || to_char(sysdate-8, 'DD-MM') || '-' || to_char(sysdate-1, 'DD-MM') || '.csv',
           p_mime_type  => 'application/excel');
    END;And the query that is supposed to get ran to generate the report saved as 'qry_Report_1week'
    SELECT organization_name, quote_description, quote_name, quote_pwd, user_id, contact_last_name || ', ' || contact_first_name contact_name,
      email, create_date, qty, unit_price, ext_price, discount_percent, company_name, item_no, supplier_name, product_category, mfg_part_no,
      quote_id, customer_id, exalt_user_id
    FROM bom_detail_cdw2
    where create_date BETWEEN sysdate-8 and sysdate-1 order by create_date;I tried running the job
    begin
    DBMS_SCHEDULER.RUN_JOB (
       job_name => 'GEN_XLS_RPT_AND_EMAIL',
       use_current_session => false);
    end;I read a lot about scheduler, APEX_UTIL.GET_PRINT_DOCUMENT and APEX_MAIL.ADD_ATTACHMENT, but I'm sure I missed something. Any help would be appreciated... Thanks

    Thanks Vorlon, your link was a bit helpful.
    Alright, I am making progress, but have had to come up with an alternative to the Report Query as found out that you need BI and we don't (and won't) have that.
    Option 1: dump the query result in a csv file
    Problem: I can't attach the csv to the email
    CREATE OR REPLACE PROCEDURE gen_bomreport_proc
    AS
         l_report  BLOB;
         f_report  UTL_FILE.file_type;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(512);
         l_id number;
         CURSOR bomdata_cur IS
              SELECT * FROM BOM_DETAIL_CDW2
              where create_date BETWEEN (sysdate-8) and (sysdate-2) order by create_date;
    BEGIN
         -- Create and populate file
         f_report := UTL_FILE.fopen ('TESTDIR','bom_output.csv', 'W');
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created,QTY,Unit Price,Ext Price'||
              ',Disc. %,Address,' || 'Item No,Mfg Part No,Contact Name,Supplier Name,Product Category,Quote ID,Customer ID,Exalt User Id' || chr(10);
         UTL_FILE.PUT_LINE(f_report, bomdata_header);
         FOR bomdata_rec IN bomdata_cur LOOP
              bomdata_buf := bomdata_rec.organization_name || ',' || REPLACE(bomdata_rec.quote_description,',','') || ','
              || bomdata_rec.quote_name || ',' || bomdata_rec.quote_pwd || ',' || bomdata_rec.user_id || ','
              || bomdata_rec.contact_first_name || ' ' || bomdata_rec.contact_last_name || ',' || bomdata_rec.email || ','
              || bomdata_rec.create_date || ',' || bomdata_rec.qty || ',' || bomdata_rec.unit_price || ',' || bomdata_rec.ext_price
              || ',' || bomdata_rec.discount_percent || ',' || bomdata_rec.company_name || ',' || bomdata_rec.item_no || ','
              || bomdata_rec.supplier_name || ',' || bomdata_rec.product_category || ',' || bomdata_rec.mfg_part_no || ','
              || bomdata_rec.quote_id || ',' || bomdata_rec.customer_id || ',' || bomdata_rec.exalt_user_id;
          UTL_FILE.PUT_LINE(f_report, bomdata_buf);
        END LOOP;
         -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? --
         UTL_FILE.FCLOSE(f_report);
         -- End
         -- email part - I'm ok here
    END;ok, so there's a line:      -- Part where I convert UTL_FILE.file_type into a BLOB and store in l_report ?? -- which I have searched for, to no avail
    Option 2: dump the query result in a BLOB
    Problem: I need to write strings/literals into the BLOB, but it keeps throwing the error PLS-00382: expression is of wrong type, when I write something like:
    DECLARE
         l_report BLOB;
         bomdata_buf VARCHAR2(24000);
         bomdata_header VARCHAR2(24000);
    BEGIN
         bomdata_header := 'Organization,Description,Quote Name,Quote PWD,User ID,Email,Created' || chr(10);
         l_report := bomdata_header;
    END;

  • Production Reporting + Automated Report Generation

    Hello,
    Does anyone know how to genarate reports automatically by using Production Reporting?
    The source data is in Essbase and the data on updated monthly. We should get the updated data on the reports automatically but I do not know how to do it?
    What tools (HAL, DIM?) and skills (JAVA, SQR) are needed to get data automatically? The creation of a normal report can be made with graphical user interface.
    Br
    Mikko

    You could set up a dbms_job (unix daemon) to call the report and execute at a given time.
    When you call the report then you can pass the parameters without any problem. (with no user intervention)
    I don't have any example but you should be able to find a lot of them.

  • Automated Report Generation fortnightly...

    Dear SAP Guru's
    We need to generate few Reports automatically and send the output in Excel format to few user's mailbox through job scheduling on fortnightly basis.
    How could we choose the fortnight period in job scheduling and data selection period in Report?
    for ex. Suppose the job is schedule on 1st feb, the report should fetch the data for the period 16th Jan to 31st Jan.
    And the next time when executed on 15the feb it should fetch the data for the period 1st feb to 15th feb.
    Kindly suggest.. how to go ahead with this requirement?
    Thanks in advance...

    Hi Vikash,
    For Data selection period, you need to make your selection screen variant in such a way that the date fields are populated dynamically. i.e. here it is 15 days increment(Fortnightly).
    After entering your values in selection screen, and press save. Now you will be prompted to give a variant name. Goto the date field make it a dynamic .
    Hope this helps you.
    Regards,
    Subbu.

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Automating a report generation process

    Hello guys!
    I just took on a new role in a company which requires me to deal with SAP BEx Analyzer.
    I'm completely new to this, but having gone through the report generation process, I feel the method I'm using is horribly tedious and I believe there should be a way to automate the process since it's a recurring monthly procedure.
    What I have to do currently to get the report is:
    1. Launch SAP Logon
    2. Filter the Connection which i want to find (i'll call it "PQI").
    3. Key in my Username, Password and Language
    4. Select the third container in the folder (i'll call it "03")
    5. After I open 03, it launches Excel with BEx Analyzer add in initialized. The report is currently empty
    6. Select Change Variable Values, fill in Fiscal Year, Month and Accounting Area.
    7. After which it will take like 15minutes to query, and a about 16,000 ++ rows are generated.
        Problem #1: The format isn't good, i have to right click on every cell that writes "Result" with yellow highlight and under it's properties I have to select         "Result Rows" > "Always Suppress".  (Ref1.PNG)
         This is horribly painful considering I have to wait about 1 minute for each response (it's very slow). I have to repeat this for every yellow column in the
         report. Can this be automated or done in 1 step?
    8. After doing so for all rows, I have to right click the table and select "Query Properties" and shift all the Free Characteristics (about 10) to "Rows".
         BUT, I can't do all at once, it will say "out of memory" and crash. I have to do so 2-3 rows at a time. Each time it'll take about 10-15 minutes to
         populate. It's very painful.
    9. After it's all done, i have to repeat step 7 again, which is to Suppress all result rows (Ref2.PNG)
    10.Followed by which I have to go to Query Properties > Display Options > Uncheck "supress repeated key values"
    11. When that is done I have to generate a PivotTable on the data.
    I have to repeat the same steps on a monthly basis.
    Is there a way I can script it to run the process for me monthly? Or any other way to make it less tedious?
    Thanks so much for any input or suggestion guys!
    Warmest Regards
    Brandon

    Suppressing Result Rows can be done in Query designer itself for one time. You need not to do after you get the report every time.
    If you always expect some 10 free chars constantly, i suggest you to insert them in Rows pane in Query designer but not in Analyzer. So that your report layout will be taking care with all settings what you want to do after the report generates in Excel. I mean you will get desired layout when you run the report first time itself.
    Suppress repeated key values also can be done in Query designer itself one time.
    By doing above, your report execution will not be tedious and it will be minimizing your efforts.
    Over all, What I have understood is, you are doing all sorts of settings in Analyzer after getting such huge volume of data, by which it gives you crash error.
    With all above steps, you can run your report with all pre-defined settings.

  • Report generation Toolkit: Excel report functions error -2146827284

    Hi,
    I'm trying to create an automated report using excel functions from the report generation toolkit in labVIEW. When I run the program that generates the report first time round (the report consists of several worksheets, each worksheet is added onto the report at a diffferent state in a state machine) it always works fine and no error is generated. However, when I run the program again it will infrequently (sometimes it does, other times it will not) generate the undefined error -2146827284, this is coming from one of the excel report functions and it cannot find it on highlight execution mode.
    Does anyone know anything about this error, why it occurs, how to prevent it?
    I would appreciate any help.
    Thanks,
    Rowan

    mebels_cti wrote:
    Found something that helped; https://forums.ni.com/t5/LabVIEW/Error-code-quot-2146827284-quot-when-trying-to-open-an-Excel/m-p/20...
    Excel still open
    So I added this;
    You should use the Application Quit method instead of killing the task. I doubt this is the cause of your issue.
    Ben64

  • Report Generation Toolkit and App Builder question..

    Hello,
    I am in process of modifying my test code for writing my data to Excel. When I first developed the tests I did not have the Report Toolkit of Excel so I built the ActiveX VIs I needed. Now since I have upgraded to 7.1.1 with the MSOffice Toolkit I am rewriting my test code to use the toolkit VIs as it seems to work much better and faster then what I had done.
    My question is this. Since I have my testcode distributed to multiple machines when I build my App, do I need to add every Dynamic VI within the toolkit to my App? if so is there and simple way to find exactly which dynamically called VIs are used within the toolkit VIs?
    Thanks
    Jeff
    Jeff D.
    OS: Win 7 Ultimate
    LabVIEW Version: 2011,2010,2009 installed
    Certified LabVIEW Architect

    Greetings jdebuhr ,
    I'm using LabView 7 and have the report generation toolkit, In the "Report Generation Toolkit User Guide.pdf" manual under the title Cearating stand alone applications you 'll find the names and the path of the required dynamic VIs to be included in your EXE file (using appliocation builder)
    Check this manual.
    Ayman Mohammad Metwally
    Automation Engineer
    Egypt - Cairo

  • Dynamic  report generation

    We are migrating our client reports from crystal reports to business object reports and I need your help on how to achieve the below functionality in Business object reports.
    Requirements
    1. We need to generate and deliver around 30,000 statements to clients (mostly ftp and email) from 300 Webi report templates.
    2. This has to be a complete automated process with no user intervention.
    For example: Using Webi / Deski Report1, we need to run the report for each client account and then generate a statement and deliver it to client (only client specific data). Web1 reports are complex and some might take 30 to 60mins for generation.
    Questions
    1) Can it be done by just using BO tools with out coding ( using any .net sdk)?
    2) Can a single BO server handle the load, If not How to load balance reports generation and delivery across multiple servers?
    3) How to dynamically pass parameters to Webi report without coding?
    Thanks for reading my post. Any help/ suggestion is appreciated.

    In our current architecture, 
    1) We use crystal report templates and pass dynamic datasets at runtime to generate multiple client statements.
    2) For load balancing, we have 6 app servers with crystal runtime installed and we distribute load across the servers using custom code.
    My question is if use BO enterprise will there be any performance enhancements?

  • 800706BA RPC server unavailable in Report Generation toolkit

    Hi all,
    I've got a problem with LabVIEW 7.1.1 and Report Generation Toolkit (RGTK).RGTK is used to connect to MS-Word, create a new document from template and report test results. Works like a charme when stying local on the respective test machine.
    LabVIEWs 'Automation Open' node as wella as other parts of the RGTK have an control 'machine name' so I suspected I could bring a report server into game. Tried it and get an error "0x800706BA - The RPC server is unavailable in myTestVI" (translated from German Windows error).
    All the required subVIs to create a document have been put into a small test app. This one runs fine when running on the desired report server, but fail when opened and run on the devellopment machine.
    I have searched extensively for that error code and have changed some port settings in the firewalls and some services settings with no success. Can anyone help me out?
    BTW, on the remote machine a new process named WINWORD is started, but nothing more.
    TIA!

    Hi Lul,
    The error 0x800706BA is, as you said, a windows error (and, btw, your translation was correct as the original title is "The RPC server is unavailable").
    You can try to fix it with MicrosoftFixit :
    http://go.microsoft.com/?linkid=9666880
    Beside, more links that could be of some use :
    Windows Update error 800706BA:
    http://windows.microsoft.com/en-US/windows7/Windows-Update-error-800706BA
    Microsoft answer about error 800706BA:
    http://answers.microsoft.com/en-us/windows/forum/windows_other-windows_update/microsoft-updates-fail...
    In addition, a KB which is also related to this "RPC Server unavailable" in our IT database:
    How to fix MSI software update registration corruption issues:
    http://support.microsoft.com/kb/971187
    Regards
    Florian Abry
    Application Engineer Group Leader
    NI Germany

  • MS WORD TABLE commands such as "AutoFit to contents" can be achieved in LabVIEW report generation?

    LV 7.1 and Report Generation Toolkit 1.1.
    I generate a report by the tookit.But tables are in disorder because of the different contents in cells.
    Is there a way(or any function) in LabVIEW to made it like "AutoFit to contents" or "AutoFit to window" in WORD.
    Thanks
    =======================
    Windows XP SP2+LabVIEW 7.1
    Attachments:
    Report.vi ‏98 KB

    Where is this VI that you say to take the "Data" output from located?  I can not find it on the Palette.
    I need to do the same thing to a word report I am creating, autofit the tables to contents (except certain ones) and need to know how to access that property.
    EDIT - Nevermind - I found it.
    http://digital.ni.com/public.nsf/allkb/dc08b6a56dbe00a586256f1d006826dc
    Thanks,
    Ryan
    Message Edited by RVallieu on 04-26-2006 04:14 PM
    Ryan Vallieu
    Automation System Architect

  • LabView database connectivity toolkit 1.0.1 compatibility with MS-ACCESS 2010 / Labview report generation toolkit for Office 1.1.3 compatibility with Office 2010

    In the very near future we will be forced to upgrade to Office 2010 Company wide and I am a little concerned with some of our older test platforms that have applications built in LabView 8.2.1.  These applications save data to MS-ACCESS 2000 databases using the LabView database connectivity toolkit 1.0.1.  Office 2003 is also loaded on these test platforms with all test reports generated using the LabView report generation toolkit for Office 1.1.3.
    I have not gotten my hands on a copy of Office 2010 yet to see if there will be any compatibility issues.  Does anyone have any experience in this area?

    The MS-Access part is fairly well isolated through the ADO interface LabVIEW uses. The only possible problems there IMHO are difficulties with possible Acess compatibilities itself such as an example, SQL statement you may have invoked directly through the ADO interface. Maybe you did use a depreciated command back then that has since been removed. As long as the only thing you do are simple INSERT and SELECT statements only, I would expect it to just keep working.
    The Report Generation interface is a different beast. Microsoft manages to change the Automation interface with every version of office in a way that strongly binding applications like LabVIEW break on. There is no good way around that except not changing those methods, but that is a cause that has been lost already. You will certainly have to verify the version dependant Report Generation API VIs to still work with Office 2010 and most likely you will have to make some changes to those VIs to make them work again with the modified ActiveX interface of Office 2010. Note, that I have no experience with porting report generation to Office 2010 but I have had some headaches from porting that between Office 97, 2000, 2003, and 2007.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Automate Hyperion Provisioning Report generation

    Hi All,
    We are planning to automate weekly Hyperion Provisioning Report generation from shared services. Is there a way to schedule it ? Kindly advice.
    Regards,
    Andy

    Hi Andy,
    I dont see any utility or way to reach out to report automation, as a workaround i can provide you with below query which can give the provision information which would be simlar to Provision Report.
    Run the below query on Shared Services Schema.
    select p.application_id,p.createdtimestamp,c1.name,o.name,o.locale from
    css_provisioning_info p,css_groups c1,css_role_locales o
    where p.member_identity in c1.identity_id and p.role_identity in o.identity_id and
    o.locale='en_US' and p.application_id like '%XXXXXX%'
    order by c1.name
    and You can automate this to get a report pulled at our desired timings.
    Thanks
    Amith

  • Need help with report generation toolkit

    I'm having a really hard time finding a solution for my problem. I'm measuring a distance and a diameter simultaneously. The outcoming values have a depency and are stored in a 2-D array.  I want to export this array to an excel table and x-y-chart (distance is x and diameter y). So far I can export the data to a table, however the charts produced are useless. Can somebody please help me? I'm almost crying since I'm trying to find a solution for 3 days now.
    Additionally, after one measurement is done, the user should have the possibility to do the next measurement, and the data has to be stored in the same excel file, in another worksheet. How can I do this? 
    Attachments:
    Hauptprogramm_0.5.vi ‏129 KB

    Hi!
    If you want a nice graph in Excel based on your data you have input there, I would recommend creating a macro that builds your graph. Read more about macro, Excel and LabVIEW here. I don't have the Report Generation toolkit, but I think you can send macros with it too. 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Open vi error for report generation toolkt

    Originally it works fine.
    Now I upgrade to win7, LV9 and office2010.
    To open the old program by 8.6.1, I reinstalled LV 8.6.1 and report generation toolkit.
    But still got the error as attached.
    Any suggestion, thanks.
    Attachments:
    ss.png ‏184 KB

    1. MS Office 2010 is not yet supported, since it's still just a beta. I believe there are couple of changes that Microsoft make, and it could cause a problem.
    2. LabVIEW 8.6.1, and all its toolkit is not supported on Windows 7. This could cause a problkem also.
    In conclusion, you should use LabVIEW 2009, Report Generation Toolkit 2009, Windows 7, and downgrade office to XP, 2003 or 2007.
    More information: http://digital.ni.com/public.nsf/allkb/C9408B9F08D​711E786256F3300701D01

Maybe you are looking for