+

Search Tips   |   Advanced Search

Create an entity

We can create entity remotely through SAP Gateway.

Attribute Mandatory or Optional Description
content Mandatory Defines the properties of the entity. Supports JSON and Atom/XML formatting.


Results

If we use the previous examples, you receive the following response from MobileFirst Server.

{
  "d": {
    "City": "Midland", "Country": "USA", "LanguageCode": "3", "LocalCurrencyCode": "324", "MimeType": "", "Name": "Destination Paradise", "POBox": "322", "PostalCode": "48642", "Region": "B", "Street": "100 Electric Ave", "TelephoneNumber": "5558675309", "TravelAgencyID": "00000099", "URL": "www.foo.com", "__metadata": {
    "id": "http:\/\/servl01.tampa.ibm.com:1234\/sap\/opu\/odata\/iwbep\/RMTSAMPLEFLIGHT_2\/TravelAgencies('00000099')", "type": "RMTSAMPLEFLIGHT_2.TravelAgency", "uri": "http:\/\/servl01.tampa.ibm.com:1234\/sap\/opu\/odata\/iwbep\/RMTSAMPLEFLIGHT_2\/TravelAgencies('00000099')"
    }
  },   "isSuccessful": true,   "responseHeaders": {
    "content-length": "554", "content-type": "application\/json; charset=utf-8", "dataserviceversion": "2.0", "location": "http:\/\/servl01.tampa.ibm.com:1234\/sap\/opu\/odata\/iwbep\/RMTSAMPLEFLIGHT_2\/TravelAgencies('00000099')", "server": "SAP NetWeaver Application Server \/ ABAP 731"
  },   "statusCode": 201,   "statusReason": "Created"
}


Parent topic: Start an SAP adapter