Open all | Close all

Transaction code authority check


The following code demonstrates how to check that a user has the correct authority for a particular
transaction code. Useful to check if a user has the correct authority before executing a transaction via
BDC input.

authority-check object 'S_TCODE'
                id     'TCD'
                field  'SM35'.

if sy-subrc ne 0.
*   User does not have authority for transaction SM35!!!
endif.


SAP ABAP development help
More SAP ABAP development help and information


ABAP code and information
More SAP ABAP development tips and tricks

 
 

Number of SAP Development Users currently online hit counters