<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: String Concatenation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552900#M250669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write:/ 'hello'.&lt;/P&gt;&lt;P&gt;write:/ 'world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Sep 2006 10:46:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-04T10:46:34Z</dc:date>
    <item>
      <title>String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552898#M250667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to concatenate string with character new line ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, i have one variable : 'lv_string'&lt;/P&gt;&lt;P&gt;if i write the variable to screen with syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result will be like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;world &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eddhie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 10:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552898#M250667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T10:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552899#M250668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi eddhie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unfortunately &lt;/P&gt;&lt;P&gt;   WRITE statement does not work with NEW LINE character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. At most it will display this new line character &lt;/P&gt;&lt;P&gt;   as #.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will show like this&lt;/P&gt;&lt;P&gt;   hello#world.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. What can be done is that,&lt;/P&gt;&lt;P&gt;   the string can be SPLIT at&lt;/P&gt;&lt;P&gt;   new line character,&lt;/P&gt;&lt;P&gt;   into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Then we can loop at this internal table,&lt;/P&gt;&lt;P&gt;   and use WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 10:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552899#M250668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T10:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552900#M250669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write:/ 'hello'.&lt;/P&gt;&lt;P&gt;write:/ 'world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 10:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552900#M250669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552901#M250670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.
CONSTANTS: C_CR_LF  TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;CR_LF.

CONCATENATE 'helo'
            'world'
            INTO V_STR separated by C_CR_LF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work only if we download it to either presentation server or application server. then only we can see the line break betwen 'HELO' and 'world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your requirement is just to print,&lt;/P&gt;&lt;P&gt;you can use,&lt;/P&gt;&lt;P&gt; write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;  'helo'.&lt;/P&gt;&lt;P&gt;write   &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;    'world'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 10:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552901#M250670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T10:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: String Concatenation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552902#M250671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Amit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, i have tried with CL_ABAP_CHAR_UTILITIES class and the result in the screen will be '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is i want to write the variable to a smartforms. at certain condition the text value will be 'A' and at the other condition the text value should be 'B'. i have used the CL_ABAP_CHAR_UTILITIES class to do that but character '#' will appear instead of NEW LINE CHARACTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately, i'm newbie in smartforms and the documentation about smartforms that i got is not much help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way i can do that in smartforms ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 11:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-concatenation/m-p/1552902#M250671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T11:03:00Z</dc:date>
    </item>
  </channel>
</rss>

