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

Restric multiple session t-code

lferreira
Explorer
0 Likes
1,831

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
Read only

Abinathsiva
Active Contributor
0 Likes
1,306

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.

Read only

MateuszAdamus
Active Contributor
1,306

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,306

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.