<?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: Concat function or equivalent for CDS view? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439494#M1846428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malcolm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see the message ID, you'd have to click in the problems view on the "drop down" icon. There you can select "Configure Columns..." and move "ID" from the "Hidden" to "Shown" columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But comming to your issue. The CONCAT function is not allowed or let's say supported at that position. You can use a view on view as a workaround, i.e. a intermediat view "z_intermed_view" having the CONCAT('S', a.mc_short ) as prefixed_with_s in the projection list and then do a left outer join to z_intermed_view with prefixed_with_s in the ON condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 11:38:13 GMT</pubDate>
    <dc:creator>jasmin_gruschke</dc:creator>
    <dc:date>2015-06-15T11:38:13Z</dc:date>
    <item>
      <title>Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439481#M1846415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to create a CDS view and looking to combine multiple character fields (e.g. first_name + last_name) and am wondering if this is possible? Am on CRM NW 7.4 SP5 on HANA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the arithmetic function gives me the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data type CHAR is currently not supported in an arithmetic expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the official documentation here, it doesn't appear to be included?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;I can always create a AMDP or even a HANA native view, just wondering if anyone has come across the same issue and found a solution within CDS view?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Sean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 14:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439481#M1846415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-19T14:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439482#M1846416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;Hi Sean,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;there's no concatenate function as of 7.4 SP5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;A workaround in OpenSQL (if that's the combination you use), you could use the columns of your choice in the projection list like (I use literals in the example for simplicity):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0074; font-size: 14pt; font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: green; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;'a'&lt;/SPAN&gt; &lt;STRONG style="color: #7f0074; font-size: 14pt; font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"&gt;as&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt; a&lt;/SPAN&gt;&lt;STRONG style="color: #7f0074; font-size: 14pt; font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"&gt;,&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: green; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;'b'&lt;/SPAN&gt; &lt;STRONG style="color: #7f0074; font-size: 14pt; font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"&gt;as&lt;/STRONG&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt; b&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #7f0074; font-size: 14pt; font-family: Consolas; mso-fareast-font-family: 'Times New Roman';"&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;and concatenate later by means of OpenSQL:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;BR /&gt;select &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;a&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;b&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt; from &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt;&amp;lt;cds_view&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: Consolas; font-size: 14pt; mso-fareast-font-family: 'Times New Roman';"&gt; into ….&lt;/SPAN&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;However, if you want to use the view in an ALV this does not help you, I know…&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: olive; font-family: 'Calibri','sans-serif'; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi;"&gt;&amp;nbsp; Jasmin&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 07:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439482#M1846416</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2014-06-20T07:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439483#M1846417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jasmin, thanks for the confirmation and work around solution.&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Sean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 08:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439483#M1846417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-20T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439484#M1846418</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;Currently we're at support pack 7 for AS ABAP. But seems that it's still not possible right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I created an CDS view and wanted to use it within a FOR ALL ENTRIES comparing a documentnr and document item nr. With using both of the fields the performance was really low. But when I remove the document item nr, it was 8 times faster. So I wanted to create one field with the document and item number concatenated, so that I only have 1 field to compare within the FOR ALL ENTRIES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 17:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439484#M1846418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-08T17:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439485#M1846419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bart,&lt;BR /&gt;the discussion was about concatenation of fields using Open SQL syntax, which is possible as of AS ABAP 7.4 SP05.&lt;BR /&gt;However, as I understand, you are asking about concatenation in a CDS view, right? This is possible, yet only as of Support Package 08.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 05:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439485#M1846419</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2014-10-09T05:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439486#M1846420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will it also be possible to use such syntax in joins (concatenations, substrings,...)? I would like to do something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName: 'ZV_CDS_INVC' &lt;/P&gt;&lt;P&gt;define view zcdsv_rbkp_bkpf as &lt;/P&gt;&lt;P&gt;select from rbkp as a inner join bkpf as b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on CONCAT(a.belnr,a.gjahr) = b.awkey&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;key a.belnr,&lt;/P&gt;&lt;P&gt;key a.gjahr }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do this directly on the database, this is not a problem.&amp;nbsp; In Open SQL I have to solve this with a for all entries and it would be much easier if I could use CDS for this (just finished the OpenSap course on Abap development on Hana and ready to go &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1063/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439486#M1846420</guid>
      <dc:creator>freek_cavens2</dc:creator>
      <dc:date>2014-10-27T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439487#M1846421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this functionality will surely come, but it will take some time until available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until then you can help yourself by creating two views: In the first view build a new column with the concatenation and then use this view and its column in a second view for the join condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439487#M1846421</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2014-10-28T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439488#M1846422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the information.&amp;nbsp; The work-around is definitely useful. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439488#M1846422</guid>
      <dc:creator>freek_cavens2</dc:creator>
      <dc:date>2014-10-28T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439489#M1846423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;is your original request solved by the CONCAT function within the select list: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;CONCAT(user.first_name, user.last_name) as ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I was wondering the same way as you but this was the only thing that I found with a missing space ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BEST, Klaus&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 09:44:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439489#M1846423</guid>
      <dc:creator>klaus_herter</dc:creator>
      <dc:date>2015-01-08T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439490#M1846424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;BR /&gt;yes, CONCAT is available as of SP8, see &lt;A _jive_internal="true" href="https://answers.sap.com/community/abap/blog/2014/10/10/abap-news-for-740-sp08--abap-core-data-services-cds"&gt;http://scn.sap.com/community/abap/blog/2014/10/10/abap-news-for-740-sp08--abap-core-data-services-cds&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 11:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439490#M1846424</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-01-08T11:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439491#M1846425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jasmin,&lt;/P&gt;&lt;P&gt;we're on SP9 and I have a need to use CONCAT but I'm getting an error saying "this function or expression is not supported at this point". Any idea why that would be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Malcolm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439491#M1846425</guid>
      <dc:creator>former_member186444</dc:creator>
      <dc:date>2015-06-15T08:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439492#M1846426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malcolm,&lt;BR /&gt;you are trying to use it in a CDS View (DDL Source) in the ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where exactly do you try to use it? In the projection list, the ON condition of a JOIN/ASSOCIATION, in the WHERE clause, ...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the exact error message, can you please paste it here (maybe even including the TRMSG message number - you can find it in the problems view after adding in the problems view this dedicated column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439492#M1846426</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-06-15T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439493#M1846427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jasmin,&lt;/P&gt;&lt;P&gt;yes, CDS View in the ON condition of a JOIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/725070" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the error is "this function or expression ('CONCAT') is not supported at this point". I opened the problems view but can't see a message number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Malcolm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 09:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439493#M1846427</guid>
      <dc:creator>former_member186444</dc:creator>
      <dc:date>2015-06-15T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439494#M1846428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Malcolm,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see the message ID, you'd have to click in the problems view on the "drop down" icon. There you can select "Configure Columns..." and move "ID" from the "Hidden" to "Shown" columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But comming to your issue. The CONCAT function is not allowed or let's say supported at that position. You can use a view on view as a workaround, i.e. a intermediat view "z_intermed_view" having the CONCAT('S', a.mc_short ) as prefixed_with_s in the projection list and then do a left outer join to z_intermed_view with prefixed_with_s in the ON condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;&amp;nbsp; Jasmin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 11:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439494#M1846428</guid>
      <dc:creator>jasmin_gruschke</dc:creator>
      <dc:date>2015-06-15T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439495#M1846429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Jasmin. That worked well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439495#M1846429</guid>
      <dc:creator>former_member186444</dc:creator>
      <dc:date>2015-06-16T08:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439496#M1846430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have most recently come up with another issue with the concat function.&amp;nbsp; I have created a view to solve the problem above (the concat to fix the RBKP-BKPF join) as per your work around.&amp;nbsp; The problem that I'm now experiencing is that, while the concatenated field I created contains the key fields belnr and gjahr from the RBKP table, when I use this field in a query, no index is used on the database.&amp;nbsp; So my next question is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- How can I get the query/CDS view to use an index on the underlying table?&lt;/P&gt;&lt;P&gt;- Can I create an index on the new column itself on the CDS view?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My view is this (I only kept the relevant columns)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@AbapCatalog.sqlViewName: 'zrbkp_concat'&lt;/P&gt;&lt;P&gt;@ClientDependent: true&lt;/P&gt;&lt;P&gt;@AbapCatalog.compiler.CompareFilter: true&lt;/P&gt;&lt;P&gt;@AccessControl.authorizationCheck: #CHECK&lt;/P&gt;&lt;P&gt;@EndUserText.label: 'CDS view on RBKP with BELNR/GJAHR concatenation'&lt;/P&gt;&lt;P&gt;define view Zcds_Rbkp_Concat as select from rbkp {&lt;/P&gt;&lt;P&gt;&amp;nbsp; key belnr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; key gjahr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; concat(belnr, gjahr) as awkey&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439496#M1846430</guid>
      <dc:creator>freek_cavens2</dc:creator>
      <dc:date>2016-02-19T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Concat function or equivalent for CDS view?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439497#M1846431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can neither build an index for a CDS view column nor can you force the database to reverse the concat function (when using the concatenated field in an ON condition or a WHERE condition) as the function is not bijektiv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rule of thumb: avoid expressions for key fields!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 15:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/concat-function-or-equivalent-for-cds-view/m-p/10439497#M1846431</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2016-02-19T15:44:00Z</dc:date>
    </item>
  </channel>
</rss>

