Access to local variables in calling procedure
i know there is a trick to access at least global variables of the main program, without knowing them in the current context. This can be done via field symbols as this (actually I am in a BadI within stock determination in EWM):
field-symbols: <fs> type any.
ASSIGN ('(nameofprogram)variable') to <fs>
I would like to know, if there is a similar possibility to access also local variables from the calling routines. In my case, if I am in the debugging mode and select the calling routine/function module in the ABAP stack, I have access to it. Thus I believe it somehow must be possible.