Line Breaks and Preferred Carrier Text

I support our E-Commerce (ISA 5.0) web application. We are using the R/3 edition, which in our case is an ECC6 backend (not CRM).
Anyhow, I am pulling the customer preferred carrier text from the vendor master into the web application. Once I have it, I am appending additional text (ex, "Qualifies for FREE FREIGHT") to it, then sending it back to ECC6 when the order is send/saved.
To set the text I'm using the following line of code....
ui.header.setText(new Text("100", appText));
with appText = "FREE FREIGHT" + "\r\n" + preferredCarrierTextFromR3;
Here is my problem. Last year, when our backend was R/3 6.40c, this worked fine. This year, however, the "\r\n" are being 'translated' as garbage characters (# signs), and thus ignored. So, when this modified preferred carrier text is printed to a Pick List, for example, the text is overwriting. You can actually see # signs printed where last year a line break would occur, and thus, the preferred carrier text is printing directly on top of the "FREE FREIGHT" text.
I've tried everything I could Google as a replacement for "\r\n", but I have yet to find a solution to the problem. I've tried string buffer, line.separator, chr(10), chr(13) and just about any other suggestion I could find.
I should add that I'm not really sure what is causing the line break characters to not be recongnized correctly.
Anyone have any ideas?
I appreciate any and all feedback.
Thank you,
Bryan
Edited by: Bryan Fickle on Feb 21, 2008 11:04 AM

I support our E-Commerce (ISA 5.0) web application. We are using the R/3 edition, which in our case is an ECC6 backend (not CRM).
Anyhow, I am pulling the customer preferred carrier text from the vendor master into the web application. Once I have it, I am appending additional text (ex, "Qualifies for FREE FREIGHT") to it, then sending it back to ECC6 when the order is send/saved.
To set the text I'm using the following line of code....
ui.header.setText(new Text("100", appText));
with appText = "FREE FREIGHT" + "\r\n" + preferredCarrierTextFromR3;
Here is my problem. Last year, when our backend was R/3 6.40c, this worked fine. This year, however, the "\r\n" are being 'translated' as garbage characters (# signs), and thus ignored. So, when this modified preferred carrier text is printed to a Pick List, for example, the text is overwriting. You can actually see # signs printed where last year a line break would occur, and thus, the preferred carrier text is printing directly on top of the "FREE FREIGHT" text.
I've tried everything I could Google as a replacement for "\r\n", but I have yet to find a solution to the problem. I've tried string buffer, line.separator, chr(10), chr(13) and just about any other suggestion I could find.
I should add that I'm not really sure what is causing the line break characters to not be recongnized correctly.
Anyone have any ideas?
I appreciate any and all feedback.
Thank you,
Bryan
Edited by: Bryan Fickle on Feb 21, 2008 11:04 AM

Similar Messages

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • New line break and extra blank space characters disappear after submit form?

    Hello,
    I have a PDF form with a Submit button that is dynamically created in my code to send the form data to the server in HTML format.
    After the form data is received on the server side, all strings with new line break and extra blank spaces are gone.
    For example, if I enter string in a text field as shown below on the form:
    Hello   ,  
    this is  
        just a
    test
    After the form data is sent to the server, this string would become:
    Hello , this is just a test
    New line breaks are gone. Also, if there is more than 1 blank space character between 2 characters, the extra blank space characters would be removed as well.
    It does not only happen to multi-line text field, even with single-line text field. If I have a string like this in a single-line text field:
    Hello         this is just              a         test
    After the form data is sent to the server, it would become:
    Hello this is just a test
    The form is created in OpenOffice then converted to PDF. The Submit button is created in my program using iText.  I have no idea it is iText that trims my string or PDF itself does it.
    Can anyone give me any possible explanation? Thanks.

    That is not what I get. Since it's URL-encoded, spaces are represented by the "+" character and carriage returns are represented by the "%0d%0a" (cr/lf) sequence.
    Are you looking at the actual data that getting sent to the server or the output from the server after it processes it?

  • Forced Line Break and Paragraph Return

    Hi.. It´s maybe a simple question but I cannot see diferences.
    What´s the difference between Forced Line Break and Paragraph Return ?
    Thank's for the answer

    A force line break is still the same paragraph. You won't see a difference unless there is some text change with each new paragraph, such as a style change or the addition of space before or after a paragraph. The forced line break can also be used as a trigger in a nested style to make the first line or lines formatting for a paragraph different from the following lines.
    Peter

  • Line breaks and wrapping incorrect on hebrew+english text

    i have a string of mixed text with hebrew and english, usually the english is only the last word in the string.
    when trying to show on a limited space (110px more or less) the line break looks like it performs incorrectly since the string is all mixed and it shows the english word in between the hebrew words.
    I'm using the following, in a *pure* as3 project in the flex ide using sdk 3.5 and last version textframework swc.
    private function addText():void{
         //title is a string brought from xml.
         title = "Canazei סקי איטלקי במיטבו בעיירה";
         var titleLine:StringTextLineFactory = new StringTextLineFactory();
         titleLine.text = title;
         titleLine.paragraphFormat
         titleLine.compositionBounds = new Rectangle(0,0,120,120);
         titleLine.spanFormat = formatMe(blue, 12, "bold");
         titleLine.createTextLines(callbackTitle);
         function callbackTitle(tl:TextLine):void{
              addChild(tl);
              tl.y = 12;
              tl.x = 109 - tl.width;
    //thats the formatMe function:
    public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
         characterFormat = new TextLayoutFormat();
         characterFormat.fontSize = size;
         characterFormat.color = colour;
         characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
         characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
         characterFormat.fontFamily = "Arial, Helvetica, _sans";
         characterFormat.lineHeight = "100%";
         if (weight == "bold"){
              characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
         return characterFormat;
    any help with this will be greatly appreciated, unfortunately the bidi support is not clear and sometimes the examples in the docs are not working.

    I played around with your example a little, and removed the explicit line placement you added, and have this (see below). It works as expected if you consider English the dominant language. If you wanted it to assume Hebrew instead, you should set the direction to RTL instead of LTR. Please let me know if this works for you.
    Thanks!
    package
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.factory.StringTextLineFactory;
        import flashx.textLayout.formats.TextLayoutFormat;
        import flash.geom.Rectangle;
        import flash.display.Sprite;
        import flash.text.engine.TextLine;
        public class TCMTestFocus extends Sprite
            public function TCMTestFocus():void{
                //title is a string brought from xml.           
                                                var    title:String = "Canazei סקי איטלקי במיטבו בעיירה";
                var titleLine:StringTextLineFactory = new StringTextLineFactory();           
                titleLine.text = title;
                titleLine.paragraphFormat
                titleLine.compositionBounds = new Rectangle(0,0,120,120);
                titleLine.spanFormat = formatMe(0x0000FF, 12, "bold");
                titleLine.createTextLines(callbackTitle);
                function callbackTitle(tl:TextLine):void{
                    addChild(tl);               
            //        tl.y = 12;               
            //        tl.x = 109 - tl.width;
        public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
                var characterFormat:TextLayoutFormat = new TextLayoutFormat();           
                characterFormat.fontSize = size;
                characterFormat.color = colour;
                characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
                characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
                characterFormat.fontFamily = "Arial, Helvetica, _sans";
                characterFormat.lineHeight = "100%";
                if (weight == "bold"){
                    characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
                return characterFormat;

  • Creating a PDF in pages that retains all line breaks and formatting as source

    Currently when we get pages documents, we convert them to PDF and send them off to be converted by a partner. We do this because said partner doesn't accept pages.
    However, lately we've found issues in PDFs created by pages that do not retain styling nor line breaks correctly.
    Example for line breaks:
    The quick brown fox
    jumped over the lazy dog.
    When converted to PDF it shows exactly the same on the PDF, as it did pages. The paragraph breaks are retain in the pages document, and the PDF looks correct.
    But when you copy/paste the text (which is generally how we test how valid the actual text is) you get something like:
    The quick brown
    fox
    jumped over the lazy dog.
    In some cases we even get line breaks on every word.
    We used the Export to PDF feature, the Print to PDF feature, and even generated a postscript and distilled with Acrobat Pro.
    Does anyone know how to solve this? It seems anything generated with QuartzPDFContext has issues.

    Interesting that preview works, but not Acrobat. Thanks!
    We are using export to word as a second option. The formatting (as in exact spacing and such) isn't always 100% retained. PDF afterall is a representation of what the customer wants. We don't always suggest it but in some type of books it helps.

  • Line break issue with Arabic text in TLF

    Hi All,
    We have meet a odd problem that arabic text will break to muliply lines,
    They are same sentence I paste into the TLF demo. the second one is break into muliply lines, the symbol(I have no idea what is it calls sheddeh?) is break line. I used different font, first one is "GE modern" and second one is "Sharjah"
    if there is any conerned about this issues.

    "منظّم حواجب بينالتيميت"
    I pasted into the TLF Demo. ظّ
    This symbol is break line. And only the font "Sharjah" has this issues.

  • Lines above and below the text

    Hello
    I am working in a file created by somebody else and am having a problem with styling - I just cant figure how it was created.
    There are lines running the length of the text box below the heading. When i try to remove the text the line dissapears as well, so clearly its somehow inbedded in that box. There are other instances when i remove the text box but the lines stay and i cant remove them at all, i cant click on them... (at first i thought they were a part of the master but clicking comand shift doesnt get them off). what are these? can somebody help please?
    thanks a lot
    mae

    Hi Peter
    no, they are not paragraph rules, that's what i thought at first. they are something else, very frustrating i just cant work it out...
    any other ideas? and what about the ones that i cant even click on?...
    thanks

  • Carriage Returns, Line Feeds, and Tabs in Text Area

    I am having users copy and paste data from an Excel spreadsheet into a textarea on a BSP page.  When they submit this, since there are tabs and line feeds in the data, the BSP does not recognize the data.  The value in the field comes through as blank. When I manually type something into this field, with out any carriage returns, tabs, etc., the value does not come through as blank?  Does anybody know how to get around this?

    HI
    Iam uploading the data from application server(AL11) to other server.
    In the GLPCA-SGTXT(Table) iam having some text like 'This is good ##'.i was downloded some other data with this text('This is good ##') by using report program in to aplicationserver(AL11) and from there iam uploading that data into other server.
    But here the problem is in the UNIX, it was showing some problem.
    That is actually it need to show the format like:
    001 256 786 This is good## 459786
    But here it was showing like:
    001 256 786 This is good^M
    459786
    So here '459786' is coming to next line. But i need this '459786' also in the same line.
    I am not sure if it is possible to remove CR and LF's using the code the program is written in, but that is what we need to do.   In Unix  ^M is the CR (Carriage return), but I am not sure what LF is?

  • How to put line break in the text

    Hi guys,
    This is a simple problem.i don't know how to concat a line break while creating a text.
    I am looping through the results of a query and want to form the text using the results.
    For each row of the resultset,I want to create a new line in the text i create.
    I was wondering how to put a new line in the text.
    I thought I can concat '\n' ,but it does not work.
    the code snippet in the procedure is :
    for c1_rec in c1 loop
    vMsg := ' There are ' || c1_rec.total ||
         ' documents of type ' || c1_rec.doc_type || '\n' ;
    end loop;
    Please give the solution.
    Thanks in advance.

    Thank you Mark.
    I tried your suggestion.But line break is not working in email.
    Here is how my code is
    in procedure 1 ,i create the message String as :
    for c1_rec in c1 loop
    vMsg := vMsg || ' ' || today_str || ' - ' || c1_rec.total ||
         ' Total inbound documents from : ' || c1_rec.target_value || CHR(13)||CHR10) ;
    dbms_output.put_line(' ' || vMsg);
    end loop;
    --here sending mail calling another procedure
    sendmail( '[email protected]' ,'[email protected]' , 'Test Subject ' , vMsg );
    In Procedure 2( i.e sendmail procedure )
    i am preparing email server connection from and to adresses .Then i am preparing and sending message as
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    conn:= utl_smtp.open_connection( EmailServer, Port );
         utl_smtp.helo( conn, EmailServer );
         utl_smtp.mail( conn, SENDER);
         utl_smtp.rcpt( conn, RECEIVER )
    mesg:= 'Subject: ' || SUBJECT || crlf ||
                   'Date: '||TO_CHAR( SYSDATE, 'Dy, dd Mon yyyy hh24:mi:ss' )||
                   crlf ||
                   'From:'||SENDER|| crlf ||
                   'To: '||RECEIVER || crlf ||
                   'Content-Type: text/html; charset=ISO-8859-1' || crlf ||
                   '' || crlf || MESSAGE ;
         utl_smtp.data( conn, mesg );
         utl_smtp.quit( conn );
    even now the mail we are getting is not having the line break.I am having line break in dbms output,but not in the mail.
    Is there any mistake how I am sending the mail.Or is there any other way we can put line break in the text
    Thank you.

  • Ignore Line break in find text using grep

    Hi everyone!
    I need to find the text in document using grep.
    find text for :
    Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.
    The above sentence cannot having line breaks. But document having multiple line breaks.
    so, please to give a tip to find the text using grep.
    I am not excepting this type of result by following.
    Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.  ------------this is not.
    Any another way to find (i.e)., ignore the line break
    simply like this, 
    (?s:Xereptatiuria que alique volo eium qui dolupid ut
    voluptatiam earum saestorepel iuscit im quas et modisimodit.)      --------- the line break wherever it is found,ignore line break in single command.
    Thanks by,
    John Peter.

    johnp45247251,
    what do you really want to do?
    Like pkahrel in your other thread Find Grep And Ignore the line break said:
    pkahrel schrieb:
    You're a moving target: you change your question in each post. Do yourself a favour and go and read up on GREP.
    johnp45247251, one question:
    Could it be possible, that you doesn't understand correctly, how Grep really works?
    <edit by pixxxel schubser>
    Furthermore your example text is different to your screenshot. Your text is:
    »Xereptatiuriaque\n alique volo\neium qui dolupid ut\r voluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    And your screenshot shows:
    »Xereptatiuriaque\n alique volo\n eium qui dolupid ut \rvoluptatiam earum\n saestorepel iuscit im quas et\n modisimodit.«
    Normally the text should look like this:
    »Xereptatiuriaque\nalique volo\neium qui dolupid ut\rvoluptatiam earum\nsaestorepel iuscit im quas et\nmodisimodit.«
    Please explain what do you really want to do and exactly if additional spaces are exists or not!
    Could it be:
    you have a text with paragraphs and with many line breaks in that paragraph and there are no spaces exists before or after your line breaks. And is your destination to remove all the line breaks from your text?
    </edit by pixxxel schubser>
    Then the way is not to find the text completly and to ignore the line breaks – the way is to find the line breaks and replace with a space, e.g. like that:
    find:
    \n
    replace with:
    \s
    (change all)
    Regards
    pixxxel schubser

  • Is there a way to create a heading with shading behind the text and thin lines above and below?

    I'm working with InDesign CS6, Windows 7.
    Is there a way, using paragraph rules, to create a heading with shading behind the text and thin lines above and below the text?
    I'd like to create headings that look like these:
    Thank you!

    I have a document where I almost do such, but without the fill. I use a Head Style which Spans Columns for this instance; it allows the haeds to flow and fill the width.
    Paragraph Rules above and below are turned on with plenty of offset.
    I tweaked my setting to accomodate your need - It required only one instance, not above and below, and changing the stroke to a double stroke. 
    It may be necessary to create a custom stroke to modify the proportion of stroke vs fill. There is a difference of thin-thin and  thick-thick, neither of which seemed perfect but might be dependent on the Character height.
    Creating custom strokes is accomplished via the Strokes Panel.

  • How to get a line break

    Hi All,
    How do I get a line break within a particular field?
    My DB structure is that I have 4 columns address_line_1, address_line_2 and so on. I cannot select them as different fields because all of them can be null, in which case i pick it from internal_address_line column.
    I use:
    SELECT DECODE(address_line_1, NULL, internal_address_line, address_line_1 || ', ' || Address_Line_2) as ADDRESS
    But instead of th comma separating the 2 address lines I want a line break so that 2 address lines come in 2 separate lines in the output.
    It doesn't allow me to use chr(10) as a line break and gives an error
    I'm using Reports 2.5
    TIA
    Naveen

    Yes, true.
    How about setting up the sections as:
    Section 1 Introduction ('Section num space introduction' in this example - tab may be better)
    Then generate the Contents.
    Then do a GREP find/change on the document after the contents:
    This will add a forced line break and tab after each section number... You might want to specify a para style in the Find Format box too, so that references to Section xx in body text are not altered.
    If you update Contents after this, you will get the line break and tab in the Contents too.

  • Pressing Enter inserts new line break instead of "executing" command

    I have noticed a rather strange behavior on my new TPT2. This occurs ONLY when I am using the Windows 8 touch keyboard in the "Metro" environment.
    Whenever I press the Enter key on said keyboard (for example when sending an instant message on Skype), the keyboard inserts a new line in the text box instead of acting like a "normal" Enter key and execute the default command (send the message in this example).
    I have connected an external keyboard and this problem does not show up. Everything works as expected. I also brought up the regular on-screen keyboard (launched from the Ease of Access menu) and it works the way it should. The problem is only with the Metro touch keyboard.
    It seems that for some reason, the Metro touch keyboard interprets the Enter key pressing as "insert a line break".
    Does anyone know how to fix this? It is extremely annoying.

    Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
    Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop.

  • CS5/win: line break instead of paragraph?

    Hello,
    how can I insert just a line break and not a new paragraph?
    Shift-Enter as it works in **all other** programs do not work.
    Thanks
    Carlos

    Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
    Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop.

Maybe you are looking for

  • Permissions repair weirdness

    Hi! I am trying to figure out a bunch of problems happening on my MacPro 2008, most likely related to software. One thing at a time! I usually regularly repair permissions on Snow Leopard's main drive, and to do that I boot from the external HD that

  • Acrobat X Pro Config Error 130:11

    Hello, I've now un-installed & re-installed Acrobat X Pro a couple of times in order to get over the issue of Config Error 130:11 - which causes the application to quit (see link to original thread below). However, I cannot afford to do this continuo

  • Hi. Is it possible to get same photo tittle front as iTunes movies has with your own dvds when you'r using iTunes?

    I've bought "In Time" from the Itunes store, but is it possible to make the other movies I have from my DVDs look the same as the one I've purchased online? -Hope I've explain my problem so it's to understand hehe?... Hope there's someone who can hel

  • Route Change Log Report

    Please advise how to sort out change logs of route on existing order lines from tables SE16 CDHDR/CDPOS. Since there's no available tranaction Code \ Report for user to track change history. If any other solution available, please advise it as well.

  • Why does SQL execute inner selected functions again in the outer select?

    Hi, Why does SQL execute inner selected functions again in the outer select? Given: CREATE OR REPLACE FUNCTION K_TEST RETURN NUMBER IS BEGIN RETURN 1; END; SELECT K_TEST, K_TEST FROM DUAL;Will (logically) execute the function twice. SELECT intest, in