BASIS
Function module
Used the same way in S/4HANA
AUTHORITY_CHECK_TCODE Authorization Check for Starting a Transaction
Checks whether the current user is authorized (S_TCODE) to start the given transaction code. Custom programs that open another transaction with CALL TRANSACTION use it to check authorization before the call. The result comes back as an exception: OK is raised when authorized and NOT_OK otherwise, so check sy-subrc.
- Function group
- SUSE
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| TCODE | TSTC-TCODE | Transaction code | Yes |
Exceptions
- OK — Authorized
- NOT_OK — Not authorized
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = lv_tcode
EXCEPTIONS
ok = 1
not_ok = 2
OTHERS = 3.Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.