Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Duplicate Job

0 Likes
720

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.

2 REPLIES 2
Read only

Former Member
0 Likes
533

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.

Read only

0 Likes
533

Thanks Folks I have found the function module to solve my problem

BP_FIND_JOBS_WITH_PROGRAM