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
2
votes
2 answers

Having issue with Multi Threaded Java app in Cloud Foundry

My Java app has a program which executes multiple threads on the same time to complete a task. It works really well on my local computer as it has 4 Cores and 8 Logical Processors but when I deploy my app on cloud foundry, it doesn't allow to create…
2
votes
2 answers

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. Without it, circuit breaker is always closed. is…
2
votes
2 answers

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 whole of the HTTP request - headers, body…
cleancoder
  • 162
  • 1
  • 10
2
votes
2 answers

How to avoid a DestinationAccessException when sending a POST request to an OData service using SAP Cloud SDK version 3.2.0

I'm developing a Java application that uses SAP Cloud SDK version 3.2.0. I've an endpoint that handles a request asynchronously using queueCallable of ResilienceDecorator; through this service, Business Partners (BP) are created. I'm doing stress…
2
votes
1 answer

Generate VDM for SFSF using Java in SAP Cloud SDK: Generated URI is wrong

I'm trying to build an app that reads info from SFSF. For this, I'm using the Virtual Data model generator tool (the maven plugin) with SFSF OData metadata to be able to access the system. I'm following these steps: Get a project via archetype…
2
votes
1 answer

VDM's update not updating data on S/4

We are using com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultOutboundDeliveryV2Service for updating an item on S/4. Please find the code snippet below: DefaultOutboundDeliveryV2Service service = new…
cleancoder
  • 162
  • 1
  • 10
2
votes
2 answers

E-Tag handling for odatav2 in SAP Cloud SDK VDM

Using LATEST java SAP Cloud Sdk We are trying to perform an update to OutboundDelivery in S/4 system. We are using API_OUTBOUND_DELIVERY_SRV version 2 for it. The service requires us to use etag, i.e. it requires us to provide a header - if-match…
cleancoder
  • 162
  • 1
  • 10
2
votes
1 answer

java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.accessibleConstructor

I took this [extensibility scenario 352] (https://extensibilityexplorer.cfapps.eu10.hana.ondemand.com/ExtensibilityExplorer/#/ExtScenario/352), [second app]…
2
votes
2 answers

How to retrieve a destination in Java with SAP Cloud SDK 3.2.0?

I’m developing a Java application that uses SAP Cloud SDK version 3.2.0. I’ve doubts about how destinations are retrieved. When I test the application by running it on my local machine, I can send a POST request to an exposed OData service without…
2
votes
1 answer

Calling BAPI from Java using SAP Cloud SDK version 3.0

I am working on a POC currently where I need to call a BAPI inside S/4HANA On-Premise from a cloud application using Java. For this I am using SAP Cloud SDK. For initial setup I followed these…
arunava04
  • 67
  • 9
2
votes
1 answer

How to unit test a class having a dependency on OutboundDeliveryV2ServiceBatch?

Using java SAP Cloud SDK I am trying to write unit tests for a custom class, let's call it, OutboundDeliveryUpdater which has a dependency on com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.outbounddeliveryv2.batch.OutboundDeliveryV2ServiceBatch…
cleancoder
  • 162
  • 1
  • 10
2
votes
2 answers

Send POST request to OData service using SAP Cloud SDK version 3.2.0

I'm developing an application that uses SAP Cloud SDK. I was previously using version 2.20.1 of SAP Cloud SDK and sent a POST request to an OData service. This is the code I used to send the POST request: final ODataCreateRequestImpl createRequest…
2
votes
1 answer

unable to set custom header field for a http destination

I want to set additional header fields for a given destination. Default call works. example: Destination destination = DestinationAccessor.getDestination("xyz"); Data data = new DefaultXyzService() …
Volker
  • 53
  • 4
2
votes
1 answer

Empty key fields for MaterialBOMItem of API_BILL_OF_MATERIAL_SRV Version 2 using SAP Cloud SDK JavaScript

I am trying to update/delete a bill of material item using the SAP Cloud SDK JavaScript (version 1.12.0). The item belongs to a group BOM, i.e. the property "plant" is an empty string. This results in the following self-explaining error message…
user11806577
2
votes
1 answer

SAP Cloud SDK Jenkins pipeline s4sdk-pipeline.groovy - production deployment step is skipped

I have setup Jenkins project piper (https://sap.github.io/jenkins-library/). I have then setup a basic SAP Cloud Application Programming model app with integration for the SAP Cloud SDK pipeline with default configuration and uncommented the…
Neil
  • 21
  • 1
1 2
3
20 21