Issue in displaying numbers in Excel
Hi,
I am converting my report output to XLS format using the CL_BCS class. I am converting my string into binary content and adding it as a xls attachement.
cl_bcs_convert=>string_to_solix(
EXPORTING
iv_string = lv_string
iv_codepage = '4103'
iv_add_bom = 'X'
IMPORTING
et_solix = binary_content
ev_size = size ).
*add attachment
document->add_attachment(
i_attachment_type = 'xls'
i_attachment_subject = 'Output'
i_attachment_size = size
i_att_content_hex = binary_content ).
I am able to email the generated excel file but if my column hold numbers with more digtis (ie, 1234567891234 , displayed as 1.23457E+12), its getting displayed as exponent format.
pl guide me on handling this im my program itself.
Regards,
BG
Hi
I tried using your example and also added some more digits to it and I realised the error works this way - if it is a 13 digit number 1234567891234
The error will be 1.23457E+12 and similarly anything bigger like say 15 digit will have 14 after the plus.
I changed the formatting to number and it worked. So I believe this can be reported as a bug in Excel.
Rgds
Similar Messages
-
CANNOT DISPLAY A WORD/EXCEL DOC IN BLOB FIELD INTO A PDF REPORT
We created a report that should display several kinds of documents at one time.
These documents are stored in BLOB columns in database. We had no problem to
display txt, gif or jpeg, but we could not display doc, xls, pdf or html
documents.
In this report we set three different fields in which display different kinds
of documents depending on mimetype. The first field has FileFormat property set
to 'Text' in order to display 'text/plain' and 'text/html' mimetype documents.
The second field has it set to 'Image', which allow to display 'image/bmp',
'image/gif', 'image/x-png', 'image/pjpeg' mimetypes. The third field has this
property set to 'OLE2', and here is where we would like to display other
mimetype documents as 'application/msword', 'application/vnd.ms-excel',
'application/pdf'.
We run the report on the web using:
http://<server>:<port>/dev60cgi/rwcgi60
?server=<report_server>
&report=<rdf_name>
&destype=localfile
&desname=<report_name.pdf>
&userid=<user>/<password>@orcl9i
&desformat=pdf
<6meters>
I have already read a lot of notes in Metalink but I could not find any
solution. Is there any way to display a Word/Excel document from database in a
report?
We tried to convert Word/Excel docs to html format, but when we tried to
display an HTML document in the report, we found that Oracle Reports displays
the source code instead of the HTML format document. So, this did not work.
What can we do?
We also read somewhere that a possible solution would be to convert Word/Excel
documents to a common format like GIF, JEPD or PDF. If processed as gif or jped
the file could be displayed in the report. If processed as pdf the document
could be linked in the report.
I tried to display a PDF in the report but a blank box is displayed. How can I
do this too?
Any solutions?Hi,
I have the same problem. I need to show up a BLOB, word file(.doc), in a custom report. I made a simple query, extracting file_date( the column having the blog (.doc) file) from the database, in the report and placed it on a layout by assigning it to a field "F_1". I addressed the file format as OLE2.
But when I run the Report in APPS, it shows up an error "REP-1814: Report cannot be formatted. Object 'horizontally and vertically' can never fit within 'F_1'.". I also played with the layout by changing its size but the response had no change.
I am using Reports6i and the output format of the report is PDF. Is there a way to resolve the issue? Please share the solution if you have any for this. -
Leading zeros are not displaying in the excel
Hi Experts,
Leading zeros are not displaying in the excel
Here is the situation:
I have developed one report, which will create the file in Application server with TAB deleimeted. After that I am sending that file via email in the excel format using Email functionality FM.
Normally our material numbers will start with zeros.
But when I check the email excel file , leading zeros are not displaying.
Even I checked the application server (AL11) file, zeros are there.
I thought program FM was wrong and I tried it manually by downloading the file into excel. Eventhough it is suppressing zeros.
Could you please advise, how to display leading zeros to the material number in excel file.
Thanks in advance
RaghuApplication server file showing zeros infront of the material number.
1200# 0012401387# XXXXXXXX
Once file created in app server, I am using one custom FM to send that output in excel format / txt format via email.
when I send txt file via email, I am getting leading zeros. But when I send xls file via email, I am not getting zeros.
I checked custom FUNCTION MODULE . No mistakes in that.
===
Sudhir,
As you said, I passed ( ' ) single quote infront of the material number. When I check the excel file, single quote also displaying like this '0000100.
Application server file showing like below
1200# '0012401387# XXXXXXXX
===
Could you please advise anyone how can we acheive this.
Thanks -
My phone displays numbers instead of contact names for incoming calls and text - how do I fix?
My phone displays numbers instead of contact names for incoming calls and text - how do I fix? It used to display the names if there was a contact listed, now it just shows numbers regardless of whether or not the number corresponds to a contact name in the contact list. Can anyone help? I googled this problem and lots of folks have experienced it, however there is not a consensus for a resolution.
Alexandribill, I have been having the exact same issue. I got a new phone and restored my contacts. If the # doesn't have the area code first then the name isn't shown. I just added my husbands area code to my phone and called my phone from his and now his name shows up...Ugh, I have to go through and manually add the area code to all my contacts....
I'd say Verizon needs to rewrite their program to include the area code in the restoring from backup process! -
CR XI R3: Issue exporting shared variable to Excel - with workaround
Hi,
I have a report that uses a subreport to calculate a field based on the existance (or not) of data in a database other than the main report database. When I use a shared variable to pass this field back to the main report and display it on a detail line (in the main report), it works fine - until I try to export the report to Excel. When exported, the value that gets exported on all detail lines of the report is the final non-blank value of the shared variable, not the value that it contained when the detail line was initially generated. I am using a shared variable because there are multiple values that I want to pass back to the main report.
Luckily, only one of the shared variables are being printed, so the workaround that I am using is to use the subreport to print the field instead of passing the value back in a shared variable and displaying that (and hiding the subreport on a separate format).
Is this a known issue with R3 exporting to Excel? (It was happening in R2 as well...)
HTH,
CarlSimplified somewhat, what this report is doing is looking up open orders in one database and checking to see if something specific happened to it in another database. If so, it generates the XML that needs to be applied to the first database to update it. The XML references the order number and line number. What I mean is that instead of the data coming out as
Order Line XML Snippet
12345 1234 ...<order>12345</order><line>1234</line><status>received</status>...
22345 2234 ...<order>22345</order><line>2234</line><status>received</status>...
32345 3234 ...<order>32345</order><line>3234</line><status>received</status>...
42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
I get
Order Line XML Snippet
12345 1234 ...<order>42345</order><line>4234</line><status>received</status>...
22345 2234 ...<order>42345</order><line>4234</line><status>received</status>...
32345 3234 ...<order>42345</order><line>4234</line><status>received</status>...
42345 4234 ...<order>42345</order><line>4234</line><status>received</status>...
I have Base Column Widths on Details, so there should be no merging attempted, but I'll check and make sure.
It seems to me, though, that the DLL is being told the wrong value to export...
Carl -
Ios7 will not convert numbers to excel. Is there a solution?
Has apple addressed the issue with Ios7 not converting numbers to excel?
Do you mean Numbers? Numbers on OS X can export something in Excel format.
iOS 7 can read in Excel documents and open them for editing in Numbers for iOS if you wish.
But iOS 7 itself doesn't really have anything to do with converting documents _to_ Excel format, if that's what you're asking. -
How to display numbers in triangle format
Hi All,
How do I display numbers in the following format;
1
1 2
1 2 3
1 2 3 4
Your help will be more appreciated.
Thank you.I couldn't resist:
SQL> var N number
SQL> exec :n := 10;
PL/SQL procedure successfully completed.
SQL> -- plane
SQL> select * from (
2 select lpad(' '||(case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
3 then lpad('*',:N*2.5 - level - abs(:N/2-level),'*')
4 end) --"left wing"
5 ,50-level, ' ')
6 || ltrim(sys_connect_by_path(level,' '))
7 || (case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
8 then rpad('*',:N*2.5 - level - abs(:N/2-level),'*')
9 end) -- "right wing"
10 n
11 from dual
12 connect by level <= :N
13 order by level);
1
1 2
1 2 3
********************1 2 3 4********************
********************1 2 3 4 5********************
******************1 2 3 4 5 6******************
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 10
10 rows selected.
SQL> exec :n := 6;
PL/SQL procedure successfully completed.
SQL> r
1 select * from (
2 select lpad(' '||(case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
3 then lpad('*',:N*2.5 - level - abs(:N/2-level),'*')
4 end) --"left wing"
5 ,50-level, ' ')
6 || ltrim(sys_connect_by_path(level,' '))
7 || (case when level between :N/2 - (:N * 0.1) and :N/2 + (:N * 0.1)
8 then rpad('*',:N*2.5 - level - abs(:N/2-level),'*')
9 end) -- "right wing"
10 n
11 from dual
12 connect by level <= :N
13* order by level)
1
1 2
************1 2 3************
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
6 rows selected.
SQL> -
Hi, I have program which display data in Excel layout of ALV loaded from internal table..
It means that in sap i received excel sheet with all its functionality.
The problem is that sometimes there are missed some rows with data.
Did someone meet with similar situation?
Regards,
JoannaHI
DATA: v_file LIKE rlgrap-filename,
v_filename TYPE string.
REFRESH i_matcontrol.
CLEAR i_matcontrol.
TRANSLATE v_exten TO UPPER CASE.
IF v_exten = 'XLS'.
v_file = p_p_file.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_tab_raw_data = ws_rawdata
i_filename = v_file
TABLES
i_tab_converted_data = i_data.
ELSEIF v_exten = 'TXT'.
v_filename = p_p_file.
File upload
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_filename
filetype = 'ASC'
has_field_separator = 'T'
TABLES
data_tab = i_data
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.
CASE sy-subrc.
WHEN 1.
MESSAGE e001(00) WITH text-001.
STOP.
WHEN 2.
MESSAGE e001(00) WITH text-002.
STOP.
WHEN 0.
IF i_data IS INITIAL.
MESSAGE s001(00) WITH text-008.
ENDIF.
ENDCASE.
ENDIF.
DELETE i_data WHERE matnr IS INITIAL AND
werks IS INITIAL. -
Issue with displaying summary in the Page Bottom
Hi Friends,
I have an issue with displaying summary in the page bottom. for this i am using command BOTTOM and ENDBOTTOM in Main Window.
I designed 2 pages are First and Next, in the first it displays PO Header details and Item details in the Main window and also Item details continuious in the Next Page also.
If the lines are enough in Bottom then it displays the summary. But if the lines are not enough in bottom then it does not trigger the new page, so that it doesn't displays the Summary in Bottom.
for ex: Total lines of the page 50 and Bottom required 15 lines. In the next page contains upto 35 lines, it triggers the Bottom.
But if the lines are more than 35 and below than 50, it does not trigger the new page so that it does not shows the bottom.
Please help me on the same, this is very urgent.I will give a rewatrd if it is helful.
Regards,
SubbaraoHI,
Try with printing the bottom data with Protect and ENDPROTECT along with your Bottom and endbottom.
Eg: Protect
bottom
text
endbottom
endprotect.
Regards,
Venkatesh -
How to Download displayed output to Excel Using Bsp Application
Hi Experts,
please give me some idea because I am New In BSP.
How to Download displayed output to Excel Using Bsp Application.
If any sample code please do send me.
In my condition I am getting data in 2-3 table view formats on one page and i want download that in Excel.
please help me.
Regards & Thanks,
YogeshHi,
This is more a question for the BSP forum.
Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
runtime->server->response->set_header_field( name = 'Contnet-Type'
value = 'application/vnd.ms-excel' ).
runtime->server->response->delete_header_field( name = 'Cache-Control' ).
runtime->server->response->delete_header_field( name = 'Expires' ).
runtime->server->response->delete_header_field( name = 'Pragma' ).
Also check threads like
Download BSP data into Excel
export bsp-table to excel
Export BSP Table to Excel
Eddy
PS. Reward useful answers and earn points yourself -
SAP ERP 6.0 - Problems displaying numbers in ALV (i.e tx. se16n)
Hi, We've just upgraded our system from version 46C to version 6.0.
As the result of the process we're experiecing a problem when displaying numbers with ALV reports, even with standard transactions.
For example, when running the transaction se16n to display the content of the table CABN table, the value of the ATINN field (NUMC) is replaced by the value of other field ATNAM (CHAR 30).
This situation doesn't happen when consulting data in se16 transaction (here we display the result in se16 standard list).
We also experienced this problem in Z programs showing data in ALV reports..
Any help on this would be appreciated.!!!
Thank youORA-00959: tablespace 'PSAPSR3ODS' does not exist
Create the tablespace PSAPSR3ODS through brtools, or sql commands.
Update the import_state.properties where you replace the "-" with "0" for the packages that you want to retry.
Then set the JAVA_HOME environment, and then run the import_monitor.sh. -
How can I save a spreadsheet prepared in numbers to excel so that all of my pc using work colleagues can view. I have recently upgraded to Lion and am wondering whether I have made a big mistake. I am the only Mac user within the company i work for and up to now this has not been a problem
File menu, Export. Select Excel as the format.
-
How do I paste a table from Numbers or Excel into Ibook Author exactly as the original?
I am new to iMac and Ibook Author.
I am writing a statistical paper in Ibooks Author.
I have Chapter heading, now section heading and body. I want to paste a table from numbers or excel into my iBook as this has the results of my analysis.
As part of my analysis, I want to copy a 5 column table with 633 rows, which is essentially my table of data. I have the table in numbers and excel.
When I copy the table in numbers or excel, followed by pasting (CmD V) into iBooks, I get the first 20 rows in a table format and the remainder of the table is missing. The table appears to end at the end of the page.
I can not figure out how to paste the entire data as my table.
Its holding me back...
Any ideas?Hello Loquitir,
I am not fully sure if I understand but I gather since there are so many rows only a certain amount fits on a single page.
How many rows does actually fit on a page in iBooks Author?
There is a method that would look pretty cool that is used to create a double page spread that would look great but instead of having a double page you could maybe have three or four pages.
Here is a quick idea that I stuck together, additionally when you are copying and pasting form Numbers to iBooks Author just select the cells that you want.
Copy and paste within iBooks Author and then go back and get the next row of the table that you want.
I hope I am clear in what I am describing.
Regards,
Nigel -
How to fix iframe issue that displays XML values instead of formatted XML in IE11
The following sub.jsp file shows the formatted XML properly as expected when is opened directly:
<% response.setContentType("text/xml"); %>
<book>
<chapter1>chapter 1</chapter1>
<chapter2>chapter 2</chapter2>
</book>
IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
<book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<iframe src="sub.jsp"></iframe>
</body>
</html>
The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
I appreciate to your if you know how to address this issue.
Regards, AmirThe following sub.jsp file shows the formatted XML properly as expected when is opened directly:
<% response.setContentType("text/xml"); %>
<book>
<chapter1>chapter 1</chapter1>
<chapter2>chapter 2</chapter2>
</book>
IE11 shows the result as below which are colored and can be collapsed or un-collapsed:
<book><chapter1>chapter 1</chapter1><chapter2>chapter 2</chapter2></book>
But if the sub.jsp is opened in an iframe from the below main.html, it only shows the values of the XML in the iframe:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<iframe src="sub.jsp"></iframe>
</body>
</html>
The iframe shows only the XML values, i.e., chapter 1 chapter 2 in IE11. This issue does not happen in IE8.
I appreciate to your if you know how to address this issue.
This issue is also posted at below link:
https://social.msdn.microsoft.com/Forums/en-US/5b0692b4-d312-4797-9089-42c1029ac059/how-to-fix-iframe-issue-that-displays-xml-values-instead-of-formatted-xml-in-ie11?forum=iewebdevelopment
Regards, Amir -
Issue with displaying Unicode Characters returned by a webservice
Hi, We are developing a mobile application which provides multi language selection (Arabic & English). but we are having an issue with displaying returned JSON which has Arabic text. The output we get is as below. Our .net client throws the following
exception. Appreciate your kind help and thank you in advance.
[net_WebHeaderInvalidControlChars]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.7.60408.0&File=System.Net.dll&Key=net_WebHeaderInvalidControlChars
Parameter name: name”
Returned JSON:
https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar
Connection ? Keep-Alive
Content-Type ? application/json; charset=UTF-8
Date ? Fri, 27 Feb 2015 03:35:43 GMT
Keep-Alive ? timeout=1, max=100
Last-Modified ? Thu, 26 Feb 2015 14:43:55 GMT
Link ? <http://72.44.81.184/~shababcapital/wp-json/posts/131>; rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/119>;
rel="item"; title="387 Ù?اعب Ù?Ù?اعبة ضÙ?Ù? ÙعاÙ?Ù?ات اÙ?تدرÙ?ب اÙ?Ù?ستÙ?ر Ù?اÙ?تشا٠اÙ?Ù?Ù?اÙ?ب اÙ?رÙ?اضÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/118>; rel="item";
title="اÙ?جÙ?در Ù?ؤÙ?د استÙ?رار "اÙ?شباب Ù?اÙ?رÙ?اضة" ÙÙ? دعÙ? Ù?سÙ?رة اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø©", <http://72.44.81.184/~shababcapital/wp-json/posts/117>; rel="item"; title="اÙ?جÙ?در
Ù?Ø´Ù?د بدÙ?ر اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب", <http://72.44.81.184/~shababcapital/wp-json/posts/55>; rel="item"; title="اÙ?جÙ?در: Ù?دÙÙ?ا
تØÙ?Ù?Ù? Ø£ÙضÙ? Ùرص استثÙ?ارÙ?Ø© Ù?Ù?Ø£Ù?دÙ?Ø© اÙ?Ù?Ø·Ù?Ù?Ø© Ù?Ù?بارÙ? اÙ?Ù?شرÙ?ع اÙ?جدÙ?د", <http://72.44.81.184/~shababcapital/wp-json/posts/45>; rel="item"; title="اÙ?جÙ?در Ù?Ø´Ù?د بدÙ?ر
اÙ?Ù?راÙ?ز اÙ?شبابÙ?Ø© ÙÙ? تطبÙ?Ù? رؤÙ?Ø© Ù?اصر بÙ? ØÙ?د ÙÙ? اØتضاÙ? اÙ?شباب"
Server ? Apache
Transfer-Encoding ? chunked
X-Content-Type-Options ? nosniff
X-Pingback ? http://72.44.81.184/~shababcapital/xmlrpc.php
X-Powered-By ? PHP/5.4.24
X-WP-Total ? 6
X-WP-TotalPages ? 1I originally downloaded it using IE and viewed the content in Fiddler. Use this code to get the content:
string url = "https://72.44.81.184/~shababcapital/wp-json/posts?type=news&lang=ar";
HttpBaseProtocolFilter MyFilter = new HttpBaseProtocolFilter();
MyFilter.IgnorableServerCertificateErrors.Add(Windows.Security.Cryptography.Certificates.ChainValidationResult.InvalidName);
HttpClient request = new HttpClient(MyFilter);
string response = await request.GetStringAsync(new Uri(url));
MyContent.Text = response;
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.
Maybe you are looking for
-
Unable to create Sales order from "BAPI_SALESORDER_CREATEFROMDAT2" for Free Goods
Hi Experts, I am facing the issue while creating the Sales order through "BAPI_SALESORDER_CREATEFROMDAT2" , all is going well in normal cases but when I process the contract with FREE GOODS line items for which free goods condition record is maintain
-
Photoshop Elements 10 Mac crashes when opening images
As the title says Photoshop Elements 10 Mac crashes when opening images! I cannot understand why this is happening as i've never had any issues with it before. Below I have copied and pasted the crash report in the hope someone can decypher it and te
-
I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF". They already are pdfs, what am I doing wrong?
-
Installation mySAP ERP 2005 on Linux SuSe 10
Hello, I tried to install mySAP ERP 2005 on Linux Suse 10 with 8 GB RAM and enough harddisk space (6 x 250 GB) as a central system. But the Installations stops always in the "Import Abap" step with jobs: running 3 , wating 22 , completed 13, failed 0
-
HI: I use the jsp code like the accessories in this mail, the jsp import a dbquery class ,the .java of the class also in this mail. And when I run the jsp call the class and run it the weblogic server down , an