How to supress carriage return in File?
Hi
I am getting a file which is very large. When i am processing the large file, file adapter is picking but i dont see any message in SXMB_MONI. Each record in my file should be in same line, But some of the fields like "address2" in the records have carriage return so when ever this address2 has data this record splits into two lines.
Ex:
Name, ID, Address1, Address2, City, State, Country..
Name, ID, Address1, Address2, City, State, Country..
Name, ID, Address1, Address2, City, State, Country..
Name, ID, Address1,Address2,
City, Country....* like this....
think because of this my file is not processing. Because I checked individually this type of records I am getting the errors.
But if i am processing as whole file XI is picking up but its not showing anything in SXMB_MONI.
How to remove the carriage return if i get the records like this.
Thanks & Regards
Sowmya...
Hi,
Even if you have any errors in the file data, it should not stop XI from picking up the file. In this case, the file should be processed and you should find errors in SXMB_MONI. When you said compressed what did you do? Did you make a shorter file out of the large one? In that case, check if the file name and directory are exactly configured (case sensitive). Check the adapter monitoring if you find any red light.
Coming to the data problem, unless you file end character is different from carriage return, I do not think XI would be able to parse the file properly. You might want to request you file generating application to suppress the carriage return in any of the data fields or at least the record delimiter.
VJ
Similar Messages
-
How to remove carriage returns in message mapping
Hi Experts,
I am getting carriage returns in one of the source field, i need to remove those carriage returns and i need to pass it to target field, can anyone suggest me how can i achieve this.Hello,
Are you getting only CR or CR+LF (line feed) ?
In this case - CRLF - you can use content conversion in your sender adapter:
<recordset_structure>.fieldSeparator = 'nl'
So in your receiver adapter you can replace any special char by 'nl' again.
Check these links.
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
http://help.sap.com/saphelp_nwpi711/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm
Regards,
Diego Estanguini Gabriel -
How to handle carriage return/linefeed embedded in text field as first char
Hi,
I am trying to use sqlldr to import text that is comma-separated and double quote-enclosed, but contains embedded carriage return/linefeed pairs. I have a control file which works for most cases and looks like this:
LOAD DATA
INFILE './foo.new'
APPEND
CONTINUEIF LAST PRESERVE (<>'"')
INTO TABLE <tablename>
FIELDS TERMINATED BY "," ENCLOSED BY '"'
TRAILING NULLCOLS
Unfortunately, this fails when the very first character of the text field is a carriage return/linefeed pair, e.g.,:
"11","22","33","\r\nThis is the fourth field","","","","",""
In that case, what is actually the opening double-quote for the fourth field, is interpreted by the CONTINUEIF clause as the end of that line. Can anyone please point me to a solution?
thanks.
stan.Thanks for the suggestion. Unfortunately, I've already tried it, and it doesn't help. I believe the problem is that sqlldr tries to figure out where each record is delimited before it parses out the field. So, any field-level trimming depends on sqlldr first determining that the cr/lf is actually part of that record, and not an indication of the start of a new record (and it's doing the latter right now). Fwiw, Python's csv parser will handle this type of record just fine.
regards.
stan. -
How to retain carriage return and spaces in a report..
Hi everyone,
I have a TEXT AREA where users enter comments in that like
First record
Hi Carriage returns spaces
Second record
Hi
carriage returns
spaces
Third record
Hi
carriage returns
spaces
Is it possible to retain the carriage returns and spaces when i am displaying the records in a report.
For carriage returns i replaced chr(10) with '
(without the single quotes). I works fine. But how i can i retain the spacesplease give me some suggestions
Thanks
phaniHi dimitri,
Thanks for the reply
For carriage returns i am doing like this replace(column_name,chr(10),'<"br">') (Ignore the double quotes)
For spaces is there any ASCII code like chr(10) for carriage returns..
I mean how to identify Number of spaces in database..
Thanks
phani
Message was edited by:
phani marella -
How to use carriage return in formcalc
I'm sure the answer to this question is simple, but being new to formcalc (and scripting in general) I am having problems with it.
The details:
I have a dynamic form in livecycle. The two fields I am having problems with currently are a drop down list, and a text box (not field) associated with it. What is listed in the text box is dependant upon the choice from the dropdown list. So far everything is, functionally, working. I have the formcalc scripting event set to change on the dropdown list with the following script
if (xfa.event.newText == "Office 1") then
OfficeAddress1 = "123 Street Road #xD Town City, US 12121 #xD (111) 555-1414"
endif
"Office 1" being the dropdown selection
OfficeAddress1 being the name of the text field
The fake address being the address, seperated by carriage return symbols (#xD) to indicate where I want it to jump to the next line.
The script is working fine except that the #xD symbols are showing up on the final form. How do I prevent this?
Thanks for you assistance.Thanks Paul, good advice.
For anyone that would want to do this in formcalc, the embarrassingly simple way of using a carriage return in the script is... hitting the enter button... no syntax required.
Don't bother trying to line it up in the scripting screen (my mistake), that only puts more spaces than is necessary and will mess up the text orientation on the final form. Just hit enter and don't worry if it's not lined up, it will be. -
How to undo carriage returns?
Hi, I send char(10) and char(13) to my output stream to move to the next line. If the user presses the backspace, char(8), I have to undo what he has typed. Undoing characters is not a problem as long as the user has not moved to the next line (no carriage return was sent to output stream).
I would like my cursor to move back to previous line if user does backspace and current line has no more characters. Anyone knows how?
Btw, sending char(8) to the outputstream did not do the trick, it only did so for charaters.
Thanks.Well, it's still not working today (after 20 years). The application is on a DOS environment. Would like to undo previous line when user continuously presses backspace.
-
Greetings all
I often download lyrics to songs and often they copy into MS Word without hard carriage returns-so they look as one huge paragraph.
I think the solution is that I must first find out what escape characters are in there, then search and replace with maybe 0A, 0D hex, or something like this.
Can you tell me first, how to view the actual characters in Terminal or any other program, then how to search and replace.
can this be done in Text Edit, or Ms Word?
Thanks much.Check out the thread at
http://hints.macworld.com/article.php?story=20031018164326986
Or: from http://sed.sourceforge.net/sed1line.txt :
Using the Unix stream editor sed (type man sed in Terminal for usage):
# IN UNIX ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
sed 's/.$//' # assumes that all lines end with CR/LF
sed 's/^M$//' # in bash/tcsh, press Ctrl-V then Ctrl-M
sed 's/\x0D$//' # works on ssed, gsed 3.02.80 or higher
# IN UNIX ENVIRONMENT: convert Unix newlines (LF) to DOS format.
sed "s/$/`echo -e \\\r`/" # command line under ksh
sed 's/$'"/`echo \\\r`/" # command line under bash
sed "s/$/`echo \\\r`/" # command line under zsh
sed 's/$/\r/' # gsed 3.02.80 or higher
# IN DOS ENVIRONMENT: convert Unix newlines (LF) to DOS format.
sed "s/$//" # method 1
sed -n p # method 2
# IN DOS ENVIRONMENT: convert DOS newlines (CR/LF) to Unix format.
# Can only be done with UnxUtils sed, version 4.0.7 or higher. The
# UnxUtils version can be identified by the custom "--text" switch
# which appears when you use the "--help" switch. Otherwise, changing
# DOS newlines to Unix newlines cannot be done with sed in a DOS
# environment. Use "tr" instead.
sed "s/\r//" infile >outfile # UnxUtils sed v4.0.7 or higher
tr -d \r <infile >outfile # GNU tr version 1.22 or higher -
How to capture carriage return in SAP Business One?
Hi guys,
I am using C# for developing a plug-in for SAP business one 2005, I tried to use '\n' to capture carriage return in some fields that are stored in SQL server 2005, but it didn't work. I tried the same code in a C# windows application and it worked. I just want to know that if the carriage return in SAP has a special sequence code for that or not.
The code I tried is "
string s = "something";
if (s.contains('\n'))
//do something;
Thanks a lotHi,
I guess you did a typo: Chr(9) is TAB... I think you meant Chr(10).
Regards,
Eric -
How to Add Carriage Return After PageBreak using XSL code?
Hi,
I have created one RTF Template for Check printing. My requirement is to print check on next page if total number of invoices exceeds certain value.
I achieved this and used below condition in my RTF Template.
<xsl:if xdofo:ctx="inblock" test="count($invLines)>=$lpp"><xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
"lpp" is global variable whose value is set at the start of template. Now i also want to add some space after pagebreak in my Template.
Like presently, check prints at the top of page, so i want to print it after leaving 9-10 lines blank.
Can anyone please help me to achieve this?
Thanks
AmitHi,
I tried below syntax but its working only for first page, its not giving space for second page
<xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>700pt</xsl:attribute></xsl:if>
I want to combine it with page-break. Like i need specific space only after page break. I tried to combine both, but its not working. Any inputs on these?
<xsl:if xdofo:ctx="inblock" test="count($invLines)>$lpp"><xsl:attribute name='space-after'>100pt</xsl:attribute>
<xsl:attribute name="break-after">page</xsl:attribute></xsl:if>
Thanks
Amit
Edited by: user11982820 on Apr 14, 2010 5:52 AM -
Inserting carriage returns in a concatenated string
Hi.....
Does anyone know how to insert carriage returns within a concatenated string in a sql statement?
i.e. Select 'John'||'Smith' from dual
I'm trying to return:
John
Smith
as opposed to John Smith
Thanks,
~ChristineAs suggested chr(10) is what you need, but it's not carriage return, but line feed, carriage return is chr(13). See the difference :
TEST@db102 SQL> select 'John'||chr(10)||'Smith' from dual;
'JOHN'||CH
John
Smith
TEST@db102 SQL> ed
Wrote file afiedt.buf
1* select 'John'||chr(13)||'Smith' from dual
TEST@db102 SQL> /
'JOHN'||CH
Smith
TEST@db102 SQL> -
DTAUS0 payment format - no carriage returns
Hi
I am configuring file formats for data exchange with the bank. I notice that the standard format for Germany uses the format DTAUS0.
However when I create the file there are no 'carriage returns'. the file is just one long string.
How do you build in carriage returns, when there is no payment medium workbench?
thanks
LizThe official format DTAUS0 generated by RFFOD__U does not contain any
carriage return characters, so no CR/LF characters are inserted into
file. This would be the reason why you get very long lines with no
end.
If you need to have <CR/LF> in your DME file, please, you have to
modify in the Include RFFORI04.
BR, Hana -
Remove carriage return between text two objects
How to remove carriage return between objects.
I have a text box and table I want to remove carriage return between them.
Also I have a table with two columns and I want to remove carriage return between these two columns.
Thank You in advance.Hi ,
Try like this ,
--To replace Carriage return
=REPLACE(Fields!Column.Value, CHAR(10), "" )
--To replace Line feed
=REPLACE(Fields!Column.Value, CHAR(13), "" )
--To replace Tab
=REPLACE(Fields!Column.Value, CHAR(9), "" )
And also , ConsumeContainerWhitespace property to remove blank space -
http://beyondrelational.com/modules/2/blogs/115/posts/11153/consumecontainerwhitespace-property-to-remove-blank-space-in-ssrs-2008-report.aspx
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **. -
Removing Carriage Returns within a Textarea
Hi,
Just wondering if someone could please let me know how to remove carriage returns from a Textarea after submitting the page?
Within my PL/SQL process, I have used both REPLACE and TRANSLATE on both CHR(10) and CHR(13) but unfortunately it stills comes out the other end as follows:
Description :this
is
a
testWould like it all on one line minus the carriage returns.
Thanks.
Tony.The code I showed works for me. Computations and processes work similarly except that in a process you have to save the value in session state whereas in a computation that's done for you. Show your code or put an example on apex.oracle.com if you can't get it to work and I'll check it.
Scott -
How do i add a newline or carriage return to make my xml file look pretty?
Hi guys
I'm writing an xml file with jsp, the problem is, it writes it in one big chunk of text. e.g.
<start>hello, my name is joe</start><middle>I like trees</middle><end>boo</end>
Now what I want to do is present this xml file in a decent manner,
e.g.
<start>hello my name is joe</start>
<middle>i like trees</middle>
<end>boo</end>
i've tried
xmlFile = "<start>Hello my name is joe</start>"+\n\r;
and
xmlFile ="<start>Hello my name is joe</start>"+"\n\r";
neither work, can anyone provide me with some insight into how I can add a carriage return / new line to make my xml file look pretty?
Many thanks for any responses!u r right <BR> tag will not work...
I wrote following code to generate xml file and it works fine...U can try the same...
try
FileOutputStream fos = new FileOutputStream("c:\\temp.xml");
String xmlString = "<root>\n<start>Hello my name is joe</start>"+"\n";
xmlString = xmlString +"<middle>blah blah</middle>\n</root>";
fos.write(xmlString.getBytes());
fos.close();
fos = null;
catch(Exception e)
e.printStackTrace();
} -
How do we remove Carriage Return (line feed) inserted in FCC files
Hi Experts,
The file that we generate has a carriage return at the end.
Is there any way in which we can remove this carriage return (line feed) from the file?
The FCC parameters used at our end are as below:
structure.filedNames:
structure.fieldFixedLengths:
structure.fixedLengthTooShortHandling: Cut
Kindly tell us a solution ASAP.
Thanks & Regards
DhwaniDear All,
Let me elaborate on my query
Consider that the files output looks like below:
12 34 45 545 5454 UL
23 33 43 434 4545 FG
45 44 44 586 6535 GM
Now there is an extra line(Carriage Return) getting inserted after the last line 45 44 44 586 6535 GM which is not required at our end.
The cursor of the file instead of stopping on the last character M, points to the next line.
Can you please suggest how to remove this extra line from the files.
I dont understan how will remove context help in this case.
Regards
Dhwani
Maybe you are looking for
-
Repairing / Compressing .PST files and Outlook Processes in Task Manager
Does Outlook 2010 still use scanpst.exe for repairing .PST files? That seems to be what I read in a few articles that I found online, but I can't seem to find my scanpst.exe file. It either wasn't installed originally or it has been deleted by so
-
FBL3N & FS10N difference. F.16 carry forward balance incorrcectly calculate
Hello, FBL3N displays 100 in first year of an account. In first year when we run F.16 for the account to transfer balances to next year system has updated with 80. Hence FS10N displays 80 but when we double click on the same it displays 100. The acc
-
Masks with text don't work anymore...
This is getting very tiring. In every release adobe will take out a perfectly working feature, cripple it and then re introduce it in the next version... This time it has to do with text. The effect I'm trying to achieve is to have a shape with the t
-
Can I use DME to generate .TXT file?
My client wants the withholding tax program to generate a .TXT file to meet his legal requirements. How is this done?Maybe can i generate a .DME file and then convert to .TXT file? Can .DME be converted to .TXT?
-
2 important ignoed features in q10, in all bb10
i have tried q10 and z10 from os10.1 to 10.3, but still puzzled why following 2 simple but important features are still missing, and hope someone or bb itself could solve: 1. i thnk sb. should have discovered that in the email hub, if you received a