Lock for transaction code.

i have created screen executed with Transaction code,having few Controls inside screen.

As soon as I enter action(click push button) inside the screen.(ie Transaction code), this transaction screen should be locked, and other users should not use the transaction simultaneously in the present System.

I have to do it inside the ABAP coding. could you please help me how to do it.