Automatically output report to excel from a batch job

We have business users who require that a standard report be run daily as a batch job and output to a printer, which is using a large pile of paper every day.  I have challenged the rationale for this without success, and am trying to find a way to continue to run the batch job but output the report to an excel file and e-mail it to a manager.  I know that this can be done by a good ABAP programmer, but I am trying to find a way to set up the batch job to do this without additional ABAP, as programming resources are very limited.  I would appreciate input from anybody who knows how to do this.

Likely because your user is continuing to call the service in a Windows (classic) DOMAIN\username format, and not in the Claims identity it should be.
Trevor Seward
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Authentication error while exporting the SSRS reports to excel from a timer job.

    Below code written in the timer job Execute() method to render the reports and get the byte array but it works fine when the application run in windows authentication, but throw error when the application extended to Form based authentication in SharePoint
    2013. 
    The sample code is:
    Microsoft.Reporting.WebForms.ReportViewer rview = new Microsoft.Reporting.WebForms.ReportViewer();
    rview.ServerReport.ReportServerUrl = new Uri(reportLib.ParentWeb.Site.RootWeb.Url + "/_vti_bin/ReportServer");
                                            System.Collections.Generic.List<Microsoft.Reporting.WebForms.ReportParameter> paramList = new System.Collections.Generic.List<Microsoft.Reporting.WebForms.ReportParameter>();
                                            rview.ServerReport.ReportPath = reportLib.ParentWeb.Url + RAConstants.LibraryReportLibraryUrl + repotName;
                                            string mimeType, encoding, extension, deviceInfo;
                                            string[] streamids;
                                            Microsoft.Reporting.WebForms.Warning[] warnings;
                                            string format = "Excel";
    deviceInfo =
                                            "<DeviceInfo>" +
                                            "<SimplePageHeaders>True</SimplePageHeaders>" +
                                            "</DeviceInfo>";
    bytes = rview.ServerReport.Render(format, deviceInfo, out mimeType, out encoding, out extension, out streamids, out warnings);
    In above Render() i got below error exception. 
    ex.ToString() "Microsoft.Reporting.WebForms.ReportServerException: Report Server has encountered a SharePoint error. (rsSharePointError) ---> Microsoft.Reporting.WebForms.ReportServerException: The user does not exist or is not unique. ---> Microsoft.Reporting.WebForms.ReportServerException:
    The user does not exist or is not unique.\r\n   --- End of inner exception stack trace ---\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerReportSoapProxy.OnSoapException(SoapException
    e)\r\n   at Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)\r\n   at
    Microsoft.Reporting.WebForms.Internal.Soap.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)\r\n   at Microsoft.Reporting.WebForms.SoapReportExecutionService.LoadReport(String report, String historyId)\r\n
      at Microsoft.Reporting.WebForms.ServerReport.EnsureExecutionSession()\r\n   at Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo, PageCountMode pageCountMode, String& mimeType, String& encoding, String&
    fileNameExtension, String[]& streams, Warning[]& warnings)\r\n   at Microsoft.Reporting.WebForms.Report.Render(String format, String deviceInfo, String& mimeType, String& encoding, String& fileNameExtension, String[]& streams,
    Warning[]& warnings)\r\n   at ResourceAllocationUI.SPJobs.SendWeeklyReportInEmail.Execute(Guid contentDbId)" string
    Please help. Thanks in advance.
    Thanks,
    Rashmi Ranjan

    Likely because your user is continuing to call the service in a Windows (classic) DOMAIN\username format, and not in the Claims identity it should be.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Issues on exporting the report to Excel from full client BO 5.1

    Hi,
    I am facing a problem in exporting the BO report from Business Objects 5.1 to excel file. I am aware that there is no direct way to export the BO report to Excel from Business Objects(File--> save as to .txt file and then copy its data to excel )
    When the export the BO report to excel file,I received two errors one over other
    error1: Numeric data overflow (3349)
    When I click OK button, second error received is like this
    error2:export failed (dma0005)
    I tried all options to fix this and also I looked for an dialog box " export to external file format " in Business Objects inorder to copy the report data to COPY TO DDE option but I didn't find any aforementioned dialog box
    Please provide me the solution to fix the issues
    Kind Regards,
    Srinivas

    Hi Denis,
    Yes,all reports based on this particular universe have this problem
    Are you telling me to isolate the object from the universe that is creating problems and then run the report ?
    Also, I am unable to find the option from  menu items in Full client BO 5.1 to open the dialog box with name " export to external file format ". Can you please tell me where I can find this?
    Warm Regards,
    Srinivas

  • Report in excel from java

    I'm generating report in Excel from Java.In this is it posssible to place background color upto the text in the single cell

    If you are using POI, you can set the background colour for a single cell.

  • Is there a way to access ABAP OO instances from a batch job report

    Hello,
    I am looking for a way to access ABAP OO instances from a batch job report. My circumstances are the following:
    I have got some ABAP OO coding that identifies other objects (class instances) that have to be processed (they have a DoIt method that does some calculation). As this processing is time consuming and performace relevant I have to parallelize this in batch jobs. This batch jobs however can only be "simple" ABAP reports according to SM36. The problem is now that I dont really know how to tell the batch job report what objects to process. Somehow I have to access theses instances from  that batch job report.
    Does anybody have an idea?
    Greetings
    Matthias

    Hi David,
    thanks a lot for your help. After a lot of searching on the net this seems to be the only way to cope with it. However I am not sure about the locking mechanisms and if its suitable for mass data processing. In the help page you suggested the following is stated which I do not fully understand::
    "The current lock logic does not enable you to set specific locks for the following requirements:
    ·        Many parallel read and write accesses
    ·        Frequent write accesses
    ·        Division into changeable and non-changeable areas
    Although the lock logic makes the first two points technically possible, they are not practical because most accesses would be rejected."
    Does this mean
    a) if I dont want to set "specific locks" for frequent write accessess I am fine
    or
    b) I am discouraged from use shared memory technics for frequent write accessess?
    In the latter case I will have a problem...
    What do you think?
    Greets
    Matthias

  • XML publisher output report in excel format

    Hi
    I have created reports using XML Publisher, the default output preview format was PDF. While submitting the program, in the layout, I changed the format to EXCEL,it give me output in Excel. Now I need to send the output report as an attachment through e-mail.For this I have used a UNIX shell script to send the mail using uuencode and mailx commands.
    I have fetched the name of the report from table using the following command.
    SELECT file_name
    FROM FND_CONC_REQ_OUTPUTS
    WHERE FCR.CONCURRENT_REQUEST_ID = p_req_id;
    The name of the report is : XXBG_PO_IFACE_SO_RPT_8556321_1.EXCEL
    Following is the command to send the e-mail.
    (cat $MAIL_BODY; uuencode XXBG_PO_IFACE_SO_RPT_8556321_1.EXCEL XXBG_PO_RPT.xls) | mailx -m -s "$MAIL_SUBJECT" $mail_id
    I am receiving the mail with the attachement, but when i am trying to open the attachement it is throwing an error and nothing is displayed in the excel sheet.
    Note: When I am sending the mail,in similar way, with 'PDF' attachement it is perfectly fine and the attachement is opening correctly.
    Please help me.
    Thanks in advance,
    Madhu kumar

    Hi schavali,
    The error message is as follows
    Microsoft Office Excel cannot access the file "https://xxxxxxx/Inbox/XXBG_PO_RPT.xls.
    There are several possible reasons:
    --The file path doesnot exist.
    --The file is being used by another program.
    --The workbook you are trying to save has the same name as a currently open workbook.
    After throwing the error, it open s a balck excel sheet.
    Hi hsawwan,
    I have gone through the thread. I am able to see the report when I click the output tab on the concurrent request screen.
    But the problem is, when I am sending the output report as an excel attachment then I am facing the problem.
    There might be some problem with uuenocde or mailx command.
    Thanks
    Madhu Kumar.

  • Download custom generated reports in Excel from ITS

    Hi All,
    We have generated some custom reports and have used ALV reporting. Now from the GUI we are able to download the report in excel but from the ITS this functionality is not working,
    Has anybody idea how to achieve this for the custom reports.
    Thanks,
    Smita

    Hi Luciano,
    Thanks for your reply. I am really lost with your question. Before we were not able to download the standard SAP report and then we upgraded our Java Virtual Machine to V1.4 and its working for the standard report.
    Now my problem is that I am not able to download it from the custom generated report.
    As soon as I am clicking on export to local file the report screen is getting blank and not allowing for any further action.
    Any clue?
    Thanks,
    Smita

  • Pivot Report in Excel from Oracle data base

    I need to bring data in Excel from Oracle table.
    The connectivity was established without any problem.
    When trying to transform the newly created query into
    a pivot table a am not able to see the data inside the
    "Data area" of pivot table as it is in the data base
    tables, instead Excel transforms the data in Sum, Average,
    etc...
    I believe it is an Excel issue but I am not sure.
    Any sugestions would be appreciated.
    Thanks,
    Larry Moise

    Thank u but already i do have apache POI
    hoew to make a conversion of coulmn data to excel

  • Printing to the wrong Printer from the Batch Job

    Hi,
    Morning every one!
    I am facing a problem with Print which is coming from Batch Job. The Batch job contains 10 steps. Previously all steps out put has configured to one printer. Recently I changed one step out put to the another printer with the request. But the print is going to the old printer still.
    When I am checking at the batch job -> Steps -> Specific step ->Print Specifications -> Output Device .. able to see New Printer.
    But batch job -> Steps-> Select Specific step -> Spool -> Doble click .. There spool is going to the old printer. I am facing this problem for only one step.
    The issue is dragging from past one week.. I tried couple of options..No luck
    I appreciate any inputs/Solution for this.
    Env:  ECC5.0/Solaris/Oracle
    Thanks,
    Sri.

    I got the solution finally from ABAP team. The printer is maintained in the Condition records of the Variant for the particular step. Even though I assigned the printer in Batch job..It is taking the printer from Condition record.
    Thanks,
    Sri.

  • Find errors logged from oracle batch job...

    Hi,
    I have a batch job that calls a procedure.. code is as under
    begin
      sys.dbms_job.submit(job => :job,
                          what => 'begin
                                       delete_stale_data;
                                        end;',
                          next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
                          interval => 'sysdate+(30/1440)');
      commit;
    end;Now, how can i get to view the error messages if
    1) procedure runs into an exception and hence job is not executed
    2) if job runs into some problem due to which it is not completed..
    Thanks,
    JP

    "Viewing errors" is the wrong term to use - it assumes that there are devices like STDERR and STDOUT in Oracle that is written to when an error occurs.
    There are no such devices in Oracle. Oracle itself will record system related errors (and messages) to the alert log of the database instance. Custom PL/SQL code can also write to the alert log using an undocumented call - but it is a very poor idea as the alert log is for the DBA to deal with system errors. Not with someone's application errors.
    The correct method is to implement an application logging PL/SQL interface (package) that allows applications to log errors and warnings and messages (including debug stuff). The basic method of this API implementation is to create a log table and write messages (from applications) to this table using autonomous transactions. The API call can also record the system date/time, the current PL/SQL stack trace, client session details, etc.
    Using such an API, you would schedule the job as follows:
    Method 1:
    The job becomes broken after 16 repeated failures (the exception is re-raised in order for DBMS_JOB to deal with it).
    sys.dbms_job.submit(job => :job,
    what => 'begin
    delete_stale_data;
    exception when OTHERS then
    APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
    raise;
    end;',
    next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
    interval => 'sysdate+(30/1440)');
    Method 2:
    The job will never break. The exception is supressed and DBMS_JOB will not know that any errors occurred:
    sys.dbms_job.submit(job => :job,
    what => 'begin
    delete_stale_data;
    exception when OTHERS then
    APPLOG.CriticalError( 'Error occured running DELETE_STALE_DATA', SQLCODE );
    end;',
    next_date => to_date('29-06-2006 05:33:28', 'dd-mm-yyyy h24:mi:ss'),
    interval => 'sysdate+(30/1440)');

  • Automatic output of a Schemafile from DB-Content

    Hello everybody,
    is it possible to generate Schemas automatically from
    DB-Content?
    I choose a table and the schema-processor generates
    a schema from the table-definition and an xml-file
    with the content?
    Thanks a lot
    Andy

    Hello Ravi,
    Thank you very much for your suggestions.. but still have some more doubts:
    What i want to do is :
    -->call report in background job with a selection criteria.
    -->the output of the report should be trasnsfered to excel sheet
    -->then the excel sheet should be sent to XI..
    My doubts are:
    -> is it possible with every report or we need some extra code to achieve this
    -> If yes, then how exactly it should be done. can you please explain in more detail.
    Thank you very much for your help.
    Best Regards,
    Jasmeet

  • Re: How to save/download the report in excel from Report painter.

    Dear Sapmates,
    I have created Cost element and Cost centere reports using report painter. Both the reports consists of nine coloumns. I would like to have the report in the excel. I tried the folliwng options :
    1. System -> List -> Save -> Local file
    2. Settings -> Options -> Microsoft Excel
    3. Print and then try to save using the spool request number using SP02.
    But neither of the ways worked to download or save the file in the excel format.
    Could anybody of you please help me out with this.
    Many thanks in advance.
    Best regards,
    Pabbi.

    After executing the report, select from the top menu:
    Report --> Export
    In the export to presentation server screen, select spreadsheet as the export format and enter the file location and name in the output file section. Then hit enter or click on the green check mark.
    another pop up box will show and this time click on continue.
    It will now create the output. check the output location you have entered before for the file.
    Hope this helps.
    Shail

  • Download reports to excel from Dashboard

    Hi all,
    I want to download all reports from dashboard page to Excel on oneclick!!( OBIEE10g)
    Please guide me on this.
    Thanks
    NK

    Check this
    Doc ID 1183504.1
    I think it is applicable for all versions
    Edited by: Srini VEERAVALLI on Apr 22, 2013 12:01 PM

  • EXCEL ONLINE - Automaticly refresh data in excel from the online data

    Hi
    Love some help with this one
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    DESRCIPTION
    We use excelonline for about 5 users to access the same 5MB excel file. Now because excelonline does not allow marcos to be run, proper printing and proper copy and paste in html formats (we need to copy and paste sheets into outlook in html format or run
    macros) we need to open the desktopexcel application to use printing and copy functions into outlook.
    All 5 users need to enter the data in excelonline then SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we then click okay. Great we now have the
    latest data. We can then run macros etc....
    We then close down desktopexcel and enter more online data through the day and have to repeat SYNC now in sharepoint so the excel is updated and then open desktopexcel then a pop up to use latest server version asks us to use latest. We want latest so we
    then click okay. Great we now have the latest data. We can then run macros etc....
    We have to repeat this many times over the same day... that is 5 people doing like this though out the day. Wasting alot of time.
    QUESTION
    Is their anyway 5 users can use excelonline fileA and also keep a uneditable version fileA open in desktop excel and manually refresh the desktop version to see the latest version of the document in uneditable mode still of course?
    Regards
    Lee

    Thank you.
    If I understand correctly from your advice, that is I should create QaaWs to pull data from SAP BI, which will return data in tabular format. Map the data in the cell range of a hidden tab, re-arrange and format the data into the row?
      Another concern: I need to display data for 4 quarters (Q1, Q2, Q3,Q4) in the dashboard, but QAAWS will only pulls data when the data is available in the database.
       Eg. Only data for 3 quarters are found in the database, QAAWS will return data for Q1, Q2,Q4.
             This will mess up the position fixed in the xcelsius. Do you have any suggestion on this?
       Sorry to bother u for the simple questions.
       Thank you.

  • Outputing reports to Word from Oracle reports

    I have already created the template in word, I saved it as an html file. Opened it from Oracle reports and have started working on the web source, but I don't really know where to go from here.
    Help it urgent.
    Thanks

    Please refer "Building reports" manual. (below)
    Also click on the documentation link above and navigate to "Reports" section. There are many white papers and collaterals available.
    Thanks
    Ratheesh
    [    All Docs     ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

Maybe you are looking for

  • Strange user account behavior on Z61M

    I use an external firewire based sound card sometimes with my Z61m (PreSonus Firebox).  This last time I went to use it, the application software that I use would not recognize the card as being present. I went into system, hardware manager, and got

  • Oracle Enterprise Manager not being accessed.

    Environemnt details: EBS->R 12.0.6 Database->10.2.0.2 OS->AIX 5.3 All 64-bit When start dbconsole: $ emctl start dbconsole Oracle Enterprise Manager 10g Database Control Release 10.2.0.2.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reser

  • Unwritable.

    I've used Lighroom before, but not when I try to import photos I get an error message stating I cannot open the catalog because it is not writable. I checked and it isn't "read only" and is not open anywhere else. I've tried restarting my computer an

  • Incorrect IP displayed, but can connect to the Internet. How can I find out what's causing this?

    I'm running 10.6.8, and various programs and websites that report my IP address are not displaying the correct one. I'm operating with a static IP, and I know my AirPort's IP, and the one displayed is neither of those (and in fact cannot be given out

  • Re-intializing a .JSPX pagedef variable iterator value?

    I am using ExecuteWithParams operation to create an ADF parameter (search) form on a .jspx page. By default, the attributes reference a variable iterator which are stored in the request scope (see excerpt from developer's guide below). I can save the