Skip to Content
Former Member
Jun 28, 2016 at 02:55 PM

post(create) Odata model - HTTP request failed404


Hello, everyone!

I have a problem with post method in sap.

I use Odata model:

var sServiceUrl = "/sap/opu/odata/SAP/Z_RYP_SRV/";
var oModelCreate = new sap.ui.model.odata.v2.ODataModel(sServiceUrl, true, "888", "8888" );

When I try to do post query I get error.

The following problem occurred: HTTP request failed404,Not Found,{"error":{"code":"005056A509B11EE1B9A8FEC11C21D78E"
,"message":{"lang":"ru","value":"Resource not found for the segment 'sap'."}
,"innererror":{"transactionid":"576A38D4666B2310E1000000C0A805DC","timestamp":"20160628143602.8293510","Error_Resolution":{"SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details",
"SAP_Note":"See SAP Note 1797736 for error analysis ("}}}}

I use this code

onCreatePost: function() {
         var oEntry = {};
         oEntry.Name = "Peter";
             var sServiceUrl =  = "/sap/opu/odata/SAP/Z_RYP_SRV/"
         var oModelCreate = new sap.ui.model.odata.v2.ODataModel( sServiceUrl );
          oModelCreate.create('/sap/opu/odata/SAP//sap/opu/odata/SAP/Z_RYP_SRV//EtSet', oEntry, null );

Could you help me deecide it problem?!