Preventing automatic scientific notation conversion for excel output?
I have a column in a report that contains a mixture of numbers and letters and hyphens. If the only letter is E, then I get scientific notation instead of the actual text when I run the report for excel output and open it in excel.
For example:
185701E-02 becomes 1.86E+03
4962E6 becomes 4.96E+09
Any ideas how to fix or work around this in the template, data definition, or excel config?
Thanks,
Kevin
I tried pre-pending an apostrophe in the SQL and in the rtf template to indicate to excel that it is a text field, but this just resulted (not surprisingly) in '185701E-02 instead of 185701E-02
Similar Messages
-
Preventing automatic scientific notation conversion for excel o/p of bi pub
I have a column in a query that contains a mixture of numbers and letters and hyphens. If the only letter is E, then I get scientific notation instead of the actual text,when I run the report for excel output and open it in excel.
For example:
185701E-02 becomes 1.86E+03 in the excel output of the report
4962E6 becomes 4.96E+09
will be really grateful if anyone can helpSee this thread:
Re: Long account Numbers displayed in exponential form in excel using XML Pub
Regards,
Dave -
How to Design Report for Excel output?
Hello Experts...
I have both versions Crystal Report XI and Crystal 2013 at this time as we are in the process of Upgrading...
How to design for excel output with no page size limit.
I have several fields going across (crossing width of paper size 11X17 landscape) and I do not need this report output to be printed at all only for excel output.
Appreciate your time!
Thank you,
PadmaHi Padma,
You would need to increase the Page Size horizontally. Go to File > Page Setup > Check 'No Printer' > Check 'Dissociate Formatting Page Size and Printer page Size' > Increase the Horizontal value.
Also see:
http://scn.sap.com/docs/DOC-6687
and
How to WYSIWYG SAP Crystal Reports Export to XLS
Formatting a Crystal Report for Export to MS Excel
-Abhilash -
Issue with Varchar2 field conversion for report output generated in EXCEL
Hello All,
I have an unique problem with one of my new reports for the User. The user wants the report output generated in excel data only(delimited data) format *(reports builder 10g)* .
Everything was fine until i encountered this problem, there was this field which has unique ID's(alphanumeric and numeric), when i tried to run the report and generate output in Excel the numeric ID's say for example *(41593497999679354429)* is converted in excel and displayed like *(2.5881E+19)* and after format cells in excel it displays *(41593497999679300000).*
The issue is only with 20 digits numeric ID's , if i append any special character to the end say '#' or '..' it shows the exact value along with the appended character. But the user insist they need only the value that is in the table. I am finding it hard to figure out, if any one of you have encountered the same issue or if any of you have any suggestions to overcome this excel conversion thing please do advice me.
Thanks in advance :)Thanks for you response, but i already tried what you suggested, instead of appending single quote in front of ID, i did at the end prior with '#', it preserves the value if i add any character to the id but the appended value shows up too :(.
Well, i just got the solution and it did work, thanks to [Brian Hill|https://forums.oracle.com/forums/thread.jspa?threadID=651632] for the post, i did what exactly he said and it worked. I was so very happy and wanted to share with everyone. -
Need help in formatting a number field with same precision for excel output
I am trying to get the same preciision for a field in RTF template when the output is in EXCEL
i.e. same number of digits after decimal. So, I would like to show 150 as 150.00 and 123.2 as 123.20 etc !! Is there a way to do it. the Built in formatting will not display 150.00 for 150 . but if i add $ symbol it will display. But i dont need $ syambol. please help.I found this on one of the forum questions.
Excel dont preserve the trailing zeros.
try opening the xcel and type 5.0000 and tab out, it wont preserve the trailing zeros after decimal.
try finding out how to disable the option in excel. if you do that, you will see what you send out from the report.
But you can try to convert the number into a text by trying to append a space at the beginning. See if that would work.
Thanks
Swarna -
Converting Standard Oracle Report to XML for excel output
I have gone through the steps of copying a concurrent program for a standard report to a new program, changed the output format to xml, ran the new concurrent job, saved the output as a .xml, then using the xml publisher template builder for word (Oracle Patch 5887917) tried to modify record information so each record will be on the same line in an Excel format. I tried de-normalising the hierarchy using the ../.. syntax to traverse up the hierarchy but only the data at the lowest level displays. Has anyone else run into this issue or have any ideas on how I can fix it.
Here is the xml when I insert a table and convert the table to text just so you can see the hierarchy I'm trying to de-normalise; these are all the fields but not in the order I would want them displayed...
Source
List G Location Id
for-each G_SOURCE SOURCE
G Location Id
for-each LIST_G_LOCATION_ID
List G Exp Receipts
Location Code1
for-each G_LOCATION_ID
G Exp Receipts
for-each LIST_G_EXP_RECEIPTS
Number Release Line
List G Exp Lines
for-each G_EXP_RECEIPTS NUMBER_RELEASE_LINE
G Exp Lines
for-each LIST_G_EXP_LINES
Unit
Product Number
Item Description
Quantity Received
Quantity Billed
Ordered
Due
P Date
List G Exp Shipments
C Flex Item Disp
for-each G_EXP_LINES UNIT
PRODUCT_NUMBER
ITEM_DESCRIPTION
QUANTITY_RECEIVED
QUANTITY_BILLED
ORDERED
DUE
P_DATE
G Exp Shipments
for-each LIST_G_EXP_SHIPMENTS
Invoice Num
Invoice Amount
Invoice Date
for-each G_EXP_SHIPMENTS INVOICE_NUM
INVOICE_AMOUNT
INVOICE_DATE end G_EXP_SHIPMENTS
end LIST_G_EXP_SHIPMENTS
C_FLEX_ITEM_DISP end G_EXP_LINES
end LIST_G_EXP_LINES
end G_EXP_RECEIPTS
end LIST_G_EXP_RECEIPTS
LOCATION_CODE1 end G_LOCATION_ID
end LIST_G_LOCATION_ID
end G_SOURCE
Here is the text from Word before I convert it into a table when I try to de-normalise it...
for-each G_EXP_SHIPMENTS ../../ P_DATE
../../../../../../../../ SOURCE
../../../../ NUMBER_RELEASE_LINE
../C_FLEX_ITEM_DISP
../../PRODUCT_NUMBER
../../ITEM_DESCRIPTION
../../UNIT
../../ORDERED
../../QUANTITY_RECEIVED
../../QUANTITY_BILLED
../../DUE
INVOICE_NUM
INVOICE_DATE
INVOICE_AMOUNT
../../../../../../LOCATION_CODE1 end G_EXP_SHIPMENTSOK, figured it out... when you double click on the field to add the ../, you actually need to click on Add Help Text and add the ../ here
-
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. -
Display header for excel output using FM GUI_DOWNLOAD
Good morning experts,
I've been exporting my output in excel using the FM GUI_DOWNLOAD. The problem is, my header is not displaying. Kindly check what I've done wrong. Below is how I declared my header.
DATA: BEGIN OF header OCCURS 0,
head1(15),
head2(15),
END OF header.
*& FORM USER_COMMAND
COMMAND for ALV Grid Buttons
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
PERFORM write_header.
CASE r_ucomm.
WHEN 'XCEL'.
CONCATENATE: 'C:\' fname sy-datum INTO fname.
CONCATENATE: fname '.XLS' INTO FILENAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = jtab
FIELDNAMES = header
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.
ELSEIF sy-subrc = 0.
MESSAGE S000(38) WITH 'File ' fname 'saved in Drive C.'.
ENDIF.
ENDCASE.
ENDFORM.
*& Form write_header
text
--> p1 text
<-- p2 text
FORM write_header.
DATA: ctr(2) TYPE p.
DO 6 TIMES.
ADD 1 TO ctr.
CASE ctr.
WHEN 1. header-head1 = 'EMPLOYEE'.
header-head2 = ' NO '.
WHEN 2. header-head1 = 'EMPLOYEE'.
header-head2 = ' NAME '.
WHEN 3. header-head1 = 'LOAN'.
header-head2 = 'TYPE'.
WHEN 4. header-head1 = 'APPROVAL'.
header-head2 = ' DATE '.
WHEN 5. header-head1 = 'LOAN'.
header-head2 = 'CODE'.
WHEN 6. header-head1 = ' MONTHLY '.
header-head2 = 'AMORTIZATION'.
ENDCASE.
APPEND header.
CLEAR: header.
Please help me. All helpful advice will be rewarded points. Thanks a lot.Follow this Example. You can do it in the below manner
You need not add HEADER1 HEADER2 to the internal table. You can just declare one field like below and append all the header columns to the internal table HEADER
data : begin of IT_HEADING occurs 0,
TEXT(15),
end of IT_HEADING.
IT_HEADING-TEXT = 'Company Code'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Currency'.
append IT_HEADING.
IT_HEADING-TEXT = 'Job Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Currency'.
append IT_HEADING.
move P_FNAME to L_FNAME.
call function 'GUI_DOWNLOAD'
exporting
FILENAME = L_FNAME
FILETYPE = 'DAT'
tables
DATA_TAB = IT_FINAL
FIELDNAMES = IT_HEADING
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.
Regards
Gopi -
Scientific Notation conversion to text Help needed
I have a column with datatype nvarchar. I need to remove this problem thats happenning often, This is how sometimes the values can be 13343E11466 in my column but when I run a query it changes to " 1.40E+279".. Do i need to convert
the data type into text? or
Can someone help me out ??
FM> 13343E11466
That is not a common number. How do you interpret the string?
If you want to keep it in a specific display format, you have to keep it as a string. SSMS reformats to a standard scientific display format. The actually value does not change.
DECLARE @Fl float = 13343E11;
SELECT @Fl;
-- 1.3343E+15
Excel does the same thing. This behavior is similar to datetime with a single internal binary representation and many string formats.
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Word wrap in RTF for an excel output : BIP 11g
Hi,
If we set the word wrap property in RTF and generate the output in Excel format, it doesnt reflect. However, PDF output reflects the difference.
Looks like Excel overrides the property set in RTF. Is there anyway to text wrap a column for excel output?
Thanks,
DivyaSorry but this is a longstanding complaint.
The more people who report a bug or request a feature, the more likely it is to be actioned. Please follow this link.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Displaying Scientific Notation
I see a lot of people asking questions about how to prevent showing Scientific Notation. I have the opposite problem, I can't seem to show scientific notation.
In the field I'll Enter: 2.5E-5
After commit, the value show: 0
If I look in the database, it shows: 0.000027
How can I get the form to show 2.5E-5?
My Entity Attribute:
<Attribute
Name="Stock"
ColumnName="STOCK"
SQLType="NUMERIC"
Type="oracle.jbo.domain.Number"
ColumnType="NUMBER"
TableName="WASTE_STREAM_NUCLIDE">
<Properties>
<SchemaBasedProperties>
<DISPLAYWIDTH Value="8"/>
</SchemaBasedProperties>
</Properties>
</Attribute>
My Field on the Page:
<af:inputText value="#{bindings.Stock.inputValue}" label="#{bindings.Stock.hints.label}"
required="#{bindings.Stock.hints.mandatory}"
columns="#{bindings.Stock.hints.displayWidth}"
maximumLength="#{bindings.Stock.hints.precision}"
shortDesc="#{bindings.Stock.hints.tooltip}" id="it2">
<af:convertNumber groupingUsed="false" pattern="0.######E0"/>
</af:inputText>Good point. If everyone having problems with SQL*Plus number formatting went to the free online HTML manual, looked for "NUMBER" in the index and found
NUMBER
column definition from DESCRIBE, 12
NUMBER clause, 5.12.2
VARIABLE command, 12
NUMBER columns
changing format, 6.1.2.1, 12
default format, 6.1.2.1, 12
number formats
$, 6.1.2.2
0, 6.1.2.2
9, 6.1.2.2
comma, 6.1.2.2
setting default, 5.9.4, 5.9.4, 12, 12
NUMFORMAT clause
in LOGIN.SQL, 2.2.2.1
NUMFORMAT variable, 12, 12
NUMWIDTH variable, 12, 12
effect on NUMBER column format, 6.1.2.1, 12then we'd have nothing to do. -
Bypass Header and Footer in Excel output
I have a Requirement like this
I need to have the report output in the below three formats
PDF,EXCEL,HTML
But when we see the ouput in EXcel it should not have the Footer and Header Scetion ,
remaining two output formats (PDF,HTML) must have the Footer and Header Section.
Any one having any idea about this issue.
Thanks in Advance.
Have a Nice day.Hi @BIPuser.
I said the same thing to them but they said no that is final option but we need only single template for all the outputs alos it should handle the bypassing of header and footer for excel output.
Thanks for your reply, If i come across anything i will let u know. -
Problem with Excel output format
Hi Guys,
I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
Example Numeric fields --> Right Aligned, text fields --> Left Aligned
One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
Our client want excel output on priority.
Is there any limitation for excel output format of reports?
It is very urgent for us please help.
Any help would be highly appreciated.
Thanks,
Pragati
Edited by: user11237443 on Aug 27, 2009 1:22 AMHi Mahi,
Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
I have read that blog for excel limitations but i have more question?
1) What about the negative values?
if any field is displaying negative amount then excel not displaying right value for that:(
2)How can we align header or data?
Do XMLP with EBS provide any solution for formatting in excel?
3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
Here are so many formatting issues do we need to write any code in xml for that?
Please help.
Many Thanks,
Pragati -
Amount formating in Excel output of XML Publisher Report
Hi,
I have to display my XML output in Excel format. I want the output of amount column to be displayed in form '#,###.00' and the negatives numbers are to be displayed in parenthesis. For eg number -234.5 should be displayed as (234.50).
I tried <?format-number:AMOUNT;'99G999G999G990D00PT'?> and also <?format-currency:OPEN_BALANCE;'99G999G999G990D00PT'?>.
Both of these works in PDF output, but its not working for Excel output.
Any input is appreciated.
Thanks and RegardsThe best way i found was to put a equals and then double quotes... this only works for excel however it will allow you to cut and paste (ie to use the value to search in Oracle) and also to do vlookups.
In a bit more detail:
- I used word to generate my default table
- this created a field INVOICE_NUM
- in the cell in the table i put = " before the INVOICE_NUM field and then put the closing " afterwards.
The theory is that excel will concatenate the values together... because it has quotes around it, it will treat it as a string rather than simply a value.
For any other formats this will not work.
I'm guessing most people have moved on and resolved this some other way, but just thought I'd share the wealth! -
Scientific notation doesn't display correctly
Hi, this is just a general question but it's about the Calculator app. The problem is with displaying answers in scientific notation. When I'm in scientific calculator mode, answers displayed on the screen only appear in scientific notation when they are larger than the number of digits that can be displayed. However, whenever I use it to calculate something in which the answer is smaller than the set precision for the number of decimal places, it always gives 0 instead of scientific notation. For example, if I type a number such as 1E19 and press =, then the answer displays correctly as 1E19. However, if I type 1/1E19, and press =, then the answer simply shows up as 0 instead of 1E-19, which is the correct answer in scientific notation. So, it seems that the scientific notation in Calculator simply does not display negative exponents in the scientific notation (I know that I can type such numbers but for some reason, it cannot display them as answers). This is very annoying because I often work with very small numbers, not just very large ones. Is there any way that I can get the scientific notation to display negative exponents when I'm working with very small numbers and when the answer is smaller than the set number of decimal places?
There are tonnes of possibilities and many websites with suggestions. I tried all sorts of these option (clear cache, clear cookies, anti-virus changes, page style options etc) with no success until eventually I accidentally changed my character encoding autodetect (firefox 6) from "off" to "universal" and everything is fine.
Maybe you are looking for
-
Insert one html page into another html page
Hi there, I wonder if sombody can help. I am trying to insert one short html page into another page. I could not find any option or feature in Dreamweaver that allow me to insert the page at all. The page I want to insert has the links and it is a sh
-
DPM 2012 R2 Server 2012 R2 and Server 2012 (R1). Both CSV volumes and Hyper-V hosts with non clustered volumes. ISCSI Attached Storage. (Nimble SAN) Every time a VM backup is made this error message occurs: "'SERVERNAME' failed to perform the operati
-
Root RAID-1 support totally broken in Solaris 10
Has anyone else noticed yet that support for recovery of a RAID-1 on the root partition is totally broken under Solaris 10? While one can set up a set of RAID-1 partitions for /, swap and /export/home under Solaris 10 in the same manner as Solaris 9
-
APPCRASH FieldPointOPC2.EXE with Visual Studio 2005
At seemingly random intervals the following error occurs while running application in the development environment and with the release version. Is there any way to solve this? Problem signature: Problem Event Name: APPCRASH Application Name:
-
Proper Way to Post a Web Template to the Intranet.
Is there a more structured way of posting a report to the intranet, other than just copying and pasting the link to your intranet page.