Hi SDN colleagues,
I am writing a ABAP report which is scheduled in the background to execute every half hour or so. This report executes an external command on a remote server (executing a windows script) using sapxpg.
I have also created separately a transaction code which can be used to execute the report on demand.
However, I am concerned about the possibility that somebody executes the transaction code to initiate the report, at the same time that the report is concurrently executing via the schedule. Because the report executes external commands on a remote server, I am concerned about the possibility of complications if two processes are trying to execute the external command at the same time.
So, is it possible in ABAP to detect whether a report is currently already executing in a separate process (and under a separate user)? If I can detect this scenario then I can avoid the complication.
Any useful thoughts will be rewarded.
Thanks
John Moy