Problem in downloading to excel

while downloading from a customized report.(For excise related details)
HTML format is working fine but the problem is when using the excel sheet....only some 23 records were getting downloaded...
what might be the problem...

Hi,
You can see "n" no. of post on this issue.
Try one simple method : Download the report in the format of .mhtml.
Open this .mhtml format saved file via Microsoft excel and save it as .xls or .xlsx.
Regards,
Ram

Similar Messages

  • ALV - problem in downloading to excel - HIGH

    In our ALV report , we are facing problem with downloading to excel. It is intact downloading but in an irregular manner.
    LIST-> EXPORT-> Local File(excel)
    How to overcome this..

    try to load like this
    spreadsheet>press enter>pivot table-->microsoft excel

  • Problem in downloading to excel sheet

    hi,
    i have a file in the application server which needs to be downloaded into excel sheet and send it via attachment to outlook id's..
    file is getting downloaded into excel sheet ( Via custom function module) and the attachment is being sent to the mail box, but the problem is everything appears in the first column..how to set the delimiters in excel sheet, i mean each field should appear in a separate coloumn...
    format of the file in the application server
    data: begin of dt_string occurs 0,
          data(150) type c,
          end of dt_string.
    ex: dt_string+0(4) = 'name'.
        dt_string+4(5) =  'place'. .....
        append dt_string
         clear dt_string. 
    same way, each record is inserted into the dt_string and the table was transferred to the app server.
    thanks

    Hi Mahesh,
    Assuming that you are using 'GUI_DOWNLOAD'.
    Add the thing in bold <b>WRITE_FIELD_SEPARATOR</b>.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                    =
        filename                        =
    *   FILETYPE                        = 'ASC'
    *   APPEND                          = ' '
    <b>   WRITE_FIELD_SEPARATOR           = '#'    "Tab Delimiter between fields</b>
    Regards,
    AS

  • Little problem  ALV - Download to Excel

    Hi Friends !
    I have a little problem, when the user download the data which are in ALV, the positions of columns change .
    Example:
    In ALV. 
    1 - Column A
    2 - Column B
    3 - Column C
    In Excel
    1 - Column B
    2 - Column A
    3 - Column C
    Regards !!!

    This sounds pretty weird.  Are they just running ALV and then they do a download on the ALV screen using the Excel icon?  Are they running it with some type of Excel template?  Is it using a special layout - if so are they sure they saved the layout before they download?  Never heard of or saw this one before.  Also are you the Cesar I worked with a few years ago in Memphis?  Just wondering - don't think this will help much but let me know.

  • Problem in downloading in Excel

    Hi Guru's,
    Good Morning.,
    I already developed my program but upon downloading it in excel the total column have a data like this '452' instead of '452.25' the decimal didn't appear. 
    Thanks in advance.
    Regards,
    dranel

    Hi,
    Declare the type of tht field as 'CHAR'
    or
    prefix the value with a single quote ',  excel will then treat the value as text.
    hope this will work.
    Regards,
    Archana

  • Still having problem with downloading to excel two ITs

    Three things I have to do are:
    - to have leading zeros in excel - (wich I solved with DBF filetype - >> is there any other way ?) ,
    - to append two internal tables one after another (to have them in one excel sheet), (did it calling two times FM )
    - finally to download them in one excel sheet .
    (Note, two internal tables are different ) .
    I used WS_DOWNLOAD wich works fine with DBF filetype ,
        BUT can not append two ITs with DBF filetype .
    When using GUI_DOWNLOAD append works fine
             BUT does not supports DBF filetype .
    Which FM is best to acomplish these three things together using ONE FM ???

    I allready tryied to use GUI_DOWNLOAD but it did not help
    Gives me error Invalid type

  • Problem in Download to excel in ALV for WD4A.

    Hi SDN,
    I am using standard component SALV_WD_TABLE for geting the print Version & Export button as given in standard example WDT_ALV, in my developement. but i am not getting both the buttons.
    Can any one tell why?
    Regards,
    Rahul

    Rahul,
    what was the problem. if you share with all of us it will be helpful for others
    for hiding button we can code like this
    data: l_ref_cmp_usage type ref to if_wd_component_usage,
          lr_std            TYPE REF TO if_salv_wd_std_functions.
      DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      l_ref_cmp_usage =   wd_This->wd_CpUse_Appr( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
    l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Appr( ).
      data:
        l_VALUE type ref to Cl_Salv_Wd_Config_Table.
      l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
    lr_std ?= l_value.
    lr_std->SET_PDF_ALLOWED( abap_false ).
    Edited by: Naresh Kumar Malik on Jun 27, 2008 11:05 AM

  • OBIEE-Values after decimal changing after download in excel format

    Hi,
    I have reports in OBIEE 11g,in which some columns have values in %.When i try the various export/download functions and noticed that the Excel download did not maintain the fomatting for pecentage values, they fields go out to about 12 decimal places or so.
    For eg..if a value in report is like 12.54
    After export in Excel it looks like 12.546780393345 .
    As i want the same format,pls suggest the solution.

    Hi,
    Refer below link:
    Downloading to Excel with three decimal precision
    format problem while download to excel
    Re: Formatting problem in download report into EXCEL Sheet
    BUG:
    •9107277 KEEP THE NUMBER PRECISION IN DATABASE WHEN “DOWNLOADING TO EXCEL”
    Thanks
    Deva

  • Problem while downloading a ALV report to excel

    Hi experts,
    I have an ALV report which took long time to extract records from various table. So while there is some restriction the report can be executed well in foreground. And the report can be extracted well to excel sheet. But while there is hudge records, i have to execute the report in backgroung. And then from spool i generally prefers to download the report to excel.
    There is a field UOM where it contains value ' " ' for some records. And also there may be possiblity that other fields can also contain the same.
    Now my problem is: while download to excel... When ever there is a value ' " ' from this point to the next value ' " '. It is treating as one record. and keep that in a same position in the excel sheet.
    But i want to keep all the values in there respective fields. Can you please how can i do that? Please give me some solution...
    regards,
    charles.

    If anybody have any solution please send me....

  • Facing a Problem while downloading the data from ALV Grid to Excel Sheet

    Hi Friends,
    Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
       I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
    Can any one help me out in this case.

    hi...
    if this problems happens dont display the same internal as u finally got.
    just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
    for eg.
    ur final internal int table for disp,
         data : begin of itab occur 0,
                        matnr like mara-matnr,
                   end of itab.
    create new like this,
               data : begin of itab occur 0,
                        matnr(12) type N,
                   end of itab.

  • ALV Download to Excel Column Colors Problem

    Hi Experts,
    I've encountered a problem in downloading records from ALV display to excel file.
    The file is downloaded SUCESSFULLY however. When I opened the downloaded file, some columns were filled up with color(yellow) and other fields are not.
    Do anyone have an idea why?

    I have 21 Columns columns. The first 16 columns are filled with yellow colors...

  • Weird problem when downloading the output to an excel sheet

    Hi to all,
          when i download the list, output by an alv grid, i observe a weird problem..in the excel sheet the last digit (10th digit) of the first col. which is delivery no., is getting truncated...0001802563 is getting downloaded as 000180256..couldn't understand why...when i use conversion_exit fm, the values are not getting truncated and downloading correctly...curious to know what's gone wrong in this funcationality? thanks all
    cheers,
    Shankar. M.

    actually the problem is in the field catalog.if u can send me the code, i shall bug fix it for u.

  • ALV download to excel problem

    Dear Gurus a problem in alv report downloading to excel:
    on executing the report works fine but when downloading to excel there last digit of bpvno is getting truncated.
    ex: actual bpvno:'4000010' but excel o/p shows as '400001'
    I have declared a field in final internal table as:
    data: bpvno as bseg-belnr,
    (in field catalog)
      fieldcatalog-fieldname   = 'BPVNO'.
      fieldcatalog-seltext_m   = 'BPV No.'.
      fieldcatalog-seltext_L   = 'BPV No.'.
      fieldcatalog-col_pos     = I1.
      fieldcatalog-emphasize   = 'X'.
      append fieldcatalog .
      clear  fieldcatalog.
      I1 = I1 + 1.
    but after specifying the  REF_TABLENAME & REF_FIELDNAME the downloaded excel o/p is correct.
    My questions is:
    1) i want to know what all are mandatory fields to be specified in fieldcatalog & is it compulsory to specify REF_TABLENAME & REF_FIELDNAME .
    if not complusory why the downloaded excel value is being truncated ???
    plz dont send materilas on alv and answer specific to the question....

    Hi,
    I wrote a small program, and for me it worked. My assumption about the seltext was wrong. And I also didn't use output lenght.
    Here is the code.
    REPORT  ZALVTOEXCEL                                                 .
    type-pools slis.
    data : gt_fcat type slis_t_fieldcat_alv.
    data fieldcatalog like line of gt_fcat.
    types : begin of t_belnr,
            bpvno like bseg-belnr.
    types end of   t_belnr.
    data gt_belnr type table of t_belnr.
    data gwa_belnr type t_belnr.
    gwa_belnr-bpvno = '4000010'.
    append gwa_belnr to gt_belnr.
    fieldcatalog-fieldname = 'BPVNO'.
    fieldcatalog-seltext_m = 'BPV No.'.
    fieldcatalog-seltext_L = 'BPV No.'.
    fieldcatalog-col_pos = 1.
    fieldcatalog-emphasize = 'X'.
    append fieldcatalog to gt_fcat.
    clear fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       IT_FIELDCAT                        =  gt_fcat
        I_SAVE                            = 'A'
      TABLES
        t_outtab                          =  gt_belnr
    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.
    regards,
    Advait.

  • Problem in downloading ALV output in excel

    Dear Abapers,
                           I am facing a problem while downloading alv output in spreadsheet. Report headers and data headings are coming in excle but contents are missing instead of that No Data is displaying on excel sheet. I have debug that and observed the deep structure name T_OUTTAB using by the FM ALV_DATA_EXPORT is empty, It should contain the contents of my output data.
    Below I am giving my code. 
    ***********************************************declaration****************
          BEGIN OF d_file_out,
            index           TYPE i,                      "Index no
            msg             TYPE string,              "Message
            msgtyp(1)       TYPE c,                 "Message type
           END OF d_file_out,
    DATA:t_file_out       TYPE TABLE OF d_file_out.
    DATA:wa_file_out          TYPE d_file_out.
    Display Error Logs
    PERFORM display_logs USING text-006.
    FORM display_logs USING p_text TYPE string.
      CONSTANTS:  c_count    TYPE char5 VALUE 'INDEX',
                  c_mestyp   TYPE char6 VALUE 'MSG',
                  c_message  TYPE char7 VALUE 'MSGTYP'.
    *Field catalog
      PERFORM: z_field_catalog USING c_count   text-010,  "Record number
               z_field_catalog USING c_mestyp  text-011,  "Message type
               z_field_catalog USING c_message text-012.  "Message
    *Top of page event
      PERFORM z_event USING t_events.
    wa_layout-colwidth_optimize = c_x.
    ALV grid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
         i_buffer_active          = 'X'
           i_callback_program = sy-repid
         is_layout          = wa_layout
         I_STRUCTURE_NAME   = wa_file_out
          it_fieldcat        = t_field
          it_events          = t_events
        TABLES
          t_outtab           = t_file_out
        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.
    ***********************************Fieldcatalog**********************************************
    FORM z_field_catalog USING p_field TYPE any
                                                p_name  TYPE any.
      wa_field-fieldname = p_field.
      wa_field-seltext_l = p_name.
      IF p_field = 'INDEX'.
        wa_field-outputlen = '14'.
        wa_field-col_pos = 1.
      ELSEIF p_field = 'MSG'.
        wa_field-outputlen = '120'.
        wa_field-col_pos = 2.
      ELSEIF p_field = 'MSGTYP'.
        wa_field-outputlen = '08'.
        wa_field-col_pos = 3.
      ENDIF.
      APPEND wa_field TO t_field.
      CLEAR wa_field.
    ENDFORM. 
    Here I have given my code, which contain the building of field catalog and Calling ALV Grid. I have already checked the excel micros settings. Other programs are working fine on my system and downloading in excel is also working.
    Hope to get reply soon.
    Regards,
    Himanshu

    Hi ,
    use this to down load to xcel
    v_file = lv_file.
      DATA:  BEGIN OF s_head OCCURS 0,
             head(40) TYPE c ,
             END OF s_head.
      s_head-head = text-015."'Sales price'.   * for header
      APPEND s_head.
      s_head-head = text-016."'Purchase price'.   * for header
      APPEND s_head.
      s_head-head = text-017."'Listing Procedure'.   * for header
      APPEND s_head.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_file
         filetype                        = 'ASC'
         write_field_separator           = '#'
        TABLES
          data_tab                        = it_output1[]
          fieldnames                      = s_head[]
       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           = 8
         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.

  • Hi friends, Problems with Special Characters in Table download to Excel.

    Hi friends,
    I am using Binary Cache method to download to excel. The problem is that there are certain fields in the back end R/3  that has special characters in it eg : & * £ # etc.
    As a result, the download is not working for these rows. Please can any of you tell me how to get rid of this. As an example let's say I wan to replace the "&" with "and".
    Please help.
    Thank You.
    Avik

    hi,
    Hope you find tgis of some help !!
    public void ReplaceMethod( )
        //@@begin ReplaceMethod()
        // get the string value of the cell (for you from the table cell, for eg, Pinki & Rakesh)
        test = wdContext.currentTestStringConversionElement().getInput();
        // calculate the total length of the String
        n=test.length ();
        if(n!=0)
                for(i=1;i<=n;i++)
    // catching each character from the String
                            c = test.charAt (i-1);
            // checking if any character within the String (eg, Pinki & Rakesh)  is “&”            
                               if (c=='&')
                                                                wdContext.currentTestStringConversionElement().setOutput(Character.toString(c));
                                                                no=i;
                                                                break;
                String val = Integer.toString(no);
                               //wdContext.currentTestStringConversionElement().setNo(val);
                // breaking the String and adding “ and” in place of “&”            
                            sub1=   test.substring(0,i-1);
                            sub2= "  and  ";
                            sub3= test.substring(i,n);
                      //Concatenating the String   
                            test1 = sub1sub2sub3;
                      //Printing the String  
                            wdContext.currentTestStringConversionElement().setOutput(test1);

Maybe you are looking for