Skip to Content
0
May 11, 2010 at 01:56 PM

System_callstack: how to relate web dynpro application name to SYREPID in..

81 Views

Dear colleagues,

We call FM SYSTEM_CALLSTACK in order to check whether the caller application is authorized to read the password. We have a requirement so that we should "hard code" the names of the caller classes/FMs/reports in one ot our methods as follows:

... AND iv_mainprogram <> 'CL_SISE_USER==================CP'

...

The problem is the following: I also need to introduce a web dynpro application to the list of authorized programs. In development system at run-time, the callstack gives me the value '/1BCWDY/0O2TH29IBQ6Y54KNE1S6==CP' as the caller application (which I can also find in the table D010INC --> MASTER field). However this is system dependent. Therefore I need a way to obtain the name of the web dynpro application (such as R3TR WDYA WD_SISE_GENSTOR_UI that can be found in TADIR) from abap_callstack-mainprogram or vice versa so that I can determine if the caller application would be authorized or not.

Thank you very much in advance, best regards

Ebru