2020 Dec 03 2:44 PM
Hi!
I am looking for a solution like this one:
https://answers.sap.com/questions/1797986/regarding-lock-object.html
I would like that different users runs the same transaction at the same time, but the user must runjust only one session of the transaction, for instance:
User A runs transaction ZT001
User B runs transaction ZT001 at the same time
But User A and B could not run another session of transacion ZT001 at the same time with the same user logon.
This means users must run only once the trancation.
Do I have to use something like ENQUEUE_ESTERM and DEQUEUE_ESTERM? Are there any way to prevent users to open many sessions of the same transaction using some parameter? Or it is only possible by ABAP code?
Thanks for any help.
Regards!
2020 Dec 03 2:51 PM
Hi,
Its possible through, but it will affect the system performance to the core... instead user parameterized table and if that check is true then stop transaction.
2020 Dec 03 2:52 PM
Hello lferreira
You could try locking the report with the username provided. Something similar to the solution from this thread: https://answers.sap.com/questions/972737/locking-o-report.html
Kind regards,2020 Dec 03 4:16 PM
Yes use some lock object FM, but for your requirement don't lock transaction code (SY-TCODE) but rather User Name (SY-UNAME).
NB: Ideally find a table with keys user name and transaction code, already provided with a lock object or create your own.