How to export from ALV to Excel

Hi Pals
I did a alv grid program using classes, but I am unable to export that alv report to excel or some other tools, even though the button in the toolbar it is an active mode. If I click on that it showing empty spreadsheet.
Please can you help me out as soon as possible.
Regards
Praveen

Hi Praveen,
Chk out this function module CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
(used to Display a File_Open_Dialog For the User to choose a dest. file)
put this accordingly
AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'DOWNLOAD'.
perform CL_GUI_FRONTEND.
IF SY-SUBRC = 0.
*--- Perform to download the report into an Excel file
     PERFORM DOWNLOAD_REPORT_XL.
*--- Perform to write the details report
        PERFORM WRITE_REPORT_INTO_XL.
Hope this would wrk out.
If you consider this as the right solution please reward points.
Regards,
Harini

Similar Messages

  • Export from ALV to Excel - problem with numeric values

    hi folks,
    when exporting from alv to excel and we have negative values (and using an u.s.a. setting where . and , are different to r/3) negetive values are not shown correctly in excel.
    when changing in win nt the regional settings to europe one's (e.g. germany) everything works fine.
    any hints welcome,
    kind regards
    oliver

    I guess this has something to do with the excel settings. In the control panel you have regional settings.try some options there. It might work.
    Regards
    Sudhi

  • How to export an ALV to Excel with its Header and Logo?

    Hi guys,
    I need to download to excel an ALV to excel. I already know how to download the ALV part, with its propertys, fonts, colors, etc. But I don't have a clue about how to download the header and the logo.
    Any suggestion?.
    Regards,
    Eric

    Hi Eric,
    Please check this link for sample code regarding LOGO to Excel
    How to Download ALV Output LOGO to Excel ?
    For Header to Excel check this link
    Export header of alv-oo into excel
    Hope this would help you.
    Good luck
    Narin

  • 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

  • Download ICONS from ALV to EXCEL

    Dear Friends,
    IS there a way of downloading the ICON image exactly
    from alv to EXCEL,right now,when the icon is downloaded
    from alv to the excel,i can only see ascii characters in
    the icon column in the excel.
    kind regards
    kaushik hegde

    Hi Jeff,
    Please check if following analysis is helpful to you.
    Analysis/Solution:
    When we export ALV data to excel worksheet, as sap notes say the maximum lenght allowed is 1023 charaters and the max no of columns supported is 90.
    (I never faced any issue related to no of columns as it worked fine for columns >90 too)
    Issue occured when row size of exported data gets more than 1023 character.
    Therefore the row data must not exceed 1023 character, otherwise column splits and moves to next row.
    One additional aspect generally missed is that:
    When data in any particular column changes it's length, alv header also changes its lengh (short text, medium text, long text; depending on the length of of the longest cell in the column)
    therefore even if you have total length of row less than 1023 character, there might be cases when your ALV header size exceeds this length.
    Reducing the header size (by forcing to use short text or specifying own header names) should resolve the issue.
    Regards,
    Parveen

  • The data type DEC while downloading from ALV to EXCEL

    The data type DEC while downloading from ALV to EXCEL is giving some invalid data .
    Ex : In ALV field is the time difference in  hours:minutes
      if the value is  :23 in Excel it will be 22:59 .
    Please Suggest immediately

    Hi ....
    I have the similar problem. My coumns are not in any sequence when I download it to excel sheet.
    How do I fix it.
    Neha

  • How to export report output into excel.

    Hi all
    how to export report output into excel sheet can any on give me answer step by step please as soon as possible
    kk

    Hi Prashanth,
    If you are executing Query from WAD  ---> Right click on Table (only on Characteristics Data)  --> Enhanced Menu ---> Export as --> CSV file or MS Excel
    assign points if this helps,
    Thanks,
    Sudhakar

  • SOS !!! Export from Discoverer to Excel problem

    Hi everyone,
    My reports, exported from Discoverer to Excel look quite different from what Discoverer format is. The date in Excel is shifted, column names are missing and report is broken into several tabs.
    Any idea why it is happening?
    Thanks lot,
    Sergei

    When the users I support export to Excel they like to use the Export To Excel button in the menu. After they do that, they get a window asking if they want to enable or disable macros. I have them click Enable macros to get the same format as they see in Discoverer Plus.
    If you get several tabs instead of one tab(and only one exists), I usually need to resave the workbook becuase it got corrupted (in my case anyway). If you want more control over how the workbook gets exported you can go to File--> Export... and they have some options on how the workbook gets exported.
    I hope this helps.

  • How to export the data to excel in OAF Page - Urgent

    Hi All,
    I have a developed a page wich dispaly the records based on some condition.
    The Page has two regions.
    1.RowLayout Region
    2.Table Region
    Both the regions are getting the data from two diffrent VOs.
    In this case how to export the data to excel as the export button will not work if the page uses more than one VO(I think).
    Please help me.
    Thanks,
    Srinivas
    Edited by: SrinivasChanda on Oct 7, 2009 10:07 AM

    Hi Gaurav,
    Yes you are rite.When i tried exporting the data(which is coming from two different VOs altogether),i got only one region's data and then got error.
    Please note: Two regions(RowLayout,Table) are getting data from two different VOs
    below is one of the region(row layout) data:
    Hierarchy     Learning Certification Status     Learning Certification     Supervisor
    Direct Reports     Passed Only     All     Michael Swinnerton
    below is the error:               
    <div CLASS="errorText">               
    <html lang="en-US">               
    <head>               
    <script>               
    function ignoreWarnAboutChanges(url)               
    document.location.href = url;               
    </script>                
    <title>Error Page</title>               
    <link rel="stylesheet" charset="UTF-8" type="text/css" href="/OA_HTML/cabo/styles/blaf.css">               
    <META name="fwk-error" content="Error occured while processing the request">               
    <META name="fwk-error-detail" content="oracle.apps.fnd.framework.OAException: Application: FND     Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.io.IOException: Stream closed;           
    "     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)"               
    "     at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)"               
    "     at OAErrorPage.jspService(OAErrorPage.jsp:34)"               
    "     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"               
    "     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"               
    "     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"               
    "     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"               
    "     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:119)"               
    "     at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:547)"               
    "     at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:518)"               
    "     at OAExport.jspService(OAExport.jsp:122)"               
    "     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"               
    "     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"               
    "     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"               
    "     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"               
    "     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"               
    "     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"               
    "     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"               
    "     at java.lang.Thread.run(Thread.java:534)"               
    ## Detail 0 ##               
    java.io.IOException: Stream closed               
    "     at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"               
    "     at java.io.BufferedWriter.write(BufferedWriter.java:197)"               
    "     at OAExport.jspService(OAExport.jsp:107)"               
    "     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"               
    "     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"               
    "     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"               
    "     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"               
    "     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"               
    "     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"               
    "     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"               
    "     at java.lang.Thread.run(Thread.java:534)"               
    java.io.IOException: Stream closed               
    "     at java.io.BufferedWriter.ensureOpen(BufferedWriter.java:98)"               
    "     at java.io.BufferedWriter.write(BufferedWriter.java:197)"               
    "     at OAExport.jspService(OAExport.jsp:107)"               
    "     at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)"               
    "     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)"               
    "     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)"               
    "     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)"               
    "     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)"               
    "     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)"               
    "     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)"               
    "     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)"               
    "     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)"               
    "     at java.lang.Thread.run(Thread.java:534)"               
    ">
    </head>
    <body>
    <table width=100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"               
    <tr> <td><img src="/OA_MEDIA/FNDSSCORP.gif" alt=""> </td></tr>               
    <tr> <td> </td>                
    <td> <a href= /OA_HTML/OALogout.jsp>Logout </a></td>                
    </tr>               
    <tr> <td width="100%" nowrap class="OraBGColorDark" >  </td> </tr>               
    </table>               
    <p>               
    <center>               
    <table width="95%" border="0" cellspacing="0" class="OraBGAccentDark" cellpadding="0">               
    <tr> <td>   </td> </tr>               
    <!-- <tr> <td class="OraErrorHeader"> <img src=/OA_HTML/cabo/images/errorl.gif> Error Page </td> </tr> -->               
    <tr> <td class="OraErrorHeader"> <center> Error Page </center> </td> </tr>               
    <tr> <td colspan=2 class="OraBGColorDark"> </td> </tr>               
    <tr> <td>   </td> </tr>                
    <tr> <td colspan=2 class="OraErrorText" >You have encountered an unexpected error. Please               
    contact the System Administrator for assistance. </td> </tr>                
    <tr> <td colspan=2 class="OraErrorText"> Click <a href=javascript:ignoreWarnAboutChanges("/OA_HTML/OAErrorDetailPage.jsp")> here </a> for exception details.                
    </td> </tr>               
    </table>               
    </center>               
    </div>               
    </body>               
    </html>
    Please help me to solve this issue.
    Thanks,
    Srinivas

  • Dump when exporting an ALV to excel at Portal

    Hi there,
    I am getting a dump ( Exception condition "CNTL_ERROR" raised) when exporting an ALV to an excel document. 
    I've done the following:
       1 - Create an ALV report at SAP R3 (with option export to excel);
       2 - Create a SAP transaction iview to show the ALV report at portal;
       3 - At portal, I am trying to export the ALV to excel.
    Isn't this correct?
    How can I get throught this problem. I really need to export this ALV to excel.
    Thanks and best regards,
    Vasco Brandã

    Hi,
    if it should not dump then it_output_alv-gehalt_eff this should be of type C. is it type char.
    and can you show the fieldcat of the field <b>gehalt_eff</b>, that might causing the problem. though you changed the type.
    Regards
    vijay

  • OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as

    OBIEE Report Export from Dashboard to Excel doesn't suppress the columns as expected even after the properties are set to Suppress in the report. In Dashboard it is suppressed Properly but in the excel export it is not suppressed and values for the columns are repeated.
    Added the following to the instanceconfig :
    <Download>
    <Export xsi:type="excel">
    <DataValue>UseFormattedValue</DataValue>
    <RepeatRows>false</RepeatRows>
    </Export>
    </Download>
    But then could not restart services.The following error occured :
    Util Logger] Exception occurred:
         Severity:1
         Type:PKN3saw9ExceptionE
         File:saxreader.cpp
         Line:681
         Message:Sax parser returned an exception.
    Message: The prefix 'xsi' has not been mapped to any URI, Entity publicId: /oracle/ofm/instances/instance1/config/OracleBIPresentationServicesComponent/coreapplication_obips1/instanceconfig.xml, Entity systemId: , Line number: 43, Column number: 26
    Edited by: 887111 on Mar 27, 2013 11:23 PM

    Problem solved!!
    <br><br>
    See this part of the query:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:P15_CANVI_DE_CLUB</FONT> ';
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>
    when instead of :P15_CANVI_DE_CLUB I put a value (say ''EE'') it works correctly, finally I created an application item (ASSOCIAT) and when when I change :P15_CANVI_DE_CLUB I set :ASSOCIAT to the same value and the query is based on this application item:
    <br><br>
    if :P15_GESTOR_PROPIETARI='-3' then<br>
    w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
    w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
    w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:ASSOCIAT </FONT>';<br>
    w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
    end if;<br>
    <br>

  • Problrn when downloas from ALV to excel

    Hi All.
    I am trying to download data from ALV to excel file, but only last pages are downloaded and not from frist pages?
    Can anyone tell me wht it is happening and what is the solution?
    Thanks.

    Hi PKB,
    My initial analysis of your query is as follows.
    You can test the same by debugging the report after pressing the send to excel report.  See the internal table is gettting deleted anywhere in between.  If yes analyse it is happening and correct it if possible.
    Let me know if any further help is required by providing further details.
    Regards,
    Gowri

  • How to export from lightroom to premeire pro?

    How to export from lightroom to premeire pro?

    You cannot export directly from Lr to another program.
    You have to export to your hard drive and then open them in Premiere.

  • How to export from Address Book to Microsoft Outlook

    I am using a mail merge program that requires cvs or test files of address cards in order to operated. I can't figure out how to export from Address Book in any other format than Vcard. Does anybody know how to either export in text or covert Vcard files to text or CVS?

    Try Address Book Exporter.

  • How to export crystal report to excel through progeam

    Hi,
    Can any help me how to export crystal report to excel through program(C#). I'm using VS2005.
    Also, the report should be in a pivot table format after exporting to the excel..please help me how to do this
    Thanks,
    Venky

    Hi Venkat,
    The link below provides the code C# in an ASP.NET codebehind file
    http://www.codeproject.com/KB/cs/Crystal_Report_Export.aspx
    http://aspalliance.com/478_Exporting_to_Excel_in_Crystal_Reports_NET__Perfect_Excel_Exports.2
    Regards,
    Abhijeet  T.

Maybe you are looking for

  • How to place digital photos onto a colored background?

    I have old photographs that I shot with my DSLR to digitize them.  I would like to combine two differently-sized photos onto a colored background to create one image.  I am brand-new to PS and LR (and very excited to finally have them!) and could use

  • Cpntrol recipe issue

    Hi, I have one issue in control recipe. I have three process instruction categories assigned to one control recipe destination. Now when i am releasing process order only two instruction categories are copying into process order phases. Could you ple

  • Why have my DVD-Write privileges changed?!

    Yesterday, my system profiler showed me this below. HL-DT-ST DVDRW GSA-S10N: Firmware Revision: BP10 Interconnect: ATAPI Burn Support: Yes (Apple Shipping Drive) Cache: 2048 KB Reads DVD: Yes CD-Write: -R, -RW DVD-Write: -R, -R DL, -RW, +R, +R DL, +R

  • How to compile and execute a Jython script with parameters (?)

    I am writing a scripting extension mechanism for a big server project we've built over the last year and a half. What I want to acheive is: - system authors upload scripts (via a web front end) - the system checks and compiles the script - stashes th

  • Old Ipod and a new mac

    My computer was stolen while living abroad. I did not have my music backed up. I know have an ipod with my music and a mac with no music. I have the USB 2.0 cord, but my adapter was also stolen. If I plug my ipod into my new computer will it erase al