Skip to Content
0

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

Mar 20, 2017 at 12:30 PM

180

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Mar 21, 2017 at 07:20 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

0
Former Member
Vikram putta

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

0

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

0