463 questions
0
votes
1
answer
44
views
SAP Cloud SDK / Failed to read authentication token of destination xxx
In the latest version of our product, we adopted cloud-sdk-java (5.24.0) as the underlying implementation for sending data, whereas this functionality was custom-developed by our team previously. ...
0
votes
1
answer
132
views
Concurrent issue in Principal Propagation
We created an application on BTP connecting to S/4HANA On-premise with principal propagation via cloud connector. The project template was created from SAP Cloud SDK library with version 5.1.0. The ...
0
votes
0
answers
589
views
The HTTP response code (403) indicates an error. The OData service responded with an error message
I'm following this official SAP tutorial: Connect to OData Service on Cloud Foundry Using SAP Cloud SDK
But I struggle to connect to Production order API. This is the official SAP data for this API.
...
1
vote
1
answer
210
views
Authorization Management Service (AMS) integration
BTP is transitioning from using XSUAA for authorization management to Authorization Management Service (AMS). Seems XSUAA will not be used and AMS will be used instead.
Questions:
Is it supported by ...
0
votes
1
answer
115
views
SAP Cloud SDK: Failed to get destination for SSO by calling DestinationAccessor.getDestination method in Java Source code
When I used DestinationAccessor.getDestination method in Java source to get destination information defined in BTP, I got the error message as below.
Btp Destination:
Name: dest_test
Type: HTTP
URL: ...
0
votes
1
answer
217
views
SAP CAPM service failing with http 407 Proxy Authentication failed Error
We are consuming a SOAP based web service from a S/4HANA On-prem system inside an SAP CAP service using sap-cloud-sdk API's coupled with BTP destinations and cloud connector.
Ref: https://community....
0
votes
2
answers
476
views
DateTime field causes error after CAP v8 upgrade
I am using SAP Cloud SDK together with SAP CAP.
Recently I upgraded from CAP v7 to v8, regenerate the odata clients and started getting errors on creating entity that has DateTime field.
Reproduce the ...
0
votes
1
answer
296
views
Performance Issue with @sap-cloud-sdk/http-client
I am using Node.js version 20 and the @sap-cloud-sdk/http-client to make POST requests, but I am encountering APIs performance issues. However, when using Node.js version 18 with sap-cf-axios, the ...
0
votes
1
answer
209
views
How to Mock getDestination for Unit Testing Java Methods with HTTP Requests?
I’m working on unit testing a Java method that interacts with external HTTP destinations and performs HTTP requests. I’m having difficulty covering the method with JUnit tests due to its dependencies ...
0
votes
1
answer
274
views
SDk library ->@sap-cloud-sdk/http-client
We are using Cloud SDk library ->@sap-cloud-sdk/http-client - npm (npmjs.com) and it function executeHttpRequest to send request to convergent mediation system(On premise ) via cloud connector ....
0
votes
1
answer
88
views
Project & work packages created (using SAP Cloud SDK for JS) but demands and work items are missing
We have built a number of extension apps, which run on BTP and call S/4HANA Public Cloud. Most are CAP Node.js and make use of the Cloud SDK for JavaScript. The oldest app still uses a CAP Java and we ...
0
votes
2
answers
1k
views
Creating operations are disabled for entity
I want to call standard Odata V4 service to create warehouse task in S/4HANA on-premise system. I downloaded edmx file from S/4HANA system and generate OData client with cloud sdk library.
The cloud ...
0
votes
1
answer
260
views
Destination proxy setting when contact to S/4HANA system
I tried to use the SAP Cloud SDK to consume an OData in the S/4HANA system. The application has been deployed to the Cloud Foundry evenironemnt, but I saw the error message below:
'com.sap.cloud.sdk....
1
vote
2
answers
316
views
How to select and filter custom fields in the HANA Cloud?
I've added custom fields to the standard S4 HANA Cloud API.
Now I want to filter and select custom fields using SAP Cloud SDK Javascript.
I figure out how to filter custom fields.
serviceOrderApi....
0
votes
2
answers
145
views
SAP Cloud SDK SoapRequest Timeout After 60s
Issue: SAP Cloud SDK SoapRequest timeout after 60s
Reproduce issue:
Adopt SAP Cloud SDK version: 5.1.0 with jdk17
Configure destination with adding two parameters:
HTML5.ConnectionTimeoutInSeconds=...
0
votes
2
answers
128
views
Get Operation Which Caused Changeset to Fail or Get Content-ID of Batch Response
When working with a batch that contains a changeset is it possible to get the Content-ID of the Batch Response if the changeset has failed?
Let's say I have the following code to create a batch with a ...
0
votes
2
answers
106
views
Implement Global Resilience with Custom Exception
I am interacting with the SAP Business One Service Layer using code generated via the SAP Cloud SDK.
One thing that must be accounted for with the Service Layer is the potential for deadlocks in the ...
0
votes
1
answer
174
views
How to create a contact of a sourcing project using SAP Cloud SDK and a generated OData v4 client?
I generated an ODATA v4 client for the SAP S/4HANA Sourcing Project API like described here.
All in all it works quite well. I can query, update or delete sourcing project data, milestones and ...
0
votes
1
answer
144
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 ...
0
votes
2
answers
69
views
Detected a breaking change due to missing at least one parameter
While trying to generate java source files from edmx files, I am getting this error:
Found entity type A_MaterialStockType from set A_MaterialStock Detected a breaking change due to missing at least ...
0
votes
1
answer
56
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=...
0
votes
1
answer
67
views
Could not create project template with version 5.0.0
I use maven command line to create project template with version 5 but failed with the following error.
It looks like spring-boot3-5.0.0.jar does not exist in maven repository. Please check.
C:\...
0
votes
1
answer
124
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
...
0
votes
1
answer
292
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 ...
0
votes
1
answer
133
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 ...
0
votes
1
answer
58
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 ...
0
votes
1
answer
312
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 ...
0
votes
1
answer
903
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 ...
0
votes
1
answer
77
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, ...
0
votes
1
answer
517
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': ...
1
vote
1
answer
357
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 ...
0
votes
1
answer
153
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 ...
0
votes
0
answers
116
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, ...
1
vote
1
answer
74
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 ...
0
votes
1
answer
545
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 ...
0
votes
2
answers
77
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 ...
0
votes
1
answer
533
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.
...
0
votes
1
answer
2k
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....
0
votes
1
answer
574
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
java....
0
votes
2
answers
156
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....
1
vote
1
answer
628
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 ...
0
votes
2
answers
2k
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 ...
0
votes
1
answer
66
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....
0
votes
1
answer
542
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 ...
1
vote
1
answer
64
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 ...
1
vote
1
answer
991
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, ...
0
votes
2
answers
172
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 ...
1
vote
1
answer
306
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 ...
0
votes
1
answer
251
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 ...
0
votes
1
answer
116
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 ...