Export to Excel & Download in JSPDynpage

Hi All,
I have developed one JSpDynpage application in which I am displaying the custom portal activity report on portal page. I . I have used normal HTML code in JSP file. Now I have to export this data in Excel sheet & Download it.
For this I have gone through these steps.
1) As per the few suggestions on SDN , I have created seperate AbstractPortalComponent  for this functionality.
2) I have followed prakash's blog i.e. Create an excel file from JAVA using HSSF api
3) Included all needful POI jar files mentioned in the blog.
But still i am getting error - java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
This class  exists in JAR file when i checked. Error is looking simple, but not getting resolved.
Also please suggest me -
1) How to call this AbstractComp. from JSP file , when user click on a link on portal page.
2) what shoud be the additional code for download functionality?
Any sample code will be more helpful
Regards,
Vishal

Hi Vishal,
I am facing one problem with customization of portal activity report.
We made some changes to the existing report par file and deployed from NWDS to dev system. When we previewed the existing iview in Dev portal system the changes reflected and once we exported the PAR file to QA system and previewed the iview from portal, there is no data coming to portal.
Can you please let us know what could be the reason for this?
Thanks
Manas

Similar Messages

  • One digit in customer number missing in Export to excel download

    Dear All,
               We have a customized report for customer collection.The output of this report is as per desired. But when we download it to excel last digit in customer master is missing.That means say customer number is 1100051 while we export to excel customer number showing is 110005 , last digit gets missing. This is for all the customers.
              One more point I would like to state here. In that report we have 2 radio buttons. Bank Receipt and Down Payment . This error is coming only for Down payment radio button.
              Can anybody please help me solve this issue.
    Regards
    Abhijit

    hi ABHIJIT DAS ,
    debug and see the internal table values ,whether the customes is comming fully  and also check the fiels length for
    that customer .
    regards,
    chinnaiya P

  • How to download background color of ALV with button "Export to Excel"

    Dear Experts:
    I can download the data of ALV in webdynpro for ABAP, but the color is missing.
    Does anybody know how to download background color of the ALV cells also by "Export to Excel" button?
    Could anybody help on this?
    Thanks in advance!
    Best Regards
    Lingxing Meng

    never experienced that...
    [chk this link|Download colored ALV output in to EXCEL sheet;
    a couple of intersting posts, they talk abt general ALV...
    try one of the last post ...when downloading
    use local file->HTML only.. but while choosing the file location to save give extension as XLS.

  • Numbers get exported as Text when selecting Download to Excel / Download to

    I have a dashboard report in which the numbers appear in the French format as follows:
    37 167 534,4
    In English format, it would represent
    37,167534.4
    When i export my report, the number is displayed in Excel as text, and not as a number. This is because of the space in between37 and 167 in the French format.
    What changes do i make to ensure that the number is exported as a number, and not as text?
    I'm using Office 2003 SP3. Need a solution ASAP.

    Hi,
    You can try adding the below statement in the Custom CSS section of the column properties:
    mso-number-format:"\@"
    fyi..:
    refer my o/p screen short:
    http://imageshare.web.id/images/a18zptth75j1q6on18qm.jpg
    the above one works for excel download with % symbol
    refer:
    Re: Answers report-download as Excel loose trailing zeroes
    Thanks
    Deva

  • Issue with export in Excel in WAD

    Hi
    I have an issue with export to excel in WAD. I have a web template with two or more tabs.
    On the webtemplate I have two buttons to export to excel. One to export the content from the active tab and one button to export content in all tabs.
    My problem is that when I export to excel it always add the current/active content twice. I've tried with both buttons and they work as expected except that they export one table to much (the active).
    can anyone help / give a clue what to look for.
    br,
    John
    Edited by: John Dolph on Apr 15, 2010 10:50 AM

    Hi
    Sorry I has been a while but the problem still occurs,
    I've defined my export button group like this in a seperate template and I expected that it would only return the resultset from TAB_A and TAB_B but it also export the resultset from the tab I'm currently on.
    <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
                <bi:BUTTON_GROUP_ITEM name="TAB_BUTTONs" designheight="23" designwidth="300" >
                    <bi:BUTTON_LIST type="ORDEREDLIST" >
                        <bi:BUTTON type="COMPOSITE" index="2" >
                            <bi:CAPTION value="EXCEL" />
                            <bi:TOOLTIP value="Table, Graph and/or Table/Graph download to PDF" />
                            <bi:ACTION type="CHOICE" value="INSTRUCTION" >
                                <bi:INSTRUCTION >
                                    <bi:EXPORT >
                                        <bi:ITEM_REF_LIST type="UNORDEREDLIST" >
                                            <bi:ITEM_REF index="1" value="TAB_A_ANALYSIS" />
                                            <bi:ITEM_REF index="2" value="TAB_A_CHART" />
                                            <bi:ITEM_REF index="3" value="TAB_B_ANALYSIS" />
                                            <bi:ITEM_REF index="4" value="TAB_B_CHART" />
                                        </bi:ITEM_REF_LIST>
                                        <bi:EXPORT_FORMAT value="XLS" />
                                    </bi:EXPORT>
                                </bi:INSTRUCTION>
                            </bi:ACTION>
                        </bi:BUTTON>

  • Problem in ALV to Excel Download

    Good Morning Experts,
      I am facing one issue related ALV to excel Download.
    I Developed one custom report the output is correct displaying.
    the output is like for example i am taking 3 columns (plant, material, amt).
    plant material amt
    1001  aaa     1000
    1001  bbb     2000
    while downloading to excel
    it displaying like
    plant
    material
    amt
    1001
    aaa
    1000
    1001
    bbb
    2000
    I dont know why its coming like that.
    this is my code
    DEFINE field_cat.
    wa_field-row_pos = &1.
    wa_field-fieldname = &2.
    wa_field-tabname = &3.
    wa_field-seltext_m = &4.
    wa_field-outputlen = &5.
    wa_field-currency = &6.
    wa_field-ref_fieldname = &7.
    wa_field-ref_tabname = &8.
    APPEND wa_field to it_field.
    clear wa_field.
    END-OF-DEFINITION.
    field_cat '1' 'BUKRS' 'IT_FINAL' 'Company Code' '6' '' '' ''.
    field_cat '2' 'BUTXT' 'IT_FINAL' 'Comp Descrip' '25' '' '' ''.
    field_cat '3' 'LIFNR' 'IT_FINAL' 'Vendor No' '10' '' '' ''.
    field_cat '4' 'NAME1' 'IT_FINAL' 'Vendor Name' '35' '' '' ''.
    field_cat '5' 'STRAS' 'IT_FINAL' 'Vendor Addres' '35' '' '' ''.
    field_cat '6' 'FDGRV' 'IT_FINAL' 'Nature Of Work' '30' '' '' ''.
    field_cat '7' 'DMBTR' 'IT_FINAL' 'Net Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '8' 'QBSHB' 'IT_FINAL' 'TDS Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '9' 'TOTAL' 'IT_FINAL' 'Total Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    it_layout-zebra = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
       IS_LAYOUT                         = it_layout
       IT_FIELDCAT                       = it_field
       I_SAVE                            = 'X'
      TABLES
        t_outtab                          = it_final
    EXCEPTIONS
       PROGRAM_ERROR                     = 1
       OTHERS                            = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DISPLAY_ALV
    FORM TOP_OF_PAGE.
    REFRESH it_head. CLEAR it_head.
    wa_head-typ = 'H'.
    wa_head-info = 'Vendorwise Expense Details'.
    APPEND wa_head to it_head.
    wa_head-typ = 'S'.
    IF NOT s_MONAT-high is INITIAL.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low ' to ' p_gjahr '.' s_MONAT-high INTO wa_head-info.
    ELSE.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low INTO wa_head-info.
    ENDIF.
    APPEND wa_head to it_head.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        it_list_commentary       = it_head.
    ENDFORM.
    Regards,
    Dhina..

    Hi,
    You can also try in this way
    in the output screen
      click List (in app tool bar) -> Export -> Spreadsheet
    and save at your desired location.
    (It will be save in .mhtml format , just rightclick on it and you can open it with excel )
    Then you will be able to view in your required format.
    Regards,
    koolspy.

  • Export to excel and others inactive in ALV GRID

    Hi,
    I am creating a report using the 'REUSE_ALV_GRID_DISPLAY' FM and the export to excel fucntionality is inactive. There is no spreadsheet push button on the application toolbar and the List->Export sub menu items 'Word processing' 'spreadsheet' and 'local file ' are all inactive. I have tried to run the code on a different system and the export to excel functionality works there. I am considering creating a new GUI staus using the standard status contained in the function group of 'REUSE_ALV_GRID_DISPLAY' but will like to know if this issues can be remedied e.g is it probably a basis issue or a configuration issue e.t.c.
    Thanks
    Andy.

    Hi Max,
    Checked the PF_STATUS_SET routine and there was code that deactivated  all gui download function codes of the standard gui status if an authorisation check failed ( auth obj. S_GUI) but the function code for excel export is &XXL not &VEXCEL.
    Thanks for the prompt reply max, much appreciated
    regards
    Andy.

  • Running report with alv grid in background and exporting to excel

    Hi Guys,
                  I've created a report program that uses the alv grid. When I run the report in foreground, I can easily export it to excel. However, if I run it in background, then display the spooled report and try to export to excel, it does not put it in excel format (seems to go over as one big column rather than individual columns that are defined in the report). Is there a way to run it in background ,export to excel properly and i have to email also in Excel sheet format.?
    Thanks,
    Gopi.

    In background u cannot do a download to excel. you can do is create CSV format file
    or
    write a report for output with tabs then call that report using
      submit yXXXX exporting list to memory
               and return.
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = report_list
        exceptions
          not_found  = 1
          others     = 2.
    and send the report_list to email users

  • Export to Excel Issues

    We just upgraded from Crystal 8.5 to Crystal 10.  When we export to Excel, the formatting is terrible.  We have close to 100 reports that we routinely export...some with 40,000 rows.  To try to fix these once they're in Excel is out of the question.
    In previous threads I've been reading about a "patch" that supposedly fixes this.  Where can I download this?
    Eric Hill

    The way reports work and export changed significantly in CR 9. While there was a dll available to help move from CR 8.x to CR 9, that dll is no longer available. Not for CR 9, nor any other versions of CR. Instead, you will have to modify your reports as per the article [Crystal Reports Designer Version 10 Exporting to Microsoft Excel|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/10d3ba69-951e-2b10-3093-e3cf287a57c9?quicklink=index&overridelayout=true].
    No other work-arounds or options exist at this time.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Formatting an Export to Excel

    Can anyone tell me how to force a column being exported to Excel to be interpreted by Excel as a text field? The column contains only digits, but has values such as '0000' where all four zeroes are to be considered significant.

    Thanks for your replies. Unfortunately, enclosing values in quotes won't work. To give you a simple example, imagine the source for an interactive report is:
    select '0180' account_code, 145.23 amount from dual;
    When the user views the interactive report, they should see 0180 for the account code and 145.23 for the amount...and they do. So far so good.
    Now, they click the tool widget and select to download the report to Excel. Here's where the wheels come off. I need the account code to be interpreted by Excel as text and amount to be interpreted as numeric. Anything I apply at the download-level, like enclosing the columns with single quotes will apply to both account_code and amount. I need a granular way to specify formatting on a field-by-field basis, only to be used when downloading the data.

  • ALV List export to Excel when program is run in background

    Hello,
    I am running into an issue with a custom ALV report which contains an export to Excel option on the input screen. However, when I attempt to run the report in background due to high volume of records/expected performance constraints, the job fails to produce a spool when the "export to Excel" option is selected. When I deselect that option, the background job successfully generates a spool, which I can then export to Excel (albeit the formatting will not look the same).
    Is the above an accurate statement or does anyone know of a way where either;
    1) The background job can create and store the Excel output into a cached directory?
    2) The spool generated, when exported to Excel, can match the format of the foreground Excel output?
    Thanks in advancce.

    Check out the sample program of the provided link ..
    http://www.sap-img.com/abap/download-in-background-in-excel-format.htm

  • Project Server 2010 export to Excel 2007 fails

    I keep getting the following error when I try to export Resource Availability to Excel.  I am using Project Server 2010, Excel 2007, IE8, Windows 7.  I have PS set as a intranet site with low security set.  Coworkers with the same setup are
    not having this issue.  I have tried exporting to Excel with Excel open, Excel closed, on a hardwire network connection, on wireless network connection, on my corporate VPN and not on my corporate VPN. 
    Microsoft Office Excel cannot access the file "URL here" for the possible reasons:
    -The file name or path does not exist.
    -The file is being used by another program
    -The workbook you are trying to save has the same name as a currently open worklbook.
    Please provide suggestions on what to try differently to make the export work.  I have tried downloaded other version of IE and have the same issue.

    Hi Julia,
    since nobody jumped in, I'll give a try!
    Have you tried to reinstall Excel or at least repair it?
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Crystal Reports for Eclipse ver. 2 fails on export to excel

    I have downloaded crystal reports for eclipse version 2 (full eclipse setup) and created the sample project.
    The new version of JRC looks awesome on the browser. Finally the visual appeal is as good as the .NET version.
    However I am having a problem with the export to excel feature. When I select export to excel, I get the following exception
    Update: I just realized this problem exists for all the export options
    SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
    com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response----
    (Full Exception pasted below the message)
    I have not made any changes to the sample crystal reports project so I am not really sure what i am missing.
    I have Microsoft Vista Ultimate with Crystal Reports 2008 trial version installed.
    I have configured eclipse with Tomcat 6.0 and JDK/JRE 1.6
    Any help would be appreciated.
    Thanks
    SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
    com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response---- Error code:0
    +     at com.businessobjects.report.web.e.if(Unknown Source)+
    +     at com.businessobjects.report.web.e.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)+
    +     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)+
    +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)+
    +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)+
    +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)+
    +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)+
    +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)+
    +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)+
    +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)+
    +     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)+
    +     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)+
    +     at java.lang.Thread.run(Unknown Source)+
    Edited by: Avinash Tauro on Feb 5, 2009 7:43 AM

    I searched on scn and got the listing you mentioned.
    The jsp code I am using is as follows.
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="CrystalReport1-viewer" reportSourceVar="CrystalReport1" isOwnPage="true"><crviewer:report reportName="CrystalReport1.rpt" /></crviewer:viewer>
    And I get the following exception on selecting any export.
    WebReportingException: getOutputStream() has already been called...
    So I think maybe this problem is not the same as listed under SAP Note 1199025.
    Also the strange thing is I just download the full ganymede version with crystal report for eclipse version 2, and created a default crystal reports website.
    The samples were provided automatically, and I have not written any code myself.
    Any help would be appreciated.
    Regards
    Avinash Tauro

  • 2013 Excel WFservlet.xls check exports to Excel and opens blank Windows 7 Ent

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.

    HI All,
    I am trying to work through an issue involving an online check through Accounts payable downloading to a blank Excel document. If the user saves the file it opens as it should but if she chooses to open it, it opens blank. If I go to View>Arrange
    All> leave the Tile selected (basically do nothing but click OK) and click OK it opens. I have done an Office repair with no luck and also a complete uninstall then used the office removal tool then reinstalled with reboots in-between and still no change.
    This computer is on a domain and I can get the check to export to excel without any issues on another computer so I know it's not her roaming profile. I can get it to work on my machine and others as me, admin and her but on her machine no luck. I have opened
    IE settings on her machine and a working machine and matched the settings exactly as well as Excel settings. I have started Excel in safe mode and exported but no luck. I have disabled all add ins in excel and added the site to compatibility settings and trusted
    sites in IE. I reset the browser and deleted history with all options selected.
    In the beginning I was receiving the error "The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?" I checked the following
    In Windows Explorer Tools > Folder Options > View tab > made sure "Hide extensions for known file types" was unchecked.
    I also did
    Open your Registry (Start -> Run -> regedit.exe)
    Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
    Right click in the right window and choose New -> DWORD
    Type “ExtensionHardening” as the name (without the quotes)
    Verify that the data has the value “0″
    No luck.
    If I log into the computer as local admin or my domain account it still opens blank.
    The file will open in Chrome but I am wondering if that's because Chrome downloads the file as if I choose to save the file opens fine. I am going to run the OffCAT will post my findings.
    Thank you!

  • Any ideas on how to merge 2 reports on page to export to Excel or PDF?

    This is for OBIEE 11g (we are currently running 11.1.1.6.8). We have a user requirement to put the prompt selections on each report that is exported to Excel or exported to PDF. This requirement has to do with auditors. We cannot use the Filter Criteria view because we have saved filters that contain other saved filters so not all of the filters are shown. What the users want is to just have the ability to Export to Excel or PDF for one report and add the prompt criteria so that it also shows in Excel or PDF. We know we can use presentation variables and create a narrative view to show all of the prompt criteria. But we don't want to have this in a view in the compound layout of every report on the page (we have many pages with many reports on them). What we would like to do is have the Export (to Excel or PDF) download the prompt criteria (like when you use the printable HTML and printable PDF functionality only we want this for one report). So think of merging the report that is being Exported to Excel or PDF with another report that is built to show the prompt criteria. Is anyone else doing this kind of functionality? Any ideas on how to do this with javascript?
    We created an SR on this to find out if Oracle had some ideas but they did not and said that this is already an enhancement request ( Bug 8242921: ALLOW PROMPTS TO BE DISPLAYED WHEN DOWNLOAD TO EXCEL)
    Any help would be appreciated. Marybeth

    Did u tried the first method? i.e directly exporting the analysis to excel?
    Thanks.

Maybe you are looking for

  • Web Dynpro Application connecting to incorrect R/3 instance

    Hi, We have newly configured EP. We are facing strange problem with web dynpro applications. They are accessing data from incorrect instance of R/3 system,i.e, if correct system instance is x , they are accessing data from y instance, on the same R/3

  • How is lead time calculated for QM notifications

    Can somebody please tell me what fields are used to calculate lead time?  It is field SUMDLZT in MCQMEL?  Is there documentation on how this is calcuated?

  • Premiere Pro CS4 Überlastung beim Bearbeiten

    Beim Importieren von AVI-Files (auch bei anderen) hängt Premiere. Bei der Aktivitätsanzeige wird bei Premiere über 100 % angezeigt, teilweise 150 % (!). Der ImporterProcessServer (vermutlich der Auslöser dieser Misere) steht bei 100 % und mehr. Das S

  • Any experience with Illustrator CS2 and MBP?

    Hi Everyone! I read a lot about the performance of Photoshop CS2 with Rosetta, but I would like to know how the Illustrator CS2 works with the new MacBook Pro. Thanks for your comments! Gus

  • Delete NT intstance serivce

    Hello all, When i uninstall 9i DB in my Win2k Adv. server, i found that the NT service created for the DB can't be removed. How can I remove the service so as to reuse the SID when I restall the DB later? Many Thanks Marius