Display of leading zeroes when downloaded from ALV to excel

Hi All,
I have a problem in ALV grid display.
There is a specific field which has value starting from '001' to '999'. This is a char(3) type of variable.
The problem is that the display shows the value as '001' which is correct. but when the same file is dwnloaded to excel using standard SAP functionality, the value of the field gets changed to '1' instead of '001'.
Is there any option by which this can be controlled. Please let me know, its urgent!!
thanks

hi Ankur,
the Excel download is done by Z program? IF yes you have to do:
   SET PROPERTY OF go_cell 'NumberFormat' = '@'.
this will set the Excel cell to Text type and leading zeros won't be lost.
ec

Similar Messages

  • The data type DEC while downloading from ALV to EXCEL

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

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

  • Totals not displaying in excel when download from ALV?

    Hi,
    I have a program that displays the output in ALV with totals. I am using REUSE_ALV_GRID_DISPLAY. The output in the ALV is correct, totals are also displayed correctly. But when I click on the excel button, data is shown in excel correctly but the TOTALs are not displayed. Please let me know what could be the reason.
    I am also trying to put the totals text as
       gb_layout-zebra = 'X'.
       gb_layout-totals_text = 'Totals'.
    but Totals text is not printed in the total of ALV.
    Thanks,
    Deepthi

    Hi Deepti,
    Check your field catalog whether you have missed any parameter.
    W_FLDCAT-FIELDNAME = 'NETWR'.
    W_FLDCAT-SELTEXT_L = 'Net_Value'.
    W_FLDCAT-COL_POS = 6.
    W_FLDCAT-OUTPUTLEN = 10.
    W_FLDCAT-DO_SUM = 'X'.
    W_FLDCAT-DATATYPE = 'CURR'.
    My guess you might be getting #### symbols if yes the no problem just extend the excel sheet cell(drag the cell are extend ) you can see the values removing #### symbols.
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Nov 1, 2008 11:17 AM

  • Downloading from alv to excel file

    hai
       while downloading from alv grid to excel  file
      i am not getting values properly. i have taken 110 fields. i am not getting prper way. can u plz tel me way....

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

  • Download from ALV to excel sheet.

    When i am downloading the Alv to excel sheet. I want to get the field descritption also in the excel sheet.

    Refer:
    https://forums.sdn.sap.com/click.jspa?searchID=14433981&messageID=3603627

  • Problrn when downloas from ALV to excel

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

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

  • Download from alv to excel in background

    Hi All,
    I have developed one alv report which has 100 column(more than 1023 character in header).
    When I download in excel it is not comming properly so I go to LIST-EXPORT-SPREADSHEET then
    it comes in MHTML format then I can open it in to excel so its comes perfect.
    Now what my query is--- when I execute in background then there is no option for MHTML format.
    so in this case the report not come properly in excel. Please give the solution.
    Thanks,
    Rakesh

    Hi,
    Try using File Handling Concept ..Open Dataset (the file will be downloaded in application server)  .. and schedule a background job
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3c8c358411d1829f0000e829fbfe/content.htm
    Regards,
    Rajashiva R

  • Missing data while download from ALV to Excel

    Hi Experts,
    After a report is generated to ALV list, I'm trying to download the report into an Excel file.
    Let's say there are 50 records, but in the Excel file only have 6 records, and the last record only have 1st 3 fields out of 14 containing the data and the rest is empty.
    I'm using MS Excel 2010, and my system is 4.6C. Not sure what has really gone wrong.
    Is there any solutions? Much appreciated for any suggestion and comments
    Thanks.

    Hi,
    You'll need to verify your excel data for special characters. These special characters cause inconsistencies in the downloaded data.
    Regards,
    Pranav.

  • Export from ALV to Excel - problem with numeric values

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

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

  • Download ICONS from ALV to EXCEL

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

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

  • Excel download from ALV not working inproduction

    Hi all,
    I am using "set_table_for_first_display" for alv display. the excel download from alv is woking fine in development and quality stystem but in production only first 3-4 rows are getting downloaded. Other rows donot appear in excel.
    Any Idea !!!
    Thanks
    Madhu

    Hi Experts,
    I have noticed that same problem is occuring in development system also with same set of data . The ascii file created has some missing rows. I guess its due to some special characters though i am not able to see any special character . Any solution for this.
    Regs
    madhu

  • Display of leading zeros for a GL account in FS00

    Hi all,
    does anyone know is it possible to set something in SAP so that in transaction FS00 the gl account number is displayed with leading zeros? Now they are removed.
    Thanks!
    D.

    Hi Dusan,
    "Alpha conversion" is already implemented on the domain (SAKNR) itself. You can modify the system (take out conversion exit "ALPHA") from domain SAKNR but I'm guessing this might create inconsistencies in many other dictionary objects.
    I think it's better to consider alternavtives - like using character + number as GL account (e.g. A345999)..
    Best regards, Kyoko

  • Download from ALV grid to PDF format

    hai Friends!
       plz tell me how can i download from ALV grid to PDF format..
    send me some sample codes

    check this thread
    ALV Grid to PDF
    and do use the search functionality from next time and post the question only wheb u dont find the answer
    кu03B1ятu03B9к

  • Windows 8.1 account limit problem when downloading from store

    windows 8.1 account limit problem when downloading from store        
    I have 250 windows 8.1 tablets.
    I figured since you can use the same account on 81 devices id create 4 accounts.
    I need to download more than 25 free apps from the store
    on each tablet. Putting the same account don't work. (comes up with an error after putting on to many devices that you cant use this account now).
    Whats the best way to do this ? and what if I need to download a paid app ?
    Thank You.

    Hi,
    As far as I know, One Microsoft Account may bound at most five Trusted computers. There is no way to break this limitation.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • When downloading from a Sony minidisc video camera, the picture is downloading but without sound.  Previously, it had downloaded successfully both sound and picture.  I have subsequently upgraded to Lion X (10.7.4).  Is there some problem with the driver?

    When downloading from a Sony minidisc video camera, the picture is downloading but without sound.  Previously, it had downloaded successfully both sound and picture.  I have subsequently upgraded to Lion X (10.7.4).  Is there some problem with the upgrade which is affecting the transfer?  Is there a way of resolving this?

    When you have kernel panics, the pertinent information is in the panic report.
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

Maybe you are looking for