Retrieving variables between call programs
Need to access variables between call programs? Try the approach in this ABAP developer tip.
There are times when you want to access variables from a call program within a function module or user exit. Since...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
you cannot define variables outside of the current program, try the following to complete this task.
*Step 1: Assign the program/field name of calling program variable to field symbol 1 assign '(zcall_program_name)fname_from_call_program' to <fs1>.
*Step 2: Assign field Symbol contents to field symbol 2 assign (<fs1>) to <fs2>.
*Step 3: Assign Field Symbol 2 to avariable in the current function module/Program vbak-vbeln = <fs2>.