Using SAP Gateway service in SAP Web project


Please executes the below steps to get the services added −

  • Define service in your manifest.json file?
"sap.app": {
   [...],
   "dataSources": {
      "mainService": {
          "uri": "Path of your service",
          "type": "OData",
         "settings": {
            "odataVersion": "X.X",
            "localUri":
            "localService/metadata.xml"
         }
      }
},
[...]
  • The model definition should be implemented in your manifest.json file?

"models": {
   [...],
   "": {
      "dataSource": "mainService",
      "settings": {
         "metadataUrlParams": {
            "sap-documentation": "heading"
         },
        "defaultBindingMode": "TwoWay"
      }
   }
},

Updated on: 18-Feb-2020

189 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements