11-03-2009 6:11 AM
Hi Gurus, How can I get the job number of the latest background job of a given program? I've kept the job to run every one hour and want the job number of the last successful run so that I can get the run time and date. Basically I have a jobname and want the jobcount of the last successful run. Can you help me? Regards, Rahul
11-03-2009 6:17 AM
11-03-2009 6:17 AM
11-03-2009 6:19 AM
11-03-2009 6:21 AM
11-03-2009 6:22 AM
check BAPI_XBP_JOB_COUNT
BAPI_XBP_JOB_STATUS_GET
BAPI_XBP_JOB_SPOOLLIST_READ - table TBTC_SPOOLID
11-03-2009 6:41 AM
Solved self.. BP_FIND_JOBS_WITH_PROGRAM You get the list of run jobs and also you can also filter the list by 'only successful' runs. Then sort the list descending and get the latest alone. Thanks all.
Edited by: Rahul Raj on Nov 3, 2009 7:41 AM