Reg: Special Character Appearing in Excel O/P.
I am getting excel output generated via an Oracle report (CSV format). In the excel output, I am getting a special character for TAB (Chr9, a box). Since user wants to sort the data, because of this character they are not able to sort data in sheet properly.
Can anyone suggest what could cause this special character to appear in the report output? I am looking from layout perspective also. Is this has something to do with the printing style applied to the concurrent program?
Thanks In advance.
I had the same problem and this is what I did, works great. You have the total control.
function BeforeReport return boolean is
fp text_io.file_type;
begin
-- creating a file name
:CP_filename := 'C:\Gap'||to_char(sysdate,'MMDDYYHHMISS')||'.csv';
-- Opening the file in write mode
fp := text_io.fopen(:CP_filename,'w');
-- writing the column headings into the file
text_io.put_line(fp,'"Platform","Sys#","GapType",');
text_io.fclose(fp);
return (TRUE);
end;
and then where ever it is suitable, depending on the requirement, write into file by opening it in the append mode.
function R_G_systemplatformFormatTrigge return boolean is
fp text_io.file_type;
begin
-- srw.message(99,:dname);
fp := text_io.fopen(:CP_filename,'a');
text_io.put(fp,'"' || :systemplatform || '",');
text_io.put(fp,'"' || to_char(:sysno) || '",');
text_io.put_line(fp,'"' || :CF_gaptype || '",');
text_io.fclose(fp);
return (TRUE);
end;
This works great. Hope this helps.
Similar Messages
-
Can I make a special character appear when typing? (Part 2)
Hi there
I am now working on an extended version of the issue describes in this thread: http://forums.adobe.com/message/3147856#3147856
The new field should hold digits in the format 9999-99999-99999-99, and I would like the hyphens to appear automatically when typing. I tried to modify the script I used before, but I can't get it to work properly. Can someone tell me, what I'm doing wrong?
My modified script looks this way:
if (xfa.event.change.match(/[0-9\-]/) == null)
xfa.event.change = "";
if (xfa.event.change == "-" && xfa.event.selEnd != 4)
xfa.event.change = "";
if (xfa.event.change.match(/[0-9]/) != null &&
xfa.event.newText.length == 5 &&
xfa.event.selEnd == 4)
if (xfa.event.change == "-" && xfa.event.selEnd != 10)
xfa.event.change = "";
if (xfa.event.change.match(/[0-9]/) != null &&
xfa.event.newText.length == 11 &&
xfa.event.selEnd == 10)
if (xfa.event.change == "-" && xfa.event.selEnd != 16)
xfa.event.change = "";
if (xfa.event.change.match(/[0-9]/) != null &&
xfa.event.newText.length == 17 &&
xfa.event.selEnd == 16)
xfa.event.change = "-" + xfa.event.change; }
var vMax = 16; if (xfa.event.newText.indexOf("-") != -3)
vMax = 19;
But it only makes the hyphen at 17th character appear automatically.
I hope to hear from you.
KirstineI found the answer here:
http://forums.adobe.com/message/2766333#2766333 -
Can I make a special character appear when typing?
Hi everybody.
I have a form with a text field provided with a validation script, which allows the user only to enter values in the format 999999-9999. The script is places on the exit event.
var myRegex = /\d{6}\-\d{4}/;
var
singleDigits = [0,1,2,3,4,5,6,7,8,9];
If the format is not correct, the user will get an error-message.
Now I would like the hyphen to appear automatically when typing. That means when the user has typed 123456 it will display as 123456-, ready to enter the last four characters.
Is that possible.
Kirstine
P.S. I know I can make that (almost) happen if I make the field a numeric field, but for several reasons this is not an option.Here is a little script that can do what you are looking for..
Place the script in the Change event of the Text Field and set the Max chars property to 11 for the Text Field.
// restrict entry to digits and a dash
if (xfa.event.change.match(/[0-9\-]/) == null)
xfa.event.change = "";
// Allow the hyphen at the 7th character only
if (xfa.event.change == "-" && xfa.event.selEnd != 6)
xfa.event.change = "";
// If the 7th character is a digit, and they're typing at the end, insert the hyphen
if (xfa.event.change.match(/[0-9]/) != null &&
xfa.event.newText.length == 7 &&
xfa.event.selEnd == 6)
xfa.event.change = "-" + xfa.event.change;
// don't allow any characters past 10 (11 with a hyphen)
var vMax = 10;
if (xfa.event.newText.indexOf("-") != -1)
vMax = 11;
Thanks
Srini -
Special Character appearing as ? through VI editor
Hi
In one of the data conversions I am loading data into the custom table from CSV file. When I am transferring CSV file to Unix to run SQL*Loader then VI editor is showing Japanese characters as "?".
Please let me know how to resolve this issue.
Thanks
VishalakshaHi,
When I am transferring CSV file to Unix to run SQL*Loader then VI editor is showing Japanese characters as "?".I believe this is an expected behavior on Unix OS when you try to view non-English characters, and there is nothing to worry about here. Try to load the data to your tables from the CSV file and see if you can view the data then (try with a test table first and/or on a test instance to verify).
Regards,
Hussein -
Special Character Problem In MS Excel
Hi All,
I have a field like Ship to Name and value of that field is 'Fire Systems US - Northford ' .When we download this field into Microsoft excel we are getting like Fire Systems US âu20ACu201C Northford . Hear special character (âu20ACu201C) is updating insted of Hypen(-).
How can we download the the same ship to name with out any special character in Microsoft excel.
Please help me.
Thanks,
VenkatHi Venkat,
If you can verify that whether the special character is from SAP or excel. This you need to verify by de-bugging in SAP and then by opening the downloaded file in notepad.
Please refer the link below for details:
Link: [Re: FM: GUI_DOWNLOAD not picking initial zero]
Regards,
Pranav. -
ALV Excel Download problem ( Special Character)
Hi,
I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine,
Please suggest me to solve the issue.
Thanks,
Bhanu Gattu,Data strings with special characters can not be downloaded into XLS format from ALV grid. In my case, I replaced the special character " with space and I could download the data into excel.
-
Saving webi document from BOXI 3.0 in excel with special character
Issue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
This happens only with Mozilla, get correct file name in IE.
Steps to Reproduce:
1)Create a simple XI3.0 webi report through mozilla browser
2)Save the webi report with special character name for e.g øäåýþ.
3)Open the webi report and save it as excel or pdf file.
4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
5)When saving the save report through IE browser in excel or PDF display correct report name øäåýþ in excel and PDf file.
Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any difference.
Has anyone came across such type of issue?
Whether this is limitation of Firefox or bug.
Regards,
Ketki FadnavisIssue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
This happens only with Mozilla, get correct file name in IE.
Steps to Reproduce:
1)Create a simple XI3.0 webi report through mozilla browser
2)Save the webi report with special character name for e.g øäåýþ.
3)Open the webi report and save it as excel or pdf file.
4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
5)When saving the save report through IE browser in excel or PDF display correct report name øäåýþ in excel and PDf file.
Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any difference.
Has anyone came across such type of issue?
Whether this is limitation of Firefox or bug.
Regards,
Ketki Fadnavis -
Special character (Space) coming in excel output
Hi,
I am using rtf to develop a XML report. The output type is excel so I am using force Ltr property to allign few fields. But I am getting special character when I copy and paste a value of the O/P in the notepad. When I don use Force LTR the problem is not there but the allignment goes for a toss. So is there any way by whcih the issue can be resolved keeping the force LTR.?This seems to be a BUG, please share if there is any workaround for the above issue.
I have tried below approach in order to retain leading zeros.
Excel Output From BI Publisher or XML Publisher is Trimming Leading Zeros [ID 417811.1]
Thanks in advance. -
Reg. Special Character at end of each line
Hello Experts,
I have an internal table of type string which has to be uploaded into the directories
Each line has to be ended with a comma and for which I concatenated the work area and ',' before appending to the internal table. This is fine till this point.
After downloading the file from the directory, when opened with a notepad, i could see a special character (LINE FEED rectangular box) at the end of each line.
I couldn't understand why this character got appended at the end of each record. Pl suggest me on how i can overcome this special character.
Thanks
RKHi,
I am developing one HRMS report for sending salaries to bank. Bank has given one format, there should be 24 spaces at the end of each line in the report. But I am not getting any spaces in the report at the end of line. I have tried soo many ways to get that, but I unable to get spaces. If I put any character it is coming, but if I put space that is not coming. For the line that is set the height of the Repeating Frame long enough to have the blank space. Vertical Elasticity should be expand.
Also you can try by setting the property *"Vert. Space between frames"* for the Repeating frame.
Hope this helps.
Best Regards
Arif Khadas -
Dtw gives special character while importing the data
Hi all
I m trying to update business partner and my template file is tab delimited but I don't know why my all business partner updated with special character " like this "" even I tried to update from CSV also ??
Can anybody help me to remove or update this special character from business partner name as well as bill to address , block, building, city by query or any other way ??
Thanks
RickyHi ricky 1,
Before you upload the CSV/TXT file, open it up in a Notepad.
You will see the "hidden" quotation marks that don't appear in Excel.
Use the replace function to remove them, save it, then upload again.
Kind Regards,
Nick Lakasas -
Error wirh release of the requets Special character "_" in generic key
Hello
I am trying to release the request, this reques was generated to installation the baseline for Peru but I got this message:
Key messages: TABU TFAWC 200SAPLCATS 2100TCA
Special character "_" in generic key
Special character "_" in generic key
Message no. TK287
Diagnosis
The generic key 200SAPLCATS 2100TCA was entered for the object TFAWC. All keys that match up to the asterisk are to be transported.
The key cannot have any special characters before the asterisk, since they are interpreted in different ways by different database systems.
The key contains the special character _.
System Response
The entry is rejected.
Procedure
Extend the generic entry, or specify all keys individually
Any sugstion for this message?
thanks
DannyHi Danny,
Could you resolve issue Message no. TK078, I'm config SD and when i assign division and dis.channel to sales org those action does not show error but when i check request consistensy in se03 i have below error.
=====================================================
Object TDAT OVXA has object function "K", but no key
Message no. TK078
Diagnosis
The request/task cannot be saved because an object entry with function K
does not have a key.
System Response
The system did not save the entry.
The cursor appears on the incorrect entry in the editor.
Procedure
Press Enter once. This branches to the object list in the editor and
positions the cursor on the incorrect object entry.
Correct the object function or enter keys for the object entry.
============================================
I had follow procedure but it do nothing.
Anybody can help Pls !
Thanks and Best regards. -
Request.getParameter(): special character handling problem
Hello, there:
This should be an easy question for the gurus in here.
I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, Â appears; I couldn't proceed with it.
I suppose this is a common problem but seems that I didn't find topics about it on this forum.
So anyone can help? Any encoder/decoder APIs to handle it?
Thanks a lot,
Swayhi,
escape can solve ur problem
use js function to submit form like
function subForm()
var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
mainForm.submit();
and use request.getParameter("value");
u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
AE -
Biztalk error if "&" special character is used from Oracle Database
There is an error when system was received data form Oracle database. The data format is including "&"....etc special character. Becuase of the error appear between Oracle database and receive port. I can't do anything in Biztalk program to
encode the message. Does any way to do encoding when biztalk receive data?
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'ECT.TOSToEDB.orcWorkingTable(7e2c77ec-adb6-5790-29ad-835ec8374c1d)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 8eb4cb36-82b2-4d34-9b45-64b8aba23758
Shape name:
ShapeId: 09bc980e-3040-4238-a838-f3606294effe
Exception thrown from: segment 1, progress 84 Inner exception: An error occurred while parsing EntityName. Line 4, position 112.
Exception type: XmlException
Source: System.Xml
Target Site: Void Throw(System.Exception) The following is a stack trace that identifies the location where the exception occured
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at ECT.TOSToEDB.orcWokingTableCheck.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.There are 5 special characters which in xml & < > " ' if the Oracle fields contain any of those characters it will cause invaild xml.
This can be solved at the oracle side be replacing the special characters by it's html encode equivalent, so & becomes & , I think the best way to solve it
is to make a custom pipeline component and translate the special characters there.
There is my Send Port Properties. Do you mean the default biztalk pipeline component ("XML Receive") cannot translate any special characters? -
Unquoted special character error
Am reading data from a file and parsing through it using StringTokenizer. I am putting the data into DB2 tables and therefore need to set the integer and fraction count for decimal numbers so they won't abend the program if they are over the DB2 setting. I am calling an internal method with the following line:
pstmt_master.setDouble(23, formatDecimal(token, decForm));
where token is the value to interpret and decForm is the pattern to apply, in this case it is:
"###########0.####;-###########0.####"
The method that is called is:
public double formatDecimal(String numStr, String format) {
NumberFormat nf = NumberFormat.getInstance(Locale.US);
double intdbl = 0;
if (nf instanceof DecimalFormat) {
ParsePosition pos = new ParsePosition(0);
nf.setMaximumIntegerDigits(12);
nf.setMinimumIntegerDigits(0);
nf.setMaximumFractionDigits(4);
nf.setMinimumFractionDigits(0);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern(numStr);
Double db = new Double(numStr);
double dbl = db.doubleValue();
BigDecimal bd = new BigDecimal(dbl);
db = new Double(df.format(bd.doubleValue()));
intdbl = db.doubleValue();
return intdbl;
I am trimming the value (token), and for the purposes of debugging this problem have done a println on the value which is the number just before the error below. Can anyone offer any help as to why I am getting this error?
By the way, this is not the first value passed through the method, it successfully handles about 10 values before abending on this value.
51050
java.lang.IllegalArgumentException: Unquoted special character '0' in pattern "51050"
at java.text.DecimalFormat.applyPattern(DecimalFormat.java:1334)
at java.text.DecimalFormat.applyPattern(DecimalFormat.java:1208)
at JavaAgent.formatDecimal(JavaAgent.java:758)
at JavaAgent.NotesMain(JavaAgent.java:225)
at lotus.domino.AgentBase.runNotes(AgentBase.java:161)
at lotus.domino.NotesThread.run(NotesThread.java:203)I'm thinking that this line:
df.applyPattern(numStr);should read
df.applyPattern(format);You appear to be passing the number as the pattern.
Tim -
LR 2 - special character in caption field
I'm using LR 2.6 and a custom template to generate a flash gallery.
The problem is my language which is Norwegian and contains characters like æøå and these behave strange when creating a web gallery.
In the library the caption field looks ok, but when exported to web, they make an extra whitespace and that's annoying.
I've looked into the xml file and can't see any whitespace there, so probably the problem appears when the swf file is created.
How do I control the output in the caption field when using special characters?
I've tried to change the encoding in the group.xml file, but it doesn't help. Also tried using entities for the characters such as å and å, it didn't help either.
//kfinsrudHi
Refer this link
http://social.technet.microsoft.com/Forums/office/en-US/6e7a7eae-26fc-467f-bfdc-7c5d5ff49a95/discussion-forum-storing-special-character-in-title-differently?forum=sharepointdevelopmentlegacy
It seems that SharePoint will allow the Title of the discussion board to remain with the special characters, but the actual URL will not be allowed and will strip them from the final URL. SharePoint Manager easily shows this, btw.
So, there are probably many different ways to get what you are looking for, but one way could be to have a Linq query look for all Discussion Boards on a given site and then return the Title and the DefaultViewUrl, which the latter could then be prefixed by
the SPWeb.Url to give you something like "Testing? , /" for the title and http://mysite/Lists/Testing/AllItems.aspx (assuming
that is the actual default view) which you could then use as the final URL for your hyperlink in your web part.
In the code snippet below you can see the Linq query (which I assumed from your post that you need to query to find the Discussion Boards) and a simple DataTable that you could then use to populate a repeater or you just omit the DataTable and
enumerate the results from the query yourself:
var linqResults
= from list in oSPWeb.Lists.Cast<SPList>() where list.BaseTemplate
== SPListTemplateType.DiscussionBoardselect list;
DataTable oDataTable
= new DataTable();
DataColumn oDataColumn_Title
= new DataColumn("Title", typeof(string));
oDataTable.Columns.Add(oDataColumn_Title);
DataColumn oDataColumn_URL
= new DataColumn("URL", typeof(string));
oDataTable.Columns.Add(oDataColumn_URL);
foreach (SPList oSPList in linqResults)
DataRow oDataRow
= oDataTable.NewRow();
oDataRow[
"Title"]
= oSPList.Title.ToString();
oDataRow[
"URL"]
= oSPWeb.Url + oSPList.DefaultViewUrl.ToString();
oDataTable.Rows.Add(oDataRow);
oDataTable.AcceptChanges();
Please remember to click 'Mark as Answer' on the answer if it helps you
Maybe you are looking for
-
Marking Fields as display only in SAP ECC
Hello Experts, We have centralization scenario for Vendor master data. We have a requirement that once the Vendor Master data is created in SAP MDM and syndicated to SAP ECC, the ECC users should not be able to change the data for the fields coming f
-
I have been using facetime on my iphone5 for a while and after the recent IOS update, I cannot seems to use my facetime any longer. what went wrong?
-
Hello, i got some problems with a jsp - file: i have to write a class and then import it onto a server i would appreciate quick answers - if someone could help me - i`ll pay i`ll also go into more details - but i think thats some basic stuff for you
-
Slideshow music, iPhoto 2
How can I make iPhoto re-index my iTunes library? It's only showing about 10% of the song library.
-
Inter business area transactions and trading partner business area
Hi Gurus, We are on R3 4.7. *We have more than one business area but only one company code*.. We do pull financial statements by business area. One of the business area A gets a service contract to do work. Some part of the work is outsourced from bu