There are times when you want to access variables from a call program within a function module or user exit. Since...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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>.