title: SAPUI5: OData V2 returns error "The Data Services Request could not be understood due to malformed syntax"
body: <p>I'm trying to use OData V2 as suggested in this <a href="https://stackoverflow.com/questions/63007122/sapui5-getmodel-returns-undefined-if-called-within-the-same-function-of-setmode#comment111437001_63007122">comment</a>.</p>
  <p>The issue is whenever I use <code>sap.ui.model.odata<em><strong>.v2</strong></em>.ODataModel</code> rather than the deprecated <code>sap.ui.model.odata.ODataModel</code>, I get this error from SAP Gateway Error Log</p>
  <blockquote>
  <p>The Data Services Request could not be understood due to malformed syntax</p>
  </blockquote>
  <p>Controller:</p>
  <pre class="lang-js prettyprint-override"><code>sap.ui.define([
    &quot;sap/ui/core/mvc/Controller&quot;,
    &quot;sap/ui/model/odata/v2/ODataModel&quot;,
    // ...,
  ], function(Controller, ODataModel/*, ...*/) {
    &quot;use strict&quot;;
  </code></pre>
  <p>Here is when I called OData V2:</p>
  <pre class="lang-js prettyprint-override"><code>onPressButton1: function(){
    var vEntityURL = &quot;/CustomerSet(ID='000')&quot;;
    var sServiceUrl = &quot;/Customers_SRV/&quot;;
    var oServiceModel = new ODataModel(sServiceUrl, true);
    oServiceModel.read(vEntityURL, {
      success: function(oData) {
        // ...
      }
    });
  },
  </code></pre>