<?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 CDS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926858#M1891349</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 do it by this way....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;1200&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; concat&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'-'&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TEXT&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; Column_Name&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0074; font-size: 10pt;"&gt;-Amol&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 07:11:01 GMT</pubDate>
    <dc:creator>amol_samte</dc:creator>
    <dc:date>2015-02-18T07:11:01Z</dc:date>
    <item>
      <title>Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926856#M1891347</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 am creating CDS view and i have requirement like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one field suppose 1200 and other field is TEXT&lt;/P&gt;&lt;P&gt;The output should be 1200-TEXT&lt;/P&gt;&lt;P&gt;I am using concat(1200, '-', TEXT) but its not accepting.&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;Charu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jasmin Gruschke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 16:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926856#M1891347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-17T16:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926857#M1891348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charu,&lt;BR /&gt;please have a look at the ABAP Language Documentation (&lt;A href="http://help.sap.com/abapdocu_740/en/index.htm?file=ABENCDS.htm" title="http://help.sap.com/abapdocu_740/en/index.htm?file=ABENCDS.htm"&gt;ABAP Keyword Documentation).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;CONCAT(arg1, arg2) only takes two arguments, so you might need to use the function twice like CONCAT(arg1, CONCAT(arg2, arg3)).&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 07:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926857#M1891348</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-02-18T07:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926858#M1891349</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 do it by this way....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;1200&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; concat&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'-'&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;TEXT&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; Column_Name&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0074; font-size: 10pt;"&gt;-Amol&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 07:11:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926858#M1891349</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2015-02-18T07:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926859#M1891350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jasmin, on the concat function itself, is there anyway to get a space/blank character between string values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. this strips out the blank space, is there anyway to protect it/force it in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;concat(b.mc_name1,concat('&amp;nbsp; ',b.mc_name2)) as mc_fname&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Even the replace function won't inject it below, the concat does add it in the '-' value, but the replace strips it out. Not sure if that's correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(concat(b.mc_name1,concat('-',b.mc_name2)),'-',' ') as mc_fname&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 10:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926859#M1891350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T10:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926860#M1891351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This would place a blank between Part_1 and Part_2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;REPLACE&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; CONCAT&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; CONCAT&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'Part_1'&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'- -'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;),&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'Part_2'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;),&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;'-'&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 10pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0074; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 10pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 11:19:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926860#M1891351</guid>
      <dc:creator>christian_seitel</dc:creator>
      <dc:date>2015-05-29T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926861#M1891352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Christian, Yes.. it does. Nice workaround. Thank you for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice to see the pipe | for concat similar to what we have on the HANA db, more flexible that the two argument concat function in cds. But for now, this helps me out, so thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 11:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926861#M1891352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-29T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in CDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926862#M1891353</link>
      <description>&lt;P&gt;Top Workaround!!&lt;/P&gt;&lt;P&gt;BR Bernd&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 09:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concatenate-in-cds/m-p/10926862#M1891353</guid>
      <dc:creator>bernd_h</dc:creator>
      <dc:date>2021-08-25T09:07:46Z</dc:date>
    </item>
  </channel>
</rss>

