cancel
Showing results for 
Search instead for 
Did you mean: 

Sapui5 error 404 (not found) in CheckFlightAvailability function

0 Kudos

Hi to all,

I'm a sapui5 begginer and I'm traying to do an odata call function with CheckFlightAvailability from sap gateway demo system. I'm using a default model for this exercise, but when I call function, it returns 404 as response, this is the code for my controller file:

I checked the network window on my browser and the metafile is loaded so I assume that my connection is ok, does anybody could help on this issue ?

Greetings,

Moisés.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Issue solved, I corrected parameters declaration,

Greetings

vaibhav_gb
Explorer
0 Kudos

Hi Moises Gomez Quintero,

Please try the following code to fetch the data.

oODataModel.read("/CheckFlightAvailability",{
success:function(odata){
sap.m.MessageToast.show("success");
}, error:function(oerror){ sap.m.MessageToast.show("error"); } })

Regards

GB

vaibhav_gb
Explorer
0 Kudos

this call will give you details of all the flights, if you want to send filters then there is an option to add filters.

regards

GB