sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
742 stars 780 forks source link

Extend a Business App to Consume an S/4HANA Service #3508

Closed lambavikas closed 5 years ago

lambavikas commented 5 years ago

Tutorial URL: https://developers.sap.com/tutorials/cp-apm-s4hana-01.html

Please specify the step you are referring to While following this tutorial we are getting a lot of errors in that refer to build failures. Specifically once we import the external S4HANA files into the project (Step 4) and try to run the Java service it simply fails. I tried replicating it in our production as well as trial accounts and get same problems.

Error

I had done this project 2 months back and then it worked perfectly fine but now it seems the underlying templates use newer build resources when we create a Web IDE project and those are failing to build.

Any pointers will be greatly appreciated.

chgeo commented 5 years ago

This has been identified as an issue, and is fixed with the upcoming version of cds this week. See the this commit for a workaround. Apply it on the top-level package.json (not the one in db/).

Background: the new Web IDE version converts the imported service into a CDS model that is too new for the latest publicly available CDS compiler, hence the strange internal error.