Skip to Content

Odata Service and XS Java Script - Use Cases

May 29, 2017 at 07:52 PM


avatar image

Hi Experts, I will need to write a control logic to access the persistent models in HANA and bind that data to UI5 application, while going through the SAP documentation, I understand that, Control logic can written using Odata service or XS Java Script. What is the use case for each one of these? Please let me know.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Florian Pfeffer
May 30, 2017 at 10:32 AM

For CRUD operations the best option is to use the OData approach. The integration of OData is better in UI5 (because of the available ODataModel). Using an XSJS service is a little bit more effort on UI5 side. I would recommend to use XSJS services only to trigger specific functionality (e.g. triggering a "workflow") which cannot be done using OData (due to the missing support of function imports on HANA side so far).


Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Florian, I would go with Odata service, there is lot of UI development involved in the project, so to reduce the complexity and effort, I think it is the better option as said by you, answer is very helpful.