Skip to Content
0
Nov 29, 2021 at 09:07 AM

Accessing CPI endpoint from mta application in SAP BAS

225 Views Last edit Nov 30, 2021 at 05:51 PM 2 rev

Hi All,

I want to consume SAP CPI endpoint URL and post some parameters to that link basically. There is a URL provided by CPI team for that. In order for my app to work in all environments, I am trying to take a destination approach for that. We have a destination created in SAP BTP for CPI. I am doing following steps

1. Creating a fiori module inside mta application with datasource as none. I am manually adding in xs-app.json in routes

2. Making ajax call in my controller as /uimodule/dest_name/cpiendpointname?parameters

uimodule - is the name of fiori module inside mta

dest_name is the name i have given in source part of routes in xs-app.json

When I run the application, its given by 404 error. Basically my destination is not resolving to actual CPI URL .

Kindly help if my approach is right and if so anything I am missing here

Thanks

UDay