‎2009 Mar 14 3:01 AM
Hi, Experts:
If user run z_program download data to a local file in the foreground. how to disable background run option.
Thanks in advance.
‎2009 Mar 14 3:22 AM
you can check the condition if sy-batch = ' '. it means its foreground... if its X then its background ..
‎2009 Mar 14 3:29 AM
The business knows that, its meant for foreground, right? Why they run it in back ground? but, still if they want, u can implemet the suggestion as above reply.
Anyhow, even they run it in back ground, it does not work!! bcoz, its saving/downloading the data into LOCAL file!!
thanq
‎2009 Mar 14 9:59 AM
do like this ....
prepare final internal table ..
if sy-batch = space . <----
this is for fore ground.
do processing here...
else.
message i000 with ' we cannot run this in background'.
endif.