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: 

regrading locking of a transaction

Former Member
0 Kudos

i have two queries

1) i want if a particular transaction is run by any user then any other user cannot use that transaction until and unless first user has completed the transaction.

2) i have designed a selection screen and there is no pf-status is defined.and when i execute the prgram i get the default pf-status having menus PROGRAM ,EDIT,GOTO,SYSTEM,AND HELP

there is a option is menu STOP TRANSACTION...if i have to disable that what are the steps i should follow.

3 REPLIES 3

Former Member
0 Kudos

hi,

refer this link

Former Member
0 Kudos

Use FM ENQUEUE_ESINDX .

If its a custom transaction, change the code so as to call the above FM before the start of the transaction. pass the program name and relid as 'ZZ'. so when another user tries to run the transaction, the FM throws an error message saying "Lock not possible". Hope this helps.

if its a standard transaction, i think you can use the FM ENQUEUE_ESRDIRE to perform a lock. You need to pass the program name of the T-code. I am not sure about this one as i have not tried it before.

Reward points for all helpful answers.

Thanks,

Balaji

0 Kudos

thnx a lot have solved the issue.