Checking different jobs within an ABAP program

Checking different jobs within an ABAP program

Within an ABAP program, how can you check if another job with a particular job name is running? For instance, in my ABAP program, I want to see if there's a job called 'UPDATE_FILE' running. Is there a way to do this?


    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

You can query table TBTCO (Job Status Overview) and determine if the value of the field "STATUS" is 'R' for active or running for the JOBNAME='UPDATE_FILE'.
Possible values in "STATUS" field are:
P Scheduled
S Released
A Cancelled
R Active/Running
F Ready

I believe this answers your questions. Please let me know.


This was first published in June 2002