cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume an Odata from On Prem system in SAP ABAP Cloud?

0 Kudos

We are trying to consumer an Odata service in our On Prem system in SAP ABAP Cloud in BTP. We tried multiple blogs. Can anyone please help with this? Is there any best practice we can try here.

We are getting an error 403 - Forbidden always. If we try to consumer the service through the destination using

DATA(http_destination) = cl_http_destination_provider=>create_by_cloud_destination( i_name = 'Destnination Name' "i_service_instance_name = 'SAP_COM_0276' i_service_instance_name = 'Instance Name' i_authn_mode = if_a4c_cp_service=>service_specific ).

Accepted Solutions (0)

Answers (2)

Answers (2)

gregorw
Active Contributor
0 Kudos

Please check this documentation:

Integrating On-Premise Systems

Srinivas-Rao
Contributor
0 Kudos

Hi - Look for the service consumption model documentation and create the artifact in ABAP PaaS. On creating it, you will already find some sample code to call an API.

Thanks & Regards

Srinivas Rao.