cancel
Showing results for 
Search instead for 
Did you mean: 

How to read/modify entries of custom table from on-premise system using embedded steampunk

0 Kudos

Hi,

I’m trying to reimplement a SEGW project into side by side or on-stack extensibility using RAP. Is there a way to access/modify the entries of a custom table from on-premise system using RAP?

Thanks,

Freddie

Accepted Solutions (0)

Answers (1)

Answers (1)

Sijin_Chandran
Active Contributor

Hi Freddie,

As the 'Side-by-side Extension' and 'Keep the core clean' methodologies advocate the usage of APIs for communicating with the Core (in your case its an S/4 HANA On-Premise System), so my suggestion would be to create an OData service on top of your Custom Table in S/4 HANA On-Premise System and expose it through the Gateway so that External systems(in this case BTP instance) can access it.

Now thinking from the BTP, RAP application side, you can consume the service using below 2 methods:

1.) Directly consume the Service using the End-point URI,

'cl_http_destination_provider=>create_by_url' is what can help you out for this.

2.) Consume using Destination concept, which would again need Cloud-Connector setup to establish the connection between On-Prem and BTP.

'cl_http_destination_provider=>create_by_cloud_destination' come handy for this purposes.

E.g.

https://answers.sap.com/questions/13891731/issue-while-consuming-rest-api-hosted-in-sandboxap.html

One more point here, it seems OData V4 in Service Binding for RAP Model doesn't support Draft feature, so you might need to go for V2 Service Binding as of now.

https://blogs.sap.com/2023/04/22/keep-the-core-clean-with-rap-model/

Hope, this helps you.

Thanks,

Sijin