Download Excel worksheet & summary

Hi Experts
    I have data in o/p. I want to download the data.
example
My list o/p from prg.
EmpNo.    EmpName     Qty Ordered
123           swati            100
124           keerti            200
125           preeti            300
Summary.
total names : 3
total qty      : 600
How do I download the data along with Summary data into excel in the same format.

hi
good
go through this link
http://sap.ittoolbox.com/code/archives.asp?d=3027&a=s&i=10
thanks
mrutyun^

Similar Messages

  • Filename of downloaded Excel file

    I frequently download Excel files from a website that seems for the most part windows centric. These excel files have an extension of .xls, I can double click them to open, but when opened they just have the file name of WORKSHEET. If I rename the file in the finder the same thing happens. If I try to open the file in numbers I get something like
    <table border="1">
    <!-- <tr><td colspan = "15" valign="middle" align="center">Date: 8/1/2008</td></tr>-->
    <!-- <tr><td colspan = "15" valign="middle" align="center">Investor's Business Daily Æ</td></tr> -->
    <tr><td colspan = "15" valign="middle" align="center">Investor's Business Daily 100</td></tr>
    <tr><td colspan = "15" valign="middle" align="center">Data as of 8/1/2008 market close</td></tr>
    Any idea? Now I have to open the file in excel, then do a save as, type in the file name (if I don't want WORKBOOK), then delete (or write over) the original file. What can I tell the website people?

    Hello ,
    In my procedure i am passing id and with the help of that id , ia am fetching values from the database.
    i have declared on clob type variable say v_insert where i am storing table structure(like worksheet) which i need on excel
    example
    v_insert := v_insert||'<tr>';
            v_insert := v_insert||'<td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td><b>Column1_Value</b></td> <td>abc</td>';
        v_insert := v_insert||'</tr>';then i am converting that clob into blob and storing the content into BLOB type variable say v_blob
    below is the code used for downloding the blob content.
    wpg_docload.download_file(v_blob);Thanks,
    Jitendra

  • Creating multiple Excel worksheet

    Gurus,
    I am downloading data into Excel from my web page by using the following:
    Response.setContentType("application/vnd.ms-excel");
    HtmlWriter out = aResponse.getWriter();
    out.print(
    I am able to view all the data in one Excel worksheet. Does anyone know of a way to create multiple worksheets?
    Thanks in advance for your help.

    Look at POI at http://jakarta.apache.org/poi/ for an open source library to write Excel with Java.
    If you just want to produce a one-off, you can save an Excel workbook as XML and look at that to see how the sheets are produced in XML.
    There are also commercial products like Formula One that provide support for reading and writing directly to/from Excel from Java.

  • Accessing Excel worksheets when OBI EE is on Unix?

    Hi, is there any straightforward way to have OBI EE access Excel worksheets when OBI EE is running under Unix? If this was Windows, I'd just create an ODBC connection to the Excel file and everything would be fine. But I'm not sure if this is possible when the BI Server runs on Unix.
    Thanks in advance for any suggestions!
    Scott

    Also, can't one upload the worksheet to the server and use Heterogeneous Services to make its contents available to the database and thence to OBI ?
    For example, see the first part of:
    http://oraclebizint.wordpress.com/2007/09/04/owb-10g11g-heterogeneous-data-sources-excel-mysql-and-sql-server/
    Another method is to keep the forecast data locally in Excel - you know that an awful lot of people will be using Excel to put out reports !
    Then get the actuals data into another sheet, either using the OBI EE plugin, or just by downloading the results from web OBI EE Answers.
    Then tell Excel that it always gets its actuals from that sheet.
    This does not make the forecast data available in OBI, but it does enable the forecasts
    and actuals to be stitched together without involving the back-end team.
    So will be suitable for some folk.

  • Can't Print Excel Worksheet

    New ;laptop won't print my Excel worksheets to my HP Officejet Pro 8500.  Windows 7 .  All other items will print. 
    Error talks about not enough Memory(have even tried printing empty sheet), Network problems(not on network, directly hooked to printer), and loose cables(can't be this because every other program works)
    HELP!  Really need to get items printed for work.

    Hi there weekster,
    Try downloading and running the print and scan doctor located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03275041&cc=us&dlc=en&lc=en
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Problem: JSP does not restore after downloading Excel.

    I have a "search.jsp" with a commandButton to generate excel. "Report.jsp" opens up in a new window when i click on this button by running below mentioned javascript. I can download Excel successfully by clicking on Download Excel link in report,jsp. Problem is, once i close this new window, I am unable to perform any other action in "search.jsp" even if i do not perform download. If i click on any other button or link "search.jsp", it replaces whole jsp with the Downlaod Excel link. and nothing happens after that . i need to close the seesion and start all over again from login page. Does anyone has solution. It will be big help. Thanks.
    JAVASCRIPT:
    function aaaa()
         mywindow =window.open('report.jsf', 'popupWindow', 'width=400,height=200,left=0,top=100,screenX=0,screenY=100');
    Following is report.jsp:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://www.backbase.com/2007/jsf" prefix="bjsf" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <f:view>
    <h:form>          
    <h:commandLink actionListener="#{searchpage.export}" value="Download Excel" />
    cancel
    </h:form>               
    </f:view>
    </body>
    </html>
    Following is export function which runs when i click on above commandlink "Download Excel":
         public void export(ActionEvent event) {
              try {
                   FacesContext context = FacesContext.getCurrentInstance();
                   HttpServletResponse response = (HttpServletResponse) context
                             .getExternalContext().getResponse();
                   response.setContentType("application/vnd.ms-excel");
                   response.setHeader("Content-Disposition",
                             "attachment; filename=report.xls");
                   ServletOutputStream servletOutputStream = response
                             .getOutputStream();
                   WritableWorkbook workbook = Workbook
                             .createWorkbook(servletOutputStream);
                   WritableSheet sheet = workbook.createSheet("First Sheet", 0);
                   WritableFont lfont = new WritableFont(WritableFont.ARIAL, 10);
                   lfont.setBoldStyle(WritableFont.BOLD);
                   WritableCellFormat lformat = new WritableCellFormat(lfont);
                   lformat.setBackground(Colour.DARK_RED2);
                   lformat.setBorder(Border.ALL, BorderLineStyle.THICK);
                   WritableFont rfont = new WritableFont(WritableFont.ARIAL, 10);
                   WritableCellFormat rformat = new WritableCellFormat(rfont);
                   rformat.setBorder(Border.ALL, BorderLineStyle.THIN);
                   for (int i = 0; i < this.list.size(); i++) {
                        HashMap h = (HashMap) this.list.get(i);
                        if (i == 0) {
                             Set s = (Set) h.keySet();
                             Iterator itr = s.iterator();
                             int j = 1;
                             while (itr.hasNext()) {
                                  Label label2 = new Label(j, 1, itr.next().toString(),
                                            lformat);
                                  sheet.addCell(label2);
                                  j++;
                        Collection c = h.values();
                        Iterator itr = c.iterator();
                        int j = 1;
                        while (itr.hasNext()) {
                             Label label2 = new Label(j, (i + 2), itr.next().toString(),
                                       rformat);
                             sheet.addCell(label2);
                             j++;
                   workbook.write();
                   workbook.close();
                   context.responseComplete();
              } catch (Exception e) {
                   e.printStackTrace();
         }

    Try upgrading JSF. I recall a Javascript-specific bug like this in a specific webbrowser. You could try to test in different webbrowsers. The latest JSF 1.2 is currently 1.2_14 which came out just 3 weeks ago. You can get it at [http://javaserverfaces.dev.java.net].
    Oh, you certainly need to invoke `FacesContext#responseComplete()` afterwards. This is really not the problem.

  • Data open/save-as in Excel worksheet

    Hi all,
    i created implement one diagram into my existing vi for opening and saving the data in microsoft excel worksheet but it doesn't work. I have been looking through Excel Macro Example but couldn't make sense of it much.
    still new in this and will really appreciate if someone can give me any insights for my problem.
    thank you
    Attachments:
    Excel messedup.vi ‏40 KB

    You need to learn about data dependency!
    In your VI you are performing three actions simultaneously:
    Reading from an instrument and collecting data and then writing it to a text file in tab-delimited format, and then reading that file, but not doing anything with it.
    Opening an Excel workbook and then a worksheet, and then closing the reference to the workbook.
    Opening the Excel application and then closing it the reference to it.
    Why do you need to open/close Excel if you're already writing the data to a text file in tab-delimited format? Excel can read this directly.
    I would strongly suggest going through the LabVIEW tutorials that discuss data dependency and how to code in LabVIEW.

  • Uploading multiple EXCEL Worksheets to SAP

    hello everyone.
    i am new to SAP, and i wanted to create a program that would read multiple excel worksheets and appened the values of the file to an internal table.
    can somebody help me with this?
    here's what i wanted to do exactly:
    excel tab:
    worksheet 1:
    pernr  |  begda | endda |
    worksheet 2:
    pernr  |  begda | endda |  address line 1 | address line 2 | phone number
    worksheet 3:
    pernr  |  begda | endda |  Annual salary |
    i wanted those data to be in the following internal tables:
    for worksheet 1: >>>> i_pa0002.
    for worksheet 2: >>>> i_pa0006.
    for worksheet 3: >>>> i_pa0008.
    thanks a lot for future replies.
    Mark

    hi,
    you can use  fm
    ALSM_EXCEL_TO_INTERNAL_TABLE
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = 'File Path\File name.xlsx'
        i_begin_col                   = 'A'
        i_begin_row                   = 1
        i_end_col                     = 'E'
        i_end_row                     = 3
      tables
        intern                        = itab
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    thanks

  • ALV problems, trying to click Back button, Filtering, download (Excel)

    Hi
    When I try to click Back button, Filtering or download (Excel) on ALV grid this dumps appear:
    Runtime Error          MOVE_TO_LIT_NOTALLOWED_NODATA
    Error analysis
        The program tried to assign a new value to the field "<L_BOX>" even though
        it is protected against changes.
        The following objects are protected:
        - Character or numeric literals
        - Constants (CONSTANTS)
        - Parameters of the category IMPORTING REFERENCE for functions
          and methods
        - Untyped field symbols to which a field has not yet been assigned
          using ASSIGN
        - TABLES parameters if the corresponding actual parameter is protected
          against changes
        - USING reference parameters and CHANGING parameters for FORMs if
          the actual parameter for this is protected against changes
        - Field symbols if the field assigned using ASSIGN or ASSIGNING
          is protected against changes
        - External write accesses to READ-ONLY attributes
        - Key components of lines in internal tables of the type HASHED or
          SORTED TABLE
          SORTED TABLE.
    Line  SourceCde
    681 * set/unset <box> of all items
    682     if l_ucomm eq '&SAL' or l_ucomm eq '&ALL'.
    683       if l_ucomm eq '&SAL'.
    684         loop at t_outtab.
    685           l_tabix = l_tabix + 1.
    ->>>           <l_box> = ' '.
    687           modify t_outtab index l_tabix.
    688         endloop.
    689       endif.
    690       if l_ucomm eq '&ALL'.
    691         loop at t_outtab.
    692           l_tabix = l_tabix + 1.
    693           <l_box> = 'X'.
    694           modify t_outtab index l_tabix.
    695         endloop.
    696       endif.
    What I must check on my ALV settings:
    ch_alv_layout-zebra          = 'X'.
      ch_alv_layout-box_fieldname  = 'SELE'.
      ch_alv_layout-box_tabname    = v_nametab.
      ch_alv_layout-reprep         = 'X'.
      ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
      ch_alv_layout-colwidth_optimize = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          is_layout          = ch_alv_layout
          it_fieldcat        = ch_alv_fieldcat
          it_sort            = ch_alv_sortinfo
          i_save             = 'X'
          it_events          = ch_slis_event
        TABLES
          t_outtab           = p_control
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    Thanks in advance.

    ch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
      ch_alv_layout-colwidth_optimize = 'X'.
    try commenting the above values.and also check the Fieldcatlog.
    Check the issue similar issue was resolve by checking catalog and layout:
    [ALV Issue solution|Re: Problem when export ALV.]
    Regards,
    Gurpreet

  • Sending report output to Excel worksheet- Why all labels R put in one line?

    We need to export data from Oracle database to MS Excel work sheet. We developed a report and put all required things in the report. Set DESFORMAT and DESNAME parameters accordingly. Every thing works fine. But all the labels at the start of report are put in one line when we open output file in Excel worksheet. That is report heading, sub heading and column headings are all put in one line. Rest of the data is fine.
    To make excel worksheet more readable, we need to show these lines as these appear in layout and Line Previewer.
    Pl. help.

    Thanks Siva,
    Yes I am setting destination format to DELIMITED. But I do NOT want to suppress headers. In fact I do want headers in proper manner. The reason is that a no of files are produced by the same report for different columns as per user option in parameter form. So I want to put headers at the top of Excel file so that later on, at the time of using file for graphs in excel, user is able to properly recognize what the file contains. So I do want headers in manner in which they appear in Live Previewer and printed report.
    Waiting for reply from U and support group.
    M. Tariq

  • Suddenly, all my saved Excel Worksheets are opening as Numbers documents, even though I've NEVER used the Numbers application, and even though the documents continue to be identified as Excel documents--losing years of work.  What happened?

    How can I uninstall Numbers?  I've never used the Numbers application before, and suddenly all my saved Excel Worksheets are opening as Numbers documents, even though they continue to be identified as Excel documents?  I'm losing years of work.

    Right click on a Excel Worksheet file, choose 'Get Info'. In the small window that opens change the 'Open with:' from Numbers to Excel. Click on 'Change All…'

  • URL Link on downloaded Excel File

    Hi,
    I have got a requirement.
    For study and analysis purpose user download data on excel file from OCOD. Struture(Contents) of downloaded excel file is same as screen.
    But the problem is when user click on 'DETAIL' (which has URL link) he/she is directed to Live OCOD and asked for log in with ID and Password, even if
    user is logged in OCOD.
    What i want to do is.
    1) Download Excel file without any URL link.
    2) If 1) is not possible then do not want to have 'DETAIL' option of downloded file.
    3) Method for avoiding relog into OCOD.
    Thanks in Advance
    Yuj

    Yuj, within the application click on the Training and Support link in the upper right, then click on Add-On Applications, then click on Reports and Analysis for Excel Template. In order to take the webinar click on Browse Training, then click on Training Resources by Job, then click on All Users, then click on Using Mail Merge for Word and Reports and Analysis for Excel with Oracle CRM On Demand.

  • In SAP Webdynpro using ABAP,how to colour the downloaded excel file?

    Hi all Experts'
    I have downloaded the data from the webdynpro application into an excel file in the presentation server using a custom button in a layout of a view in the webdynpro component.
    Now the requirement is to colour the column heading names and the downloaded excel file should show the full column length.
    Could anybody help me on this how to do this two things.
    Thanks in advance.

    Hi,
    You can use this function GUI_EXEC.
    Let say you want to use winzip to zip the file then what you should do like this:
    use this command --> ' -min -a D:\WALCOTT.ZIP D:\MBARANG.TXT'
    D:\MBARANG.TXT --> path to the file you want to Zip
    D:\WALCOTT.ZIP --> result zip file
    The command above is depends on the software you use to zip.
    then
      DATA: cmdguiexec(150).
      cmdguiexec = cmd.
      CALL FUNCTION 'GUI_EXEC'
        EXPORTING
          command          = cmdguiexec.
    Hope this help you.
    Best Regards,
    Victor.

  • Download Excel file from  from a second server

    Hi,
    In our Java based web application (jsp pages) users need to download Excel files stored on a different server (business tier) than the first application server server that hosts only the presentation tier.
    For security reasons users don't access the second application server. From a technical point of view what's the best solution to answer this requirement ? The logic should be the following: the user clicks on a report name that is displayed on this browser, the request is sent to the first application server that will retrieve the report stored on a second server and will return it to the user.
    Thanks a lot.

    it's been a while since i've done ejb stuff, but i believe you can configure an ejb to "runas" a different user. so, you would configure an ejb on the accessible server to "runas" a user who has access to the secondary server.

  • Help and some explanation how to get a Microsoft.Office.Tools.Excel.Worksheet host item that extends the functionality of the current Microsoft.Office.Interop.Excel.Worksheet object

    Hello,
    I would use some help and more info about how to get host object that extends the functionality of my current Interop.Excel.Worksheet object. I read this artical: https://msdn.microsoft.com/en-us/library/ee794671.aspx where I can call this function
    GetVstoObject to get host object. But I see that here I need to pass the Globals.Factory object as second parametar. Can someone give me more details about that parameter and how to access it? I would like to get host object so I can access extension
    property, since my interop excel worksheet doesn't have it.  
    I am using Visual Studio 2013 for developing Excel addin. Using Excel 2010.
    Thanks in advance for help.
    Regards,
    Zeljka

    Hi Zeljka,
    >>I am using the Microsoft Office PIAs, so my question is how to access this automatic generated class Globals in my case?   <<
    Sorry, I am not able to understand the application you were developing exactly. From the orgnal post, you were developing an application level add-in, however based on the description above, it seems that you were building an console or Windows form application
    to automate Office application.
    If you were developing Office automation, the host item can't work for this secnario since it should run under the VSTO runtime.
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    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.

Maybe you are looking for

  • Text message service center settings?

    Hi, I have a Samsung Galaxy S4. I am currently in the UK and inserted a pay-as-you-go SIM card from O2. After modifying the APN settings, I have been able to start using the phone and the internet - but unfortunately, my text messaging is not working

  • ABAP OO Events

    Dear all: In ABAP OO programming, Events can be raised to announce a change of state (or action etc) and the associated Event Handlers can react to that. SAP says that after the Event is raised: - caller program halts processing - all subscribed Even

  • What does operating temperature mean?

    http://support.apple.com/kb/SP5 Apple states that the maximum operating temperature is 35 degrees Celcius. Does that mean that my Macbook can be, at max, 35 degrees Celcius, or that the temperature around me, while using my device, can be, at max, 35

  • Pre-order is being axed...

    My friend just got a call from bestbuy that his pre-orders for white one is no longer guaranteed and they are not sure when he will get it. He is very upset because most of other places are now even taking pre-orders for black ones. Basically, he was

  • Page 1 diappearing / reappearing

    Anyone else having this problem? Page #1 of my 250 page document keeps disappearing, then reappearing. When I click on the thumbnail for page #1, I see only a "grey background" screen. When I go to page# 2 and try to cursor backward, I get stopped...