cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Gateway and outbound HTTP calls possible

klaus_wegener2
Explorer
0 Kudos

Hi,

I have a question regarding the SAP Gateway. Is it possible to execute an HTTP Post/Get against
another URI ressource in the Internet (like calling a webservice)?

My Scenario would be like the following:

* Gateway Service Definition (e.g. using an SAP target system RFC to save data...)

* Force SAP Gateway to call webservice via URI in the Internet.

* Take HTTP Response (maybe JSON), put into ODATA Service and execute Service
   in own SAP System.

As I understood, ODATA is a REST based retrival language to be used for example for
any mobile, asking for SAP Business data.

But is it possible to execute a (like an active regular HTTP polling) Gateway outbound call?


Thanks in advance

Klaus Wegener

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184867
Active Contributor
0 Kudos

Technically this is possible. Anything that can be called by ABAP, is also possible to call by Gateway as well. As mentioned in the Ashwin Dutt R's reply there is something similar which Gateway is using internally for OSCI. But in OSCI Gateway is internally calling another OData service not web service.

You can achieve it by handcrafting your code in the DPC_EXT class in the suitable method.


However you must be aware of the complexities and the drawbacks. For example --

1. As you are internally making one more HTTP call so things might become slow. 

2. Gateway DPC only understands ABAP structures, so whether you get JSON/XML you need to convert that data into suitable ABAP structures/internal table expected by the DPC.

3. External RFC is also something that may need some kind of thought

AshwinDutt
Active Contributor
0 Kudos

Hello Klaus,

Check the below and see if it can help in any way ->

OData Services Consumption and Integration - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Libr...

Regards,

Ashwin