‎2010 Mar 08 7:07 AM
Hi gurus,
I have Implemented on enhancement point in program RFEBKA00 . this is for FF.5 tcode. Now I want to execute this program in background every time. so which system fields or parameters should i check in the conditon. so that my code will execute only when it is matching the condition. currently I have used following code which is working in foreground but not working in background.
if sy-tcode eq 'FF.5'.
clear bankl.
endif.
Please suggest to correct condition so that code will execute only for FF.5 Tcode.
thanks in advance.
Vinod
‎2010 Mar 08 7:16 AM
Hi,
You can schedule a job using program name not with TCODE. that why SY-TCODE is not getting populated when u schedule the program in background job.
instead you can use SY-REPID = 'RFEBKA00' to set condition.
If SY-BATCH = 'X' it means program runs in background you can also use this variable.
Regards,
Shanmugavel chandrasekaran
‎2010 Mar 08 7:13 AM
Hi,
<li>Use sy-batch system field to use in condition like below.
Thanks
Venkat.O
If sy-batch eq 0.
"Code ------It is executed when you run program in background.
endif.
‎2010 Mar 08 7:16 AM
Hi,
You can schedule a job using program name not with TCODE. that why SY-TCODE is not getting populated when u schedule the program in background job.
instead you can use SY-REPID = 'RFEBKA00' to set condition.
If SY-BATCH = 'X' it means program runs in background you can also use this variable.
Regards,
Shanmugavel chandrasekaran