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.
Questions tagged [sap-cloud-sdk]
304 questions
0
votes
1 answer
SAP Cloud SDK for Javascript: difference between pre-delivered OData services VS self-generated clients
Is there any difference (extra-code) between the predelivered OData client services and the ones I would have generated myself using @sap-cloud-sdk/generator, provided I have the exact same OData service version?
From my unit test of…

Kimveasna Pen
- 3
- 1
0
votes
1 answer
Getting JSON parser error when using sap-cloud-sdk
We are currently using the following bom for sap cloud sdk . This is in line with the bom that is supposed to be used with the CAP NG stack
com.sap.cloud.sdk
…

Anirban Das
- 107
- 7
0
votes
2 answers
SAP Cloud SDK CI/CD Pipeline: Usage with non S\4 Services
I am using SAP Cloud SDK (Java flavour) to create an extension application of SuccessFactors.
I sadly discovered that the Jenkins pipeline does not allow me to use any other service than the ones listed here: SCN Blog (scroll to the Appendix).
This…

Roberto Pagni
- 5
- 1
0
votes
1 answer
How the OData service object is generated within S/4HANA Cloud SDK?
When coding with samples provided by S/4HANA Cloud SDK. It taught me to use BusinessPartnerService provided within package com.sap.cloud.sdk.s4hana.datamodel.odata.services to simplify OData operation.
See codes below. It imports two services from…

aicro
- 11
- 6
0
votes
1 answer
how to configure vcap.services property for mtar deployment of spring boot application on SAP CloudFoundry?
I am working on a Spring Boot application using SAP Cloud SDK for Java and deploying the application on SAP CloudFoundry.
The application is dependent on a user provided service for configuration and we can access this service using vcap.services…

jycha340
- 31
- 4
0
votes
1 answer
SAP Cloud SDK for Javascript: Filter on Expanded Entities
I know I am reopening an old one (Perform filter on expanded entity with SAP Cloud SDK), but it was a while ago and was referencing the Java version of the API used to consume an S/4 HANA service.
I'm testing the Javascript version of the API…

Roberto Pagni
- 5
- 1
0
votes
1 answer
Error occurred while populating metadata while reading items from S/4 using java cloud sdk VDM
Using java SAP Cloud SDK version 3.9.0
We have a code snippet for reading Outbound Delivery Items from S/4 while looks like this:
List items = new DefaultOutboundDeliveryV2Service()
.getAllOutbDeliveryItem()
…

cleancoder
- 162
- 1
- 10
0
votes
2 answers
How to use class SalesOrganizationLink
I need to retrieve from S4HC the following information: which plants are assigned to a sales organization (in ECC table TVKWZ). Snooping around, I found out the class SalesOrganizationLink which I believe gives me such info. However, I could not…

Pietro Henrique
- 65
- 1
- 7
0
votes
1 answer
Usage of SDK classes
I am using SDK for Java, and I need to use one of the classes. However, I don´t know what exactly methods do, or I´d like to know which fields a get method will retrieve.
Looking [here]…

Pietro Henrique
- 65
- 1
- 7
0
votes
1 answer
How to check authorization while mocking S/4HANA responses
I use SAP Cloud SDK (js) to fetch sales orders and business partners from S/4HANA.
In tests, I use nock to mock the S/4. I want to match the response only if the destination is correct, i.e., authorization is correct.
Year ago I was using axios to…

meakgoz
- 568
- 4
- 18
0
votes
0 answers
Target host is not specified exception while 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 steps from the guide "Set Up Your Local Infrastructure…

arunava04
- 67
- 9
0
votes
1 answer
Fail to get binary code of billing document
I am using sap cloud sdk to get the binary code of billing document.
The java code is like below:
@Service
@Slf4j
public class MyBillingDocumentService {
@Inject
private BillingDocumentService bdService;
public String…

Jerry Zhang
- 179
- 3
- 13
0
votes
1 answer
Caching with SDK > 3.0 - No CachingProviders have been configured
I am trying to make some cached backend calls with the java SDK version 3.9.0. The only resource I found concering caching with the SDK version > 3.0.0 was the official release notes and this replay video of a community update call back in…

floste
- 79
- 6
0
votes
1 answer
OData VDM Generator Maven JARs missing for 3.9.0?
Yesterday the version 3.9.0 for the SAP Cloud SDK was released including the OData VDM Generator. However the corresponding Maven Plugin is still missing. Is there some reason for this or when can we expect this to be released? After all it contains…

Tim L.
- 224
- 2
- 11
0
votes
2 answers
Mass upload of Business Partner using batch operation
My requirement is to create BP's using SAP side-by-side extension via custom mass excel upload UI5 application. I am using SAP Cloud SDK and Web IDE MTA for this.
When I check on SAP API hub, the code suggestion in JAVA uses the URL of the odata…

nikhil joshi
- 11
- 5