Questions tagged [sap-cap]

Use this tag for questions about the framework "SAP Cloud Application Programming Model" (SAP CAP) together with either [node.js] or [java] if applicable.

SAP Cloud Application Programming Model (SAP CAP) is a framework which consists of languages, tools, and libraries for building design-agnostic backend services (mostly services) according to the latest best-practices.

For more information, see https://cap.cloud.sap/docs/about/.

38 questions
3
votes
1 answer

Unable to deploy CAP application to Cloud Foundry

I have been developing an application using Cloud Application Programming Model (Node.js), following this tutorial: https://github.com/SAP-samples/cloud-cap-nodejs-codejam Unfortunately, I am unable to deploy it to the Cloud Foundry. I also created…
3
votes
2 answers

How to build an odata service in node by json service

We have a requirement of reading the service and convert it into odata. Our target system only understands odata and the source cannot deliver odata. So we are trying to build node service to facilitate the same. I tried to use CAP…
Ammy Agarwal
  • 51
  • 1
  • 5
2
votes
0 answers

Error to call Approuter from Postman - SAP CAP (BTP) - *.us10-001.hana.ondemand.com/login/callback redirect

I am new to SAP BTP and currently setup a simple project with a server and approuter on SAP CAP in nodejs. But when querying the approuter url from postman it gives me the following error: Response:
2
votes
2 answers

How to provide destinations in SAP Business Application Studio to access on-premise OData API with Cloud SDK in CAP Java Project

I am following the tutorial below to use the SAP Cloud SDK in CAP Java project to invoke OData API of S/4HANA on-premise system. There is no much difference to use VDM in CAP Java project compared to Cloud SDK Spring archetype…
2
votes
1 answer

Defining custom Express endpoint for SAP CAP app

I am trying to create a standard SAP CAP (Cloud Platform Application Model) in SAP Business Application Studio and also extending it with additional Express endpoints besides the ones served by CDS services. I have the following project…
2
votes
0 answers

CDS Generate from Custom VDM does not contain annotations

I'm using @sap/cloud-sdk-generator 1.6.1 to generate a VDM (YY1_SALESDOCUMENT_CDS), translating it to CSN using edmx2csn to then use it in a .CDS file to exposed as OData service (named CustomSales). The goal is to enhance the original…
1
vote
1 answer

Adding formatter for field in table using CAP CDS annotation

How to remove the decimal points for a field using CAP CDS annotations?
1
vote
1 answer

SAP CAP get CF Role collections of user

I'm trying to fetch the role collections assigned to my user in CAP (NodeJS). I've assigned my user to one role collections, but it does not get reflected upon testing (BAS). I've attached my configuration and statement I use to fetch the role…
Matthijs Mennens
  • 1,125
  • 9
  • 33
1
vote
1 answer

SAP CAP Install Plugin Multiapps Error. Why?

I want to deploy a CAP project to BTP Cloud Foundry with cf deploy. However, I get the error: "deploy" is not a registered command. See "cf help -a". So I installed the Multiapps plugin in order to solve the…
1
vote
0 answers

Error while binding service instance in SAP CAP using external service

In SAP CAP, I am following this Blog example link for creating CAP project consuming an external service. However, during deployment to Clound Foundry, I encountered an error below: Error encountered during deployment: Updating application…
Takao Baltazar
  • 319
  • 4
  • 17
1
vote
2 answers

SAP CAP switch off annotations of specific service

i woul'd like to use a sap cap service in an c# application (odata feed service/odata client). This odata client doesn't work with annoations in the $metadata file. How can i switch off all annotations for a specific service? Via server.js? Via…
Maxi Dietz
  • 31
  • 2
1
vote
0 answers

SAP CAP: PATCH call for OData.Draft.enabled Entity returns 404

For my SAP CAP Bookstore app, I am trying to make a PATCH call from my Workflow App via Service Task (PATCH). This worked fine. Now we changed the target app to @OData.Draft.Enabled which adds an appendix to the target URL. Through that the PATCH…
1
vote
1 answer

Display a 'one to many' association with SAP Fiori annotations in CAP

I try do do a DB project with SAP cap. I want to display all entities associated with the Parent entity. If the Association is one to one it works fine. But if it is one to many it doesn't display anything. --I have following Schema…
Robin
  • 11
  • 3
1
vote
2 answers

Unable to use VDM generator with CAP for GWSAMPLE_BASIC service

I've created a project with CAP NG where I'm using the VDM to extract BusinessPartners from the ES5 backend located here https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/. I imported the EDMX successfully and also the classes are…
1
vote
1 answer

Procedure arguments are not passed to SAP CAP application

I have a SAP Cloud Application that is calling procedures. All the procedures that do not have arguments are working well, but I cannot get the procedure with arguments to work. I have narrowed it down to the following lines in my node.js service…
NY Reno
  • 83
  • 6
1
2 3