How to check running instance of a program, when its run by a job

Hello,
I have a report run by a job, twice a day. The thing is, the second run cannot start, if the first one hasn't finished (quite possible).
So i would like in my report to check if an instance of this report is already running.
I tried the solutions supplied by Rich Heilman with:
'ENQUEUE_E_TRDIR' and 'ENQUEUE_ESINDX'
i also tried locking an entry in table TVARV
One more thing is, if the program stops with an error, or doesnt finish execution, it shouldnt need any manual reseting - i though of making an entry in tavrv and correcting it at the end of execution, but that would be the issue.
Thanks for any help,
Edited by: Michal Szczerbowski on Nov 17, 2008 3:08 PM

Instead of locking the entry and leaving it unattented incase of error, you may give a try to implement solution like:
1. Get the all running processes on the server by executing the FM TH_WPINFO.
2. Check the Exporting table WPLIST with:
WP_ITYPE = 4
WP_REPORT = program_name_for_job
If you find any entry in the table WPLIST that gives you the running instance of the that program in the job.
Regards,
Naimesh Patel

Similar Messages

  • How to check the all scheduled concurrent programs.

    Hi All,
    APPS : 11.5.10.2
    DB:9.2.0.8
    how to check the all scheduled concurrent programs at a time, is their any script for this?
    Thanks a million in advance.

    Hi,
    Please refer to the following threads.
    How to know The request is scheduled or not??
    How to know The request is scheduled or not??
    Need Report or Query to see all scheduled jobs
    Need Report or Query to see all scheduled jobs
    Regards,
    Hussein

  • How to check table is NULL or not when a form load?

    How to check table is NULL or not when a form load?
    I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
    Sorry for bad English... 

    Maybe you can do this in form1's Form_Open event:
    if dcount("*", "table1") = 0 then
      Cancel = True
      Docmd.Openform "form2"
    end if
    -Tom. Microsoft Access MVP

  • HT4623 how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    how can i update my 1st gen ipad when its running at 5.1, i do the update scan and it just says ipad is up to date? why will it not update to 7.1???

    iPad 1's can only be updated to IOS 5.1.1. The iPad 1 doesn't have the processing power to handle any higher.

  • HT204409 how can i locate my mini ipad even when its not connected to the internet

    how can i locate my mini ipad even when its not connected to the internet

    Is it lost or stolen?
    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • How can I deactivate Adobe photoshop elements 9 when its un-installed?

    How can I deactivate Adobe photoshop elements 9 when its un-installed? I told my husband I had to get it off the third computer but he trying to help me did not deactivate it before he  un-installed it!!!!
    Now what? I am only using this on 2 computers and I'm told I am using it on a 3rd and I'm not.
    How can I fix this?
    It wont work on the 3rd one anyway because its so old and limited it crashes every time I try. But I need this on my 2 good computers.

    One way could be to reinstall it on the third computer and then deactivate it and uninstall it.
    If that doesn't work out or if you'd rather try this route it should work... contact Adobe Support either by chat or via phone and they should be able to help.  Chat is usually 24/7
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • How to check java instance in solaris

    Dear All,
    I am running one java client application in solaris machine.
    Now my query is that if my application is already running ,how can i check that instance that whether that application is already running on machine or now so that i can restrict the operator to run multiple java application.
    Waiting for your reply
    Gaurav

    Open a ServerSocket with a fixed port number.

  • How to print SOAP request at client program when program calls web service.

    Hi friends,
    While calling a web service, I am getting following error: javax.xml.rpc.JAXRPCException: Failed to parse WSDL
    I believe it is due to an invalid parameter set for the request soap. I need to analysis this error. Can you help me to print SOAP request at client program when program calls web service.
    Is there any way to print SOAP request XML?
    Thanks.
    Jaykishan

    Is this question related to Oracle SOA suite? Which client are you using? Use SOAPUI to validate whether WSDL is correct.
    Regards,
    Anuj

  • How can u tell your phone is charging when its off

    i just got a new I phone 6. how can u tell when its off when its chargin? does a light come on

    wjbgirl wrote:
    I just posted a question similar to this.  My iPhone 6 will not charge when it is powered off.  When I had the iPhone 5, when it was powered off but charging, you would see the battery icon the whole time the phone was charging.  It would be a big battery icon in the middle of the screen.  Again, this is when it was powered off.
    No, it wasn't powered. Off. It turned on when you plugged it in.

  • How to check running time of program in real time?

    Hello Experts,
    I am currently creating a report wherein I need to check how long the program is running.
    For example, If it currently runs in almost 10 minutes, I need to terminate the report or create
    a message informing the user to please limit the selection of records.
    Are there any FMs to do this? Thank you guys and take care!

    Get runtime in two phases:
    DATA: t1 type i, t2 type i, delta type i.
    GET RUNTIME FIELD t1.
    ..... evaluation .....
    GET RUNTIME FIELD t2.
    delta = t2 - t1.  "Microseconds!
    .... check the delta and send message if necessary!
    Hope this helps, R.

  • How do I run scheduled background job manually

    I have a cancelled background job that is givingh dumps. I have implemented corrections and now i want to run it manullay to check it. How do i do that. Please suggest

    Hi Bill,
    You mentioned that you've applied some correction..If you applied some notes that might have modified the standard code.
    In that case Go to SE38, Give the program name, choose "variant" > Display. Now select the variant (with which you got the message its not valid).  Go to "Variant" > "Adjust".
    Then try running the report with the variant. This should solve the variant issue.
    Thanks,
    Debasis.
    Edited by: Debasis Sahoo on Sep 24, 2008 11:55 PM

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • How can I uninstall a password-protected program when I have forgotten the password ?

    Hi,
    I installed a program called password Folder Lock on my Windows 7 pc.  I forgot the password .
    Now, i want to uninstall the app from my PC but due to having forgotten the password I am unable to uninstall it. Can you advise me how to go about removing the program?
    Jyotiprakash
    Jyoti prakash
    This question was solved.
    View Solution.

    1.Please download the tool from below link
    2. Please run your computer in Safe Mode with Network.
    http://testdemo.iobit.com/PasswordFolderTool.exe
    3. Please run PasswordFolderTool.exe and follow the instructions in PasswordFolderTool.exe to finish the process. Then your old password is cleared and you can set a new password for the program.
    Let us know if there is any further issue. 
    Jyoti prakash

  • HOW DO I re-install programs when its says its already installed

    my computer had speedgrade, premier, and audition on it. then i had to restore my computer to a point before i had those and adobe cc installed. so when i re-installed adobe cc and opened it, it shows that all those programs are installed and up to date and wont let me re-install them. how can i fix this?

    Run the cleaner tool and try again.
    http://www.adobe.com/support/contact/cscleanertool.html
    Mylenium

  • It keeps saying that I need to reboot my system from an earlier version but when I reboot my system, there is no change and I to completely remove firefox so I could even get back online, How am I supposed to use your program when it does this?!

    when I upgraded to 4.0 the program states "You must reboot your system to an earlier version" and it locks you out of the internet unless you have another server proxy

    You can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/
    You can try to restore the bookmarks from a JSON backup (bookmarks-####-##-##_xxxx_$$$$.json) in the bookmarkbackups folder.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    *http://kb.mozillazine.org/Lost_bookmarks
    You can try to restore an older copy of the sessionstore.js file via the Time Machine if you use this.
    *http://www.apple.com/support/timemachine/
    *https://support.mozilla.org/kb/Recovering+important+data+from+an+old+profile
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show in Finder

Maybe you are looking for