<?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: Concatenate in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548697#M1429216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zrich_0001.

data: str1 type string.
data: str2 type string.
data: str3 type string.
data: str4 type string.

str1 = 'This'.
str2 = 'That'.
str3 = 'The other'.


Concatenate str1 str2 into str4 separated by space.
concatenate str4 ',' into str4.
Concatenate str4 str3 into str4 separated by space.

write:/ str4.&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>Wed, 10 Feb 2010 05:29:35 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2010-02-10T05:29:35Z</dc:date>
    <item>
      <title>Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548695#M1429214</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;  i need to concatenate  4 fields into  a string with space but i can't use separated by space as it creates extra space in between 2 fields .  &lt;/P&gt;&lt;P&gt;The statement i am using is  &lt;/P&gt;&lt;P&gt;Concatenate  str1 str2 ',' str3 into string .  &lt;/P&gt;&lt;P&gt;Here i need to have space between str1 and str2 and before str3 . But if i use separated by space it adds space after comma also i tried using the constant SPACE and also ' ' but its not working . Please suggest  .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548695#M1429214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548696#M1429215</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;concatenate str1 str2 into string separated by space.&lt;/P&gt;&lt;P&gt;then concatenate  string and ','  into string.&lt;/P&gt;&lt;P&gt;then concatenate str3 and string into string separated by space.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548696#M1429215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548697#M1429216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YOu can do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zrich_0001.

data: str1 type string.
data: str2 type string.
data: str3 type string.
data: str4 type string.

str1 = 'This'.
str2 = 'That'.
str3 = 'The other'.


Concatenate str1 str2 into str4 separated by space.
concatenate str4 ',' into str4.
Concatenate str4 str3 into str4 separated by space.

write:/ str4.&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>Wed, 10 Feb 2010 05:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548697#M1429216</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2010-02-10T05:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548698#M1429217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: str1 type string,
      str2 type string,
      str3 type string.

str1 = 'How'.
str2 = 'are'.
str3 = 'you'.


concatenate str1 str2 into str1 SEPARATED BY space.

CONCATENATE str1 ',' str3 into str1.

write: str1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548698#M1429217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548699#M1429218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use two concatenate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here your requirement is not to add a space after the comma. Hence use this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Concatenate str1 str2 ',' into stringextra separated by space.
Concatenate stringextra str3 into New String.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need no space before and after comma then use this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Concatenate str1 str2 into stringextra separated by space.
Concatenate stringextra ',' str3 into New String.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kapil Sharma @ Steria on Feb 10, 2010 6:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548699#M1429218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548700#M1429219</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;You can try below option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Concatenate str1 str2 ',' into str_new separated by space.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then concatenate this variable into new variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Concatenate str_new str3 into string.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will be able to display text like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;str1 str2 ,str3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:38:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548700#M1429219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548701#M1429220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich , Using 3 concatenate statement solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2010 05:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate/m-p/6548701#M1429220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-10T05:49:47Z</dc:date>
    </item>
  </channel>
</rss>

