Formatting of EXCEL Sheets during download

Hi all,
There is a requirement for Formatting EXCEL Sheets when downloaded into an FTP site in background.
The internal table is saved in application server with .xls extension and transferred to FTP thru RFC.
is there any way to format this EXCEL file and get it formatted in FTP when it is seen.
The report will run in background daily and every day the report has to be in same format.
Thanks in Advance..
Vivek ..

Hi
You can not format EL file that is uploaded. You have to format the internal table before generation XL file from the internal table. Internal table should have all fields in char type. set char length for each field like
   data: begin of itab..
           field1(20) type c,
           field2(20) type c,
Append header record if u want into this itab as first record.
Append all records into this itab.
Generate XL file from this itab.
I suggest you that..
Upload this itab in to application server as 'DAT' format then generate XL file from this file. Dont set .xls when you upload itab to appl. server.
Bala
Note: Award points if helpful

Similar Messages

  • Field names are not getting into excel sheet while download

    Hi All,
    I am using gui_download fm to download internal table data to excel sheet.
    have passed fieldnames parameter also.
    defined each column with char type and length of those descriptions also.
    but while downloading only first column description is getting.
    Please help me.
    Thanks in advance.
    Regards,
    eswar

    hi,
    check this sample code.
    DATA : BEGIN OF it_join_fields OCCURS 0,
             field_name(20),
             END OF it_join_fields.
    CLEAR it_join_fields.
      it_join_fields-field_name = 'pernr'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'empname'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'new_joinee'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'begda'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'fath_name'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'gbdat'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'gesch'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
      it_join_fields-field_name = 'usrid_long'.
      APPEND it_join_fields.
      CLEAR it_join_fields.
    it_join_fields-field_name = 'werks'.
      APPEND it_join_fields.
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
      BIN_FILESIZE                    =
          filename                        = file_name
          filetype                        = 'ASC'
          append                          = 'X'
          write_field_separator           = 'X'
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
        TABLES
          data_tab                        = it_join_det_new
          fieldnames                      = it_join_fields
    EXCEPTIONS
      FILE_WRITE_ERROR                = 1
      NO_BATCH                        = 2
      GUI_REFUSE_FILETRANSFER         = 3
      INVALID_TYPE                    = 4
      NO_AUTHORITY                    = 5
      UNKNOWN_ERROR                   = 6
      HEADER_NOT_ALLOWED              = 7
      SEPARATOR_NOT_ALLOWED
      FILESIZE_NOT_ALLOWED            = 9
      HEADER_TOO_LONG                 = 10
      DP_ERROR_CREATE                 = 11
      DP_ERROR_SEND                   = 12
      DP_ERROR_WRITE                  = 13
      UNKNOWN_DP_ERROR                = 14
      ACCESS_DENIED                   = 15
      DP_OUT_OF_MEMORY                = 16
      DISK_FULL                       = 17
      DP_TIMEOUT                      = 18
      FILE_NOT_FOUND                  = 19
      DATAPROVIDER_EXCEPTION          = 20
      CONTROL_FLUSH_ERROR             = 21
      OTHERS                          = 22
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Format of Excel Sheet

    Hi experts,
    I am working on Account receivables in oracle applications.I am getting one problem . I run my query in Toad and I am saving output in .xls format.i got output in comma separted.like
    cust_no|Cust_name|trx_no|trx_date|amount|open_bal|closed_bal|curr_bal
    1 xxx 110 12/01/06 10000 50000 60000 10000
    But i want output like this
    Cust_no:1
    Cust_name:xxx
    open_bal:50000
    Trx_no Trx_date Amount Curr_bal
    110 12/01/06 10000 10000
    closed_bal:60000.
    I want output like this in excel sheet.
    how to do This?Please give me solution.
    I want this output by using query only to display in excel sheet.Dont use rdf and anything.
    My code is:
    SELECT
    HCA.ACCOUNT_NUMBER ACCOUNT_NUMBER
    ,RCT.TRX_NUMBER TRX_NUMBER
    ,HP.PARTY_NAME PARTY_NAME
    ,DECODE(RCT.STATUS_TRX,'OP','OPEN','CLOSED') STATUS
    ,HL.ADDRESS1 || HL.ADDRESS2 || HL.ADDRESS3|| HL.PROVINCE || HL.CITY || HL.STATE ||HL.POSTAL_CODE || HL.COUNTRY ADDRESS
    ,HCSU.LOCATION LOCATION
    ,RCT.TRX_DATE TRX_DATE
    ,APS.DUE_DATE DUE_DATE
    ,RCTG.GL_DATE GL_DATE
    ,APS.AMOUNT_DUE_ORIGINAL AMOUNT_DUE_ORIGINAL
    ,APS.AMOUNT_DUE_REMAINING AMOUNT_DUE_REMAINING
    ,APS.AMOUNT_APPLIED AMOUNT_APPLIED
    ,DECODE(RCTT.TYPE,'DM','DEBIT MEMO','CM','CREDIT MEMO','DEP','DEPOSIT','GUAR','GURANTEE','INVOICE') TYPE
    ,RCTT.STATUS STATUS1
    ,RBS.NAME NAME
    ,RCT.CT_REFERENCE CT_REFERENCE
    ,F1(HCA.ACCOUNT_NUMBER,'01-OCT-2007') OPENING_BALANCE
    ,F2(HCA.ACCOUNT_NUMBER,RCT.TRX_NUMBER,'01-OCT-2007','04-NOV-2007') CURRENT_BAL
    ,F1(HCA.ACCOUNT_NUMBER,'01-OCT-2007') + F2(HCA.ACCOUNT_NUMBER,RCT.TRX_NUMBER,'01-OCT-2007','04-NOV-2007') CLOSED_BAL
    ,GCC.SEGMENT1 BC
    FROM
    RA_CUSTOMER_TRX_ALL RCT
    ,AR_PAYMENT_SCHEDULES_ALL APS
    ,RA_CUST_TRX_TYPES_ALL RCTT
    ,RA_CUST_TRX_LINE_GL_DIST_ALL RCTG
    ,RA_BATCH_SOURCES_ALL RBS
    ,HZ_PARTY_SITES HPS
    ,HZ_PARTIES HP
    ,HZ_CUST_ACCOUNTS HCA
    ,HZ_CUST_SITE_USES_ALL HCSU
    ,HZ_CUST_ACCT_SITES_ALL HCAS
    ,HZ_LOCATIONS HL
    ,GL_CODE_COMBINATIONS GCC
    WHERE
    RCT.CUSTOMER_TRX_ID=APS.CUSTOMER_TRX_ID
    AND RCTT.CUST_TRX_TYPE_ID=RCT.CUST_TRX_TYPE_ID
    AND RCTG.CUSTOMER_TRX_ID=RCT.CUSTOMER_TRX_ID
    AND RCT.BATCH_SOURCE_ID=RBS.BATCH_SOURCE_ID
    AND HP.PARTY_ID = HCA.PARTY_ID
    AND HP.PARTY_ID=HPS.PARTY_ID
    AND HL.LOCATION_ID = HPS.LOCATION_ID
    AND HCA.CUST_ACCOUNT_ID =HCAS.CUST_ACCOUNT_ID
    AND HCAS.CUST_ACCT_SITE_ID = HCSU.CUST_ACCT_SITE_ID
    AND HPS.PARTY_SITE_ID = HCAS.PARTY_SITE_ID
    AND RCT.BILL_TO_SITE_USE_ID = HCSU.SITE_USE_ID
    AND GCC.CODE_COMBINATION_ID = RCTG.CODE_COMBINATION_ID
    AND HCSU.SITE_USE_CODE = 'BILL_TO'
    AND RCTG.GL_DATE BETWEEN '01-OCT-2007' AND '04-NOV-2007'
    AND RCT.TRX_NUMBER = '1107010103'
    GROUP BY
    HCA.ACCOUNT_NUMBER
    ,RCT.TRX_NUMBER
    ,HP.PARTY_NAME
    ,DECODE(RCT.STATUS_TRX,'OP','OPEN','CLOSED')
    ,HL.ADDRESS1 || HL.ADDRESS2 || HL.ADDRESS3|| HL.PROVINCE || HL.CITY || HL.STATE ||HL.POSTAL_CODE || HL.COUNTRY
    ,HCSU.LOCATION
    ,RCT.TRX_DATE
    ,APS.DUE_DATE
    ,RCTG.GL_DATE
    ,APS.AMOUNT_DUE_ORIGINAL
    ,APS.AMOUNT_DUE_REMAINING
    ,APS.AMOUNT_APPLIED
    ,DECODE(RCTT.TYPE,'DM','DEBIT MEMO','CM','CREDIT MEMO','DEP','DEPOSIT','GUAR','GURANTEE','INVOICE')
    ,RCTT.STATUS
    ,RBS.NAME
    ,RCT.CT_REFERENCE
    ,GCC.SEGMENT1

    I'm not looking at your code as you haven't formatted it on the forum. To do this use [code][/code] or [pre][/pre] tags around the code. Try editing your first post and re-pasting the code using those tags so we can read it.
    You are currently getting...
    SQL> with t as (select 1 as cust_no
      2                   ,'xxx' as cust_name
      3                   ,110 as trx_no
      4                   ,to_date('12/01/2006','DD/MM/YYYY') as trx_date
      5                   ,10000 as amount
      6                   ,50000 as open_bal
      7                   ,60000 as close_bal
      8                   ,10000 as curr_bal
      9             from dual)
    10  -- END OF TEST DATA
    11  select * from t;
       CUST_NO CUS     TRX_NO TRX_DATE                AMOUNT   OPEN_BAL  CLOSE_BAL   CURR_BAL
             1 xxx        110 12/01/2006 00:00:00      10000      50000      60000      10000And you want something like this?
    SQL> with t as (select 1 as cust_no
      2                   ,'xxx' as cust_name
      3                   ,110 as trx_no
      4                   ,to_date('12/01/2006','DD/MM/YYYY') as trx_date
      5                   ,10000 as amount
      6                   ,50000 as open_bal
      7                   ,60000 as close_bal
      8                   ,10000 as curr_bal
      9             from dual)
    10  -- END OF TEST DATA
    11  select col1||','||col2||','||col3||','||col4
    12  from (
    13        select cust_no, 1 as ord_col, 'Cust_no:' as col1, TO_CHAR(cust_no) as col2, null as col3, null as col4 from t union all
    14        select cust_no, 2, 'Cust_name:', cust_name, null, null from t union all
    15        select cust_no, 3, 'Open_bal:', TO_CHAR(open_bal), null, null from t union all
    16        select cust_no, 4, 'Trx_no', 'Trx_date', 'Amount', 'Curr_bal' from t union all
    17        select cust_no, 5, TO_CHAR(trx_no), TO_CHAR(trx_date, 'DD/MM/YY'), TO_CHAR(amount), TO_CHAR(curr_bal) from t union all
    18        select cust_no, 6, 'Close_bal:', TO_CHAR(close_bal), null, null from t
    19        )
    20  order by cust_no, ord_col;
    COL1||','||COL2||','||COL3||','||CO
    Cust_no:,1,,
    Cust_name:,xxx,,
    Open_bal:,50000,,
    Trx_no,Trx_date,Amount,Curr_bal
    110,12/01/06,10000,10000
    Close_bal:,60000,,
    6 rows selected.
    SQL>Remember, Comma seperated files are NOT excel files. .xls files are proprietary microsoft format files. If you save your data out as comma seperated you should use the file extension ".csv".
    Excel can recognise CSV files and will load them in, as can other products.

  • Misalignement in Excel sheet,while downloading reports with huge data

    Hi,
    While downloading reports in excel with huge volume of data ,we are getting misalignments in the excel sheet(some data comes in wrong rows). Can you please suggest what could be the reason and how to correct it.
    Regards,
    Roopak

    Hi,
    If you are using Office 2003, then you cannot download morethan 65000+. However if you use Office 2007, I think it gives you somewhere around 400000 records. (I didnt scroll below that!!!). Also the columns are morethan IV.
    However assuming that, even that version can have limitation, you can always download your data in a wordpad/notepad/textpad etc which are basically text editing tools. They dont have any such row or column restrictions.
    Once downloaded, you can randomly split them into some x number of files, based on the number of records and then open the same documents using xls sheet using tab value as delimiter. Now the alignment will be perfect in the excel sheet.

  • Inserting dates in mm/dd/yyyy format in excel sheet

    I am reading data from sql server 2005 which returns dates in the yyyy/mm/dd format. Now I have to insert this data into an excel sheet and it is supposed to be in the mm/dd/yyyy format. I tried converting the date formats in java but when I insert the date as a String the program throws
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] Data type mismatch in criteria expression.
    If I try to insert it as a java.util.Date or java.sql.Date it also includes the timestamp(which i do not want ) since thats the way MS SQL Server returns it in the result set.
    Someone said using PreparedStatement would help. How?
    Can someone please help me ?

    neoforu7 wrote:
    I have to insert data into excel sheets that already have pre defined macroes that do some calculations and get the data in the format i want. I dont know if this is possible with POI or JExcel. You most definitely not are going to find that in ODBC. The excel odbc driver does very, very little.
    [http://support.microsoft.com/kb/178717]
    And I also dont have the time to learn these. So please help me if u canSorry - then you should just tell someone that it isn't going to happen.
    Your requirements, excel and macros, is going to take a LOT of time.
    At a minimum, without seeing the exact requirements and macros, myself I wouldn't start with less than three months of time.

  • How can i know about the page breaks that occur in excel sheet during report gen

    Hello,
    I am trying to generate an Excel report with a large number of columns. and i am facing the problem of some of the columns not fitting into the page due to the page break. as a result, these columns are being printed at the end of the report. I would like to add the Row and Column headers to the remaining of the columns so that it is easy to recognise as to which table they belong to. i would like to know if there is any method to find out when the page break occurs in the excel sheet, along with the last printed column number, so that it would be easy for me to add the Row and Column headers before the next row/column is printed.
    Thank You
    Regards
    Tweetz.

    Hi Tweetz,
    I have tried to find a way to do what you are asking, but have been unsuccessful.  However, you can control where the page breaks occur by using the "New Report Page.vi".  You can call this VI after appending the table to the report, and specify the cell where you wish to insert a new page break (using the "position" or "name" elements of the "MS office parameters" input).  If you know the page size and you specify the column widths, you should be able to pick reasonable places to start a new page.
    I hope that helps!
    Devin K
    Systems Engineering - RTT & HIL

  • Problem when printing Excel sheets when downloaded from Portal

    Hey,
    I am using the desformat=spreadsheet option to generate Excel files for my reports downloaded from Portal and this works fine. The trouble is that when users go to print the downloaded Excel reports it seems that the scale of the report changes and everything is made smaller to try and fit on the one page. The font size decreases, and the scale of the report decreases to the point where the report is nearly unreadable when printed. But when just viewing the reports in Excel everything looks fine.
    Any suggestions on why this is happening and how it can be fixed?
    Thanks

    Hello hermannedem,
    If you cannot see any content on pages you printed or in print preview, the cause might be margins which are set too high.
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    '''Right''': 12.7
    '''Top''': 12.7
    '''Left''': 12.7
    '''Bottom''': 12.7
    Check these values accordingly and change them if necessary.
    Please let us know, if this resolves the issue.
    Thanks!

  • Format for excel cell after downloading .....

    Hi all,
    yet another frustrating thing with excel.. kindly shed some light on this ...
    situation is : in one of our R/3 system i'm downloading the ALV report to excel  and one of the value fields are mis-aligned like few numbers are right-aligned and few others are left-aligned.... coincidentally all left-aligned numbers are < 1 (like 0.3 ....). user setting for point notation is 'DOT' for thousand separator.
    In other R/3 system (our test server) this situation is not happening...all 'values' are fine i.e. right-aligned....
    Should be to do some thing with system setting but not able to point out exactly.... spent lots of time in debugging standard xcel download thing...that's driving me crazy.....
    kindly help me out....
    Thanks in advance

    Use file type as <b>DAT</b>
    CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
                filename                = v_fnam
                <b>filetype                = 'DAT'</b>
           IMPORTING
                filelength              = lv_size
           TABLES
                data_tab                = p_output
           EXCEPTIONS
                file_open_error         = 1
                file_write_error        = 2
                invalid_filesize        = 3
                invalid_type            = 4
                no_batch                = 5
                unknown_error           = 6
                invalid_table_width     = 7
                gui_refuse_filetransfer = 8
                customer_error          = 9
                OTHERS                  = 10.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • HT1349 I am normaly a PC person, however I like the concept of the I Pad, When traveling I use a very basic Excel sheet then download to my desktop upon returning.

    I have a PC at home, would like to use a Ipad, is there a way to upload / download with the PC

    Yes, it's called iTunes.

  • Date format error in excel sheet

    When i try to download ALV grid display report into excel sheet using the following procedure
    Menu - List - Export - SpreadSheet - Radiobutton Table - Radiobutton Microsoft Excel- Then an excel sheet is downloaded but the date format is of some random number like 40182 but actual date is (01/04/2010 format MM/DD/YYYY) .
    But when i try to download using the procedure Application Menu bar - Local File - Radiobutton Spread Sheet - Giving the path of the file. When i see the date is in (01/04/2010 format MM/DD/YYYY)  which is correct.
    I want to know what are the settings that needs to be done for downloading the excel sheet with the first procedure which i mentioned above.
    Regards
    Venk@

    Hi Gautham,
    I took standard types..
    TYPES: BEGIN OF ty_bkpf,
               gjahr TYPE bkpf-gjahr,          "Fiscal Year
               bldat TYPE bkpf-bldat,          "Doc Date
               usnam TYPE bkpf-usnam,          "User Name
               waers TYPE bkpf-waers,          "Currency
               END OF ty_bkpf.
    No data declarations of Date down separately . You can see Doc date i have decalred as BKPF-BLDAT. Anything more you wanna add.
    Regards
    VEnk@

  • Download a page's content into Excel sheet

    Hi All,
    I generate a JSP Page with contents retrieved by querying the DB. The JSP Page displays say, 10 rows of records. I need to populate these rows of records into an excel sheet and download the excel sheet on click of an Icon or button.
    How do I achieve this? Please guide.
    Thanks.

    POI-HSSF is a Java API to access/create Excel format files. Below is a code snippet to write a table's column names to an excel sheet using this API.
    import org.apache.poi.hssf.util.*;
    import org.apache.poi.hssf.usermodel.*;
    File excelFile = null;
    // Open a temporary file to write to
    excelFile = File.createTempFile("excel", ".xls");
    FileOutputStream fos = new FileOutputStream(excelFile);
    BufferedOutputStream bos = new BufferedOutputStream(fos);
    // Create a Workbook with one work sheet
    HSSFWorkbook wb = new HSSFWorkbook();
    HSSFSheet sheet = wb.createSheet("WorkSheet1");
    HSSFCellStyle cs = wb.createCellStyle();
    HSSFFont f = wb.createFont();
    f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    cs.setFont(f);
    Class.forName(" /*driver name goes here.....*/ ");
    Connection connection = DriverManager.getConnection(connectionURL );
    Statement statement = connection.createStatement();
    String query = "select * from table1";
    ResultSet resultSet = statement.executeQuery(query);
    ResultSetMetaData rsMetaData = resultSet.getMetaData();
    int colCount = rsMetaData.getColumnCount();
    HSSFRow titleRow = sheet.createRow((short) 0);
    HSSFCell titleCell = titleRow.createCell((short) 1);
    titleCell.setCellValue("TABLE DATA");
    titleCell.setCellStyle(cs);
    sheet.addMergedRegion(new Region(0,(short)1,0,(short)2));
    HSSFRow headerRow = sheet.createRow(2);
    HSSFCell headerCell[] = new HSSFCell[colCount-1];
    for( int i=0; i<colCount-1; i++ )
             headerCell[i] = headerRow.createCell((short) i, HSSFCell.CELL_TYPE_STRING);
             headerCell.setCellValue( rsMetaData.getColumnName(i+1) );
    headerCell[i].setCellStyle(cs);
    Iffat Tahsin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Formatting / Post Processing of Exported Excel Sheet

    Hi ,
    Issue:
    The Columns in the Excel Sheet are not fully visible when we export Report from CR viewer  to Excel Sheet. So we had planned for Post processing of the Excel Sheet using VBA or .NET etc to format the Excel Sheet, which would be on the server side, meaning the End user will never see the formatting process, but only the End Report. Is it possible to achieve this ??
    NOTE:
    1) VBA or .NET could not be run on the Linux Server but we could take advantage of the windows server in the presentation layer.
    Architecture:  
    Presentation Layer                    
    Linux Server <--> Windows .Net Server <--
    > End User
    {Crystal RAS Server} <-->{GUI CR Viewer Application}<--
    >
    Our Proposed Solution:
    1) Create an GUI Application that has CR viewer in it .
    2) Create a Separate Excel Export button on the webpage.
    3) when the user wants to export the report , he clicks the button.
    4) The GUI/ application saves the Exported Excel Sheet from the Ras server to the windows server.
    5) Then the .Net or the Vba code is applied to process/Format the Excel Sheet.
    6) When complete the End user is prompted for saving the report to a local disk.
    My questions:
    1) Can this be achieved ?
    2) what would be the best way to handle this ?
    3) what should be the process flow ?
    4) what are the things to be considered while planning for such a design ?
    Regards,
    Ramkumar Govindasamy

    So you're looking at using RAS .NET SDK on the Application Layer to export a Crystal Report to Excel, save to temp file on the Application Layer machine, process that temp file, and stream that back out to the client web browser.
    Considerations:
    1. You need to create your own custom UI button to trigger the process, since the .NET Web Forms Crystal Reports viewer won't have the hooks to customize the Excel export.
    2. Running Excel VBA from your Web App may be problematic - you'd have to be particularly careful if the system is under load, since the Excel VBA - COM-Interop isn't necessarily designed for high throughput.  Under high load, you may get file locking or COM-Interop layer just refuse to process.  It's pretty common to try and catch exceptions and retry if you encounter this.
    You'd likely not find anyone here familiar with 2 above, but 1 is fairly common.
    Sincerely,
    Ted Ueda

  • Down load report output from SAP to Excel sheet

    Hi,
       Actually i am downloading report out into Excel sheet using FM GUI_LOAD. But in this case in Excel sheet we are getting the date format  as *3/21/2008. But the requerment is the date format in Excel sheet should be display like 3/21/2008.So please advice me.
    Code:
    CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            filename                = w-filename
            filetype                = 'DBF'
            col_select              = 'X'
            col_select_mask         = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
            wk1_n_format            = 'X'
            wk1_t_format            = 'X'
            DAT_MODE                = 'X'
          TABLES
            data_tab = dtab_dat
            fieldnames = htab.
    Thanks in advance.
    Regards,
    Satya.

    Hi,
    Please let me know the type of  dtab_dat.
    Regards
    jana

  • Sending a excel sheet as attachment in mail

    Hi,
    I have requirement where I need to send excel sheet as attachment in mail. I could do it by using FM SO_NEW_DOCUMENT_ATT_SEND_API1. But, I am not able to format the excel sheet before sending.
    I need to make heading bold, fix column width and wrap text in some cells, and send the mail.
    Pls help me with your suggestions.
    Thanks,
    Siva.

    this link will show you how to do formatting in Excel using the OLE method, then use that EXCEL to send the MAIL using your program \
    [OLE-format excel |http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm]
    Hope That Helps
    Anirban M.

  • Vendor open items wise ALV Grid Display (FBL1N) report to Excel Sheet

    Hi All,
    I need vendor wise open items and cleared items in ALV Grid format in excel sheet.
    I'm Trying that in T Code FBL1N, After the execution. I had select ALV Grid format like this From the menu bar->Settings-> Switch list.
    After that i get ALV  Grid format, Then i'm doing export the data to excel sheet. like this From the Menu bar->List->Export->Spread sheet.
    That time i'm getting Error Message no. 0K064, Filter criteria, sorting, totals and subtotals are not taken into account.
    I want vendor wise sorting totals and subtotals,
    How can i over come this Error please let me now.
    Thanks,
    Amar

    Hi Amar,
    Please check the KBA 2083705.
    https://websmp230.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3230383337303526
    Regards,
    Monika

Maybe you are looking for