cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming External Service Onpremise in SAP CAP

jmtrujillogalan
Explorer

Hi everyone,

I was reading many threads about how consume an external service in SAP CAP. But i didn't find a solution to my specific problem.

My app is configured to consume an enternal service in Onpremise SAP server. When I use the same destination in the wizard of BAS to create a fiori app, it's work fine.

- EDMX was imported

- Destination was added to package.json

- The services connectivity, xsuaa and destination have been used

- BTP Destination was configured with Basic Auth, Proxy Onpremise

When I try to use this service with a Select, i am receiving "Error during request to remote service: Request failed with status code 401" Logon failed

Is the problem the connectivity of my app to cloud connector?

Thanks!

gregorw
Active Contributor

I would suggest to do a trace in cloud connector and check if the authentication data is passed correctly.

View Entire Topic
Chandruu0208
Explorer
0 Kudos

Hi Jose,
Thank you for your response.

Yes "All logon procedures" in SICF transaction is enabled.

But still i get the same error.

Also, I am not sure if this is relevant but when i try to access the same odata via destination from UI5 application there is a pop up that appears which asks to enter the gateway credentials.

Regards,
Chandra

jmtrujillogalan
Explorer
0 Kudos

You must uncheck this option, because your node is taking configuration for parent and it hasn't "all procedures" option

Regards