How can I lock a T-code?

Question:
Hello,
I want to lock some t-codes. How would I lock them?
Regards,
Wee
Answer:
You can lock transaction codes for all users in SM01. Otherwise, use authorisations to block specific users from using certain transactions.
Answer:
You cannot lock a transaction because it will test the authority check first before reading from TSTC table. So if the authority check is success, then it will allow you to use the transaction. So the best idea to lock a transaction is by using the suthority checks.

More Articles:

Creating Personal Error Messages?
how to create internal table dynamically?
Function Module for retrieving address?
ABAP direct to printer?
how do i select rows of table control?
field exit?