Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Access to local variables in calling procedure

Hi there,

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.

Any ideas?

Volker Bock

Not what you were looking for? View more on this topic or Ask a question