Carriage Return in Text Node of SmartForm

Hello SAPients.
I'm working with a Text node in a SmartForm. I'm using "Include Text" to call an existing text. The text loads fine except that it doesn't respects the CR's.
What can I do?

Hello SAPients!
I'm still having this problem, maybe I didn't explain the problem very well and that's why I didn't get an answer. I hope this information be more helpful:
I'm working in SAP 4.6C. I have a SmartForm with a Text Node that shows "unlimited" text. I created another transaction to maintain this text in a small text editor and save the text using FM SAVE_TEXT and retrieve it using FM READ_TEXT and it shows everything correct.
In the SmartForm I'm taking advantage of the option "Include text" in the Text type of the General Attributes of the text node. The system retrieves the text in a normal way, except that the text is shown without Carriage Return, that is, all the text is show in one single line. Do you know why?
Thank you in advance for your help.

Similar Messages

  • Carriage Return for text area

    Hello All,
    I have a text area that I am pre-populating from a column in a database and I need to do a carriage return. When inserting the information into the column I put 'chr( 10 )|| chr( 13 )||' after each place where I need to do a carriage return, for some reason it is not being saved in the database that way.
    The sql I used to insert the information into the column looks like:
    update 456.xyz
    set 123 = a || chr( 10 )|| chr( 13 )||
    b || chr( 10 )|| chr( 13 )||
    c || chr( 10 )|| chr( 13 )||
    where abc=def;
    I need the output in the text area to be:
    a
    b
    c
    But it populates as:
    abc
    Any help would greatly be appreciated!

    I just tested this code:
    select 'The date '||sysdate||chr(10)||'is a '||to_char(sysdate, 'DAY')||chr(10)||chr(13)||'Week :'||to_char(sysdate, 'WW') from dual;The output was:
    The date 03.06.2010
    is a TORSDAG
    Week :22I put this in the source of the textarea and set it to update and replace content ( source used always )
    Edited by: Olav Alexander Mjelde on Jun 3, 2010 1:17 PM

  • 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 **.

  • Carriage returns in text box comments

    Hi I am new to Acrobat (using Acr
    obat Pro 9) and I have found that when I add text to a text box it does not seem to recognise the carria
    ge return. It seems to do when I type than when I click out of the box the CRs dissappear.
    I have resorted to adding a space which does not seem correct.
    Is there a setting somewhere?

    Whenever you append a line of text to the StringBuffer you also append the newline string for your platform which you can get from the System.getProperty(...) method. For a list of properties, see the getPoperties() method.

  • Plain Text Control in Form - Add carriage return in text

    Hi, I'm trying to output a carriage in a Plain Text Control.  I've tried several combinations like CHR('13'), but can't get it to work.   Anyone know how to do this?
    Thanks,
    Ken Murray

    Hi Kenneth,
    did you try "\n" ? Like:
    "Entering a \n new line"
    HTH,
    Carsten

  • Returning Text Nodes

    Hi,
    Can somebody please help me with this problem. I am trying to return a specific node name, return it, and see if it has any child nodes. Below is a snippet from my XML doc:
    <description>
         <genre>football simulation</genre>
         <year>2004</year>
         <publisher ....However, when I enter "year", I am presented with
    <year>2004</year>as the child nodes of the "year" node. And when print the results from
    getNodeType, the text nodes arent identified. How can I get my code to see if there are text nodes present and return the text nodes?? I'll be extrmely grateful for any help!! Thanks.
    Below is some of my Java code:
      NodeList docNodes = test.getElementsByTagName("year");
          if(docNodes.getLength() !=0){
               System.out.println("noelist length: "+docNodes.getLength());
               for (int i=0; i<docNodes.getLength();i++){
                    Node blah = docNodes.item(i);
                    System.out.println(blah);
                       System.out.println(blah.getNodeType());
                    if(blah.hasChildNodes()){
                         System.out.println("child nodes present: "+blah.getChildNodes());
                         Node check = (Node) blah.getChildNodes();
                         System.out.println("node type: "+check.getNodeType());
                         if (check.getNodeType()==Node.TEXT_NODE){
                              System.out.println("text nodes present");
                         else{
                              System.out.println("text nodes ARENT present");
                         }

    Here is a little helper class I use when parsing DOM via Xerces. May not work equally well for jDOM or other implementations.
    final public class XmlHelper extends Object {
         // Class Variables //
         /** TODO Consider moving this to an interface with constants */
         static final public String XML_TAG_ROOT = "document";
         // Constructors //
          * Default constructor.
         public XmlHelper() {
              super();
         // Static Methods //
         static public Document newDocument()
              throws ConfigurationException {
              try {
                   DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   return builder.newDocument();
              catch (ParserConfigurationException configure) {
                   throw new ConfigurationException("Error instantiating DOM XML parser", configure);
         static public Document parse(InputStream in)
              throws ConfigurationException, IOException, ParseException {
              try {
                   DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   return builder.parse(in);
              catch (ParserConfigurationException configure) {
                   throw new ConfigurationException("Error instantiating DOM XML parser", configure);
              catch (SAXException parse) {
                   throw new ParseException("Error SAX parsing XML input stream", parse);
         static public Document parse(String uri)
              throws ConfigurationException, IOException, ParseException {
              try {
                   DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   return builder.parse(uri);
              catch (ParserConfigurationException configure) {
                   throw new ConfigurationException("Error instantiating DOM XML parser", configure);
              catch (SAXException parse) {
                   throw new ParseException("Error SAX parsing XML uri '" + uri + "'", parse);
         static public String serialize(Document target)
              throws IOException, ConfigurationException, TransformationException {
              ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
              serialize(target, byteOut, true);
              return byteOut.toString();
         static public void serialize(Document document, OutputStream target)
              throws IOException, ConfigurationException, TransformationException {
              serialize(document, target, false);          
         static public void serialize(Document document, OutputStream target, boolean indent)
              throws IOException, ConfigurationException, TransformationException {
              try {
                   Transformer transformer = TransformerFactory.newInstance().newTransformer();
                   if (indent)
                        transformer.setOutputProperty(OutputKeys.INDENT, "yes");
                   transformer.transform(new DOMSource(document), new StreamResult(target));
              catch (TransformerConfigurationException configure) {
                   throw new ConfigurationException("Error instantiating XML transformer", configure);
              catch (TransformerException transform) {
                   /** @todo Need to write a generic transformation or serialization exception */
                   throw new TransformationException("Error transforming XML", transform);
         static public Element getChildElement(Element parent, String name) {
              Element child = null;
              if (parent != null) {
                   NodeList childNodes = parent.getElementsByTagName(name);
                   switch (childNodes.getLength()) {
                        case 0:
                             System.err.println("XML element <" + parent.getNodeName() + ">" +
                                  " has zero child nodes <" + name + "> (expecting one node)");
                        case 1:
                             child = (Element) childNodes.item(0);
                             break;
                        default:
                             child = (Element) childNodes.item(0);
                             /** @todo Consider implementing a "Warning Log" for errors such as these rather than sys.err */
                             System.err.println("XML element <" + parent.getNodeName() + ">" +
                                  " has " + childNodes.getLength() + " child nodes <" + name + "> (expecting only one)");
              return child;
         static public List getAllChildElements(Element parent, String name) {
              List elements = null;
              if (parent != null) {
                   elements = Collections.synchronizedList(new ArrayList());
                   NodeList childNodes = parent.getChildNodes();
                   for (int current = 0; current < childNodes.getLength(); current++) {
                        Node node = childNodes.item(current);
                        if ((node instanceof Element) && node.getNodeName().equals(name)) {
                             elements.add(node);
              return elements;
         static public String getChildElementValue(Element parent, String childName) {
              Element child = getChildElement(parent, childName);
              return child == null ? null : getElementValue(child);
         static public String getElementValue(Element parent) {
              NodeList nodes = parent.getChildNodes();
              int current = 0;
              int length = nodes.getLength();
              while (current < length) {
                   Node node = nodes.item(current);
                   if (node instanceof Text) {
                        String value = node.getNodeValue();
                        if (value != null)
                             return value.trim();
                   current++;
              return "";
    }- Saish

  • Carriage Returns in XSLT output

    I need to output a text file with CRLF characters at the end of each line. I've explicitly put both characters into the XSLT file ( &lt;xsl:text&gt;&amp;#xD;&amp;#xA;&lt;/xsl:text&gt; ) but the default oracle.xml.parser.v2 in JDeveloper keeps converting the CR to LF. How can I force the parser to output the CR?

    This is incorrect. You can tell the processor to keep and output whitespace nodes if you use the character encodings (&amp;#xA; &amp;#xD; &amp;#x20; &amp;#x9;) and the output method is text. I am getting the correct output for space-only nodes (&amp;#x20;) and the linefeed character (&amp;#xA;). I am also getting a whitespace-only character for the carriage return (&amp;#xD;) node, it is just the <em>wrong</em> character - the parser is converting it to &amp;#xA;, so I am getting two linefeed characters where my stylesheet specifies &amp;#xD;&amp;#xA;.

  • XSLT - New Line/Carriage Return not displaying when deployed

    Hello everyone,
    I have an XSL Style Sheet that is supposed to transform an XML into plain text using Oracle SOA 11g BPEL transformation. The plain text transformation is working fine, but whenever I try to add a new line or carriage return, the text output doesn't reflect that. I've tried several ways of adding the line break but none of them have worked. This is the XSLT I'm using for testing purposes:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:oracle:b2b:X12/V4010/850" version="1.0">
    <xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
    <xsl:template match="/a:Transaction-850">
    <!-- New line -->
    <xsl:variable name='newline'><xsl:text>
    </xsl:text></xsl:variable>
    <xsl:value-of select="a:Internal-Properties/a:Data-Structure/a:Property[@Name='InterchangeUsageIndicator']" />
    <xsl:text>&#xd;</xsl:text>
    <xsl:value-of select="$newline" />
    <xsl:text>&#xA;</xsl:text>
    <xsl:text>&#13;</xsl:text>
    <xsl:text>&#10;</xsl:text>
    <xsl:text>2000ITITM</xsl:text>
    </xsl:template>
    </xsl:stylesheet>
    When I try it out in an online XSLT test tool, it gives the output as expected:
    P
    2000ITITM
    When I deploy the composite, I noticed that the XSLT in the MDS repository ignores the line breaks, *#xAs, etc. and just closes the <xsl:text/> tags:
    <?xml version='1.0' encoding='UTF-8'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:oracle:b2b:X12/V4010/850" version="1.0">
    <xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
    <xsl:template match="/a:Transaction-850">
    <xsl:variable name="newline">
    <xsl:text/>
    </xsl:variable>
    <xsl:value-of select="a:Internal-Properties/a:Data-Structure/a:Property[@Name='InterchangeUsageIndicator']"/>
    <xsl:text/>
    <xsl:value-of select="$newline"/>
    <xsl:text/>
    <xsl:text/>
    <xsl:text>2000ITITM</xsl:text>
    </xsl:template>
    </xsl:stylesheet>
    And so, because of that, it just gives me the following output:
    P2000ITITM
    I have no idea why it's ignoring the new line characters, so any guidance would be appreciated.
    Thank you all for your help and time!
    Edit: I tried concatenating as follows:
    <xsl:value-of select="concat('36','&#xA;')"/>
    <xsl:value-of select="concat('24','&#xD;')"/>
    ...which shows up as is when I look at it in the MDS repository, however the text output still shows no line breaks...
    Message was edited by: dany36

    Ah I'm such a newbie. I was able to get it displayed by doing the following:
    <xsl:variable name="newline" select="'&#xD;&#xA;'" />
    This would show up correctly in the MDS repository, too.

  • In SMARTFORMS when openee a Text Node,   Giving a Short Dump

    Hi
    I am getting Short Dump in SMARTFORMS Transaction, when ever I opened a Text Node and made some changes in it.
    With out opening a Text Node I can able to change and activate the SmartForm.
    But if I open a Text Node I can able to make changes in the Text Node but later if i click on any other Node, it is giving a Short Dump.
    But all other systems in my office are working fine.
    I have tried the Utilities->Settings-> and changed the editor also. 
    I have also Installed the SAPGUI once again for this Issue. But still I am getting the same problem.
    Can anyone Please help me on this Issue.
    I am sending the error enalysis of the Short Dump.
    Error analysis
        Short text of error message:
        Control Framework : Error processing control
        Long text of error message:
         Diagnosis
             An error occurred when the system tried to process the commands
             from the Automation Queue on the presentation server.
             There are several possible reasons for this:
             - The installation of the SAP GUI on the presentation server is
             faulty or obsolete.
             - There is an error in the application program
             - There is an error in the SAPGUI or an integrated control
         Procedure
             1. Make sure that you have imported the appropriate Support
             Package, the current kernel, and GUI patch for the release of your
             system
             2. Check whether the error occurs locally on one or a few PCs, or
             generally on all PCs. Note whether the error only occurs for some
             users, for example because of a specific Customizing setting.
             If it only occurs locally, this suggests an installation problem
             with the PC. Check the installation; if necessary, reinstall the
             software. In the dump, search for the SY-MSGLI field, since it may
             point to the cause of the error.
             3. Activate the Automation Trace (in accordance with SAP Note
             158985).
             4.Start the transaction and continue until the screen immediately
             before the dump.
             5. From the System -> Utilities menu, choose Autom. Queue,
             Synchronous Processing.
             The status bar of the GUI displays the text:
                "Automation synchron flush mode on"
             6. If you now proceed with the application, the short dump will
             display the ABAP call that caused the error; the Automation Trace
             will contain the error on the presentation server.
             7. If necessary, load the short dump and trace files on to
             sapservX, so that SAP can analyze them.
        Technical information about the message:
        Message class....... "CNDP"
        Number.............. 006
    Thanks in Advance.

    Hi
    I think dump is because of SAP GUI. If you are ECC 6.0 then install SAP GUI 710 with patch level  2 or more and check
    Regards
    Shiva

  • The text which is in text node is not displaying in output in smartforms

    Hi,
      In smartforms i created a text node and entered some text like following.
         Target Quantity               60000001     60000002          
         Scheduled Quantity               60000003     60000004               
         So far delivered Quantity          60000005     60000006
         Last delivered Quantity          60000007     60000008
          Delivery Schedule Details
    the text which i entered as above in the text node is not displaying.It is in main area.

    Hi
    if u are using table or template inside the main window
    then just mention the position of the text element
    goto text element - output options- output structure tab----give line and column no.
    Thanks
    krushna

  • Text Formating/Carriage Return in VC

    Hi All,
    <b>Background:</b> we are using visual composer (VC) to display BI reports on portal. with that an additional functionality we are providing is commentary, i.e. user can save comments on report to view later.
    <b>Problem:</b> we are able to do the task but the problem is user can enter text but it is saved without any carriage returns and line feeds. On retrieval, it gives back all text in a single line and remove all paragraphic arrangements.
    I would really appreciate the earliest reply.
    Regards,
    Shabbar

    Hi basheer
    I thing u ,didnt get teh core issue
    Actually the issue is ,
    In VC , Text Editior. i type some message
    IN Text_Editor
                   HI BASHEER  [enter]
                   HOW ARE YOU [enter]
                   Good to See your Reply [enter]
    Here the issue is, while i pass this Text message to R/3 system
    the system will read the message as
    HI BASHEER  HOW ARE YOU Good to See your Reply
    Here SAP R3 doesnt know how to handle the [enter key ]carriage return...
    so it take all the message in single line. but i want them as the way i enter in text editor.
    i would like to know how to handle this in Backend...
    Thanks

  • I am losing my carriage returns when sending emails. How to keep? uses SMTP Email MIME Text Content-Type.vi

    I am losing my carriage returns when sending emails using the Internet email vi's.
    All carriage returns are stripped out and I get one long word wrapped paragraph.
    I want to avoid html.
    Ideally, using the vi's for rich text would be perfect, but a simple text message with carriage returns and line feeds in any font ok. 
    uses SMTP Email MIME Text Content-Type.vi
    i have tried text/plain, text/html, and mixed yada something

    You need to use Line feed constant and then use concatenate function.See the screen shot.
    Naqqash
    Attachments:
    Using Line feed.png ‏15 KB

  • How can labview update the string control (text-edit box) after we have pressed the carriage return key on the keyboard during text-editing within that box?

    Dear readers,
    I have been trying to work out how to get labview to detect the event when a 'string' control has been modified, where the user has finished editing the string either by 1) pressing the enter key on the keyboard, or by 2) taking the focus away from the string control again. For example.. if I use the mouse to click on the string control and then I type 1234 into the box, I would like to have a routine that does something once the user hits the Enter key of the keyboard, or when the user takes the focus away from the string control again by clicking on something else. I would like the routine to respond even when the user didn't change anything in the text box (such as when we mouse-click on the edit box to go into edit mode, and then mouse-click on something else to remove the focus with no changes to the contents in edit-box).
    The purpose of my routine is to have a edit-box for a user to change for example the centre-frequency of a vector network analyser, so that the centre-frequency of the network analyser can change once the user finishes entering a new value in the text-edit box by hitting Enter key after the number is keyed in. Even if the user has clicked on the edit box, but changes their mind by mouse-clicking on something else to remove focus from the edit box, I would still like labview to detect the event when the control loses focus, so that the centre frequency can be updated anyway (to the same value that was already in the edit box).
    So far, I've tried set the string control option to 'limit to single line', so that I can try to scan for a carriage return .. '\n' ... pattern in the string. Unfortunately this doesn't work because labview doesn't seem to attach the '\n' to the end of that single line.
    Could someone please suggest ways to set a flag when a user hits Enter during text-edit mode of a string control, or when focus has been removed from the string control?
    While I've only described my problem for controlling a single control parameter on the gpib device, I'd like to make this feature work so that I can do the same kind of thing with other control parameters as well.
    Thanks so much in advance.
    Kenny

    Hi Kenny,
    instead of using the event structure, you can directly achieve to what you want by the KeyFocus property of the string control.
    - Enable Limit to single line option
    - Create the property KeyFocus in read mode and connect an indicator
    Each time you click on the string to modify it KeyFocus is True; when you click away or hit Enter KeyFocus is False.
    You can toggle your settings when KeyFocus changes from True to False.
    Alberto

  • 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.

Maybe you are looking for

  • Data Federator XI 3.1 - best practices

    We are planning of rolling out a data federator setup in our company and I'm looking for some best practices. The major question I have is, do we install the data federator server components on a dedicated server or can/should we install the componen

  • E71 can receive, but cannot send email to POP mail...

    I have an E71-1. I am in the UK and on '3'. Firmware version is 100.07.76  My problem is I cannot send email to my POP server. It goes to the Outbox then is reported as Queued. Trying to force a send does not have any effect. It would send emails unt

  • Why is the Profile Manager web portal inaccessible after update to 3.2.1 ?

    We run the Profile Manager in OS X as an MDM. We also use the Device Enrollment Program. After updating to 3.2.1, the web portal for Profile Manager became inaccessible, and DEP checkbox in Profile Manager became unchecked. I've attempted to re-enrol

  • How do I set up multiple Creative Cloud accounts for the same login?

    I have a number of Macs of various flavors.  I want to install Creative Cloud apps on four of these units. I have a subscription currently which I am using for my MBP 17, and a 27" iMac. I want to add an account for my MB Air and Mac Pro, and I'm wil

  • Have a CSS question

    I have a picture i am trying to put inside a div that has a class already which makes pictures have a frame around them when i insert them into it, which is fine for the main image but i am trying to add an extra image in there and i dont want that f