Automatic export to excel of a query

Hi all,
I have a query I must run on a daily basis and export the results to excel format them with a certain font and size and send it via email. Is there a way to automate all of this?
Thanks

Hello;
Yes I believe so.
I would look to a reporting tool. For example Business Objects will auto generate and e-mail reports. Since they also export to Excel I'm thinking they can handle most of your requirements. If they can export to an Excel Template that might be one way to handle your font type and size.
In any event I believe a reporting tool is you best option.
Best Regards
mseberg
This example shows how to email Scheduled Reports in Business Objects and delivered / emailed in MS Excel format.
http://www.letslearnbi.com/2009/05/how-to-email-scheduled-reports-in.html
So certain third part tools will do the job.
Edited by: mseberg on Nov 18, 2011 7:26 AM

Similar Messages

  • WAD Export to Excel, PDF parameters query export

    Hi,
    I solve the problem with export to excel in WAD. Customer want to see all parameters (and also filters in query) with which are query execute in query in  export to MS Excel or PDF.
    Any advices?
    Thanks
    Petr

    Hi,
    Take a copy of template 0ANALYZER, it will have all the components which have the web analyzer.
    Check the below link for the same:
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    Hope this helps........
    Rgs,
    Ravikanth

  • Export to Excel via web query (page breaks on every column?)

    The problem that I'm having is when a query is sent out via the reporting agent or whenever I export a web query to excel there are page breaks put on every column of the query. This becomes quite cumbersome whenever an end user or myself wants to print out a query.
    I have already transported the packages included in the  "How to Enhance Web Printing" and tested much of the functionality in BWD with no success.
    Can anyone shed some light on how to adjust the page breaks or format when exporting a web query to excel or when sending a query out via the reporting agent?
    Thanks,
    Chad
    BW Version 3.5  Support Package 18

    The problem that I'm having is when a query is sent out via the reporting agent or whenever I export a web query to excel there are page breaks put on every column of the query. This becomes quite cumbersome whenever an end user or myself wants to print out a query.
    I have already transported the packages included in the  "How to Enhance Web Printing" and tested much of the functionality in BWD with no success.
    Can anyone shed some light on how to adjust the page breaks or format when exporting a web query to excel or when sending a query out via the reporting agent?
    Thanks,
    Chad
    BW Version 3.5  Support Package 18

  • Automated exports to excel

    is there anyway to have a scheduled report - automatically export to excel and email the attachment to a distribution list?
    is there another tool i can use in conjunction with discoverer to get this to work.
    pareena

    Hi Pareena
    Please do the folowing...
    1. Install Discoverer on a server/ PC which will never be shut down
    2. Install a programm called WINAT (or any other Event scheduler ) also on the server.
    3. Create a batch file which will invoke Discoverer, open an wbook and sheet from the databse, execute it and get it to export the result as an EXCEL to a folder on the Server. Sample code is ...
    C:\orant\discvr31\DIS31USR.EXE /APPS_GWYUID APPLSYSPUB/PUB /APPS_FNDNAM APPS /APPS_USER /APPS_RESPONSIBILITY "ABCD" /connect login/password@connect string /batch /opendb "WorkBook Name" /sheet Number /export XLS C:\report_name.xls.
    4. Create yet an another batch file which will pick up this excel file and email it to an email group.
    We have been successfully sending out Excel version of a critical report to a set of people every week day morning at 5:00 am using the above route.
    All the best.
    Thanks
    -Uma

  • Export to excel sizing issue

    Hi there,
    we are facing a weired issue when using export to excel from the query output, we have notice that while we save the excel it is getting saved as a HUGE file irrespective of the data volume.
    For ex:our report has 1100 records, but when we export to excel it got saved as a 7MB file..
    However when we save the file as CSV, it work okay.. wondering why are we facing an issue while export to excel ?? Is there any way that we can set the Excel format options in query output??
    I've tried searching in forums, couldn't find the solutions, Please could any one throw some light on this??
    Regards,
    J

    Hello,
    The reason for the increase in size is discussed in SAP Note 1178857.
    "The export to Excel function is supported as of Excel 2003. It generates an XHTML file in the Multi Mime format. This means that
    Mimes (for example, icons and screens) are stored in the file. Therefore, as opposed to the BW 3.X function, you do not need to
    logon to Excel again to download, for example, icons for hierarchy nodes. If you want to save the report after the export, Excel proposes the file format MHT or MHTML. This corresponds with the Multi Mime format of the generated file."
    So, I think you already know this....
    Possible solutions are:
    1) Use open hub instead.
    2) Design BI Workbooks individually for your queries and distribute them to Portal using a precalculated server. This will
    help in reducing the file size and distribute the precalculated results in simpler way. You can refer to following documentation in this regard.
    http://help.sap.com/saphelp_nw70/helpdata/en/05/0e044017355c0ce10000000a1550b0/frameset.htm
    Regards,
    Michael

  • Export to Excel from Report region (pl/sql returning sql query)

    Hello all,
    I have encountered an interesting problem. I have an HTMLDB application with a lot of sql reports coded straight inside the report region. In order to better organize my reports, I decided to
    1. make all my report regions of type "Pl/Sql function returning SQL query"
    2. create a package inside my database schema which houses all reports as pl/sql functions returning VARCHAR2, the string returned being the report query
    3. just calling "return package_name.function_name" from inside my report region of type "Pl/sql function returning SQL query".
    This technique seemed to work perfectly. The reports were being returned as expected. I was then asked to provide the "Export to Excel" capability to all my reports. This seemed like a piece of cake using HTML DB's "Export to Excel" extension. However, the "export to excel" does not function correctly when my reports are inside a package in the database. HTML DB tries to export but inside the excel spreadsheet, instead of seeing row data, I see:
    <pre>failed to parse SQL query:
    ORA-00936: missing expression
    <!-- select a.username, b.table_name, 'View Row Data' from schema_browser_user_list a, all_tables b where a.user_id = and a.username = b.owner order by b.table_name asc
    --!>
    </pre>
    I am building my query string inside of my package functions by using a combination of literal strings and concatenating them with some parameter values being passed in. It seems that the HTML DB engine which exports the report to excel does not properly understand the concatenation of variables as can be seen by the empty space to the right of the equal sign in the "a.user_id = " clause. Does anybody have any input as to whether this is a known issue or if I am doing something wrong? Thanks a lot for your time.
    - Kenny R.

    James,
    Thanks for the quick reply. I think you mis-understood what I'm doing. All I'm doing is creating packaged functions which return VARCHAR2. The VARCHAR2 that they return is the report query. With this technique, I no longer have to type the query into the HTML DB report region. Instead, I make the report region a "Pl/sql function returning sql query" and make the following call: return package_name.function_name(some_application_items passed in as parameters)
    This makes for a much more organized html db app. The problem is that the "export to excel" function does not correctly interpret the VARCHAR2 that my packaged functions are returning. Is this a better explanation? Thanks again for your time.
    - Kenny R.

  • Query SQL code gets deleted after export to Excel. "Query must have at least one destination field"

    Hi all,
    I'm getting really frustrated by this Access error. It happens when I export the result of a query through an Access macro to Excel, the first time it runs well but the next time, there is a chance that the query won't run and the error "Query
    must have at least one destination field" will be displayed. After that, I try to check the query SQL code and discover the code has vanished. I'm using simple Select query without joins, only "where", "group by" and "order by"
    statements.
    Thank you in advance for your help,
    Jesus 
    Edit:
    One of these queries are like the following (all of them are of this type):
    SELECT Field1, field2, field3, field4, field5, Sum(Field6) AS SumOfField6, Sum(Field7) AS SumOfField7
    FROM Table1
    WHERE Field6 is not null
    GROUP BY Field1, field2, field3, field4, field5
    Order By Sum(Field6) desc

    Hi Peter, 
    Thank you for your response, I updated the original question with one of the codes.
    Thanks,
    Jesus

  • Export to Excel is not working for List View Web Part after filtering using Query String parameters in SharePoint 2010

    Hi, 
    I am filtering SharePoint list view web part based on Query string parameter and I am doing Export to Excel by using following code.
    <a href="#" onclick="javascript:window.location='../_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=0DC67399-BE11-48F3-ADFC-E911FB8B5845&View=54671412-3EFE-4281-835A-9EF747AE774E&CacheControl=1'"><img
    alt="Excel" src="/_layouts/images/icxlsx.gif" border="0"/>&nbsp;Export to Excel</a>
    Issue: Able to do Export to Excel when there are no filters applied on list view web part but if applied filters on web part and do export to excel , only header fields are displaying in the excel sheet.
    I don't know why owssvr.dll is behaving like that .
    Please share your ideas.
    Thanks in Advance.

    Hi,
    According to your post, my understanding is that you wanted to create hyperlink to export to excel.
    The URL to execute the export is as follows:
    {Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1
    After getting the GUID, you  need to “decode” the list GUID.
    Replace %7B with {
    Replace %2D with –
    Replace %7D with }
    More information:
    Create Link to Export Library Contents to Excel
    SharePoint - Create a link to export to Excel
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Hyperion Workspace Financial Reporting Export to Excel Query-Ready Missing

    Hyperion Workspace Financial Reporting Export to Excel "Query-Ready" option is Missing in the dropdown when you go to File>Export>Excel
    Only the "Fully Formatted" option is available.
    From what I recall this option for a "query-ready" export should be available from the HTML preview?
    Is there something in configuration that needs to be enabled or something that needs to be checked on to get this option?
    We are running 11.1.1.3
    The Query-Ready option is available when exporting forms in Planning.
    When opening Financial Reports in Smartview the option for "Query-Ready" is available.
    For some reason this is not showing up in workspace, does it not exist in 11.1.1.3? Is this a bug?
    TIA

    Hi,
    The option to export the financial report output in "Query-Ready" format is actually at the bottom right hand corner of the report page (look at the report footer) instead of File>Export>Excel.
    Hope this helps
    Genti

  • Automatic closing of excel export of uwlCollaboration tasklist.

    Hi,
    I use the iView uwlCollaboration in one of my Room Template, and I face a problem when I use the "Export to excel" button.
    When I click on this button, I face 3 possibilities :
    - Open the xls file.
    - Save the xls file.
    - Cancel the action.
    When I click on open the file, a new window, containing the xls file, is opened. And right after that, this new window is automatically closed. And I'mnot able to consult the file.
    So I'm forced to save the xls file before consulting it.
    I work on EP 7.0 SP10.
    Any idea of what's happening ?
    Thanks,
    Loïc LEVEUGLE

    However, that is not a goal of mine. After making changes to a file or adding keywords, I want Lightroom to automatically update the actual files (in my case jpegs) so that I do not need to export them to be used elsewhere such as in a slideshows etc.
    Lightroom cannot do this automatically.
    Furthermore, despite the fact that your goal is to update the JPGs immediately, this is not a good idea in any case. You don't really want to overwrite your originals with edited versions of them. This is a really poor practice.
    I do not want to have to export these files.
    Then you absolutely can't get there using Lightroom. I'd be surprised if there really was any software that will do this automatically for you, perhaps you could define an action in CS6 to do this (don't know, I never tried).

  • How to Export from table view to Excel (not BI query)?

    There is a 'How to' document explaining how to export from an iView using a BI query:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123
    However:
    This 'How-To' document is using an example of a BEx query. I am not using a BEx query, therefore I do not have an "Info port". How can I download to Excel from a table view that is not an iView of a BI query? (It is just a internal table coming from a BAPI).

    keenneth,
    i am using the query from SQL server, i am having the same problem of not having info port. so did you find a work around for exporting to excel with filters for non sap queries ?
    any body who had come across this situation , plz guide me.
    thanks in advance
    ravi

  • MSS Report Export to excel - ERROR - load: class query not found

    Hi All,
    I am navigating and getting error as follows:
    Manger Services ->My reports -> Report Selection -> HIS Reports -> General -> Employee Details -> add some people and click start report -> report shows -> click local file -> save as spreadsheet get ERROR - load: class query not found in the status bar or IE and IE then locks up
    Please reply if any one has some clue.
    Thanks & Regards,
    Vishal

    Hey Vishal,
    This issue gave us a  very hard time. The query was HRIS manager. when you add some attributes to be exported to excel and then select export. It hangs there. or hangs at the step where you select save as spreadsheet, OR after it where it runs a query to export.
    I came to know that Java JRE is used in the last step. So for solving this issue, go to java.com, on the first screen there will be big link to install java(i guess JRE). install it and then try exporting your query. I am sure it will work.
    Just notice that after doing installation of Java you will get coffee cup in you system tray.
    Thanks.
    Ankur.
    P.S. Points if works.

  • When do export to excel value of char column automatic changes in excel

    When do export data , the values of varchar2 column (of oracle) it automatic changes
    Eg.
    the value in oracle (varchar2(100) is --> 205013113452
    when do export to excel it's change to ---> 2.05013E+11
    How can I solve this problem?.
    Regards
    Akbar

    create a view with the order of colums that you want to see in excel and export to excel after selecting that view now you will get the excel columsn with format you like .

  • "Export to Excel" does not work for query based on Master Data InfoSet

    We have many queries based on InfoSet consisting 2 or more PS Master Data. After we upgraded from BW 3.1 to 3.5, the "Export To Excel" function no longer works via BEx Browser. It returns all blanks where master data should be shown. Only the non-data area like column headings are exported to excel.
    Is this a bug introduced in BW 3.5?
    Thanks,
    Kinuko

    It seems that BW 3.5 SP10 may fix this problem.

  • Query on Export to Excel- Help needed

    Hi All,
    I wanted to know if we can set a hidden field value when user clicks on the "export to excel" link in the reports.
    I am using the Apex Export feature itself. Is it possible to set an item value when user clicks on the link?
    If yes then how can we do it? If no can you please let me know the other options available?
    Thanks,
    Sumana

    Thanks Denes!
    I understood how to trigger the process on click of the export to csv link. As of now i will implement that in my application..
    I just wanted to know if "the" dialog box could be controlled.
    But later maybe,( if my client really needs it...), I will have to use my custom export to excel option. I have even downloaded your download-excel.
    But it says that it cant be used for pl/sql returning function....
    Is there a workaround on that?
    And I will tell you the difference it makes to my application.
    Current Requirement: I need to track the information (for e.g say user id's) that have been sold to a customer. I am doing this by inserting the data exported by user to the table. This must happen only when user saves the file. Only when user saves the file, the information is considered as "Slod".
    Now if the user click on export to csv link but simply opens or cancels the file download, that information is not considered as "Sold"
    Hence my need, that i could control the dialog box. Hope this clears your doubt.
    Regards,
    Sumana

Maybe you are looking for