Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Disable access to TCODES

$
0
0

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

    AUTHORITY-CHECK OBJECT 'zobject'                              

                     ID 'ACTVT' FIELD '01'

                               id 'ACTVT' field '02'

                               id 'ACTVT' field '03'

                                ID 'WERKS' FIELD VBAP-WERKS.

    IF SY-SUBRC EQ 0.

     Message 'You are authorised' TYPE 'I'.

    ELSE.

 

MESSAGE 'YOU ARE NOT AUTHORISED ' TYPE 'E'.

  

          ENDIF.

    ENDIF.

 

 

 


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>