<?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>Question Re: CAP CDS-Rest like operator missing in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265424#M4594271</link>
    <description>&lt;P&gt;Hi Olena&lt;/P&gt;&lt;P&gt;I'm consuming a oData service.&lt;/P&gt;&lt;P&gt;Package.json&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"dependencies": {
    "@sap/audit-logging": "^3.1.0",
    "@sap/cds": "^3",
    "@sap/cds-odata-v2-adapter-proxy": "^1.4.33",
    "@sap/xsenv": "^3.0.0",
    "@sap/xssec": "^2.2.5",
    "express": "^4",
    "passport": "^0.4.1"
  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;"cds": {
    "requires": {
      "uaa": {
        "kind": "xsuaa"
      },
      "ServiceName": {
        "kind": "odata",
        "model": "srv\\external\\ServiceName",
        "credentials": {
          "destination": "SERVICENAME"
        }
      }
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using a CQL command to call the oData service&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jul 2020 09:21:01 GMT</pubDate>
    <dc:creator>sdebaerd</dc:creator>
    <dc:date>2020-07-06T09:21:01Z</dc:date>
    <item>
      <title>CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaq-p/12265421</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;We use CAP, which calls a custom CDS, when using a filter condition like startswith, this get's translated to an object like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;[
  { ref: [ 'Column' ] },
  'like',
  { func: 'concat', args: [ { val: 'VAL' }, "'%'" ] }
]
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Then a dump occurs with the following error message:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;[2020-07-03T15:27:13.365Z | ERROR | 1810204]: Feature not supported: Method .func of fluent API
[2020-07-03T15:27:13.366Z | ERROR | 1810204]: Error stacktrace: Error: Feature not supported: Method .func of fluent API     at nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:21:15     at Array.forEach (&amp;lt;anonymous&amp;gt;)     at compile (nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:16:31)     at nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:35:23     at Array.map 
(&amp;lt;anonymous&amp;gt;)     at compileNextExpression (nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:35:11)     at nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:19:9     at Array.forEach (&amp;lt;anonymous&amp;gt;)     at compile (nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:16:31)     at nodeapplocation\node_modules\@sap\cds-runtime\lib\cds-rest\cqnToQuery\index.js:35:23&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Also trying to parse, the following command throws different errors, in this set up.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;select column from table where column like 'VAL%'&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;However when running a CAP application, that calls genuine objects residing in a HDB Container, the like works fine.&lt;BR /&gt;To me there seems some functionality missing in the cds-rest library, to support like as an operator.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2020 15:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaq-p/12265421</guid>
      <dc:creator>sdebaerd</dc:creator>
      <dc:date>2020-07-03T15:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265422#M4594269</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;are you consuming an OData or a Rest service?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Olena&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 08:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265422#M4594269</guid>
      <dc:creator>OlenaT</dc:creator>
      <dc:date>2020-07-06T08:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265423#M4594270</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;Do not respond by using the "Answer" section. Responding by commenting ("comment" button) here in the question section.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265423#M4594270</guid>
      <dc:creator>jhodel18</dc:creator>
      <dc:date>2020-07-06T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265424#M4594271</link>
      <description>&lt;P&gt;Hi Olena&lt;/P&gt;&lt;P&gt;I'm consuming a oData service.&lt;/P&gt;&lt;P&gt;Package.json&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;"dependencies": {
    "@sap/audit-logging": "^3.1.0",
    "@sap/cds": "^3",
    "@sap/cds-odata-v2-adapter-proxy": "^1.4.33",
    "@sap/xsenv": "^3.0.0",
    "@sap/xssec": "^2.2.5",
    "express": "^4",
    "passport": "^0.4.1"
  }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE&gt;"cds": {
    "requires": {
      "uaa": {
        "kind": "xsuaa"
      },
      "ServiceName": {
        "kind": "odata",
        "model": "srv\\external\\ServiceName",
        "credentials": {
          "destination": "SERVICENAME"
        }
      }
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using a CQL command to call the oData service&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:21:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265424#M4594271</guid>
      <dc:creator>sdebaerd</dc:creator>
      <dc:date>2020-07-06T09:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265425#M4594272</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;Thank you for the quick response. This is a known limitation on our side, we are planing to support it, but currently there is no timeline on when it will be implemented. &lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Olena&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 12:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265425#M4594272</guid>
      <dc:creator>OlenaT</dc:creator>
      <dc:date>2020-07-06T12:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265426#M4594273</link>
      <description>&lt;P&gt;Thanks for the feedback, Olena!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 13:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265426#M4594273</guid>
      <dc:creator>sdebaerd</dc:creator>
      <dc:date>2020-07-06T13:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265427#M4594274</link>
      <description>&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;see my blogpost in here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/13320866/sap-cap-external-service-filter-startswithendswith.html" target="test_blank"&gt;https://answers.sap.com/questions/13320866/sap-cap-external-service-filter-startswithendswith.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;SO, basically there is the possibility to modify query.SELECT.where properties. I will post my solution soon.&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Rufat&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 08:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/12265427#M4594274</guid>
      <dc:creator>gadirov</dc:creator>
      <dc:date>2021-03-23T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: CAP CDS-Rest like operator missing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/14078909#M4910943</link>
      <description>like operator resolved for cds file ?</description>
      <pubDate>Thu, 17 Apr 2025 10:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-cds-rest-like-operator-missing/qaa-p/14078909#M4910943</guid>
      <dc:creator>RavindraBiradar</dc:creator>
      <dc:date>2025-04-17T10:28:51Z</dc:date>
    </item>
  </channel>
</rss>

