on 2025 Mar 06 8:31 PM
I’ve created a simple CAP application that exposes an OData V2 service. When I test the service in Postman with URLs like:
https://<my-cap-app>.cfapps.<region>.hana.ondemand.com/odata/v2/CatalogService/$metadata
…I get a valid response (status 200) and can see the entity sets and metadata. So far, so good.
However, my goal is to consume this CAP-based OData service from another existing SAPUI5 app (also running on SAP BTP). I tried setting up a Destination in the SAP BTP cockpit, but I keep encountering a 404 error in SAP Business Application Studio or via the Fiori Tools wizard. The wizard attempts to reach ABAP-specific endpoints like:
/sap/opu/odata/IWFND/CATALOGSERVICE;v=2
which obviously do not exist in my CAP service.
Here’s my scenario and what I’ve tried:
#clientSecret=<< Existing password/certificate removed on export >>
#
#Thu Mar 06 19:03:25 UTC 2025
tokenServiceURLType=Dedicated
clientId=xxxxxxxx
tokenServiceURL=https\://xxxxxx.authentication.us10.hana.ondemand.com/oauth/token
WebIDEEnabled=true
URL=https\://XXXXXX-dev-approvalhierarchy-srv.cfapps.us10-001.hana.ondemand.com/odata/v2/CatalogService
Name=ApprovalHierarchy
WebIDEUsage=odata_gen,odata_abap,dev_abap,ui5_execute_abap
Type=HTTP
HTML5.DynamicDestination=true
Authentication=OAuth2UserTokenExchange
scope=uaa.user
HTML5.Timeout=60000
ProxyType=Internet
Questions:
Below are screenshots of:
I would really appreciate any guidance on how others have successfully consumed CAP-based OData services in UI5 apps on SAP BTP — especially regarding Destination settings, xs-app.json routing, and whether or not it’s possible to use the wizard “Connect to an SAP System” for a CAP service. Thank you in advance!
Best regards
Request clarification before answering.
| User | Count |
|---|---|
| 13 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.