Grid Download to Excel truncates leading zeros

We are on tools 8.51. The download feature for a Grid now removes the leading zeros when the grid is downloaded to excel. Has anyone found a way to fix this issue ? Thanks in advance

When you download from PS query, the output is created as a true binary xls file, but when you download from a grid in PT 8.51 the output file is html, even though the filename is ps.xls. You can open this file in a text editor.
If you have all numeric data in a column, it will be stored as <td>nnnnnn</td> in the html file. if the column has mixed numeric and text data, it will be stored as <td>=&amp;quot;nnnnnn&amp;quot;</td>. The leading zeroes are still there in both cases, but when excel imports the first form it will convert the result to numeric, the second it will treat as text.
Other than logging a case with Oracle, the only workaround I could think of would be to save the file to disk and run the macro directly against the html. Of course, this would likely be a major redesign.
Regards,
Bob

Similar Messages

  • IR truncating leading zeros in my popup window report

    Hello,
    I am using IR_columnname, for one of the columns in my report which is a popup window report.
    My problem is that IR_column search filter in my popup window is truncating the leading zeros.
    I am getting the value but it is truncating the leading zeros.
    like say if the deptno is something like 020 or 0020 in the parent window.
    the IR_columnname value is taking '20' (its truncating leading zeros) with this filter its not dispalying the result in my popup window.
    can anyone help me out with this.
    thanks.

    How are you passing values to the IR filter? There could be a possibility that you source logic is truncating the leading zeros.
    Thanks,
    Manish

  • Truncating leading zeros for the data

    hi ,
      I am doing a conversion project from oracle source system(DB2) to BI system. I have a situation here:
      I am extracting material numbers from source system(DB2) into a ZXXXX characteristic and in the transfer structure i checked the conversion as well and for infoobject ZXXXX, i am using ALPHA conversion. but the data i get is truncating material numbers. For example, 050302 is coming as 50302 and truncating leading zero. I am not sure what needs to be done here.
    Please advise..
    Thanks in advance...

    Hi J Dorson,
    This is the expected bahaviour if your InfoObject is configured to have ALPHA conversion. If the zero's in front of the material number is needed, then turn-off ALPHA conversion in your InfoObject (e.g. by removing the conversion exit).

  • Truncating Leading Zeros & Displaying Decimal Positions in a Webdynpro

    Hi All,
    I am new to webdynpro and assigned with some issues in webdynpro application, the issues goes like this. i  already have a webdynpro application where in i am trying to display a PO as in transaction ME23 with Header and Line Items, In Line Items, i want to Truncate Leading Zeros for material Number & Item Numbers. In the net price i want to display decimal values even if our price don’t have any decimal value. For Example if the net price is 33.33 then i am able to see the value as 33.33. If it’s 33.00 then i am able to see values only as 33. I want to see the exact value as 33.00. Let us know how to over come those issues. 
    Thanks in advance,
    With Best Regards,
    Prabahar N.R

    Hi Santhosh,
    I failed while executing the steps you mentioned, kindly look into below description for more understanding.
    We have an issue like the decimal positions are truncated when the value of decimal places are Zero. For Example if the net price is 99.98 then i am able to see the value as 99.98. If it’s 99.00 then i am able to see values only as 99. I want to see the exact value as 99.00. The values are populated from an RFC Table, which is coming from a Standard BAPI.  I find in the implementation, the attributes uses a method called bindText() available in com.sap.tc.webndypro.clientserver.uielip.standard.api.IWDtextview.  Below is the piece of code,
    com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTextView NetPrice_editor
    = (com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTextView)
    wdAlterEgo.createElement(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTextView.class, "Net_Price_editor");
    NetPrice_editor.setHAlign(com.sap.tc.webdynpro.clientserver.uielib.standard.api.WDInputFieldAlignment.valueOf("left"));
    NetPrice_editor.setWrapping(true);
    NetPrice_editor.bindText("bapi_po_getdetail_input.Output.Po_Items.Net_Price");
    NetPrice.setTableCellEditor(_Net_Price_editor);
    Table.addColumn(Net_Price);
    I can see from R/3 back end the values coming with decimal values even if the decimal positions are null. Any suggestions will be very helpful.
    With Best Regards,
    Prabahar N.R

  • Download to EXCEL - Problem with truncating leading zeros

    Hello Experts
    I have Reqs-
    When i download data into EXCEL some of the fields like PERNR lets say if the valus of the PERNR is 01000032 then in the excel it is displaying it as 1000032 or esle if a DATE field with value 02/03/2007 (obtained by concatenating MM / DD / YYYY) it is displaying in the excel as 2/3/2007.
    I dont want the truncating of zeros to happen.
    Any INPUT will be rewarded with points.
    Thanks
    Vj

    Hi,
    Try to use this FM.
    There are two very important functional modules ,which are used to add zeroes(‘0’)  & Remove zeroes(‘0’)  from  numeric string input respectively.
    The functional module ‘CONVERSION_EXIT_ALPHA_INPUT’ comes handy in this situation.           
    Another functional module ‘CONVERSION_EXIT_ALPHA_OUTPUT’ is used to reverse the Operations performed by the above FM.
    Let us look up the first case.
    Function Module: CONVERSION_EXIT_ALPHA_INPUT
    PARAMETER:
    Importing Parameter: Input   of  type ‘C’
    Exporting Parameter: Output of type ‘C’.
    This function module is use to add zeroes (‘0’), to the left of the  numeric string input ,after making the input  numeric string right justified .
    If the input string is non-numeric (including alphanumeric) , string is stored as left justified ,with blanks towards the right.
    If the string is numeric say  vehicle number , vlcvehicle-vhcle( 10 char)
    INPUT  :  ‘123456’              
    OUTPUT : ‘0000123456’
    Whereas if string is non-numeric
    INPUT :    ’ABCD’              
    OUTPUT:  ‘ABCD’.
    Hope this will solve your problem.
    Regards
    Balaji

  • SaveAsCSV() truncating leading zeros

    Hi
    We have used applet call saveAsCSV() and are experiencing the typical "leading zero" truncation since the value is being treated as numberic.
    I would like to know if there is any way of specifying certain fields as text other than inserting a character to force it to be a text field
    Thanks
    Deepa

    Hi Deepa
    This is actually a Microsoft Excel issue.  You cannot save a leading 0 in an csv file.
    I have tried doing this external to xMII and got to the conclusion that the file type CSV does not allow for leading zero's (I think this is the case with special characters in CSV files as well).
    Your best bet is to call a function to add leading zero's (something like a padding/stretch function) once you open the saved file.
    Regards

  • ALV Download to excel truncating fields

    Hi,
    When I use the ALV download button to download to excel, it is truncating the last character of customer number.
    ie customer 20011790 is showing as 2001179.
    Any ideas how to fix this.
    Thanks.

    Looks like Note 855314 has a workaround ... my be more.
    Of course (yuk!), write you own download.
    Best!
    Jim

  • Report Builder: output to Excel removes leading zeros

    I'm trying to use the Report Builder to output a numeric
    field to EXCEL , but on numbers that start with zero EXCEL removes
    the leading zero's. ex. 00123 becomes 123.
    Is there something that I can put in the expression builder
    on the field to overcome this.
    I've tried concatonating a single quote on the front of the
    field but the single quote shows up on the output. I've tried this
    on both the SQL and on the expression builder.
    I've read on some of the posts where people have tried using
    'mso-number-format:"\@'" within a TD tag but I can't seem to get
    the syntax right inside the Expression Builder.
    Has anybody got any suggestions?

    Excel will remove leading zeros in a numeric field because it is treating the column as numeric. Putting a ' in front of the number forces Excel to treat the column as text.

  • Excel - CSV leading zeros

    Hi
    I get sent an Excel workbook from a client that I need to save as a CSV file so that I can then use the CSV file with another piece of software. When I save the workbook as a CSV file, then when I open it again, the cells in column A don't retain the
    leading zero. In the workbook, the data in column A is entered as '012345.
    Any ideas?
    Viv
    Viv Haig

    Hi,
    Any update?
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Answers report-download as Excel loose trailing zeroes

    Hi!
    When I download Answers report to Excle (Word) I loose trailing zeroes.
    1.2500 -> 1.25Trailing zeroes are important and I'd like that format remain as it is in OBI in all downloading types (Excel, Word etc).
    When I export to PDF (run through Oracle BI publisher) trailing zeroes are correct.
    Any help please.
    My config, OBI on Windows 2003 32 bit:
    Product Information
    Oracle Business Intelligence Product Version     10.1.3.4 (Build 080726.1900)
    Physical Presentation Catalog Path     \\?\C:\OracleBIData\web\catalog\teb\root
    Oracle BI Server Data Source     AnalyticsWeb
    Available Paging Memory (MB)     5176
    Available Virtual Address Space (MB)     1833

    Hi,
    here are mine data as requested ...
    The only three formating columns are Cash up KN, Cash up EUR i Cash up EUR/KN.
    Column that has problem has no "mso" like formating at all, only two decimal number format, defined in classic way in OBI.
    Generated Excel file from OBI:http://sites.google.com/site/vadasovi/icon_holders-1/BAZA.xls
    How it is opened in Excel 2003:http://sites.google.com/site/vadasovi/_/rsrc/1318338523563/Home/temp/2007.PNG , look column in red.
    Same file in Excel 2010 (other mashine then 2003:http://sites.google.com/site/vadasovi/_/rsrc/1318338543353/Home/temp/2010.png
    Both client are Win XP SP3 with Croatian locale (same one in detail).
    Rg,
    Damir

  • Field format in Excel - losing leading zero

    I have field in query, which is varchar2 in database, but contains only numbers, most of which have leading zeros, i.e. '0123'.
    When the report is viewed as html, pdf, or rtf data is shown correctly, '0123', but when viewed in Excel, the data is '123'.
    Also, I have a column that is simmilar to this one - varchar2 containing only numbers (SSCC if anyone is familiar). This information is 17 characters long, so instead of '38503341002862100' i get '3,85033E+16' in Excel.
    I noticed in both cases that the cell format in Excel is general, instead of text.
    How can this be changed?

    hi arubelj,
    Excel sheet is made specificaly for number calculations.....and each cell which is having data is by default considered as number...and in numbers 0123=123 ,this is the reason why it is not displaying 0 in start..... i had cheched the excel setup options also..... but did not found anything there to change the default column or row type as text....
    Regards
    Ravi

  • Truncating Leading Zeroes

    Hi,
    What is the best method to truncate the leading zeroes of an alphanumeric data item? Is there an expression editor function that could do this?
    I have come up with a logic involving 3 - 4 actions that could do this for a specific data item. The problem is I have got about 5 different data items in the same transaction that need leading zeroes truncated. Whats the best thing to do here?
    Do I need to build a custom action or expression editor function?
    Regards,
    V M.

    Well, there are equivilants in every database. I think Oracle has something like LTRIM(value, '0')
    If your application doesn't use any databases and you are on 12.0 + you could estabish a connection to the neweaver db.
    You could also look into and xsl solution using the XSL Transformation action.
    I often do this to create/format lists for query filters or similar tasks.
    For some background this issue often comes up when pulling data from standard SAP interfaces. In sap Order and Material numbers are typically trimmed automagically by the gui. But when pulling those data elements from sap you get the full monty. This is ok because you often need the full untrimmed value to use with other interfaces, but users still expect the values to be trimmed when displayed. There are a lot of solutions to this issue in regards to the front end (xsl, Javascript, SQL in cases where the data is stored/cached in a local database ) but it would be convienent to have this level of formatting built into the link editor. Maybe even something that accepts a regular expression?
    Regards,
    Christian

  • Procedure truncating leading zeros

    Hello,
    I'm setting up sequences for my sample database, in my design I have my ID columns in this format Staff: S110001, Parents: P110001 etc.
    When I try to implement this in a sequence like:
    create sequence Pnt_seq1 start with 0001;
    insert into parents
    (parent_id, f_name, m_init, l_name, house_n, street, city, postcode)
    values
    (('P' || to_char(sysdate, 'yy')|| Pnt_seq1.nextval), 'Jim', 'I', 'Brown', 34, 'Barker St', 'Wrexham', 'LL11 8UH');
    It trims or truncates the leading zeros giving me P111 instead of P110001. Is there a way around this or am I better off changing my domain definitions/schema to start at P111001 or something?
    Thanks a lot
    Mike

    A sequence is always numeric, so leading zeros have no place
    Nothing is trimmed.
    If you want leading zeros in the code you posted use
    to_char(Pnt_seq1.nextval,'fm0009')
    Sybrand Bakker
    Senior Oracle DBA

  • Coldfusion json truncates leading zeroes

    Hi All -
    I am using jquery jqgrid with Coldfusion. I have a cfc whose return format is JSON. I have a database column of type varchar, but it returns values which starts with zeroes. On displaying data, the leading zeroes are truncated. I verified in firebug, the JSON response itself is cutting off the leading zeroes.
    Any suggestions or thoughts on this?

    If you are using CF 9.0 there was a documented bug that has been fixed in Adobe® ColdFusion® 9.0 Update 1:
    ID
    Area
    Bug Description
    82706
    AJAX Plumbing
    When you use  serializeJSON or   deserializeJSON, data type conversion occurs  automatically. For example,   000001 is converted to numeric 1.
    I know that there are new bugs introduced with Updater 1 so it would probably be wise to get the ColdFusion 9.0.1 Cumulative Hot Fix 1 also. As always, test the updates before using in production.

  • Truncate leading zeros

    Hi,
        How to truncate the leading zeros of a field?
        e.g:  if the value is '000000000080004040', it should like '80004040'.

    Hi
    pls use the fm CONVERSION_EXIT
    like
    Use this code for adding leading zeros for a particular field.
    i have used for p_kunnr to suppress zeros replace and use ur variable
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
    input = p_kunnr
    IMPORTING
    OUTPUT = p_kunnr.
    Use this code for removing leading zeros for a particular field.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
    EXPORTING
    input = p_kunnr
    IMPORTING
    OUTPUT = p_kunnr.
    regards
    sathish

Maybe you are looking for

  • Flash Audio Players

    I downloaded a Flash player for my website, and I'm trying to get it to play mp3's but if you compress them too much theres a flash bug where you get this "Chipmunk Effect". Thats where the audio is really sped up and sounds like the delicious rock t

  • WebDynpro FileUpload UI Element

    Hi All, Iam using a FileUpload UI Element in a View of a WebDynpro project. If i selected a file using the 'browse' button, then you click on any tab in the  View and the file path in the inputfield of the fileupload control disappears.When i come ba

  • BC4J VSM - Unable to determine the value of OC4J_HOME

    I'm on step 8 of the "Configuring the application" section and I'm getting the error "Unable to determine the value of OC4J_HOME" after running bc4j2oc4j.bat. Seems that the instruction assume that the OC4J_HOME is already set, so I set a system vari

  • Float to byte - String to byte

    Hi All, I am writing a Binary file writer. the convertion is made from several java type (int, float, double, String, ...) to bytes equivalent. I have a reader that reads the files that I am generating through my prog. In some fields, i put 0.0f valu

  • Help with menu please

    Hello All, I'm hoping someone can help me out with an iWeb issue. I don't usually do stuff in iWeb (I prefer to build my sites from scratch - or relative scratch lol - using Dreamweaver or the like) but I have a client whose ultimate goal is to be ab