Hi Experts,
I am having a requirement in which i am exporting an flag to memory from one program and importing that in another program. in foreground it is working fine. But in background it is not working. Is there any work around.
Report 1:
DATA:l_flag type c value 'X'.
free memory id 'ZFLAG'.
EXPORT L_FLAG TO MEMORY ID 'ZFLAG'.
LEAVE PROGRAM.
Report 2:
DATA:L_FLAG TYPE C.
import l_FLAG from memory id 'ZFLAG'.
free memory id 'ZFLAG'.
IF l_FLAG = 'X'.
LEAVE PROGRAM.