Line separator in gui_download
Hi all
How can we write the fileds of an internal table into the file , with one field in one line
Suppose ae have in internal table :
Filed1 Field2 Field3 .................
I want them to be written
Filed1
Field2
Field3 .................
Thanks
Hi,
Try like below:
Lets suppose field1..field2...are fields of internal table itab which has 4 fields
field-symbols: <fs> type any.
data: begin of it_line occurs o,
line(20),
end of it_line,
lv_field(30),
lv_lineno.
lv_lineno = 1.
do 4 times.
concatenate 'itab-field1' 1 into lv_field separated by '-'.
assign lv_field to <fs>.
it_line = <fs>.
append it_line.
enddo.
Regards,
Himanshu
Similar Messages
-
XML Document to String - Line Separator problem
I�m facing a problem with line separator while converting a Document object to String.
Scenario: I get an input XML having line separator say \n (hex: 0A).
When I create the output XML using Transformer, the line separator is still \n.
I have a requirement which makes me convert the transformed Stream into a Document.
When I try to get the String/bytes from the Document, my line separator is now �\r\n�(hex 0D0A), which is my system�s System property �line-separator�.
I want to keep the line separator same as that was in input string. So, if the input has the separator has \n, output should have the separator as �\n� and if the input has it as �\r\n�, output should have the same.
i.e. my hex output should match the hex input.
Any pointers in the direction are welcome.
Thanks in advance.Can I infer that the parser has changed my document
line separators when I load it into a Document?
If yes, is there a way to prevent that from
happening?I don't really know. Since the XML recommendation says that a parser "MUST" do line-break normalization, I would expect that it does. And I wouldn't design systems that use specific non-XML-approved line endings as a feature, either. -
How can i add a line separator on Dreamweaver?
Hi
How can i add a line separator on Dreamweaver?
ThanksDo you mean a Horizontal Rule (the <hr/> tag)?
Click where you want it to appear and go to Insert > Horizontal Rule, or drag and drop from the Common heading of the Insert window.
If that's not what you're talking about, could you be a bit more descriptive as to what you are trying to accomplish? -
Hello
I am writing a tab limited file which gets its data from a string[][] array . When i try opening the file its messed up with square blocks in notepad and looks great with wordpad. I do know that Unix has '\n' as the line separator, whereas windows has '\r\n' and mac has '\r'.
The problem is the file is created on unix system, but its opened on windows or mac systems. Does anyone has a suggestion how can i fix this. I did tried using 'line.separator' but that doesn't help..which is obvious since it uses the unix separator.
Please let me know if anyone can help
I am writing to the file using PrintWriter
thanxisn't there a way just to know whats the line
separator used in the original file?The following will check out the line separator of a file..
final public class TestSeparator{
public static void main(String[] args) throws Exception{
java.io.BufferedReader br =null;
int k=0x0,temp=0x0;
try{
br =new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream("TestSeparator.java"),"UTF8"));//file and encoding are arbitrary
while((k=br.read())!=-1){
if((temp==(char)0xd)&&(k!=(char)0xa)) System.out.println();
if(k==(char)0xd||k==(char)0xa){
if(k==(char)0xd) {
System.out.print("r");
if(k==(char)0xa) {
System.out.print("n");
if(temp==(char)0xd||k==(char)0xa) System.out.println();
temp=k;
}//end of while
System.out.println("");
}finally{
if(br!=null) br.close();
} -
System line separator under Mac OS X
Unfortunately I don't have a Mac available to test on. Can any Java/Macintosh experts answer these two questions for me?:
1. What's the System line separator under OS X? Still "\r"?
2. What line separator is used by OS X implementations of PrintWriter? (That is, what line separator will an applet running on OS X send across the Internet if you use a PrintWriter to write to a Socket?)
Thanks!
--MarkIt doesn't help. I'm sure that if you thought about it for a bit you'd figure it out, but here's the reason: I'm not coding the client side, I'm coding the server side. Because we're using NIO -- no Streams, ByteBuffers -- details like line separators which would otherwise be transparent are now potential issues. Currently client applets on Windows and Linux are connecting fine, but, those on OS X are not. OS X clients used to work before we switched to NIO on the server. One thought is that the glitch could be because of the different line separators, which, before our change to NIO, were translated for us automatically by the Streams we now no longer use. Dynamically determining line separator at runtime would be wonderful if my code ran on the client, that is, the OS X machine. But, it doesn't. Thus, my question.
Now, if there's anyone on OS X who can answer from knowledge, I'll be very grateful. Please note though the question is "what's the line separator on OS X", it's not "what's the best way to determine a line separator". Many thanks.
--Mark -
Creating a line separating columns?
I need to create a 4 column table for my website. However I
don't want a table where the outline is visible, instead I need to
create a separator separating the columns. Here is an examples of
what I mean.
http://www.huffingtonpost.com/
I need something similar to the gray lines separating the columns.
Or is there a way to make the outline of the column invisible
except for the right side?
Thanks.Naltima wrote:
> Or is there a way to make the outline of the column
invisible except for the
> right side?
Give your <td>s a class name (as below) and use some
css (as below)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
.borderRight {
border-right: 1px solid #ccc;
</style>
</head>
<body>
<table width="400" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td class="borderRight">Col 1</td>
<td class="borderRight">Col 2</td>
<td class="borderRight">Col 3</td>
<td>Col 4</td>
</tr>
</table>
</body>
</html> -
Setting the default line separator
I have just installed CF9 on a Windows sever and I need the default line separator to be a CRLF (CHR 13 then 10).
The JVM running CF9 has the default line separator set as CR (CHR 13). Which I find odd considering the default on windows should be CRLF.
I have searched and searched and can find nothing. I know the JVM command line should look something like: "-Dline.separator=". The only problem being I cannot work out for the life of me what should follow the equals sign.
I am sure I can't be the first person needing todo this. I would appreciate any help you can give me.
CheersThanks for the reply Jochem.
Unfortunately no dice. I was pretty sure I tried that, but I went ahead and tried the following again:
-Dline.separator=\r\n
-Dline.separator="\r\n"
-Dline.separator=\\r\\n
-Dline.separator="\\r\\n"
None of these variations work. Either the literal string "\r\n" is used to seperate lines, or I get a Jrun applet error trying to run and cf page.
So you understand how I am testing these. I am editing the jvm.config. Restarting the cf service. Going to "Java and JVM" under system settings and hitting submit changes, so that the jvm.config is recreated using the new line separator.
But if you have any ideas I am all ears.
Thanks -
How can I get the the system property line.separator??
hi all,
the system property line.separator .
the PrintStream's function println uses this properly for next line.. I dont want to use this function. and '\n' does not work exaclty as "the system property line.separator" works..System.getProperty("line.separator") oughta do it :-)
-
Field separator in gui_download
Hi,
How to get '|' (pipeline) separator in FM gui_download?
We tried passing '|' in the parameter write_separator.
Still the downloaded file doesn't have this separator.
Thanks for your time.Hi,
Try this, ihope it may work.
WRITE_FIELD_SEPARATOR = ' | '
regards,
ravi shankar reddy -
Line separator to get multiple records in one variable
Hi Experts,
I have a requirement where i need to get data in the below form , in exactly one variable.
Invoice No. Inv. Date Voucher Gross Amount TDS Amount Discount Paid Amount
986013092,17 04/08/2010 00091217 32415.00 .00 .00 32415.00
Bharti Infot 27/07/2010 00091230 19600.00 .00 .00 19600.00
9860442689 04/08/2010 001247 47374.00 .00 .00 47374.00
2031565000,2031565000Total Amount 99389.00 .00 .00 99389.00
As of now, I have written the following,
loop at lt_merge into ls_merge.
lv_skfbt = ls_MERGE-SKFBT.
lv_budat = Ls_MERGE-budat.
lv_wskto = Ls_MERGE-wskto.
lv_wrbtr = Ls_MERGE-wrbtr.
lv_WT_QBSHB = ls_merge-WT_QBSHB.
concatenate invoice_id
ls_merge-BELNR
lv_BUDAT
ls_merge-XBLNR
lv_skfbt
lv_wt_qbshb
lv_WSKTO
lv_wrbtr
into invoice_id separated by space.
endloop.
which gives me one row of the table where, invoice_id stores my entire one record as a string. My question is how do I proceed with separating the lines if I have multiple records?
Thanks in advance..
Regards,
TrishnaHI
choose some character that will be not use in your data for example '|' vertical separator. You will get string:
invoice_id = line1 | line2 | line3 |.....
loop at lt_merge into ls_merge.
lv_skfbt = ls_MERGE-SKFBT.
lv_budat = Ls_MERGE-budat.
lv_wskto = Ls_MERGE-wskto.
lv_wrbtr = Ls_MERGE-wrbtr.
lv_WT_QBSHB = ls_merge-WT_QBSHB.
concatenate invoice_id
ls_merge-BELNR
lv_BUDAT
ls_merge-XBLNR
lv_skfbt
lv_wt_qbshb
lv_WSKTO
lv_wrbtr
into invoice_id separated by space.
new code
concatenate invoice_id '|' into invoice_id
endloop. -
Is it possible to remove hyphens at the end of a line separating parts of a word? Thank you
Hi there,
I was wondering, Indesign automatically adds hyphens at the end of a line to join one part of the word with the next part (on the next line). Is there any way to get rid of this in my entire document so that indesign automatically puts the word on the next line rather than separating it with a hyphen? I've been going through it manually and correcting it but it's taking many hours.
Let me know if it's not clear what I'm saying
Many thanksLegitNZ wrote:
I've been going through it manually and correcting it but it's taking many hours
Ouch! What you need to do is turn "hyphenating" off. Select all your text and do it in the control panel like this:
You can also turn it off before you start in the paragraph panel, or by turning it off with no documents open make it off by default. -
What is the line separator in Disk Utility's sidebar?
What is the purpose of the separator line in the sidebar of Disk Utility? My drives used to be above it now most are below it. And one slice of my software RAID is above while the other is below. What does this mean?
That's pretty much normal for a FW400 drive. Restore takes more time that some copy programs because of the file verification it performs.
-
When "Grouping" is used in a report, every records making up
the "detail line" section becomes separated by a grey line going
across the report. This line is only visible on the output (PDF in
this particular instance) therefore cannot be "Selected" and
deleted in "Design Mode".
I looked at the different options available on the righ-hand
side of the Report Builder's interface but could not see nor find
the one that would get rid of it.
Does anyone know how to remove this line?
I am using CFReportBuilder on CFMX7 and Dreamweaver 8.
Thanks,
ClaudeGot it! By Zooming In I was finally able to see, select and
delete the line that was up & VERY close to the TOP of the
Detail section. -
hi,
i have one textarea in my program. i want to separate one message from the other message by a line(ruler). It should appear like a series of lines in the background separating each message. Can anybody help me how to get this without using swing components??
Thanks,
Kalpana.Why don't you put a simple line between the texts?
like:
yourTextArea.append(
"\n\n________________________________\n\n"
);good luck,
Felipe -
At some point in the last few months, some update has changed the behavior of triple-clicking in web forms. I have been using this method to copy data from one screen to another for years. It doesn't happen in every field, but it consistently fails in many different scenarios.
I think that by default triple-clicking should select:
* the entire contents of a single-line control
* the current paragraph in a multi-line control
If you discover a pattern, could you post a sample text that causes the problem? We then can paste it into this compose box for testing. Or if this occurs in particular forms, you could post directions to that problem field on the form so we could investigate it (assuming no login is required).
Also, if you want everything in a one-line or multi-line form control, you can use Select All. Either:
* left-click in the text, then Ctrl+a
* right-click in the text > Select All
Maybe you are looking for
-
Is there any way I can export output of query from SQL*PLUS into word or an excel document ? Thanks.
-
Security settings for specific pages
I originally posted this question in the eBooks forum and was told this might be a better location for an answer. So, if you have seen it there please disregard. Question: I am developing a line of publications for our company and they want them to b
-
Hi, We have OBIEE integrated with Oracle Apps. During installation we also get the Vanilla rpd. we are also using another new module which uses another database but not the Oracle apps. We have requirement of OBIEE reports on this module. This databs
-
I have a simple scenario on my Enterprise Issuing CAs" CRL Validity = 15 days. I want the Next CRL publish to be on the 7th day rather than the 14th day which is only one day before the CRL expires to avoid any risks. I ran the the following certutil
-
Why won't my apps open after I updated them ?
A few days ago I updated all my apps that needed updates (about 14). However , 2 of those apps didn't update right away (Flixster and TheScore sports) and an error message was displayed which I stupidly did not read and just pressed ok. After I press