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: 

How can I lock a transaction which is being used?

Former Member
0 Kudos

Hi buddies,

I want to privide the functionality that in case someone is accessing this transaction, then other user should not be able to run it.

How can I code for this functionality?

Thanks

6 REPLIES 6

kiran_k8
Active Contributor
0 Kudos

Steven,

Locking a transaction is BASIS job.I don't think that can be done by an ABAPer.

K.Kiran.

Former Member
0 Kudos

Hi Kiran,

Where Can I find the transaction is being used?

hermanoclaro
Participant
0 Kudos

Hello Steven,

Maybe you can create a validation to the transaction. If it's a Z transaction, you can use a EXPORT TO MEMORY command to set a flag when there's a user running it (you can assign a value to it on the start of the transaction), if this variable is filled with some data (maybe 'X'), you do not allow the user to access it.

However, if it's standard, it's better to verify with BASIS.

Best Regards,

-h

Former Member
0 Kudos

Do yuo want to lock the actual transaction itself so that only 1 person at a time can access it? Or do yuo want to apply locking against 1 record for example, i.e. the actual data the transaction is accessing?

Gareth.

0 Kudos

Hi Gareth:

I want to lock the transaction so that only 1 person can use it.

0 Kudos

Hi,

Check if the following thread helps -

ashish