2008 Dec 09 6:01 AM
Hi All,
I have created a report and created a background job for this. In another program I want to check whether an active/scheduled job of the first report exist or not?
How to solve this problem??
Regards,
Jeetu
2008 Dec 09 6:06 AM
Hi ,
To run a report in a background, a job needs to be created with a step using the report name
and a variant for selection parameters. It is recommended to create a separate variant for each
scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
company codes).
While defining the step, the spool parameters needs to be specified
(Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
to find the spool request.
2008 Dec 09 6:07 AM
Use FM : BP_JOB_READ
Pass the job number and jobcount and it will return the status of the job.
2008 Dec 09 6:10 AM
Hi,
Use the Function module
BP_FIND_JOBS_WITH_PROGRAM
Check the output table
JOBLIST (Structure TBTCJOB)
It will have all the job details
Just pass the program name
Regards
Edited by: Rajvansh Ravi on Dec 9, 2008 7:11 AM
2008 Dec 09 6:10 AM
2008 Dec 09 6:16 AM
2008 Dec 09 6:27 AM
try using BP_JOB_SELECT to get job id and then BP_JOB_SELECT to get the status