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

How to lock

Former Member
0 Likes
828

Hi all,

How to lock an user defined transaction for some time during which no user can access the same?

Reply wil be appreciated,

Varsha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
807

just check Transaction SM01 ..

i hope i got it right ..

vijay

Hi all,

How to lock an user defined transaction for some time during which no user can access the same?

Reply wil be appreciated,

Varsha.

5 REPLIES 5
Read only

Former Member
0 Likes
808

just check Transaction SM01 ..

i hope i got it right ..

vijay

Read only

Former Member
0 Likes
807

Hi,

: Use transaction SM01. Scroll through the transactions and check against the transaction to be locked. And after the maintenance is over, go back to SM01 and uncheck the same to unlock.

Reward points if found helpfull...

Cheers,

Chandra Sekhar.

Read only

Former Member
0 Likes
807

HI Varsha,

Just use SM01 transaction to lock the any transaction & u can use the same transaction to unlock the same.

Regards,

Chandru

Read only

Former Member
0 Likes
807

hi,

SM01 will surely help you,.

reward if helpful

regards,

srikanth tulasi.

Read only

Former Member
0 Likes
807

Hi varsha,

If you have authorization goto SM01 and tick the check box then it will lock the tcode,

if not basis people will have authorozations.

As per my knowledge we can lock tables using Enqueue and Unlock them using DEQUEUE.

But We cannot lock Transactions within the program, So better try locking the individual tables used in the particular transaction. Almost always there's a main table related to a transaction, which you must lock (probably at record level, giving full key).

Search for or create a lock object for that table and use function modules ENQUEUE_(lock object) / DEQUEUE_(lock object), sending table key parameters.

Reward if helpfull.

Regards,

Kashyap

Edited by: Kashyap Ivaturi on Jan 12, 2008 3:07 PM