Using SAP Gateway service in SAP Web project

SAP

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"
      }
   }
},
raja
Published on 28-Dec-2017 15:07:28
Advertisements