GUI_Download Japanase to Excel

Hi,
I need to download Japanese characters to Excel.
I'm using GUI_Download function module to download, when I download as text file .txt, with codepage 4110, the japanese characters are shown correctly.
But when I download as Excel file .xls, with codepage 4110, the japanese characters are shown in funny characters.
How can I solve this?

This is linked to your workstation or to the codepage.
I had the same trouble with russian.
If your PC is not configurated in Japonese, you can have such a problem. To know if it's OK, you can check by connecting you in japonese, if the characters are strange, your workstation is not in japonese. You should ask a japonese to test on his workstation.
Regards,
Christophe

Similar Messages

  • Gui_Download export to excel delivering only one row in excel output

    Hello,
    I am using Vista Os with the SAP front end logon 710 and Office 2007. Also my company is using Ecc6.0 in the server.
    I am able to export the Itab data to excel but all the rows are on the first row in Excel.
    If i have 3 rows in ITAB then all the 3 rows are on the First row of Excel
    I have supplied these parameters
    filename = 'C:\ITAB2XLS.xls'
    FILETYPE = 'ASC'
    WRITE_FIELD_SEPARATOR = 'X'
    SHOW_TRANSFER_STATUS = 'X'
    tables
    data_tab = itab[]
    FIELDNAMES = headingTab[]
    Is anyone having the same issue like me ?
    Thanks.

    Hi,
    I tried commenting the Field seperator but it didnt change anything. I am still having the same problem.
    I am pasting my code sample.
    data:begin of itab occurs 0,
    grp type c,
    val type i,
    end of itab.
    data:begin of headingTab occurs 0,
    TEXT(10) type c,
    end of headingTab.
    itab-grp = 'A'.
    itab-val = 100.
    append itab.
    itab-grp = 'B'.
    itab-val = 200.
    append itab.
    headingTab-text = 'GROUP'.
    append headingTab.
    headingTab-text = 'VALUE'.
    append headingTab.
    call function 'GUI_DOWNLOAD'
    exporting
    filename = 'C:\ITAB2XLS.xls'
    FILETYPE = 'DAT'
    WRITE_FIELD_SEPARATOR = 'X'
    SHOW_TRANSFER_STATUS = 'X'
    tables
    data_tab = itab[]
    FIELDNAMES = headingTab[]
    I think there is some problem with the Vista / Office 2007 with SAP.
    Any suggestions?

  • GUI_Download-  Problem in Excel

    Hi Experts
    I am using the Function moduleGui_download to download data from internal table to excel. My issue is, internal table having 93 records. But Excel having 63 records only. other 30 records are merged into 63rd record.
    Pls advise me.
    Thanks
    Kumar

    hi,
    try with this.
    data: begin of i_data occurs 0,
    vbeln like vbak-vbeln,
    ernam like vbak-ernam,
    end of i_data.
    DATA: lv_filename TYPE string.
    PARAMETERS: p_pcfile like RLGRAP-FILENAME.
    at selection-screen on VALUE-REQUEST FOR p_pcfile.
      perform getfile using p_pcfile.
    lv_filename = p_pcfile.
    select vbeln ernam from vbak into table i_data up to 63 rows.
    perform download.
    *&      Form  getfile
          text
         -->P_P_PCFILE  text
    form getfile  using    p_p_pcfile like rlgrap-filename.
      call function 'F4_FILENAME'
       EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
         FIELD_NAME          = 'p_p_pcfile '
       IMPORTING
         FILE_NAME           = p_p_pcfile
    endform.                    " getfile
    *&      Form  download
          text
    -->  p1        text
    <--  p2        text
    form download .
    CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
      BIN_FILESIZE                    =
            FILENAME                        = lv_filename
         filetype                        = 'ASC'
           WRITE_FIELD_SEPARATOR            = 'X'
          TABLES
            DATA_TAB                        = i_data.
          FIELDNAMES                       = IT_HEADER
    endform.                    " download
    reward if useful.
    thanks and regards.
    Edited by: hema bobbili on May 6, 2008 8:51 AM

  • Arabic Text problem in Excel

    Hi All,
    I am downloading my data using GUI_DOWNLOAD FM into Excel ,
    Here the issue is in excel the Arabic text is displayed as # ,
    I have gone through the scn and worked on some suggestions given like to add code page
    tab delimiter etc... but could get the desired output..
    can anyone suggest me the way to get the Arabic text correct in Excel.
    Thanks,
    Pavan

    Hi Pavan,
    Could you please describe shortly about how ,where is the data being retrieved to the program?
    whether you are performing any conversions?
    what kind of encoding used ?
    it would help me to understand and give you the useful inputs to achieve the desired output
    Regards,
    Prakash

  • Problem gui_download  -Data looks messy without proper column header

    Dear SDNers,
    Scenario:
    Using FM GUI_download to download excel file to Presentation server.
    Excel file downloads perfecly fine on presentation server with proper column headers when the OS is not XP/Vista.
    Issue:
    when i run this program on my system having Windows Vista,Excel downloads but the column header is all jumbled up without proper differetation.
    Kindly let me know what the the issue could be?
    My Effort:
    I did some googling and found that in Function Modules GUI_DOWNLOAD and GUI_UPLOAD.
    The form of the file name depends on the underlying operating system.
    To make your programs portable to different operating systems, we should use the function module FILE_GET_NAME.
    which returns the system-dependent name for an abstract file name.
    Kindly let me know if this is correct.
    Reason am asking is now i dont have access to code and check the same since i dont have authorization.
    Regards,
    SuryaD.
    Edited by: SuryaD on Jan 12, 2010 2:20 PM

    No response.So closing the thread.

  • How to display more than 12 numbers in one single  column  of excel

    hi,
    i lokesh, i am using gui_download for downloading excel sheet. actually during download one of my field contains 18 numbers, so in excel, in that particular column it shows as a 3.0000E18 and also for example: actually property number is 100000000000005263, it shows as a 1.0000E18, if i click on the 1.0000E+18, at the top it shows as a 10000000000000005000. it does not show last 3 numbers like 263.
    what i want is during run time i want to display property number as a 100000000000005263 in one column.
    any body knows for this solution pls let me know.

    Hi,
    You're using gui_download to create a file which you then have to import into Excel?  If so, then you can format the field as 'Text' during the import process.  The default cell-category is 'General', which will treat numeric values as numbers, causing the problem you describe.
    If you do not want to give users this task, then one idea is to put some non-numeric character(s) into the cell, e.g. 'PN 100000000000005263' - where PN stands for property number.

  • Need a Function Module

    Hi All,
    I am using 'GUI_DOWNLOAD' to download excel file.
    In this case if any field having leading zeros it is removed.I want any option in this FM which will retain the leading zeros or any other FM which will do the same.
    Regards,
    Jeetu

    Hi Jeetu,
      I just worked on this & found that if you append '' in front of the field with leading zeros,you will get them in the downloaded excel.
    data: begin of itab occurs 0,
           test(10),
          end of itab.
        itab-test = '''000120'.
        append itab.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
          BIN_FILESIZE                    =
            FILENAME                        = 'C:/FILE.XLS'
           FILETYPE                        = 'ASC'
          APPEND                          = ' '
          WRITE_FIELD_SEPARATOR           = ' '
          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                      = ' '
        IMPORTING
          FILELENGTH                      =
          TABLES
            DATA_TAB                        = ITAB
          FIELDNAMES                      =
         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.

  • How to put the header in excel file in GUI_DOWNLOAD

    Hi,
    I have a requirement , Which I m downloading the contents of internal table using the GUI_DOWNLOAD  in excel format, I need to keep the first line of the excel sheet as a header, Can any one suggest how to go for this,

    Hello,
    You can have the data in the data tab & field name in the field tab. And so you can download both the field name and the value for the same using the FM u2013 GUI_DOWNLOAD (File type should be u2018ASCu2019).
    Hope, you need additional information to be added as the header.
    One option: You can call the GUI_UPLOAD twice.
    First one with the header in the data tab.
    Second one with the option append = u2018Xu2019 with the actual data and header and pass the same above file name as input.
    Also, there is a solved forum already exists but with a different solution. You can go through the below link also:
    Re: GUI_DOWNLOAD with Header
    Regards,
    Selva K.

  • Need to extend header length in Excel file being downloaded by GUI_DOWNLOAD

    hello Experts,
    I have written a program where the data from DSO is downloaded into Excel File which is being saved on my desktop.
    Now, i am facing one problem with the length of header and the values.
    For eg:
    I have 15 cloumns and i have given description for each column ie header name. This header is being displayed only upto 255 characters. If the total length of all the columns header desc exceeds 255 char, then blank header is displayed further.
    Same is the case with the values of the columns.
    I am pasting the relevant code.
    The code for displaying header and fields is:
    Concatenate
    'Sales Org'
    'Sales Org Desc'
    'Sales Dist'
    'Sales Dist Desc'
    'Sales Rep'
    'Sales Rep Desc'
    'Customer Number'
    'Customer Desc'
    'Billing Document'
    'AGI Code No'
    'AgiCode Desc'
    'UCAGI Code No'
    'UCAGI Code Desc'
    'Design Code'
    'CalMonth'
    'CalYear'
    'Billing Qty'
    'ZDIF'
    'ZE01'
    'ZE13'
    Into ls_contents-line SEPARATED BY lc_tab.
    APPEND ls_contents TO lt_contents.
    CLEAR ls_contents.
    Loop at i_t_Table into wa_i_t_t_Table.
    concatenate
          wa_i_t_t_Table-/BIC/G00000574
          wa_i_t_t_Table-salesorg_name
          wa_i_t_t_Table-/BIC/G00000514
          wa_i_t_t_Table-salesdist_name
          wa_i_t_t_Table-/BIC/G00009361
          wa_i_t_t_Table-SalesRep_name
          wa_i_t_t_Table-/BIC/G00000466
          wa_i_t_t_Table-Customer_name
          wa_i_t_t_Table-/BIC/G00000464
          wa_i_t_t_Table-/BIC/G00000001
          wa_i_t_t_Table-agicode_name
          wa_i_t_t_Table-/BIC/G00000002
          wa_i_t_t_Table-UCagicode_name
          wa_i_t_t_Table-/BIC/G00000005
          wa_i_t_t_Table-CALMONTH2
          wa_i_t_t_Table-CALYEAR
          wa_i_t_t_Table-/BIC/G00001108
          wa_i_t_t_Table-/BIC/G00021022
          wa_i_t_t_Table-/BIC/G00021023
          wa_i_t_t_Table-/BIC/G00021024
    INTO ls_contents-line SEPARATED BY lc_tab.
    *CONCATENATE ls_contents lv_hex1 INTO ls_contents.
              APPEND ls_contents TO lt_contents.
              CLEAR ls_contents.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                    =
       FILENAME                        = c_filename
    FILETYPE                        = 'DAT'
      APPEND                          = ' '
       WRITE_FIELD_SEPARATOR           = ' '
    HEADER                          = '01'
      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                    = '0'
      WK1_N_SIZE                      = '20'
      WK1_T_FORMAT                    = '0'
      WK1_T_SIZE                      = '20'
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
      TABLES
        DATA_TAB                        = lt_contents
      FIELDNAMES                      =
    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.
    Note:  Gone through SDN where many things are suggested like to use parameter of GUI_DOWNLAOD ie "FIELDNAMES " which is disabled in my SAP version.
    Please suggest how to make all the headers and the values of the fields properly.
    Would appreciate immediate help.
    Thanks in advance.
    Regards
    Lavanya

    solved.

  • Error while downloading output in excel format using FM Gui_download

    Hello All,
    <removed by moderator>
    While downloading the necessary output of a Ztransaction in excel format the excel file only shows one 1 record whereas in the output there were 88 records.
    When I am downloading it in other formats like Rich text etc. the data is getting downloaded correctly as per the output.
    Now this problem is occuring in Production & Quality whereas in Development the excel file is downloading data correctly.
    I have compared the code in the different clients as well as debugged it but the code is the same in each case.
    There is no data corruption in the final internal table as well.
    So what else can be done?....
    The data needs to be downloaded as it is in the output in the excel format.
    Kindly give me some suggestion and help me out in this regard.
    Edited by: Thomas Zloch on Nov 1, 2011 10:04 AM

    Hi,
    Did you the use the GUO_download using the following values:
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename         = fullpath
        filetype         = 'ASC'
        codepage         = space
        write_bom        = 'X'
      TABLES

  • Exporting char(string) to excel file using GUI_DOWNLOAD

    Dear Team,
    When i am trying to export Data of type Char(like 12345678987654321)  , after export it convert this data to Floating format(scientific n1E+n2) which is not my desired  output .i need to change it using excel cell format control.
    suggest me how can i handle this..
    Thanks in Advance*.

    Hello Santosh,
    Play with the below importing parameters in the function module "GUI_DOWNLOAD".
    WK1_N_FORMAT - Format for value columns in files of the type WK1
    WK1_N_SIZE - Column width for value columns in files of the type WK1
    WK1_T_FORMAT - Format for text columns for files of the type WK1
    WK1_T_SIZE - Column width for text columns for files of the type WK1.
    It might help you I guess. Also read the documentation of those importing parameters by clicking on the long text green icon after the description in the IMPORTING parameters tab of the function module.
    Regards,
    TP

  • Download to excel using GUI_DOWNLOAD : Date format

    Hi Gurus,
    I am downloading the data from an internal table to excel file using FM gui_download. The date field in my internal table is in the format MM-DD-YYYY (stored as Char 10 field). But when it downloads to excel, the date format changes to MM/DD/YYYY. I want to keep original format of MM-DD-YYYY in excel.
    Please help, sure points for helpful answers.
    should i use FM gui_download only, or is there some Other useful FM.
    Regards,
    Abhishek

    Hi,
    Check the code below:
    v_date = sy-datum.
    IF v_date CA '/'.
      REPLACE '/' WITH '-' INTO v_date.
    ENDIF.
    Regards
    Kannaiah

  • Using Gui_download for excel output

    Hi,
    I am using gui_download to output in excel format, my requirement is i want to start records from 3rd row in excel.
    On first row first column title shoud come? Second row blank,  i used fieldname for header in export paramenter from 3rd row.
    Plz help me to sove this issue.
    Thanks in advance.
    Vishnu.

    Hi vishnu,
    Here is the sample code below.
    *& Report  ZVK_TEST1
    REPORT  zvk_test1.
    TYPES:BEGIN OF ty_ekko,
            ebeln TYPE ekko-ebeln,
            bukrs TYPE ekko-bukrs,
    END OF ty_ekko.
    TYPES:BEGIN OF ty_fields,
            field TYPE dd03l-fieldname,
          END OF ty_fields.
    DATA:lt_ekko TYPE STANDARD TABLE OF ty_ekko,
         lt_dummy TYPE STANDARD TABLE OF ty_ekko.
    DATA:lw_ekko TYPE ty_ekko.
    APPEND INITIAL LINE TO lt_dummy.
    APPEND INITIAL LINE TO lt_dummy.
    SELECT ebeln bukrs INTO TABLE lt_ekko
      FROM ekko UP TO 10 ROWS.
    DATA:lt_fields TYPE TABLE OF ty_fields,
         lw_field TYPE ty_fields.
    lw_field-field = 'PO NUMBER'.
    APPEND lw_field TO lt_fields.
    lw_field-field = 'COMPANY CODE'.
    APPEND lw_field TO lt_fields.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
      CHANGING
        data_tab                  = lt_dummy
      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
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    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 METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
        append                    = 'X'
        write_field_separator     = 'X'
        fieldnames                = lt_fields
      CHANGING
        data_tab                  = lt_ekko
      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
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • GUI_Upload & GUI_Download for excel files

    Hi experts,
    I want to upload excel file into sap. i am trying with GUI_Upload function module. when i see the data it is filled with # and other special char. When i save the excel file as .txt file and then read the txt file. Now i am getting correct data. Is it possible to read Excel data using GUI_UPLOAD directly without changing .xls to .txt.
    Also, how to change data in  second or  third tab of excel file using GUI_Download.
    -RK

    Hi
    Actually ur file selection s wrong.
    CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          PROGRAM_NAME  = SYST-REPID
          DYNPRO_NUMBER = SYST-DYNNR
          FIELD_NAME    = 'P_FNAME'
          STATIC        = 'X'
         MASK          = '*.txt'
        CHANGING
          FILE_NAME     = P_FNAME
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
    Upload:
    CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                = LV_FNAME
          FILETYPE                = 'ASC'
          HAS_FIELD_SEPARATOR     = 'X'
        TABLES
          DATA_TAB                = IT_UEXBANK01
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          OTHERS                  = 17.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Gui_Download - Suppress leading zero in EXCEL

    Hello,
    in my scenario I need to build an excel file in which some of the information they need to be displayed in excel with the leading 0 in front (type-lqua lgort 0701 ) thing does not happen in my view.
    I create the Excel file like this:
       CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
    = BIN_FILESIZE
           FILENAME = filename
           FILETYPE = 'ASC'
    APPEND = ''
          WRITE_FIELD_SEPARATOR = 'X'
         TABLES
           DATA_TAB = tb_out
    I have read in some posts that just insert a character " ' "   to show everything as text, however, this does not fit in my case because my file is the input to another application (not mine) that reads the file with the FM' ALSM_EXCEL_TO_INTERNAL_TABLE '
    How can I view the file directly without suppressing leading 0 ?
    Thanks in advance

    try this
    instead of gui_download use this to download into excell file.
    DATA: XL_itab type alsmex_tabline occurs 0 with header line.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME    = FILENAM
          I_BEGIN_COL = 1
          I_BEGIN_ROW = 2
          I_END_COL   = 3
          I_END_ROW   = 5000
        TABLES
          INTERN      = xl_itab.
    * EXCEPTIONS
    * INCONSISTENT_PARAMETERS = 1
    * UPLOAD_OLE = 2
    * OTHERS = 3 .
      IF SY-SUBRC = 0.
    * MESSAGE 'DATA UPLOADED SUCCESSFULLY' TYPE 'I'.
      ENDIF.
      loop at xl_itab.
        case xl_itab-col.
          when '1'.
            <your workarea-fieldname> = xl_itab-value.
          when '2'.
             <your workarea-fieldname>  = xl_itab-value.
          when '3'.
             <your workarea-fieldname>  = xl_itab-value.
        endcase.
        at end of row.
          append<work area> to <internal table>.
          clear <workarea>.
        endat.
      endloop.
    if you have more doubts just reply me

Maybe you are looking for

  • Please tell me e code to clear the dos screen in my program

    please sir/mam if u colud plz elp me to know hoe th clear the dos screen in java and I had tried the code i.e. Runtime.getRuntime.exec("cls") but it did not worked so plz help me out u can mail me at [email protected]

  • .avi wont work

    hey i have downloaded tons of .avi's and now that i download them they only show up as a blank green screen and they last 5 sec. and wont have sound. i am using an imac and have the latest version of quick time. can anyone help.

  • Multiple login pages

    I need to display a different login page when I use logins in. It doesn't necessarily needs to be a new page let me correct that. I just want to be able to change the logo that is displayed based on the user that is logged in. Is there any way to pas

  • 2.2 (FROYO) OFFICIAL SOFTWARE INFORMATION

    IT STATES: A SYSTEM UPDATE IS READY TO INSTALL TOTAL MB IS 93.7;   NOTE: THIS IS THE TOTAL SIZE FOR 2.2 (FROYO) UPDATE THIS ANDROID 2.2 (FROYO) SOFTWARE UPDATE INCLUDES NEW ENHANCEMENTS TO SUPPORT ADOBE FLASH PLAYER 10.1 (PREINSTALLED), SUPPORT FOR 7

  • Progress freezes when buying an iphoto book

    Hiya, I have created a book for my Nan's birthday and when I went to buy it the transferring data progress bar froze at about 1.20mb. I cancelled and tried again, this time it got to about 7mb (out of about 9mb) and froze so I decided to leave it inc