Application Development 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: 

Restric multiple session t-code

lferreira
Explorer
0 Kudos
745

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!

3 REPLIES 3

Abinathsiva
Active Contributor
0 Kudos
220

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.

MateuszAdamus
Active Contributor
220

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,
Mateusz

raymond_giuseppi
Active Contributor
0 Kudos
220

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.