Questions tagged [s4sdk]

SAP S/4HANA Cloud SDK provides you out-of-the-box capabilities, such as an abstraction of the underlying cloud platform implementation, fault-tolerance, cache management,etc. It also provides a solution for continuous delivery with the help of readily available Jenkins pipeline. Not to be confused with similarly named products and technologies e.g. S/4 HANA, Boost.Hana, SAP HANA Vora, or SAP Cloud Platform (SAPcp)

The SAP S/4HANA Cloud SDK reduces your effort when you start to develop an application extending SAP S/4HANA on SAP Cloud Platform by providing Java libraries, project templates, and continuous delivery tooling.

The SDK’s Java libraries (available from Maven Central) provide out-of-the-box capabilities to integrate SAP S/4HANA systems via a virtual data model, as well as a set of abstractions for underlying SAP Cloud Platform functionality. It integrates state-of-the-art open source frameworks for resilience, caching, feature toggling, and more. To get started quickly and maintain high quality, the SDK also provides project starters and a solution for continuous delivery with the help of a readily available Jenkins server and pipeline (open source on GitHub).

Information resources

  1. Product page
  2. Blog posts and tutorials
  3. Pipeline Library
  4. S/4HANA Cloud SDK Pipeline
135 questions
7
votes
1 answer

How do I access OData service using the SAP S/4HANA Cloud SDK in existing application?

I have a Java application on SAP Cloud Platform Cloud Foundry that integrates with SAP S/4HANA Cloud (my company's ERP system) by calling APIs (OData services) in that system. I heard about the SAP S/4HANA Cloud SDK and that it makes such scenarios…
Georg
  • 987
  • 8
  • 16
7
votes
3 answers

Unable to upload artifact to Nexus Repository - S4SDK Pipeline

I am trying to upload the artifact to Nexus repository using the Artifact deployment stage in the Jenkins pipeline. For doing this I am providing Jenkins with the Nexus credentials and the path to find the repository. But, this stage is failed with…
Sankeerth
  • 249
  • 3
  • 12
5
votes
1 answer

DestinationAccessException while executing OData Query with S/4HANA Cloud SDK >= 2.0.0

I'm trying to read data with an OData Service out of an S/4HANA Cloud 1805 system using the VDM as described in https://blogs.sap.com/2017/05/21/step-4-with-sap-s4hana-cloud-sdk-calling-an-odata-service/. The Destination uses Basic Authentication.…
J.Rausch
  • 53
  • 4
4
votes
1 answer

Token fetch using XSTokenRequest in Cloud SDK

We were using xs security library to get token based on token type (client_credentials/user_token). I was not able to replicate the same in the security feature of Cloud SDK without using xs security library. Background: We wanted the token…
Aparna I
  • 41
  • 2
4
votes
2 answers

Failed to get current user: no RequestContext available

Getting below exception while fetching logged in user object using xsuaa approuter login User currentUser = UserAccessor.getCurrentUser(); I am to get currentUser object without using GuiceFilter, If I apply GuiceFilter then getting below…
Dama Ramesh
  • 159
  • 14
4
votes
2 answers

OData navigation returns exception when using SAP APM and S/4HANA Cloud SDK

I created an APM Business Application in SAP Web IDE Full-Stack. The S/4HANA SDK reads business partners with the S/4HANA API. Custom business partner data is persisted in a SAP Cloud Platform HDI container. The business partner entity has an 0..1…
4
votes
1 answer

Creating ErpConfigContext threw exception

I am trying to use the S/4HANA SDK to call the CompanyCode OData VDM service but if I do this in the Cloud Foundry environment I'm getting the attached error. I have been using the SDK before but this did not happened. Can you please help me…
S.Iovita
  • 135
  • 9
4
votes
2 answers

How to access the deployed Java apps in portal site in Cloud foundry?

I deployed a Java application in SAP Cloud platform cloud foundry environment. I wonder how to access this application on Portal site in cloud foundry. Can someone please help me? Thanks, Sankeerth
Sankeerth
  • 249
  • 3
  • 12
4
votes
1 answer

Do you have an example to use CUD ODataXXXRequestBuilders

In all the documentation I found examples for ODataQueryBuilder. But do you also have an example how to use the Create, Update and Delete methods of the package…
4
votes
2 answers

S/4HANA Cloud SDK :com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces does not exist

The build is fails due to lack of resource: class com.sap.cloud.sdk.s4hana.datamodel.odata.services.BusinessPartnerService Do we need to have/create this model classes in our project structure or will SDK take care of this static import? Error…
Kandarp P
  • 43
  • 3
3
votes
1 answer

Principal Propagation to S/4 with App-To-App SSO

I'm unable to call S/4 with Principal Propagation when coming from an App-To-App SSO request. Is this scenario supported by the SDK? We have an HTML5 app in SCP Neo, and a Java app in the same subaccount. Our intention is to let the HTML5 app fetch…
Tales Vecchia
  • 31
  • 1
  • 2
3
votes
2 answers

Uploading custom jar to cx-server nexus

So, I am trying to set up a CI/CD pipeline with the s4sdk. I successfully completed all the steps descriped in this blog. Everything seems to be running smoothly, however my build is failing with the following error message: The following artifacts…
floste
  • 79
  • 6
3
votes
1 answer

unable to perform Delete operation on Odata services using s4sdk

I followed the blog & I was able to perform create, read & update operations on my custom OData service, but I am unable to find any blog/document for delete operation. Please help.
Armghn
  • 144
  • 2
  • 14
3
votes
2 answers

CloudLoggerFactory's Sanitized Logger shows CRLF Injection vulnerability in Veracode Scan

We are using S4 SDK's CloudLoggerFactory to log exceptions throughout our application. For a class "SampleClass", we create a logger like this: private static final Logger logger = CloudLoggerFactory.getSanitizedLogger(SampleClass.class,…
AxelAvion
  • 41
  • 4
3
votes
1 answer

Class TimeSheetEntryField missing from WorkforceTimesheet in S4 SDK

I am updating one of our S4 SDK projects to use the latest version of the SDK and I noticed then when I try to build the project I got the error: cannot find symbol> [ERROR] symbol: class TimeSheetEntryField When I look at the Javadocs I can see…
Simon Kemp
  • 33
  • 2
1
2 3
8 9