Skip to Content
Personal Insights
Author's profile photo Ramon Lee

SCP Trial Account – MTA project (Exposing) NodeJS module xsodata via destination and consume within HTML5 module via destinations.

Background:

MTA project (SAPUI5) unable to consume xsodata service when you have set both xs-app.json and mta.yaml

As an alternative, we can consume the same xsodata via destination through ajax call.

Project Structure:

MTA.yaml (NodeJS module)

MTA.yaml (SAPUI5 module)

XS-APP.json

  1. Created HDB Module, generated a calculation view
  2. Created NodeJS Module, wrapped the above calculation view with a xsodata;
  3. Created a HTML Module (SAPUI5 Application) project template
    • Add destinations in neo-app.json
  4. Create Destination
    • URL: https://95ijzrwh2ndscfqy-mymta-mymtajs.cfapps.eu10.hana.ondemand.com/service/
    • WEBIDE Usage: odata_gen, odata_hcp_odp
  5. SAPUI5 ajax or oData call

CONCLUSIONS:

Please find the development detail from the below github.

https://github.com/ramonlee/mymta

If successful, you should see the expected service out illustrated below.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.