2009 May 01 9:04 AM
HI All,
Is there any FM to Check if a program is already running at background by program name .
Thanks
Neha
HI All,
Is there any FM to Check if a program is already running at background by program name .
Thanks
Neha
2009 May 04 12:28 PM
Hi,
May be you can refer to the table TBTCP - Background Job Step Overview available.
Regards,
Santhosh.
2009 May 04 12:33 PM
YOu can use the Function module:
BP_JOB_STATUS_GET
First , get the jobname(JOBNAME) and jobcount(JOBCOUNT) using the program name(PROGNAME) using the table TBTCP
Regards,
Ravi
2009 May 04 12:49 PM
Hi,
You can check like this too
tables: tbtco.
parameters: p_jobnam like tbtco-jobname default '*Backgroundjobname*'.
select * from tbtco
where jobname like '%Z_jobname_list%'
and status = 'R'.
if sy-subrc = 0.
write: / 'Job still running', tbtco-jobname, tbtco-sdlstrttm.
else.
write: / 'No job is running at the moment'.
endif.
endselect.Cheers|
2009 May 04 1:11 PM
2009 May 04 1:41 PM
Hi,
use Function "BP_FIND_JOBS_WITH_PROGRAM" and check the resulting joblist for entries with not initial strdate/strdate and initial enddate/endtime.
Regards
Walter Habich