2008 Jul 30 7:39 AM
Hello all.
Is there a way for me to know, in the ABAP program, at runtime, whether the program is beeing run by a background job or not?
Thanks!
2008 Jul 30 7:40 AM
2008 Jul 30 7:40 AM
HI barak,
There is no such indicator field for background job but SY-BATCH is the sytem field(check table SYST) which gives you the name of the program running in the background.
Best of luck,
Bhumika
2008 Jul 30 7:40 AM
2008 Jul 30 7:40 AM
Hi
check
SY-BATCH for Program running in background cehck in SYST table for all.
Thanks & Regards,
Chandralekha.
2008 Jul 30 7:42 AM
Hi,
There is a system variable sy-batch.
if it is background the sy-batch =1
if it is online the sy-batch = 0.