cancel
Showing results for 
Search instead for 
Did you mean: 

Odata Service and XS Java Script - Use Cases

ssurampally
Active Contributor
0 Kudos

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.

Thanks

Sreekanth

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

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).

Regards,
Florian

ssurampally
Active Contributor
0 Kudos

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.

Sreekanth