Skip to Content
avatar image
Former Member

Calling SEGW service from within ABAP Code

Hi,

I have registered an FM with SEGW and implemented methods in it.

My service is created now. Can I call this service from within an ABAP code?

I want to do this so as to use the Gateway functions and security. All I know to execute this is via SEGW. Need some standard FM or classes via which I can call this _SRV service of the gateway and get the response back in my code.

Thanks,

Ags

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 21, 2015 at 05:16 AM

    Hello Sinha,

    Technically you can using cl_http_client & if_http_client

    Below are the references ->

    How to consume oData Service in ABAP client? | SCN

    Consuming an External RESTful Web Service with ABAP in Gateway

    But still not sure why you would like to consume GW Service this way.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Why would you want to read Gateway service from ABAP ? Why not call the function module or methods directly from ABAP.

      Gateway service is meant to be consumed by front end (like browsers) using SAPUI5 or any other javascript based technology (jQuery), etc.