ABAPCALL_TRANSACTION_AUTH_CHECK - CALL TRANSACTION AUTH CHECK

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Security note for CALL TRANSACTION

Notes

The authorization for starting a transaction initially checks if the caller is actually authorized tostart the transaction. So that the caller can start a transaction, the authorization object S_TCODEmust be entered in the user master. Afterwards the system checks the authorization assigned to the transaction called in transaction SE93.

If you use CALL TRANSACTION, the calling transaction itself normally checks if the authorization to start the transaction exists. In this case, an authorization check for the transaction called does not make sense.

If the check is not performed by the transaction itself, you must program the check. To do this, insertthe following lines before the CALL TRANSACTION statement:

Example

DATA: tcod LIKE sy-tcode.
CALL FUNCTION 'AUTHORITY_CHECK_TCODE'
  EXPORTING
    TCODE       = tcod
  EXCEPTIONS
    OK          = 0
    NOT_OK      = 2
    OTHERS      = 3
          .
IF SY-SUBRC <> 0.
  MESSAGE E172(00) WITH tcod.
ENDIF.



Related

If you use LEAVE TO TRANSACTION, the authorization to start the transaction is checked.


BAL_S_LOG - Application Log: Log header data   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.


Length: 2074 Date: 20120518 Time: 202237     triton ( 73 ms )