Questions tagged [sap-cloud-sdk]

Use this tag for questions related to SAP Cloud SDK. SAP Cloud SDK provides language-specific out-of-the-box capabilities, such as an abstraction of the underlying cloud platform implementation, fault-tolerance, cache management, etc. It also provides a continuous delivery toolkit with ready-made Jenkins pipelines. Programming languages related to this tag are Java, JavaScript, and TypeScript.

85 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
2 answers
1k views

Error - Failed to add 'SAP-Connectivity-Authentication' header for on-premise connectivity

I am connecting an On-premise S/4 HANA with SAP Cloud Platform trial account. I am using SAP Cloud SDK to fetch all Business Partners from S/4 HANA. My Cloud Connector is set My Destination at Sub-...
Nikhil's user avatar
  • 31
2 votes
1 answer
372 views

Azure KeyVault Service Issue

Currently, Am using Azure keyvault service in one of the application which runs on SpringBoot version 2.3.0.RELEASE with SAP Cloud SDK version 3.35.0 which is not working with the below configurations ...
Arun Kumar's user avatar
2 votes
1 answer
223 views

Etag support for S/4 EX

Etag is supported in SDK: https://sap.github.io/cloud-sdk/docs/java/features/odata/use-typed-odata-v4-client-in-sap-cloud-sdk-for-java/#handling-of-etags So experimenting it by using BusinessPartner ...
cloud's user avatar
  • 51
2 votes
2 answers
239 views

Q: Using Circuit Breaker in SAP Cloud SDK resilience

When I tried to use ResilienceDecorator.executeCallable() to enable circuit breaker, I have to throw out ResilienceRuntimeException in my callable to make the circuit break work. Sample code as below. ...
Steven Chen's user avatar
2 votes
2 answers
498 views

How to log HTTP requests sent by ODataQueryBuilder API / VDM API?

Using latest version of Java SAP Cloud SDK We have some code which uses ODataQueryBuilder API and VDM API as well. We want to log the HTTP requests that are being sent by these API's. We want to log ...
cleancoder's user avatar
2 votes
0 answers
431 views

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). ...
Ulysses Bonfim's user avatar
2 votes
0 answers
137 views

Integration Test powered by S4 SDK VDM fails during the maven build

I had used S4SDK VDM on my Integration Testing to test my ODATA services. There were some issues during the implementation & Alexander bestowed me to get it working. (VDM for Integration Tests) ...
Benu Mariantony's user avatar
1 vote
1 answer
44 views

FluentHelperByKey and FluentHelperCreate are returning different objects

When checking the response of a request executed with Cloud SDK, we see that FluentHelperByKey does not have any headers. FluentHelperByKey is returned for successful requests. For erroneous ones, we ...
Stephan's user avatar
  • 13
1 vote
2 answers
114 views

S4Hana(ERP) backend does not return localized error message due to additional ‘sap-language’ header is being added by the Cloud SDK

Note: Application is built in CAP Java Stack along with DWC framework. Technical user is configurated in destination service for making an API call. Flow : API call gets initiated from UI. The ...
Surendra Gupta's user avatar
1 vote
1 answer
181 views

Batch headers are not considered for individual requests with Cloud sdk 3.66

Ours is a dwc based application Master Data Proxy Service (MDPS). We are getting an error due to the required Dwc headers (dwc-tenant, dwc-subdomain, dwc-jwt) etc, not being propagated to individual ...
Sachin C Nambiar's user avatar
1 vote
1 answer
514 views

Enabling MTX on a CAP application, resulting in issues from MegacliteDestinationLoader

We are trying to enable MTX on a CAP application deployed via DwC Infra. Below the stack trace of the issue that occur as part of this change - ["org.springframework.beans.factory....
sanjhana ramesh's user avatar
1 vote
1 answer
321 views

EMS : The Session was closed due to an unrecoverable error

I'm using SAP event mesh(EMS) for communication between events and sap JMS library(com.sap.cloud.servicesdk.xbem) for listening to messages from queue. But recently I have encountered exception while ...
NEHA's user avatar
  • 11
1 vote
0 answers
212 views

How do I avoid the stream from closing abruptly while I am reading the records from an upstream OData Service while using GetAllRequestBuilder?

I am trying to read about 3.9 million records from an upstream odata service using GetAllRequestBuilder. The code sets the pageSize to 5000 and uses the instance of HttpDestination to read from the ...
user1707873's user avatar
  • 1,317
1 vote
0 answers
281 views

Set JAVA_OPTS within the maven build step to inject JaCoCo agent

I have a project that has has integration tests executed via maven-failsafe-plugin against locally deployed tomcat from SAP BTP SDK (https://tools.hana.ondemand.com). It is deployed and started via ...
niemda's user avatar
  • 53
1 vote
1 answer
261 views

SAP Enterprise messaging - Add new queues with listeners to existing queues on runtime

I have a usecase around SAP Enterprise messaging(Consume BusinessEvents from S4HC) to make it multitenant. For this, the approach is by making One queue per tenant and a particular queue would be ...
Arun Kumar's user avatar
1 vote
1 answer
911 views

Trouble with batch requests (DELETE not working)

We're using SAP Cloud SDK 3.32.0 and are using batch requests. Sending changes (updates of existing entities) work fine. However, DELETE of entity(set) fails. We get a message back from the SAP ...
Danny Kruitbosch's user avatar
1 vote
2 answers
420 views

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 ...
Simmaco Ferriero's user avatar
1 vote
2 answers
508 views

Is there any way to skip Odata metadata validation when using FluentHelperRead/Count with filters?

I'm using sap-cloud-sdk for java to get(using also filters) SAP C4C Tickets. My requests fail to execute due to metadata validation failure (see below stacktrace). Since this metadata is beyond my ...
Sorina Dragos's user avatar
1 vote
2 answers
216 views

How to get SAP CloudSdk BatchRequest not to ignore filter parameter on Batch Query?

We are currently struggeling with Batch Query, which seems to ignore the filter expressions on S4 side caused by a wrong URL encoding. /sap/opu/odata/sap/ZP2M_A_CONTRACT_SEARCH_HDR_CDS/...
Adam K.'s user avatar
  • 11
1 vote
1 answer
236 views

Conditional VDM Generation odata-generator-maven-plugin parameters

I am using following Maven Plugin to generate the VDMs for OData consumption. <plugin> <groupId>com.sap.cloud.sdk.datamodel</groupId> <artifactId>...
atanu mallik's user avatar
1 vote
1 answer
107 views

Wrong DEFAULT_SERVICE_PATH variable

When importing data model from external service which in this case is an xsodata source, I see that the VDM creates a wrong DEFAULT_SERVICE_PATH. Indeed the original service contains a "." inside like ...
Simmaco Ferriero's user avatar
1 vote
1 answer
202 views

One code to support multiple version of Odata service

Sorry for 2nd question on the same topic . I try to frame the question in better way. our multi tenant SCP based solution supports both on premise (number of versions) and cloud version of S4HANA as ...
Apoorv B's user avatar
1 vote
0 answers
135 views

Custom OData Service has missing property on iOS SAP Cloud Platform app

In order to understand the OData <-> SAP Cloud Platform link, I have developed my own minimal OData Service using the Jaystack OData V4 server (https://jaydata.org/jaystack-odata-v4-server) library ...
iJustWantToProgram's user avatar
1 vote
2 answers
83 views

Null pointer exception from ODataApplicationInitializer in SpringBoot jar

I created my project by using S/4HANA SDK (spring boot archetype), now I need the functionality to provision some ODATA services so I also introduce the dependency com.sap.cloud.servicesdk.provodatav4 ...
Eric Jiang's user avatar
0 votes
1 answer
8 views

@sap/cloud-sdk-vdm-purchase-order-service with deprecated PO oData API?

We are currently using @sap/cloud-sdk-vdm-purchase-order-service (https://help.sap.com/doc/96ad709a1b7e41f3804fa5040bc83167/1.0/en-US/modules/_sap_cloud_sdk_vdm_purchase_order_service.html) in our ...
Jie Lin's user avatar
0 votes
1 answer
21 views

SAP Cloud SDK Version 5 Not Able To Generate

SAP Cloud SDK V5 version cannot generated by maven commandline cmd> mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.sdk.archetypes -DarchetypeArtifactId=spring-boot3 -DarchetypeVersion=...
ORASTARK's user avatar
0 votes
1 answer
97 views

How to query result count with SAP Cloud SDK java in a batch

I am using the OData v2 Type-safe Client API to get a list of entities with a filter. The filter list and the entity count is quite long, so I need to use a batch request and paging. If I do not use ...
Gergely Gerlics's user avatar
0 votes
1 answer
37 views

Can odata-generator-maven-plugin somehow generate all classes Serializable?

I want to generate with com.sap.cloud.sdk.datamodel:odata-generator-maven-plugin:4.20.0 a Java client and all the generated classes must implement the interface Serializeable. How can I instruct the ...
Thomas Ullrich's user avatar
0 votes
0 answers
23 views

@RequestScope does not work. Request mix data

I have built a relatively small Java application based on SAP Cloud SDK/Spring-Boot. Each request should be unique. That's why I have provided each class I use with @RequestScope (In despair). Now, ...
Tobias's user avatar
  • 5,053
0 votes
1 answer
106 views

How to perform mTLS client certificate verification using @sap-cloud-sdk in node js

I have a node js app deployed in SAP BTP,need to expose webhook endpoints for SAP Event Broker (Integration suite) which requires the webhook endpoints to be mTLS enabled (i.e authentication using ...
Vaibhav Fulara's user avatar
0 votes
2 answers
28 views

open API generated Cloud SDK custom fields update

I'm trying to update cloudSDKCustomFields using an OpenAPI generated API. But I'm not able to do so as these custom fields are not getting serialized. How to update these custom fields? I tried via ...
anubha jain's user avatar
0 votes
1 answer
167 views

How to prevent a deserialization error in Get operation

We replicate data from Sales Cloud V2 system to our micro service and our services bases on java with the help of Get operation. Therefore we use the SAP Cloud SDK openAPI generator, which works fine. ...
asem's user avatar
  • 3
0 votes
1 answer
458 views

Unauthorized: Bad credentials error while accessing Springboot app running on SAP Cloud Foundry

I am getting below error while trying to use sapjco3 in my Springboot application. I am deploying my application to SAP Cloud foundry environment packaging as war file with tomee7 TARGET_RUNTIME. com....
Athul Ram's user avatar
0 votes
1 answer
400 views

Timeout settings for SAP Cloud SDK OData client

SAP Cloud SDK OData client provides us a type-safe way to access OData API. However, we are wondering it is possible to configure the different timeout values e.g., connection request timeout, ...
Eric Jiang's user avatar
0 votes
1 answer
104 views

How to make SAP Cloud SDK OData client send request call to Spring MockMVC fake test servlet and get the response?

We are using Spring MockMVC to test our OData endpoints of our application. The headache part of such integration test is, every time we have to construct the complex OData query url string by ...
Eric Jiang's user avatar
0 votes
1 answer
599 views

Unable to connect to onPremise destination from local environment using SAP Cloud SDK for JS

We are using SAP Cloud SDK for JS to connect to an OnPremise destination from our local environment. When we make the call to executeHttpRequest it rejects with the ECONNREFUSED error. Link to the ...
Ronit Nath's user avatar
0 votes
1 answer
2k views

Fail to get destination using sap cloud sdk

I am using sap cloud sdk to request destination. VCAP_SERVICES is deployed in enviroment in docker. Here is my code to get destination DestinationOptions options = DestinationOptions ...
CharlotteHu111's user avatar
0 votes
1 answer
184 views

SAP Cloud SDK access Extension Suite Data/Lists of Destinations available/Groups

I was wondering if they are any possibility with the sap cloud SDK for java to consume some API used by the cockpit? For example: To get all services they are the URL below https://account.hana....
Jonathan COLLIN's user avatar
0 votes
0 answers
161 views

How to manually configure a ThreadContext in a multi-tenant app?

I'm developing a multi tenant app on the SAP BTP and I need to process webhook events that I receive from a non-SAP system. More specifically, upon receiving an event, I need to access a destination ...
floste's user avatar
  • 79
0 votes
0 answers
330 views

Java OData client using SAP Cloud SDK problems

I am having troubles with updating my OData Client. I would refer to How to call bound functions / actions inside Java client using SAP Cloud SDK? where people from SAP helped me alot, thanks! Issue ...
Matija Lazar's user avatar
0 votes
1 answer
193 views

Facing an error while generating VDM using cloud-sdk maven profile

Im trying to generate VDMs using the below metadata- <?xml version="1.0" encoding="utf-8"?> <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas....
sanjhana ramesh's user avatar
0 votes
1 answer
284 views

Not able to connect to Trial S4Instance in CAL from SAP BTP Destination service

I am developing SAP Extension Application using java 1.8, Spring Boot and SAP SDK. I am deploying this application in SAP BTP (SAP Cloud platform). My S4HANA instance is trial version and it is ...
Vallidevi Dangeti's user avatar
0 votes
2 answers
155 views

Tenant specific Resilience Configuration

We want to provide options to customers to configure resilence like for circuit breaker configuration. Kindly let us know is there a way we can provide tenant-specific configuration in cloud SDK.
Sagar Gupta's user avatar
0 votes
1 answer
470 views

EDM DateTime field is not working as expected for the Patch call [post Cloud SDK version upgrade]

We upgraded to cloud SDK to the following version which is causing weird behavior for the patch call. This looks to be bug in Cloud SDK as we see the different behavior between Post & Patch for ...
Surendra Gupta's user avatar
0 votes
1 answer
990 views

OData batch request through connectivity service always returns 202 Accepted

We have a springboot/sap-cloud-sdk (3.34.1) application deployed on SAP CloudFoundry. Our application connect to an on-prem SAP Gateway for OData services and uses the CF destination and connectivity ...
Danny Kruitbosch's user avatar
0 votes
4 answers
1k views

CSRF token not properly handled when calling a function

We're using SAP Cloud SDK 3.32.0 with SpringBoot. We've generated a typed OData service based on the EDMX metadata file generated by the service and use the generated client in our code. All logs ...
Danny Kruitbosch's user avatar
0 votes
1 answer
1k views

Dependency conflicts between SAP-Cloud-SDK and SAP cloud-security-xsuaa-integration

We're trying to use SAP SpringBoot Starter XSUAA 2.7.8 (https://github.com/SAP/cloud-security-xsuaa-integration) together with the SAP CloudSDK for Java 3.32.0. The CloudSDK depends on part of the ...
Danny Kruitbosch's user avatar
0 votes
1 answer
182 views

How to call a on-onpremise BAPI in SAP Cloud SDK Java

I am trying to call a BAPI in SAP Cloud SDK Java, not sure whats wrong with below code. Please help me here final Destination destination = DestinationAccessor.getDestination("MyErpSystem&...
Prakash's user avatar
0 votes
2 answers
516 views

Get navigation properties using generated VDM by SAP Cloud SDK

I need to get navigation properties data. Does anybody know how to use navigation properties using SAP Cloud SDK? I created a VDM by SAP Cloud SDK VDM Generator. The source OData is V2 and on S/4 HANA,...
fuku's user avatar
  • 11