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
2 answers
GetAll method is not generated in VDM for custom OData Service
We have a custom OData Service. The service url is as below:
https://host:port/sap/opu/odata/sap/ZAPI_TRANSFERPRICE_CONDTYPE_SRV/$metadata
It can return all the price conditions by accessing the following…

Jerry Zhang
- 179
- 3
- 13
0
votes
1 answer
Missing VCAP_SERVICES while running local app with SAP cloud SDK
I goes along the tutorial at https://developers.sap.com/tutorials/s4sdk-odata-service-cloud-foundry.html. I set destinations as described to a running Mockserver on the Internet with no user and password. I'm using the latest version of the 3.xx…

PeterA
- 1
- 1
0
votes
0 answers
How to make a subsequent API call from java back end with destination configured with principal propagation
We are not able to make a subsequent API call from Java back-end code(cloud s4/sdk. maven tomee arch-type) with principal propagation destination.
Use-Case:
Initial API call is working fine as the request is getting triggered from UI5 via…
0
votes
1 answer
Null value in Patch request with S4Hana SDK
In our application we are using S4Hana SDK for consuming the services of S4Hana.
For update calls to S4 we are using PATCH request type. While doing so found that we are not able to set null value during update(PATCH).
For…

medha
- 3
- 2
0
votes
1 answer
Http status 500 with error message "Error when processing resource" when creating Sales Order with SDK
The OData Service I used is API_SALES_ORDER_SRV in SAP API Business Hub.
The payload to create sales order is as below. It works very good in SAP Gateway Client.
{
"DistributionChannel": "01",
"OrganizationDivision": "01",
"SalesOrderType":…

Jerry Zhang
- 179
- 3
- 13
0
votes
1 answer
Missing navigation value to_ScheduleLine in SalesOrderSimulation entity when transferring OData result to Sales Order simulation entity
I am using the SAP Cloud SDK to invoke OData service API_SALES_ORDER_SIMULATION_SRV to do sales order simulation.
The pay load I used is as below:
{
"SalesOrderType" : "**",
"SalesOrganization" : "**",
…

Jerry Zhang
- 179
- 3
- 13
0
votes
1 answer
How to overwrite generic ODATA expand handling functionality
We are currently working on performance issues with our provided OData interface, since the UI5 issues a read request with multiple expand paths attached. Due to the generic handling of the request by the framework this leads to an additional…

Tim L.
- 224
- 2
- 11
0
votes
2 answers
Can default repository of artifact configured as Nexus in docker?
Our project enabled Cloud SDK Pipeline. Upon a pull request, the pr job from Pipeline was triggered, and it tried to build with artifacts downloaded from: https://repo.maven.apache.org/maven2. However some dependencies of the project are not…
0
votes
1 answer
VDM call to get the navigation property which has multiplicity as 0 to 1, gives NullPointerException for 0 response
I am using VDM to get the navigation property which has multiplicity as 0..1.
Whenever the response returned from S4 is 0 (that is "204 No Content"), I am getting a NullPointerException.
HeaderCDSForPRForGuidedBuying requisitionHeader =…

medha
- 3
- 2
0
votes
1 answer
Fail to integrate Spring Security with SAP Cloud SDK Application
I have an SAP Cloud SDK project deployed on SAP Cloud Foundry and I want to protect backend APIs with Spring Security without using app router and OAuth solution SAP provides, for example http basic.
The APIs are all working fine with http basic…

Jerry Zhang
- 179
- 3
- 13
0
votes
1 answer
Oauth2ClientCredentials - Destination service returned error: unauthorized_client
I try to consume a CF destination defined as Oauth2ClientCredentials, where the authentication server needs only user/password and not clientid/clientsecret to generate the token. I have a dummy clientid and client secret in the destination…

Ana-Maria Tarca
- 73
- 4
0
votes
2 answers
How can I unit test ODataQuery and ODataQueryBuilder?
How can I unit test this code?
private ODataQueryResult buildAndExecuteQuery(String path String entity,
String sapClient, String sapLanguage) {
ODataQuery query = ODataQueryBuilder
.withEntity(path, entity)
…

Florian
- 4,821
- 2
- 19
- 44
0
votes
1 answer
How to provide OData service via the SAP Cloud SDK for an entity with a DateTime in its key?
We are currently struggling with providing an OData service for an entity, which has as part of its key a property of type DateTime. This key property is not part of the key map in the OData request given by the SAP Cloud Provisioning SDK. This…

Tim L.
- 224
- 2
- 11
0
votes
1 answer
Problem with AttachmentService of SAP Cloud SDK for JavaScript
Currently we use SAP REST API for uploading and managing attachments.
We want to replace the standard requests with the SDK because we had problems getting the connection through a CloudConnector with the respective proxy settings and because we…

HSSE
- 33
- 6
0
votes
2 answers
SAP Cloud SDK OData V4 Support
it is possible to call OData Service V4 from the SAP Cloud SDK? I could only find tutorials from SAP which are consuming V2. I the documentation i could not find the information. In my case it will be an custom OData Service V4 which will be…

Manjinder Singh
- 3
- 2