cancel
Showing results for 
Search instead for 
Did you mean: 

How to find method in DPC or MPC class to which the client request is initially invoked in gateway?

vikram_putta
Explorer
0 Kudos

Hello experts,

I have a requirement that I need to find the method in which the initial user requests are invoked in sap gateway? Because initially I need to use the function that using user-name(sy-uname) and user-id that retrieves the data and stores in transparent table. So that I can use these transparent tables for CRUD, expand and other functionalities. Otherwise, I need to use the function in every method like entityset, entity, expand etc., which is not an efficient way of coding.

Please help me!

Best Regards,

Vikram

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Generally speaking, you could find out such thing by using ABAP trace with no aggregation setting. Transaction code SAT.

vikram_putta
Explorer
0 Kudos

Hi Nakil,

I found /IWBEP/IF_MGW_CORE_SRV_RUNTIME~INIT method in ZCL_xxxxx_DPC_EXT class where initial user requests are invoked, but it does not support implementation of function in INIT method. I need to have a method where I could implement the function initially.

Thanks & Regards,

Vikram

Former Member
0 Kudos

I believe you can redefine that method and write your own logic.

vikram_putta
Explorer
0 Kudos

Hi Nakil,

I tried it by redefining the INIT, but it doesn't work. Finally, I resolved the problem by creating the function module where I had complete logic and I called this function module wherever I needed like in entitysets. Instead of executing complete logic in every entityset now I can execute only once.

Thanks!

Kind Regards,

Vikram