<?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: Add 2 strings together in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413365#M198999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you try to use &amp;amp; as an operator for concatenation of strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, &amp;amp; and + are not defined as operators for character type variables. &amp;amp; is not defined as an operator in ABAP. AFAIK &amp;amp; is not used in ABAP for anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the other guys recommended, you have to use concatenate for this purpose. But note that concatenate will remove leading and trailing blanks from the strings concatenated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the blanks, then use offsets, i.e. &lt;/P&gt;&lt;P&gt;tot_str = 'ABCDEF'.&lt;/P&gt;&lt;P&gt;tot_str+6 = substr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Jul 2006 09:37:52 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2006-07-22T09:37:52Z</dc:date>
    <item>
      <title>Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413358#M198992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a really weird error message here:&lt;/P&gt;&lt;P&gt;say I define 2 dta type c objects:&lt;/P&gt;&lt;P&gt;data: tot_str(50) type c,&lt;/P&gt;&lt;P&gt;      sub_str(20) type c.&lt;/P&gt;&lt;P&gt;then I do&lt;/P&gt;&lt;P&gt;    tot_str = 'ABCDEF' &amp;amp; substr&lt;/P&gt;&lt;P&gt;assuming both tot_str and sub_str are already initialized.&lt;/P&gt;&lt;P&gt;However, the error message I got is:&lt;/P&gt;&lt;P&gt;Incorrect arithmetic or bit expression: Instead of "&amp;amp;", an operator (+,	-, *, /, ... or BIT-AND, BIT-XOR, BIT-OR) was expected.)&lt;/P&gt;&lt;P&gt;Why is it so? I thought &amp;amp; is the standard concatenation character for ABAP. And BTW, when I changed to +, it will give me a run-time error saying that the 2 strings can not be added....&lt;/P&gt;&lt;P&gt;Thanks a lot!&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;Anyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 20:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413358#M198992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413359#M198993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using cancatenate str1 str2 into Tot_string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 20:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413359#M198993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T20:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413360#M198994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wa_test(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate tot_str sub_str into wa_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 20:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413360#M198994</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-07-21T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413361#M198995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONCATENATE 'ABCDEF' SUBSTR INTO TOT_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above should resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can surely use SEPARATED BY SPACE or any other delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 20:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413361#M198995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T20:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413362#M198996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyi, you can use the &amp;amp; symbol only when working with literals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;str = 'ABCDEF' &amp;amp; 'GHIJKL'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using variables, you should use CONCATENATE.  The + sign will not help you as it does in java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;concatenate 'ABCDEF' substr into tot_str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 21:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413362#M198996</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-21T21:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413363#M198997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: tot_str(50) type c,&lt;/P&gt;&lt;P&gt;sub_str(20) type c.&lt;/P&gt;&lt;P&gt;then I do&lt;/P&gt;&lt;P&gt;tot_str = 'ABCDEF' &amp;amp; substr&lt;/P&gt;&lt;P&gt;this is your codes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;ANSWER&lt;/P&gt;&lt;P&gt;data: tot_str(50) type c,&lt;/P&gt;&lt;P&gt;sub_str(20) type c,&lt;/P&gt;&lt;P&gt;XYZ(20) TYPE C VALUE 'ABCDEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ONCATENATE XYZ sub_str INTO TOT_STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2006 21:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413363#M198997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-21T21:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413364#M198998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this simple one,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: first(10),middle,last(10),name(21).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/41 first color 7,middle color 7,last color 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate first middle last into name separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/41 first color 6,middle color 6,last color 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best of luck,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kcc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 08:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413364#M198998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T08:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413365#M198999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you try to use &amp;amp; as an operator for concatenation of strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, &amp;amp; and + are not defined as operators for character type variables. &amp;amp; is not defined as an operator in ABAP. AFAIK &amp;amp; is not used in ABAP for anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the other guys recommended, you have to use concatenate for this purpose. But note that concatenate will remove leading and trailing blanks from the strings concatenated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need the blanks, then use offsets, i.e. &lt;/P&gt;&lt;P&gt;tot_str = 'ABCDEF'.&lt;/P&gt;&lt;P&gt;tot_str+6 = substr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 09:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413365#M198999</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-07-22T09:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413366#M199000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;i&amp;gt;Unfortunately, &amp;amp; and + are not defined as operators for character type variables. &amp;amp; is not defined as an operator in ABAP. AFAIK &amp;amp; is not used in ABAP for anything.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; is used in ABAP.  It is used to put two or more literals into a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.

data: str type string.


str = 'This is one part of the string' &amp;amp;
      ' This is another part of the string' &amp;amp;
      ' And here is another part of the string'.

      write:/ str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 16:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413366#M199000</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-22T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413367#M199001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OOPS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, Rich, you are right and I learned something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched all SAP Help material available online but could not find any reference to operator &amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a good replacement for concatenate as it does not remove leading and trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since when do they have &amp;amp; in ABAP?&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;Clemens Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I just saw that it's for literals only - so not much more than useless &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Clemens Li&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 17:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413367#M199001</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-07-22T17:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413368#M199002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for their replies. &lt;/P&gt;&lt;P&gt;However, I was kind of confused with Clemen's post, so if I am correct here, it means that the &amp;amp; is used to concatenate to string literals, i.e.,&lt;/P&gt;&lt;P&gt;'abcd'&amp;amp;'efgh' is acceptable in ABAP, and if my understanding is correct, this &amp;amp; is already out-dated and no longer used.&lt;/P&gt;&lt;P&gt;but concatenate is used in concatention of strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say for example&lt;/P&gt;&lt;P&gt;concatenate 'abcd'  str1  str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the problem with concatenate is that it will remove all the leading blank spaces. &lt;/P&gt;&lt;P&gt;Is my understanding correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot guys!&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;Anyi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;lt;i&amp;gt;Unfortunately, &amp;amp; and + are not defined as&lt;/P&gt;&lt;P&gt;&amp;gt; operators for character type variables. &amp;amp; is not&lt;/P&gt;&lt;P&gt;&amp;gt; defined as an operator in ABAP. AFAIK &amp;amp; is not used&lt;/P&gt;&lt;P&gt;&amp;gt; in ABAP for anything.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &amp;amp; is used in ABAP.  It is used to put two or more&lt;/P&gt;&lt;P&gt;&amp;gt; literals into a string.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.
&amp;gt; 
&amp;gt; data: str type string.
&amp;gt; 
&amp;gt; 
&amp;gt; str = 'This is one part of the string' &amp;amp;
&amp;gt;       ' This is another part of the string' &amp;amp;
&amp;gt;       ' And here is another part of the string'.
&amp;gt; 
&amp;gt;       write:/ str.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 17:12:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413368#M199002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T17:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add 2 strings together</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413369#M199003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anyi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are right. I found it in SAP help hidden somewhere in the data objects section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"If you want to enter a character literal in the ABAP Editor that is longer than a single editor line, ABAP syntax allows you to enter several character literals and link them using the &amp;amp; character. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this was just a crutch to bypass the (meanwhile obsolete) editor line length limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I the section "Processing Character Strings", chapter "Concatenating Character Strings", they say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The CONCATENATE statement combines two or more separate strings into one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt; INTO &amp;lt;c&amp;gt; [SEPARATED BY &amp;lt;s&amp;gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement concatenates the character fields &amp;lt;c1&amp;gt; to &amp;lt;cn&amp;gt; and assigns the result to &amp;lt;c&amp;gt;. The system ignores spaces at the end of the individual source strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition SEPARATED BY &amp;lt;s&amp;gt; allows you to specify a character field &amp;lt;s&amp;gt; which is placed in its defined length between the individual fields."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means that all leading and trailing spaces will disappear except the ones in the separator string &amp;lt;sep&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it depends on the result you want as how to do the concatenation. if you want a fixed position regardless of blanks, then you must work with offset and length addition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 18:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/add-2-strings-together/m-p/1413369#M199003</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-07-22T18:37:02Z</dc:date>
    </item>
  </channel>
</rss>

