cancel
Showing results for 
Search instead for 
Did you mean: 

Consume SF odata in UI5 application through destination(SFAPI) created in SAP BTP CF environment

Ayush
Explorer
633

Hi All,

I have created one UI5 App that consume SF odata through destination(SFAPI) created in SAP BTP Neo environment using webide.

UI5 App is working perfectly in Neo environment.(Consumes SF odata Perfectly)

Now the same UI5 App i have migrated to SAP BAS using sap fiori migration tool in SAP BAS (CF environment)Migration is successful without any error.

same ui5 app(migrated one in SAP BAS CF env) consume SF odata using destination(SFAPI) created in SAP BTP CF environment.

Case-1

When i am trying to run it using run configuration locally it take using ui5.yml config see image ui5.ymlconfig ui5yml-cofig.jpg app fetch data and gives result as see in image1 image1.jpg

Case-2

When i am trying to run it using run configuration locally and binding the SF destination to ui5 app destinationbind.jpg (see image-destinationbind) app doesn't fetched any data gives result as see in image2 image2.jpg

case-3

when i deploy this app to BTP CF environment and run it from BTP CF cockpit it doesn't fetch any data gives result as in image2 image2.jpg

Please help me in case 2 and case 3 issue.

Thanks

Ayush Rathod

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
Active Contributor
0 Kudos

I don’t know if the migration to bas also includes migration to cloudfoundry. Does it add the mta.yaml file and xs-app.json? If not, have a look at these examples https://github.com/SAP-samples/btp-launchpad-ui-samples/tree/main/btp-samples-simple-app

Ayush
Explorer
0 Kudos

Hello Wouter Lemaire

Thanks for your response.

After Successful Migration and then adding (add deploy configuration) to the app

mta.yaml mta-file.jpg and xs-app.json xs-app-file.jpg is created.

Please find the attached snippet.

Thanks