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
1
vote
2 answers

Promise is not resolving even after calling resolve()

My question here may sound little repetitive. But I haven't found any answer on stackoverflow which can solve my problem. I am returning a promise from one of my function. The promise will be resolved after getting some data from database. And will…
arunava04
  • 67
  • 9
0
votes
0 answers

How to subscribe a SAP CAP in a different region of the same global account?

Assume following: A global SAP cloud account One or more subaccounts in region EU10 One or more subaccounts in region US10 You deploy a SAP CAP app in US10 with tenant-mode mode set to shared. How to handle the routs for this use case?
user3783327
  • 616
  • 8
  • 30
  • 60
0
votes
0 answers

How to migrate a SAP CAP tenant-mode: dedicated app to a tenant-mode: shared one?

According to SAP CAP document adding multi tenancy is simple: https://cap.cloud.sap/docs/guides/multitenancy/ cds add multitenancy Should already do the trick. Ok first of all there is a bug in usage of ${org} in mta.yaml. If your org contains a…
user3783327
  • 616
  • 8
  • 30
  • 60
0
votes
0 answers

Synchronous Service call in SAP CAPM : HTTP 500 Internal Server Error

I am trying to make synchronous service call from a SAP CAPM service via a Destination. I am using service.send method to make synchronous service calls. The request gets executed fine when a single request is processed but when I try to call the…
Athul Ram
  • 31
  • 2
0
votes
0 answers

Is there a way using swagger to auto generate the error responses for APIs developed using SAP CAP

I have included cds-swagger-ui-express within my application to auto-generate the openAPI documentation as well as host it from the server itself. I was looking for a way to auto-generate the error response documentation by swagger itself. Below is…
Shabbir Bawaji
  • 115
  • 1
  • 1
  • 8
0
votes
0 answers

SAP CAP - Select OData Entity With Primary Keys

We have the following URL that leads to the desired result (executed in gw client): //xyz.com/myEntity(key1='12345',key2=datetime'2022-02-01')/Results I have now imported this OData API into my Java project via CDS import and am trying to recreate…
Tobias
  • 4,921
  • 4
  • 31
  • 40
0
votes
1 answer

Error while deploying SAP Fiori and CAPM application in SAP BTP Trial Account

I created a basic SAP CAP/Fiori application using BAS of SAP BTP, with HANA DB Instance created. It's working fine when I run it locally. However, during deployment to SAP BTP Trial Account, I encountered the issue/error below. After deployment was…
0
votes
0 answers

Needs an assist about SAP CLI & CAP Integration

Currently I trying to $batch request to HDB by SAP CLI, by making Odata v4 sets. Problem : On HDB Cloud, It tries to input data with temporal schema, which are consist of random number. In my package.json, I listed It should use specific schema to…
0
votes
1 answer

SAP CAP Node.JS Odata 404 error on destination service after upgrade to CDS v6

I would appreciate your help with this issue. -- Note - to get past the Spam filter, I have had to remove references through this question to "those things you send electronically over the internet" and replaced with "e" instead. We have 4 CDS…
0
votes
0 answers

400 error after await on INSERT into CDS.QL select?

We have a requirement where we need to add entries of TABLE1 into TABLE2 based on WHERE clause. the only relevant document/blog I found is https://cap.cloud.sap/docs/node.js/cds-ql#insert-as and…
Abhi
  • 433
  • 2
  • 7
  • 17
0
votes
0 answers

Unable to remote debug SAP CAP application using Approuter(XSUAA) in Visual Studio

I am working on a CAP Project which uses approuter for authentication in VS. For enabling remote debugging, have followed this blog. The CAP project structure along with launch json file(configured as per blog) is shown below. Since the project…
0
votes
1 answer

SAPUI5 binding OData v4

I'm currently using OData v4 requests from my CAP app, and the problem is how to bind my Entity requested data in my Simple Form. The user must input a Workspace code, and Search for its values. Please, how do I bind and display my Workspace name…
0
votes
0 answers

SAPUI5 with V4 - Batch reuests placed automatically without clicking on SAVE button

I have an issue in my SAPUI5 project using V4 Model. Everytime I change a value in the input field, a batch request is placed automatically changing the value in the backend. We want to send all changes upon clicking SAVE button. Can you please…
0
votes
1 answer

SAP CAP using cds.User attributes

I authenticate on the server by feeding req.user with an instance of cds.User, and I add some attributes: User { id: '110226363079182595683', attr: { name: 'depth1', email: 'depth1@protonmail.com' }, _roles: { 'identified-user': true,…
depth1
  • 135
  • 10
0
votes
1 answer

sap-cf-mailer VError: No service matches destination

I have a SAP CAP Nodejs application and I'm trying to send emails from the CAP application using sap-cf-mailer package. I've created a destination service in the BTP as mentioned in the sample and when I'm trying to deploy the application to BTP it…
tarzanbappa
  • 4,930
  • 22
  • 75
  • 117