Showing results for 
Search instead for 
Did you mean: 

Calling External API In Custom Task UI of SAP Build Process Automation

0 Kudos


We're using SAP Build Process Automation for setting up a new workflow.
We created also Custom UI's as described here:


Now, we want to use odata services from the backend system in these custom UI's.

I already followed the blog ( but still, we're facing issues when using the odata services (http 500 - Internal server error)

- Destination created in BTP Cockpit

- xs-app.json updated

"source": "^/S4HANA_Dev_Dest(.*)$",
"target": "$1",
"destination": "S4HANA_Development",
"authenticationType": "none",
"csrfProtection": false

- The steps for the mta file are a little bit confusing, as we're using the SAP Managed appRouter and so, we don't have the approuter as a module here...

- Manifest

        "dataSources": {
"productDropdown": {
"uri": "S4HANA_Dev_Dest/sap/opu/odata/sap/ZAPI_SRV",
"type": "OData",
"settings": {
"annotations": [],
"localUri": "localService/metadata.xml",
"odataVersion": "2.0"

Our URL's of the odata calls are like (wich returns http 500):

When using the app as a "standalone app" within the Launchpad Module, the destination is reachable and OKAY

Any thoughts?


View Entire Topic
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Hans,
You should be able to call any external REST or ODATA APIs from custom Task UI build on SAPUI5 in SAP Build Process Automation. We have already used this in our pre-built content packages, and I have also have a section for Managed App-Router in my blog that you are referring above. You can use this content package for your reference, which has UI5-based-taskui to help you understand (open Lobby, goto store and import the content package, download the UI5 package, and import it in Business Application Studio)

Hope this helps,

0 Kudos

@ArchanaI am trying to import the content package, but getting error.