Detect another process running the same program simultaneous

Question: Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?

Thank you

Answer:
there are several methods for this purpose, but you must code it

my favorite is using the FM ENQUEUE_ARRAY because of reliability, it works also fine in most cases of program aborts due to the equeue-process

other methods i.e. using a user table with entry for program run or using memory id's

Answer:
Please check the history using the SEARCH facility because this question must be asked every other week. It's been answered so many times before.

Dr Sidewalk

Answer:
What search term should be used??
Copyright ?2007 - 2008 www.jt77.com