on 04-24-2023 12:08 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.