on 10-21-2015 5:56 AM
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
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
But still not sure why you would like to consume GW Service this way.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have gone through these post earlier and thought that there will be some other alternate ways to call the Services since its already inside SAP. These posts explains how to call external URLs. SO I guess, to call SEGW service URL from ABAP using these classes, we need to mention the complete sap server path as url??
What happens to this code when it moves to Quality or PRD ? Wont the path change? How do we handle that?
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.