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

How to access destination service which is behind RabbitMQ using S4 Cloud SDK Connectivity

We are using S4SDK to access destination service. it needs to work in multi-tenancy env. Normally if the app is a frontend app, the request context is triggered by user request. Accessing destination service with multi-tenancy is doable with…
2
votes
1 answer

Netflix Hystrix Support

Netflix Hystrix seems to be going to a maintenance mode. Would like to understand what is SAP's take on this? Will there be any change going forward? As per the S4SDK blog Click here! , SAP S4 cloud archetype is using Hystrix library for…
Arun Kumar
  • 133
  • 8
2
votes
1 answer

How to access service destination from approuter?

It seems that I configured my approuter successfully: Approuter I gave a destination to my service in SCP Cockpit: destination config in SCP Cockpit And I maintained the destination in the xs-app.json: { "welcomeFile": "/webapp/index.html", …
RNLS0176
  • 115
  • 4
  • 13
2
votes
1 answer

ErpConfigContext and ODataQueryBuilder throw error when trying to connect through Odata service

I am trying to build an app for Cloud solution. When trying to run the app locally, I got error: java.lang.NoClassDefFoundError: com/sap/cloud/sdk/odatav2/connectivity/ODataException. This is running on Java EE 7 Web Profile Tomee 7 server. Apr…
Tracy
  • 21
  • 2
2
votes
1 answer

Deploy my project with S4 SDK in SCP Neo lead to error

I want to use S/4 HANA SDK in my existing java project in SCP Neo. I was advised to generate a new project, then move my existing code to the generated project under application. I generated a new project with the architect type specified in S/4…
Fred Z
  • 29
  • 3
2
votes
1 answer

Tenant aware background task with RequestContextExecutor?

I'm developing a Java App on SAP SCP Neo which is using the S/4 SDK for platform abstraction. I'm struggling to create a background task that is tenant aware. That means, when using the S/4SDK platform abstraction methods like…
2
votes
1 answer

S/4HANA Extension - Multitenancy

I'm trying out the S/4HANA extension development exercises for multi-tenancy (Week 2 - Unit 4 of this course). I was able to setup Postman as described in the video, but when I execute PUT tenant after executing GET csrf token, I get an error that…
turnip424
  • 322
  • 6
  • 16
2
votes
2 answers

User profile JSON data from SAP CP CF environment

Environment: Cloud Foundry Trail I deployed my business & approuter applications using help Now my requirement is get below user profile after XSUAA login. Is there any API to get user profile details? { "lastName": "XXXXX", "passwordStatus":…
Dama Ramesh
  • 159
  • 14
2
votes
1 answer

Invalid bean definition with name 'offlineTokenServices' defined in ServletContext resource [/WEB-INF/spring-security.xml]

Thank you for supporting to run the approuter package in locally. Now Getting below exception while running firstapp in locally. I add xs.appname xs.uaa.clientid xs.uaa.identityzone xs.uaa.verificationkey , but getting same issue only. Please…
Dama Ramesh
  • 159
  • 14
2
votes
1 answer

Error in JWT token validation when using SAPOfflineTokenServices on Cloud Foundry

We use the S4HANA Cloud SDK and have a service deployed to the SAP Cloud Platform, Cloud Foundry environment. The service is bound to the Cloud Foundry UAA. Authentication is performed using the @sap/approuter, which then forwards the JWT token in…
2
votes
1 answer

How to create a new Child node entity via oData without updating or creating the root node

I have created a custom business object in S/4HANA Cloud and it includes one parent node and one child node and also generated Java VDM for S/4HANA Custom OData Service. I combine it with SAP Cloud Platform SDK for service development (which I can't…
Minh Tri Le
  • 91
  • 10
2
votes
2 answers

POST Operation is failing with an error 405 Method not allowed

I developed a Java application using the S4SDK as described in the link below and deployed it to the SAP Cloud platform cloud foundry…
Sankeerth
  • 249
  • 3
  • 12
2
votes
1 answer

Unable to run the Java app in local environment

After developing a Java application, I ran the command mvn clean install the build resulted in SUCCESS. Now, I tried to run the app in the local environment with the command mvn scp:clean scp:push -pl application It resulted in the error as…
Sankeerth
  • 249
  • 3
  • 12
2
votes
1 answer

NoClassDefFoundError when running local tests with only tenant-scp-neo included in POM

Motivated by this blog entry, I tried to implement multitenancy for our existing application on the classic SAP Neo SCP. I added the dependency com.sap.cloud.s4hana.cloudplatform
gigi.com
  • 23
  • 1
  • 4
2
votes
1 answer

com.sap.cloud.sdk.frameworks.hystrix.ScpNeoHystrixBootstrapListenerjava.lang.IllegalStateException

If I use ODataQueryBuilder in a servlet, I can call the servlet without any problem. If I incorporated the code in a method and call this method within a ServletContextListener, I got first the following error. 2018 02 27…
1 2
3
8 9