‎2009 Jan 20 11:41 AM
Hi All,
I would like to know how we can lock a transaction for a certain period of time.
For example, if there is a transaction zfics_ui which is executed by a user, then for the next 10 minutes another user should not be able to run this transaction. In other words, the second user should get a message that the transaction has been locked and the other user cannot trigger the transaction until the first person has finished processing of the transaction.
Regards,
Sushanth H.S.
‎2009 Jan 20 11:46 AM
Hi,
U can lock/ unlock the transaction in Trx. SM01
regards
Mahesh
‎2009 Jan 20 11:46 AM
Hi,
U can lock/ unlock the transaction in Trx. SM01
regards
Mahesh
‎2009 Jan 20 11:46 AM
HI Sushanth,
Use SM01 transaction.
IN the last empty input field.. just enter the transaction you want to lock.... and press enter.. then check the check box of that transaction name and press LOCK/UNLOCK.
Then this transaction will be locked..
Regards,
Nitin.
‎2009 Jan 20 7:47 PM
beacuse this method directly updates an SAP table, i do not recommend it, but...
the lock information is stored in table TSTC, field CINFO, bit 3.
here is a code FRAGMENT to help you should you decide to do this. it works, but i give no guarantees. use it at your own risk.
(selected is a field string read in from table TSTC for a specific tcode)
(plock and unlock are radiobuttons on the selection screen)
case 'X'.
when plock.
set bit 3 of selected-cinfo to 1.
when punlock.
set bit 3 of selected-cinfo to 0.
endcase.
update tstc from selected.
again, i totally disavow any use of this code.