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.

304 questions
0
votes
1 answer

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 the backend OAuth enabled SAP service. Just…
Wei Rang
  • 3
  • 3
0
votes
1 answer

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 the documentation and after going through the doc…
Eric Jiang
  • 567
  • 1
  • 7
  • 20
0
votes
1 answer

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 error screenshot…
Ronit Nath
  • 41
  • 5
0
votes
1 answer

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/SAPS4HANACloud I observed that we can use the Cloud SDK…
0
votes
1 answer

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(basePackages = {"com.sap.cloud.sdk", "path to my package"},…
0
votes
1 answer

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. Thus, I could not use OpenAPI generator to generate…
Jerry Zhang
  • 179
  • 3
  • 13
0
votes
1 answer

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:…
0
votes
1 answer

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 to…
0
votes
1 answer

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 as expected. Is there a more detailed…
Stephan
  • 13
  • 5
0
votes
1 answer

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
  • 3
  • 2
0
votes
1 answer

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: 2022-02-18 14:03:41.038 WARN 1088 --- [ …
kurts
  • 79
  • 6
0
votes
1 answer

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 * * @param keys * the list of sales orders…
0
votes
1 answer

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 .builder() …
0
votes
1 answer

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. When getting dependencies with maven command mvn…
Jerry Zhang
  • 179
  • 3
  • 13
0
votes
1 answer

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 Plugin I am not sure how to resolve this…