cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to run full stack cap project locally with calling s4 HANA api using destination

RiturajKumar
Discoverer
0 Kudos
524

Hi SAP Community,

I have Full Stack CAP application. 

below Scenario we faced 1.

1.if we run the project through cmd - cds watch --profile hybrid , then API/UI works correctly. but S4 hana api gives 404 not found.

2. If we run the UI project seprately through cmd - npm run start. then UI works correctly along with S4 hana api, but odata services api gives 404 not found.

3. when we call hardcoded base URL of S4 hana api . through cmd - cds watch --profile hybrid then S4 hana api gives a login pop then input credentials of s4 hana api. after that it works .




we need to run both s4 hana api and odata service along with ui HOW?

thanks

Rituraj Singh

Accepted Solutions (0)

Answers (1)

Answers (1)

Willem_Pardaens
Product and Topic Expert
Product and Topic Expert
0 Kudos

This document should provide you with the steps to do local testing with connectivity to external systems via destinations: https://cap.cloud.sap/docs/guides/using-services#connect-to-remote-services-locally

If you still face issues and find that either the routes pointing to local oData services or routes pointing to destinations work, but not both at the same time, you should have a look at how the routes and their relative paths are defined.