Skip to Content
0
Mar 10, 2023 at 01:42 PM

CAPM-POST Request S/4 On-Premise System

408 Views Last edit Mar 10, 2023 at 01:43 PM 3 rev

Hi Gurus,

I am implementing a side-by-side extension case in which I have my RAP artifacts exposed as an OData v2 service with a custom action on the S/4 end, on the other end I have a CAP application on CF which should call the custom action.

I have managed to accomplish this by sending a HTTP POST request with the CSRF token and cookies in the request header using the executeHTTPRequest function from the Cloud SDK. The token and cookies are first retrieved by sending a GET request.

My question here is:

  • Are there any more "elegant" ways to achieve this and not involving multiple requests? I was under the impression that the token and cookie handling would be done by the SDK.
  • If no, are there any plans to incorporate these handling in the SDK?

Thanks and best regards!