Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 09, 2017 at 03:29 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 12, 2017 at 03:39 AM

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

    Add comment
    10|10000 characters needed characters exceeded