‎2007 Dec 12 7:35 PM
Hello ABAP Guru's
I want to be able to stop duplicate instances of a program executed in background. Is there a standard SAP function module that takes program name (not jobname) and tell if there are more than 1 active instance executing in background?
Note: I dont want to use the jobname as the same program can be released by 2 different users with different job names.
‎2007 Dec 12 8:13 PM
Here are a couple possible options:
1. Create a lock object with program name as the parameter. In the beginning of your program, lock the program, and unlock it after it is done.
2. The program could check TBTCP/TBTCO to see if a job is currently running with this program as one of its steps.
‎2007 Dec 12 8:15 PM
Thanks Folks I have found the function module to solve my problem
BP_FIND_JOBS_WITH_PROGRAM