Skip to Content

Disable access to TCODES

Hello All,

I want to lock several TCODES for all users for a time period till batch process is in execution.

I found out that changing value in field CINFO of table TSTC from '80' to 'A0', this would lock the transaction.

But i wanted to lock TCODES for all users except one user this user calls TCODES in batch process.
if the TCODE is locked for this particular user then batch process will not execute.

can by any code we can restrict tcodes except for one user?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 05:14 AM

    This message was moderated.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 05:26 AM

    Hi Rishabh,

    talk to your basis team, they will create a object , where they have to assign the tcode and its related

    activities for those user he wants to provide access to that code,

    and you can provide a check based on AUTHORITY CHECK OBJECT,

    Then you can use following codes to restrict other users, if they have not given authority in zobject for the same transaction, you have to change these code lines according to your use.

    IF SY-TCODE = 'Your tcode' .


    ID 'ACTVT' FIELD '01'

    id 'ACTVT' field '02'

    id 'ACTVT' field '03'



    Message 'You are authorised' TYPE 'I'.





    Add a comment
    10|10000 characters needed characters exceeded

    • 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.

  • Posted on Jan 07, 2014 at 05:11 AM

    Hi Rishabh,

    It can be achieved using authorization object.

    Create a authorization object for Tcode and assign that object based on the user.

    Arivazhagan S.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.