05-11-2010 2:56 PM
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
05-11-2010 9:40 PM
I think that you may use the public attribute WDR_TASK=>APPLICATION_NAME instead of checking the call stack