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

Build failure for example application cloud-s4-sdk-book (integration test)

I have loaded a sample application for SCP / S/4HANA Business Partner integration, did changes as documented in read.me, I also have comm. user/arrangement in S/4HANA for 0008. When I try to build it, I get error during integration test, the…
0
votes
1 answer

Failed to get destinations... timed-out and fallback disabled

We use CAP to query data through ODATA V2 caller. But there is exception during my local env testing. I could successfully get the result in beginning. After I tested several times, it would raise exception every time. Please help me fix this…
Alex Du
  • 21
  • 1
  • 1
  • 4
0
votes
1 answer

DestinationAccessException using s/4 sdk

While trying to consume the odata service from s/4 cloud system using oAuth I get the following error: "DestinationAccessException: Failed to get authentication headers. Destination service returned error: Requested OAuth 2.0 scope exceeds the scope…
Treasa
  • 1
  • 1
0
votes
0 answers

CustomDestination gives Guava cache Error

We have overwritten AbstractDestinationFacade with our implementation of DestinationFacade and Destination. When we try to connect over this destination we get a runtime Exception from Guava cache Our use case:: We are trying to connect to remote…
Anirban Das
  • 107
  • 7
0
votes
0 answers

withServicePath method for additional odata services

Using the sap-cloud-sdk vdm generation we have generated the code for one of our custom developed odata service I dont see method withServicePath Is this method available for services other than standard one as mentioned…
0
votes
1 answer

CAP - Gateway Timeout - How to increase the time out of incoming request

I trigger a Post Function Import (Action in CDS), this would typically take about 2 minutes for processing. The POST operation was successfully completed in JAVA, however I get a Gateway Timeout. How to increase the timeout of incoming requests? I…
0
votes
1 answer

Can I deploy an app built on SAP Cloud SDK to Kubernetes?

We build a SCP native java application based on SAP cloud SDK. if we later on migrate to SCP kubernete env., would the app runs without migration? if changes needed, how much effort would it be? thanks.
0
votes
1 answer

ODATA VDM Approach results in SAP DBTech JDBC: Connection is currently in auto commit mode

I had done my ODATA services using CAP. I had used S4SDK VDM approach in order to test my ODATA service in Integration Tests. It was working well when I was using CAP 2.0. Now I had to upgrade to CAP 3.0. After the upgrade, all VDM enabled…
0
votes
1 answer

How to fix oData VDM generator error «trying to create the same field twice»?

I use SAP Cloud SDK 2.19.1 and odata-generator-maven-plugin:2.19.1. When I try to generate VDM by metadata-file from oData service /sap/opu/odata/sap/API_PRODUCT_SRV I get an error during the execution of a command mvn clean install: Error:…
0
votes
1 answer

Use FluentAPI's to execute against a HTTPClient instead of a destination name

We want to use the VDM generated API's to execute against a Http client instead of a destination. Currently the fluent api's work along the lines :: service......execute(new ErpConfigContext(destinationName)); Is it Possible to have it work against…
Anirban Das
  • 107
  • 7
0
votes
1 answer

VDM call to a function import returns null without throwing an exception

I am using VDM to query a function import. It returns null, which is not expected. It does not go to exception flow, so not able to figure out whether the call was a success or not. PurchaseRequisitionHeaderBOView resultPojo = null; try { …
Sachin C Nambiar
  • 135
  • 2
  • 11
0
votes
1 answer

Error while building maven project s4hana cloud sdk

with RELEASE version mentioned in archeType its giving this error Execution default of goal com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.19.1:usage-analytics failed: Plugin com.sap.cloud.s4hana.plugins:s4sdk-maven-plugin:2.19.1 or one of…
0
votes
2 answers

Capture Session Timeout in SAP cloud foundry application

Iam developing a SAP CF app and wnated to capture session timeout and show pop-up to user before session timeout happs to either refresh the session or execute the logout ,but setting the env variable SESSION_TIMEOUT as given in the link is also…
SCD
  • 89
  • 2
  • 10
0
votes
1 answer

SecurityContext.getUserInfo() does not work from localhost

I fetch the userid using the below code snippet. Its required for Audit Logging final UserInfo userInfo = SecurityContext.getUserInfo(); final String userId = userInfo.getLogonName(); After the deployment of application in Cloud Foundry, it works as…
0
votes
1 answer

Automated Testing with Project Piper

We are currently in the process of setting up a CI/CD pipeline for our SCP CF environment based on Project Piper. After a lot of trial & error, we have made significant process, however we are still not able to run our karma tests. We understood…