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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

Event mesh messaging cloud sdk for java does not work as expected

I want to use this library https://api.sap.com/api/SAPEventMeshDefaultMessagingAPIs/cloud-sdk/Java to post messages to my queue. What have I tried so far: Removed OneOf keywords as per documentation ...
Rajkumar Elango's user avatar
0 votes
1 answer
71 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
34 views

sap-cloud-sdk-logger Support for Correlation ID

Will the sap-cloud-sdk-logger from @sap-cloud-sdk/util output the incoming correlation ID to the logs? If not, how can we pass the correlation ID ourselves to the logger? I couldn't find a ...
Pierre F's user avatar
  • 1,372
0 votes
1 answer
28 views

When SAP Cloud SDK Template will upgrade to sprint boot v3.1

Possible Security Risk Due to Spring Boot 2.X is running out of Support 11-2023 SAP Cloud SDK project template has not been upgraded to Sprint boot v3.1 and Java 17, latest supported sprint boot ...
ORASTARK's user avatar
0 votes
1 answer
38 views

OData generator - change name of specific entities

Is it possible to change the names of individual entities with the OData generator (maven client)? I'm not sure how exactly the naming strategy works, but apparently the label is included and and the ...
Tobias's user avatar
  • 5,003
0 votes
1 answer
72 views

How to read OData Batch Response with the generic OData client?

I am trying to perform a batch read request with the generic OData client. The result works, however I have the feeling that it can be done better. But I have this one understanding questions. I took ...
Tobias's user avatar
  • 5,003
0 votes
1 answer
36 views

Configure retry policy pattern

Is it possible to configure a retry policy of the RetryConfiguration. I would like to retry the calls of my service with a quadratic pattern. Like waiting 0.5s, then 1s, then 2s, then 3s...ect, ...
Thibaut_Esteve's user avatar
0 votes
1 answer
89 views

Error while running the application for CAP Java

We get the error while ruuning the application for my java application we are using SAP Cloud SDK :- Error creating bean with name 'com.sap.cds.framework.spring.config.runtime.CdsRuntimeInitializer': ...
Manish Nandamudi's user avatar
1 vote
1 answer
58 views

OData V4 - return root entity only if expanded property meets certain conditions

I have an OData-V4 Service and I want to output the root entity only if the expand from the expand meets certain conditions. Side note: I'm trying to implement this with the SAP Cloud SDK. In this ...
Tobias's user avatar
  • 5,003
0 votes
1 answer
30 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
22 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,003
1 vote
1 answer
43 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
0 votes
1 answer
81 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
1 answer
23 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
141 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
371 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
198 views

NoClassDefFoundError while using SAP JCo in maven Sprinboot Application SAP CF

​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 ...
Athul Ram's user avatar
0 votes
2 answers
68 views

Plans to update s4hana-connectivity to support Apache Http Client 5?

We currently upgrade our project to use Spring 6 & Spring Boot 3. We face some issues with the s4hana-connectivity dependency as it is still relying on org.apache.httpcomponents » httpclient:4.5....
Julian2611's user avatar
1 vote
1 answer
109 views

Consuming sales orders and invoices via the SAP Cloud SDK

I've managed to get the SAP Cloud SDK setup in TypeScript and have been able to successfully read customers (Business Partners) and products using the SDK. Now I want to pull out the invoices and ...
Adam91Holt's user avatar
  • 1,018
0 votes
2 answers
831 views

Using HttpClient as an alternative of Spring RestTemplate

We are trying to replace the Spring RestTemplate from our project because its depreciated So I want to know if that is a good idea to use SAP cloud SDK httpClient as an alternative to Spring ...
JUM's user avatar
  • 25
0 votes
1 answer
37 views

Latest compatible version of kafka-clientlib with Cloud SDK 4.11

I'm trying to use calm-kafka-clientlib (any version) with the latest SAP Cloud SDK (4.11), and I'm getting the following error: Not able to process incoming message The reason is: Caused by: java....
Maksim Yugai's user avatar
0 votes
1 answer
125 views

Access S/4 on-premise from local machine without cloud destination service

I'm trying to access our S/4 on-premise system without any cloud services involved. I', connected to the VPN and can reach our S/4 system and successfully address the BP API service with Postman. When ...
Tobias's user avatar
  • 5,003
1 vote
1 answer
39 views

SAP Java SDK OData results are sometimes multiplied

I have a small JAVA BTP app that is supposed to read master data from the SAP BP. Most of the time it works very well. However, I have a small problem with the partner functions. For some reason, the ...
Tobias's user avatar
  • 5,003
0 votes
1 answer
342 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
2 answers
122 views

Does OpenAPI client Generator of SAP Cloud SDK supports extensibility fields?

We replicate data from Sales Cloud V2 system to our micro service and our services bases on java. Therefore we use the SAP Cloud SDK openAPI generator, which works fine. In Sales Cloud V2 for some ...
asem's user avatar
  • 3
1 vote
1 answer
111 views

SAP Cloud SDK on premise connection is aborted because SYTEM_USER not found?

I am trying to use SAP Cloud SDK to connect my app in CF with on-premise S/4. Via Destinations&Cloud Connecttor. When I deployed the app, it crashes with the following exception (longer version at ...
Tobias's user avatar
  • 5,003
0 votes
1 answer
100 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
45 views

How to mock the service generated by Cloud SDK when some methods are final?

We are using sap cloud sdk to consume external OData service. In our Unit Tests we use mockito "RETURNS_DEEP_STUBS" approach to mock the service class generated by Cloud SDK but we get null ...
Eric Jiang's user avatar
0 votes
1 answer
83 views

How to automate the login on SAP IdP in an end-to-end test

Our backend API's auth method's been replaced to OAuth 2.0. Now we would like to write end2end auth testing with different business users. My idea is to write testing code in the BTP, which will call ...
Wei Rang's user avatar
0 votes
1 answer
49 views

Is service to service call inside Deployment with Confident env supported by Cloud SDK Java?

Does Cloud SDK Java support Service to Service call (e.g. micro service A issues OData call to micro service B) inside Deployment with Confident environment? I do not see anything about this part in ...
Eric Jiang's user avatar
0 votes
1 answer
537 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
1 vote
1 answer
464 views

Could not read destination from environment variables locally with Version 4

Currently all of our projects are working with Cloud SDK for Java version 3. I am evaluating Cloud SDK version 4 and check the possibilities to use it. What I want to do is to connect to on-premise S/...
Jerry Zhang's user avatar
1 vote
1 answer
53 views

neo-java-web-api compiles with non-existant version

I am using the SAP Cloud SDK in the dependency management section <dependencyManagement> <dependencies> <dependency> <groupId>com.sap.cloud.sdk</...
Marco's user avatar
  • 13
1 vote
1 answer
248 views

Provider com.sap.cloud.sdk.cloudplatform.connectivity.CertificateBasedHttpClientFactory not a subtype

In SAP Cloud SDK FAQ page, there is a QA about I'm Observing a DefaultHttpClientFactory not a subtype Exception, now I encountered a similar error Provider com.sap.cloud.sdk.cloudplatform.connectivity....
Zhang Mingquan Mike's user avatar
0 votes
1 answer
285 views

Issue while accessing SAP S/4HANA Cloud API using SDK or Rest OData

I am trying to consume the SAP S/4HANA APIs from outside SAP (Postman or Java) I found a couple of options to access it Using Cloud SDK Using Rest OData endpoints https://api.sap.com/package/...
Sunny Zode's user avatar
1 vote
2 answers
106 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
0 votes
1 answer
274 views

DestinationAccessException while trying to access destination details using SAP Cloud SDK for JAVA

I am trying to retrieve the details of a destination using the APIs provided by SAP Cloud SDK for JAVA. I have added the following annotations to our Spring Boot application: @ComponentScan(...
Ronit Nath's user avatar
0 votes
1 answer
179 views

How to call on-premise REST API without OpenAPI Specification using Cloud SDK Java

I have one use case to call on-premise REST API via Cloud Connector. It is a custom API in SAP R/3 system. I checked with API developer and unfortunately they have no OpenAPI specification for it. ...
Jerry Zhang's user avatar
0 votes
1 answer
660 views

SAP Cloud SDK - Accessing Auth Token Destination Error: Failed to read authentication token

Currently using CAP and SAP Cloud SDK to retrieve a destination of OAuth2SAMLBearerAssertion type. We have done the relevant setup in BTP and S4HC found here: https://blogs.sap.com/2021/05/10/...
ETayamenDel's user avatar
2 votes
1 answer
180 views

How to generate a service using generate-odata-client from an ECC or S4 using the service's $metadata?

I'm trying to convert a $metadata into a service for use with the SAP Cloud SDK Library. generate-odata-client --inputDir .\ctradeslipdata_metadata.xml --outputDir tradeslipdata Error [2022-06-10T01:...
Luiz Carlos Pedroso Gomes's user avatar
0 votes
1 answer
4k views

npm install gives CERT_HAS_EXPIRED error for sap-cloud-sdk

I tried to install the following and got the following error. npm install @sap/cloud-sdk-op-vdm-material-stock-service npm ERR! code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED npm ERR! request ...
Amitava Mitra's user avatar
1 vote
1 answer
172 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
0 votes
1 answer
495 views

Use SSH tunnel to test apps with on-premise destination locally

I would like to run my app locally and use the on-premise system connected via Cloud Connector (connectivity) and destination service. I was already pointed to the documentation but it is not working ...
Stephan's user avatar
  • 13
0 votes
1 answer
92 views

com.sap.cloud.sdk.datamodel.odata render empty fields

In the context of an OData update request we run into an error response from the SAP service called. We are using com.sap.cloud.sdk.datamodel:odata-core in version 3.65.0. The Method in Question is ...
p3nh2n's user avatar
  • 3
0 votes
1 answer
577 views

Could not get HttpClient cache - No ThreadContext available for thread id=1

I'm working on upgrading our service to use 3.63.0 (upgrading from 3.57.0) and I've noticed the following warning (with stack trace) shows up in the logs that wasn't there on the previous version: ...
kurts's user avatar
  • 79
0 votes
1 answer
1k views

Sample Code to Call Odata Service from Java for onprem SAP

/** * Calls {@code GET API_SALES_ORDER_SRV/A_SalesOrder} through * {@link FluentHelperRead} to get the SalesOrder events expanded to sales * order items and filtered by {@code keys} list * * @...
Alan Varghese'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
156 views

Log4j Vulnerability impact on Cloud SDK project

We have some use cases which leverage Cloud SDK project template for Java. Now they are already running on SAP BTP, Cloud Foundry environment. By default, it uses logback and we did not change it. ...
Jerry Zhang's user avatar
0 votes
1 answer
514 views

Generate a Typed OData Client With the OData Generator: Autogenerated code does not compile with SAP library

I generated the code using a maven plugin and the code does not compile. https://sap.github.io/cloud-sdk/docs/java/features/odata/generate-typed-odata-v2-and-v4-client-for-java I am using the odata V2 ...
Alan Varghese's user avatar
1 vote
1 answer
488 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
2 3 4 5
7