on 02-22-2019 3:37 PM
Hi,
I am new to Gateway & have a question.
For a service, I wanted to define a common method which should trigger everytime service called irrespective of method or entityset. will use this method for common logic at service level (Ex. Retrieving RFC destination, Authority checks etc..). Could you please help me on how to do that.
Thanks in advance.
- Eswar
Hi,
Could you use the constructor available in the DPC_EXT class which gets invoked for every method that gets triggered.Thanks
Praba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhanu Pentakota,
You can redifine the below method in dpc_ext class.. Don't forget to call the super class method inside 🙂
/IWBEP/IF_MGW_CORE_SRV_RUNTIME~INIT
BTW the authorization check for odata service is handled by framework itself.. I couldn't find the help link..
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Mahesh "Don't forget to call the super class method ... " solved the issue. 🙂
But stuck with another issue.
below logic works fine in /IWBEP/IF_MGW_APPL_SRV_RUNTIME~CREATE_DEEP_ENTITY method and default GET_ENTITY methods. but not working in /IWBEP/IF_MGW_CORE_SRV_RUNTIME~INIT method.
MR_REQUEST attribute value is initial in the get_destination_finder() method. any idea?
DATA:
o_dest TYPE REF TO /iwbep/if_destin_finder,
o_facade TYPE REF TO /iwbep/if_mgw_dp_int_facade.
o_facade ?= /iwbep/if_mgw_conv_srv_runtime~get_dp_facade( ).
o_dest = o_facade->get_destination_finder( ).
w_destination = o_dest->get_rfc_destination_via_rout( ).
(w_destnation is defined global, is fine)
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.