Hi Sanjeev,
Thanks for the reply
by creating an authorization object this would be a permanent solution this would restrict users all the time. but i wanted to restrict till the time period the batch is running after the batch is completed all users should have access to these TCODES,
can this be done by code which can be run in background parallel with batch process and it would restrict then till the batch is in process.