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

Error "Failed to construct URI for OData request with request path" SAP Java VDM withQueryParameter

I have create a CAP VDM in java with SAP SDK 3.29.1. In event handler @On read, i would like to pass the input filters to the VDM. Es. @On(event = CdsService.EVENT_READ, entity = "XXXX") public void readXXX(CdsReadEventContext context) throws…
StaniSorre
  • 13
  • 2
0
votes
1 answer

SAP JAVA VDM split $filter in input

I've create a project VDM java.In Query response i would like to split the input filters is it possible? public class ControStatus { private final Logger log = LoggerFactory.getLogger(this.getClass()); @Query(serviceName = "CatalogService", entity…
StaniSorre
  • 13
  • 2
0
votes
1 answer

How to call a on-onpremise BAPI in SAP Cloud SDK Java

I am trying to call a BAPI in SAP Cloud SDK Java, not sure whats wrong with below code. Please help me here final Destination destination = DestinationAccessor.getDestination("MyErpSystem").asRfc() …
0
votes
2 answers

Get navigation properties using generated VDM by SAP Cloud SDK

I need to get navigation properties data. Does anybody know how to use navigation properties using SAP Cloud SDK? I created a VDM by SAP Cloud SDK VDM Generator. The source OData is V2 and on S/4 HANA, which is generated by CDS View. What I want to…
fuku
  • 11
  • 2
0
votes
1 answer

how to find language of the current session when calling odata service without passing any language

We have a use case where we integrate with S4HANA Odata service using a technical user We do not specify language anywhere while calling the service The service returns response where some elements of response are language dependent (e.g. units) we…
0
votes
1 answer

Working with S4HANA extensible service - VDM approach or other way

Currently we consume an S4HANA odata service in SCP using cloud sdk. As recommended , We currently use VDM generation approach to generate VDM class. Now we identified that the S4HANA ODATA service is extendable. customers extend the service and…
0
votes
2 answers

SAP Java Cloud SDK count query on SuccessFactors entity is not working

Count query on SuccessFactors entity doesn't work as it requires $top to be greater than 0 but count() method of FluentHelperCount is overriding $top with 0. Hence the SuccessFactors rejecting the call with 400 error. Here is my code (throws…
Gippy Aulakh
  • 104
  • 7
0
votes
1 answer

How to do partial redeployment in SAP Cloud Foundry using blue-green mode?

We are using mta to structure our application consisting of multiple micro-services. The mtar file is deployed to SAP Cloud Foundry in blue-green mode using the SAP Cloud SDK pipeline (Piper Project -> cloudFoundryDeploy step). We are running into…
0
votes
2 answers

What exactly is needed to get an HTTP client from SAP CloudSDK for principal propagation?

I'd like to send a custom OData request to an on-premise SAP ABAP system, using the SAP CloudSDK 3.20.0. "Custom" meaning I cannot use virtual data models but assemble the request URL "by hand" and treat the response on my own, like regular REST…
Florian
  • 4,821
  • 2
  • 19
  • 44
0
votes
2 answers

How to access/refer/reuse the Odata field as a constant from VDM into another Application specific POJO Classes

We have used cloud SDK(odata-generator-maven-plugin) and generated the VDM out of our EDMX(defined in xml) file. Now, want to refer some of the fields from VDM as a constant in our POJO class instead of re-defining as a constant in our class . I…
0
votes
1 answer

Nodejs application intermittently leaks memory when deployed to CF using SAP Cloud SDK Pipeline

We are using mta to structure our application consisting of multiple micro-services. Earlier we were deploying the micro-services to SAP Cloud Foundry using the CF CLI but recently switched to SAP Cloud SDK Pipeline for deployment using blue-green…
0
votes
1 answer

Complex Queries for Side-by-Side SuccessFactors extension using SAP Cloud SDK (NodeJS)

I am trying to create request builders using SAP Cloud SDK for calling Successfactors Odata APIs. I am facing issues with complex OData querying that includes $expand and maybe custom…
0
votes
0 answers

How to optimize large size mtar for TMS upload?

We are using mta to structure our application consisting of multiple (11 nos) micro-services (Java + Nodejs + Python). Using the SAP Cloud SDK Pipeline, we are packaging the aforesaid micro-services into mtar file and then uploading the generated…
jycha340
  • 31
  • 4
0
votes
1 answer

Unable to load servlet filter class: com.sap.cloud.sdk.cloudplatform.security.servlet.HttpSecurityHeadersFilter (SCP Neo)

I come to ask help with an issue I am facing at an application deployment in SCP. SAP Cloud Platform: SCP environment is Neo Runtime name = Java EE7 Web Profile TomEE 7 Version = 1.74 Java application: Archetype Neo SAP Cloud SDk v3 The…
0
votes
1 answer

SAP Cloud SDK (Java) throws naming error exception on SuccessFactors metadata load

I am not able to move forward due to an exception thrown by Cloud SDK. EdmNamedImpl class of cloud SDK is throwing an error due to incorrect SF Metadata property name. The property name of the SF entity is "goto-url", so due to hyphen in field name…
Gippy Aulakh
  • 104
  • 7