Skip to Content
-1

Odata Service and XS Java Script - Use Cases

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    Regards,
    Florian

    Add comment
    10|10000 characters needed 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.

      Sreekanth