cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume OData services from local sandbox system in sapui5 application in webide ?

0 Kudos

Hi Experts,

I am trying to access OData services which is on local sandbox system in sapui5 application in WEBIDE and I am able to READ data and display in ui5 app but not

able to create POST request, getting "500 Internal Server".

Here I am not using destinations in hana cockpit.

Please guide me.

Can we post the data to local service which is on local server?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

richard-zhao
Employee
Employee
0 Kudos

Hello Venkatesh. Could you changed the HTTP destination authentication method to the NoAuthentication and changed the .xsaccess to eliminate authentication and test again? thanks

former_member484715
Contributor
0 Kudos

Hi Venkatesh Machineni,

As you are getting the 500 error, something is wrong on the server side only. As you are able to read and display and bot able to create, I think the create functionality for your entityset is not being maintained in your back end. If you are only handling the back end, could you redefine the create_entity method in the DPC_EXT class of your required entity set. In that method, write the code to create an record in the table with the front end data.

Hope this helps,

Regards,

Arjun Biswas