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

Similar Messages

  • How to export the data to a excel file from RSA3?

    Hi experts,
    1.I am trying to save the RSA (SRM extractor) to excel spread sheet to compare SRM data with BI data. When i run the the transaction RSA3 it just showed me 10 different data packets. How to export the data to excel spread sheet for reconciliation?
    2. Does any body know if the stepup tables exist for SRM extractors?
    Thank in advance
    Sharat.

    Hello Sharat,
    You have two options of saving data to excel sheet:
    Step 1: 
    Goto RSA3, change the "Data Records / Calls" to 1000 and then execute. This way instead of 10 different packets you will get one packet.
    Step2:
    Click on the list button, open the packet by double clicking it. You will see all the data on your screen.
    Step3:
    Goto System -> List -> Save - > Local File -> Spreadsheet and give some name for your xls file.
    Assign points if helpful.
    Regards,
    F-S

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • How to export the data as integer into excel sheet?

    Hi All,
         I am working on export to excel functionality and using JEXCEL API to create it.  When I export the data to excel sheet, the data are stored in text format in the excel sheet.  If I click on summation button on excel sheet,  it is not summing up the column values since it is stored as the text format. 
    I am writing the following code:
    for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){
    String attributeName = (String)iter.next();
    for(int index = 0; index < dataNode.size(); index++){
    try{
    IWDNodeElement nodeElement = dataNode.getElementAt(index);
    String colVal = nodeElement.getAttributeAsTex(attributeName);
    Label value = new Label(j, index + 1, colVal);
    sheet.addCell(value);
    j++;
    Here colVal is the variable which holds the data in string format.  So I was just trying to convert it into integer format and used Integer.parseInt(colVal).
    But Label keyword accepts only the int,int,string arguments. 
    Is there any other option to change it as integer value while exporting to excel sheet.
    Pls suggest.
    This is very urgent.
    Regards,
    Subashini.

    Hi Gopal,
    Pls refer the following link.
    /people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
    I have used the same coding which is mentioned in this link. 
    And also I cannot use integer.parseInt(colval)  because new Label()  will accept only the int,int,string as parameters. 
    Here goes my to excel method code which exports the data to excel sheet .
    private FileInputStream toExcel(IWDNode dataNode, Map columnInfos) {
    String fileName = "output.xls";
    IWDCachedWebResource cachedExcelResource = null;
    int i = 0;
    try{
    File f = new File("output.xls");
    WritableWorkbook workbook = Workbook.createWorkbook(f);
    WritableSheet sheet = workbook.createSheet("First Sheet", 0);
    for(Iterator coluinfoitr = columnInfos.keySet().iterator(); coluinfoitr.hasNext();){
    Label label = new Label(i, 0, (String)columnInfos.get(coluinfoitr.next()));
    sheet.addCell(label);
    i++;
    int j = 0;
    for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();){
    String attributeName = (String)iter.next();
    for(int index = 0; index < dataNode.size(); index++){
    try{
    IWDNodeElement nodeElement = dataNode.getElementAt(index);
    String colVal = nodeElement.getAttributeAsText(attributeName);
    Label value = new Label(j, index + 1, colVal);
    sheet.addCell(value);
    catch (Exception e){
    wdComponentAPI.getMessageManager().reportException(" Data Retrive Err :" + e.getLocalizedMessage(),false);
    j++;
    workbook.write();
    FileInputStream excelCSVFile = new FileInputStream(f);
    cachedExcelResource = getCachedWebResource(excelCSVFile, fileName, WDWebResourceType.getWebResourceType("xls", "application/ms-excel"));
    wdContext.currentContextElement().setExcelDownload(cachedExcelResource.getURL());
    workbook.close();
    It is exporting the data in text format.  So I am unable to sum up the column values in the excel sheet.
    I need an alternate solution wherein I can export the data in integer format to excel sheet and then sum up the column values by clicking on summation button.
    Hope I am clear now.
    Pls suggest.
    Regards,
    Subashini.

  • How to read the data in excel sheet

    Dear sir,
    How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
    Cell A       Cell B
       A           Apple 
       B           Ball
       C           Cat
       D           Doll
    when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on.. 

    Hi, 
    I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached. 
    Trust this would help you solve the issue. 
    Regards, 
    Sagar G Yadav | Application Engineer | National Instruments
    Attachments:
    read_from_excel.vi ‏10 KB
    Book1.txt ‏1 KB

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • How to upload the data from excel(3 tabs) file to sap environment

    Hi all,
    This is Mahesh.
    how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.

    Hi,
    The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
    However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
    You can find a solution for 2 worksheets in this post :
    TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
    I think you can easily modify it to handle any number of worksheets.
    Hope it helps !
    Best regards,
    Guillaume

  • How we export report data into excel in report 10g

    hi can any one tell me
    how we export report data into excel in report 10g (except spreadsheet)

    We can use TEXT_IO Package

  • How to export the data to a  Excel file

    Hi all,
    How to use the  'EXCEL_OLE_STANDARD_DAT'
    to export the data from itab to EXCEL file.
    REPORT  ZT11.
    data : begin of itab occurs 0,
          t1(3)  type c  value 'sag',
          t2(3)  type c value 'ntc',
          end of itab.
          append itab.
          write : itab-t1,itab-t2.
          CALL FUNCTION 'GET_FIELDTAB'
          EXPORTING
            LANGU                     = SY-LANGU
            ONLY                      = ' '
            TABNAME                   = ' '
            WITHTEXT                  = 'X'
          IMPORTING
            HEADER                    =
            RC                        =
            TABLES
              FIELDTAB                  =
          EXCEPTIONS
            INTERNAL_ERROR            = 1
            NO_TEXTS_FOUND            = 2
            TABLE_HAS_NO_FIELDS       = 3
            TABLE_NOT_ACTIV           = 4
            OTHERS                    = 5
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
            EXPORTING
              FILE_NAME                       =
            CREATE_PIVOT                    = 0
            DATA_SHEET_NAME                 = ' '
            PIVOT_SHEET_NAME                = ' '
            PASSWORD                        = ' '
            PASSWORD_OPTION                 = 0
          TABLES
            PIVOT_FIELD_TAB                 =
            DATA_TAB                        =
            FIELDNAMES                      =
          EXCEPTIONS
            FILE_NOT_EXIST                  = 1
            FILENAME_EXPECTED               = 2
            COMMUNICATION_ERROR             = 3
            OLE_OBJECT_METHOD_ERROR         = 4
            OLE_OBJECT_PROPERTY_ERROR       = 5
            INVALID_PIVOT_FIELDS            = 6
            DOWNLOAD_PROBLEM                = 7
            OTHERS                          = 8
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.

    Hi, you can even use control technology. There are several example programs how to export data to excel. Please go to transaction SE80. Choose enviroment->examples -> control examples.  Take a look at office integration.
    /Ernesto

  • How to export the data to Multiple sheet in Excel

    Hi,
    How can I export the data to multiple sheets in excel using Crystal Report XI.
    Thanks,
    Baski.
    Edited by: J_Baskaar on Mar 31, 2010 8:14 AM

    One of the 3rd-party Crystal report schedulers listed at http://www.kenhamady.com/bookmarks.html allows you to burst a report so that each group at level 1 becomes a separate worksheet inside a single workbook.

  • How to export the data from table to excel sheet

    hi experts i have some problem am trying to export the data fro table to Excel sheet  in the view controller i have created one button wit public void onActionCLEAR(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionCLEAR(ServerEvent)
       //wdContext.nodeBapi_Salesorder_Getlist_Input().
       //wdContext.nodeBapi_Salesorder_Getlist_Input().invalidate();
        //@@end
      //@@begin javadoc:onActionExporToExcel(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionExporToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExporToExcel(ServerEvent)
         try{
         FileOutputStream fos=new FileOutputStream("Test.xls");
          PrintStream ps=new PrintStream(fos);
          ps.println("<html><body><table border=1>");
          int size=wdContext.nodeBapi_Salesorder_Getlist_Input().size();
           Iterator attributes=wdContext.getNodeInfo().iterateAttributes();
           ps.println("<tr>");
           while(attributes.hasNext()){
            ps.println("<th>");
            DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
            ps.println(attrName.getName());
            ps.println("</th>");
           ps.println("</tr>");
          for(int i=0; i<wdContext.nodeBapi_Salesorder_Getlist_Input().size();i++)
            attributes=wdContext.getNodeInfo().iterateAttributes();
            ps.println("<tr>");
            IWDNodeElement ele=wdContext.getElementAt(i);
            while(attributes.hasNext()){
              ps.println("<td>");
              DataAttributeInfo attrName=(DataAttributeInfo)attributes.next();
              ps.println(""+ele.getAttributeAsText(attrName.getName()));
              ps.println("</td>");
            ps.println("</tr>");
           ps.println("</table></body></html>");
           ps.flush();
           ps.close();
           fos.close();
          catch(Exception e){
           wdComponentAPI.getMessageManager().reportException(e.getMessage(), false);
          finally{
         //return("Test.xls")  ;
        //@@end
      }h action and i have return the code
    its running sucessfully but am not able to perform the action plz help me

    Hi,
    You shouldn't use DataAttributeInfo as it is an internal object, if I'm correct.
    Use IWDAttributeInfo instead of DataAttributeInfo and it should work
    (See also API doc of IWDNodeInfo.iterateAttributes() at http://help.sap.com/javadocs/nwce/ce711sp02/wdr/com.sap.wdr/com/sap/tc/webdynpro/progmodel/api/IWDNodeInfo.html#iterateAttributes())
    Cheers,
    Robin

  • How to take the data from excel list to sap r/3(with time interval)

    hi experts,
       how to transfer the data from a third party system(if it is in format of excel) to sap r/3.with that in a particular time interval,it will delete the data from excel sheet.

    Hi
    use the Fm
    'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                filename                = p_path
                i_begin_col             = '1'
                i_begin_row             = '2'
                i_end_col               = '2'
                i_end_row               = '500'
          giving the starting row and column and passing the ending row and column name
    Reward points if useful........
    Regards,
    Nitin Sachdeva

Maybe you are looking for

  • I need a new hard drive

    Hi everyone, my son has a Touchsmart 310-1126.  We need a new hard drive.  Any idea where to find one or a compatible one?  I don't want to spend huge money, maybe $50 or $60.  I've found them for about $80.  Thanks for your help.

  • Sum Fields based on change in another field

    I have data that looks like this <Records> <VBLEN>123</VBLEN> <MATNR>012356</MATNR> <ZSPR>1.02</VBLEN> </Records> <Records> <VBLEN>123</VBLEN> <MATNR>568954</MATNR> <ZSPR>2.05</ZSPR> </Records> <Records> <VBLEN>856</VBLEN> <MATNR>259865</MATNR> <ZSPR

  • HT204266 My app store is frozen.

    My app store froze while i started to download facebook

  • Need Unlock code for 5230 3G

    Hi,           My friend has gifted me Noika 5230 3G bought from UK. Problem its locked. My IMEI No.: Can you please assist me in this matter. Appreciate your response. Thanks, Kayshap Moderator's Note Post Editted PM Sent to user "Please be informed

  • My Timesheet Fiori App - Adding 2 new fields

    Hello All, I need to add 2 new field in the fiori timesheet application for week entry view and for the same I have to enhance the OData so I have appended the custom structure in "SRA002_S_TIMEDATA_ENTITY_INCL" with 2 new fields. Next I need to enha