# on carriage return downlading a file text

Hi everyone!
I'm trying to do a file, but i don't know how to put a line jump.
I've an hexadecimal code 'ODOA', but it shows a sharp ('#').
My sap version is 6.0.
Can anybody help me please??
Cheers from spain!

Have you tried with this?
DATA: CR TYPE X VALUE 13.
<b>CR</b> works like a carriage return -:)
Greetings,
Blag.

Similar Messages

  • Add carriage return in XML file

    Hi,
    I found a topic that correspond to my requirement :
    [Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file]
    But i don't know where created this udf, which input parameter pass?
    Thank you for your help.

    Hi Frantzy,
    The link does not give enough explanation. What I am assuming is if you have xml string in one field then if you need to add new line after each tag then you can follow that.
    If you want a udf where you want to insert a new line use this udf:
    Create a Value UDF with one input argument 'a' and name the udf as addnewline. Then add this code:
    Imports: java.*;
    String lines;
    lines = "";
    lines = lines.concat(a + '\n' );
    return lines;
    Then where ever you want a new line just add this udf in your mapping. If you want a new line for 10 fields then you can put in all the 10 fields.
    Example:
    Source field --> logic --> udf (addnewline) --> target.
    So after logic if you have the value as 123 then in the target you will see 123 followed by a carriage return.
    Regards,
    ---Satish

  • 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 does one replace carriage returns (enter key) in text areas

    I have an address text area in one of my pages where end users are hitting enter after each part of the address. I want to replace the carriage return hex('0A') with spaces. How can I do that?

    If you're manually saving your data, you can just change your insert/update code as below:
    insert into myTable
    (myCol)
    values
    (replace(:PXX_MY_TEXT_AREA, Chr(10), ' '))
    where ...If you're building a page where you aren't directly saving your data, you can add an "on Submit/Before Computation" process that does something like:
    :PXX_MY_TEXT_AREA := replace(:PXX_MY_TEXT_AREA, Chr(10), ' ');

  • Count the number of carriage returns in a multiline text box

    Hello,
    I have a script to count the number of carriage returns at the end of each line of text in a multiline text box.
    After running the script in the console, the result keeps showing as 0.
    Can anyone please advise how the script can be revised to count the number of carriage returns?
    var count = 0;
    for (var i = 0;  i < this.getField; i++)
    var f = this.getField("ActionAgenda");
    if (f.value =="\u000d") count++
    console.println("There are a total of "+ count + " carriage returns.");
    Any assistance will be most appreciated.

    Try this:
    var count = 0;
    var s = getField("ActionAgenda").valueAsString;
    for (var i = 0; i < s.length; i++) {
        if (s[i] === "\r") count += 1;
    console.println("There are a total of "+ count + " carriage returns.");

  • Carriage Return with the text in xdofx

    Hi
    I have to insert a carriage return with in a text I tried <?xdoxslt:chr(10)?>
    e.g <?xdofx:if x>'0' then 'Approved. Thank you.' else 'Disapprov.Thank you. ' end if?>
    so the output should be
    Approved
    Thank You
    I need carriage return between Approved and Thank You
    Thanks

    Use this:
    <?xdoxslt:ifelse(x>0, concat('Approved', xdoxslt:chr(10), 'Thank you.'), concat('Disapprov. ', xdoxslt:chr(10), 'Thank You.'))?>
    I tried this and it works
    <?xdoxslt:ifelse(10>9, concat('Approved', xdoxslt:chr(10), 'Thank you.'), concat('Disapprov. ', xdoxslt:chr(10), 'Thank You.'))?>
    Thanks,
    Bipuser

  • Ignore carriage return in a text area

    Hi
    I've a JTextArea of 3 rows on an applet screen.
    I want to disable the carriage return key on the text area.
    Thanx in advance

    Look at the API documentation for JTextField; it contains an example of a class called UpperCaseField. You could modify this code to ignore line-end characters; the concept works with JTextArea as well as JTextField. This code would prevent people from pasting line-end characters as well as from keying them.

  • JeditorPane text selection problem due to line feeds and carriage returns

    Hi folks,
    I have a jEditorPane (text/plain) that contains a document in which the user has highlighted some text. I want to pull the selected text from the pane, do some processing on it, and then put the altered text back in the same position.
    First I get the starting and ending position of the highlighted text
    int mySelStart = myJEditorPane.getSelectionStart();
    int mySelEnd = myJEditorPane.getSelectionEnd();Then I get all the text from the pane and (in theory) strip out the portion the user highlighted
    String myPaneText = myJEditorPane.getText();
    String mySelectedText = myPaneText.substring(mySelStart,mySelEnd);But the text string in mySelectedText never matches what the user originally highlighted. The starting and ending positions are off by the number of carriage returns that proceed the highlighted text in the document. It appears that while in the jEditorPane Java treats the carriage return as one characters, but once the info is in the myPaneText field Java treats the carriage return as two characters.
    Has anyone encountered this before? Am I doing something wrong? To fix the problem I'm looping through the entire document to find out how many carriage returns proceed the highlighted text, but there has to be an easier way.
    Thanks

    It appears that while in the jEditorPane Java treats the carriage return as one
    characters, but once the info is in the myPaneText field Java treats the carriage
    return as two characters.Correct on a Windows platform. Check out my posting here for a one line solution:
    http://forum.java.sun.com/thread.jspa?forumID=31&messageID=1464594

  • UTL_FILE.FCLOSE carriage return

    Hi folks,
    I've noticed that UTL_FILE.FCLOSE includes a carriage return. I'm trying to write a procedure that does NOT have a final carriage return in it (i.e., that the last line of the output file has text on it), and the carriage return is added, even when I use UTL_FILE.PUT(v_output, 'My text'), rather than UTL_FILE.PUT_LINE(v_output, 'My text').
    Apart from manually removing the last carriage return after the file is created, is there a way around this?
    Thanks,
    Randy

    ORA-03113 end-of-file on communication channel
    Cause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8 two-task software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.
    In addition, this message could occur when any of the following statements/commands have been issued:
    ALTER SYSTEM KILL SESSION ... IMMEDIATE
    ALTER SYSTEM DISCONNECT SESSION ... IMMEDIATE
    SHUTDOWN ABORT/IMMEDIATE/TRANSACTIONAL
    Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of Oracle Support Services.
    Regards

  • Carriage Return

    Hi Friends,
    Few days back one of clients of my company had a problem with carriage Returns in the data.To make it simple we take column data from the tables and output it to a flat file like notepad onto the server.This process is repeated for a number of lines.So before outputting the line I used Replace chr(13) and Chr(10) with Nulls and then output the line to the file.
    This was working fine as they had no more carriage returns but recently they noticed that one of the fields loses two spaces...It is a description field and we rpad it to 240 chars.It happens with only few records and with rest it is ok.....Due to this all records are not in the same line and that is the problem.
    Does anyone know that if if chr(13) or chr(10) has any problems with Long fields or number of spaces or something...I have done so many hit and trials but nothing works...Coul you please help me out.

    Thanks for the reply...
    I'm not sure that the column data has embedded CR's but customer did have the problem of carriage returns in the file.....I have to replace them with NULL and not spaces as it is a postion based file and I cannot change the postions...replacing with spaces means more characters which they don't wan't.
    Thanks
    Mohit

  • Hold carriage returns in PHP MySQL database?

    I'm creating a limited news database for a not-for-profit
    site and I want to let admin users write a long entry which may
    include multiple paragraphs (i.e. carriage returns) and even bold
    text for subheadings would be nice. I haven't been able to find out
    the proper code and DB settings to allow users to do this.
    Anyone have a simple solution?

    The way I handle text formatting with dynamic data is to
    carefully construct
    your DB with formatting in mind
    Create separate fields for headlines and copy. When you call
    the data to
    your web page surround the heading with the desired tag. Of
    course you will
    not always have a heading, so, to eliminate empty spaces add
    a conditional
    statement to ignore the field if it is null.
    like this:
    database:
    news_id
    news_headline1
    news_copy1
    news_headline2
    news_copy2
    web page:
    <?php if (strlen($row_getNews['news_headline1']) > 0)
    {?>
    <h3><?php echo $row_getNews['news_headline1'];
    ?></h3>
    <?php }?>
    <p><?php echo $row_getNews['news_copy1'];
    ?></p>
    <?php if (strlen($row_getNews['news_headline2']) > 0)
    {?>
    <h3><?php echo $row_getNews['news_headline2];
    ?></h3>
    <?php }?>
    <?php if (strlen($row_getNews['news_copy2']) > 0)
    {?>
    <p><?php echo $row_getNews['news_copy2'];
    ?></p>
    <?php }?>
    Jeff
    "Justin from Indiana" <[email protected]>
    wrote in message
    news:fiimo4$33$[email protected]..
    > I'm creating a limited news database for a
    not-for-profit site and I want
    > to
    > let admin users write a long entry which may include
    multiple paragraphs
    > (i.e.
    > carriage returns) and even bold text for subheadings
    would be nice. I
    > haven't
    > been able to find out the proper code and DB settings to
    allow users to do
    > this.
    >
    > Anyone have a simple solution?
    >

  • SQL Loader - Loading Text File into Oracle Table that has carriage returns

    Hi All,
    I have a text file that I need to load into a table in Oracle using SQL Loader. I'm used to loading csv or comma delimited files into Oracle so I'm not sure what the syntax is when it comes to loading a text file that essentially has one value per row and each row is separated by a carriage return. So when you open the text file, the records look like this:
    999999999 <CRLF>
    888888889 <CRLF>
    456777777 <CRLF>
    456555535 <CRLF>
    345688888 <CRLF>
    So each row is separated by a hard return and I need to tell sql loader that the hard return or next row is the next value to insert into the table. Below is an example of a control file I tend to use as a template for loading csv files but I need to modify it to accomodate this new structure.
    OPTIONS (DIRECT=TRUE,ROWS=100000)
    UNRECOVERABLE
    LOAD DATA
    INFILE 'C:\input.txt'
    BADFILE 'C:\input.bad'
    APPEND
    INTO TABLE TEST_TABLE
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    COLUMN_1
    How to I modify the control file above to use hard returns as the field/row delimiter for my text file?
    Thanks

    Hi there,
    Obviously my intention wasn't to post the same message 4 times....I pressed the "Submit Message" button but the submission hung and I pressed it a few times and finally it worked but it created several versions of my post. You need to allow users the ability to delete there own postings...I was looking for this option but didn't have it.
    Sorry

  • Importing XML Text files with Indesign friendly 'Carriage Returns'

    Hi,
    I have a question wrt importing XML into Indesign.  I have my text stored in Excel (Fig A) and intend to export as an XML file where each line will represent each page.  However, my first attempt failed to treat the 'carriage returns' as I'd envisaged:
    The 'carriage returns' used within an Excel cell (ALT-ENTER) are maintained when transforming to a CSV file (Fig B).  However, when converting to an XML file, the conversion only takes place on a line by line basis and hence the XML file becomes incomplete (Fig C).
    So, it appears I need to make sure that the CSV file contains one line per entry, while also maintaining the actual carriage returns in my source spreadsheet and for Indesign to recognise them.  In order to do this, I'll need to substitute the 'carriage returns' in my excel column to be represented by a new set of characters.  My question is how can I let Indesign know to recognise this set of characters to be converted to a carriage return, when importing text.
    For example, if this set of characters was '%%%%%%', then my new csv file would look like Figure D and the XML would be produced correctly, like Figure E.  Then importing this XML file to InDesign, the carriage returns would automatically be reinstated, hopefully.
    I hope someone can help me as I am only starting out in Indesign and feel Im running before I can walk by venturing into the XML/Indesign arena too soon.
    Best Regards
    Luke

    Hi,
    Thanks for all the responses.
    With regard to XML, it could well be an issue has crept in because I am using another utility to convert my csv's to xml and maybe there are better options out there. I will take a look for other utilities and try that (Its not possible from Excel easily, even though there is an option to save as an XML file).
    Secondly, because the XML was readable by internet explorer, I assumed it had a satisfactory standard XML format which would be accepted by any program, including InDesign.  This proved true, since the XML file i generated was actually recognised by my Indesign document and populated the tags correctly, albeit without any carriage returns. 
    When I save my excel sheet as a csv, it does actually hold the carriage returns causing multiple lines per entry, hence why I need to substitute the actual carriage returns in my excel sheet to a alternative character set so that the entry remains on one line.
    Re: Double quotes on text fields.  Im sorry, I didnt realise I had commas in my sample csv example.
    I should have corrected it, but I intend on using semi-colons as my csv delimiter and don't intend on having semi-colons in my excel sheet itself, so I possibly won't need any double-quotes.
    So, it looks like this is what I need to do ;
    i)   Add a column in Excel which substitutes all the carriage returns with a line break identifier (^n).
    ii)  Convert Excel file to a semi-colon csv holding this new column,
    iii) Convert csv file to XML using a good CSV->XML utility,
    iv)  Add the respective XML tags to my INDD document,
    v)   Add a GREP rule which does a find/replace on all instances of ^n and replace with a line break,
    vi)  Import the XML file,
    vii) Apply the find/replace GREP rule on the whole document. Carriage returns on my text fields should be consistent with my original excel sheet.
    Thanks for all your help fellas.  Will report on how I get on once Im done.
    Best Regards
    L

  • 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();
    }

  • Exporting Text data from PHP to Oracle CLOB data (Carriage return - issue)

    This is my original text content in PHP - Data type - Longtext
    SECTION - 1
    This a test description.This a test description.
    This a test description.This a test description.
    This a test description. This a test description.I exported the above content from PHP as a SQL script file (insert into.. ) - export.sql [ insert into table_name (id, text_content) values (1, '') ]
    while exporting data from PHP table into export file.. it replaced the "Carriage return" with "\r\n\r\n" in the insert statement for text_content column
    When I run this INSERT statement in Oracle (for longtext, I have created a CLOB column in Oracle), the following text_content data is inserted into CLOB column in Oracle.
    SECTION - 2
    This a test description.This a test description.\r\n\r\nThis a test description.This a
    test description.\r\n\r\nThis a test description.This a test description.Now I have created a item named P1_TEXT_CONTENT of type TEXTAREA and try to fetch the CLOB data into this page item.
    BUT textarea displays the entire content including "\r\n\r\n" as mentioned in SECTION - 2
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?
    Thanks,
    Deepak

    DeepakJ wrote:
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?Run an update on the Oracle table following the inserts to replace the escaped CR/LFs with real ones:
    update foo
    set clob_column = replace(clob_column, '\r\n', chr(13) || chr(10));You might want to experiment to see which characters are actually necessary. As an OS X/Linux user I'd probably just use a single LF chr(10).

Maybe you are looking for

  • Apple ID message

    I had several app updates and in the middle of updating I received this message : YOUR APPLE ID HAS BEEN DISABLED" and now I cannot update last 2 plus my computer doesn't recognize any apps on my iPad. I cannot find out what the problem is...???

  • Function result as an item for another function.

    I have a report that has a field A(number) which is the result of a custom function. My next field B needs to sum up all these results i.e. sum of field A grouped by certain field. Another field C needs to divide field B by a calculated number etc. B

  • Instead of CS6 a trial version opens, saying serial number incorrect?

    This morning I wanted to start my CS6 Photoshop. Instead of opening a trial version opens. After searching on the internet for a solution I deactivated Photoshop as recommended, restarted it and wanted to sign in. However, it says my serial number is

  • No 5.1 sound in games with Creative digital speakers

    Hi, is it true that you can't use 5.1 sound in games with a Creative soundcard and Creative digital speakers?

  • Adding zeros before field.

    HI Experts, I have one requirement, which i need to add zeros before filed, if field length is less than 6 characters. Ex: 1005--> 001005 12345--->012345 like above. Please give me the code. Regards Rajini