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: 2020-02-18T07:25:04+05:30

273 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements