Ansicht
Dokumentation

ABAPCALL_TRANSACTION_AUTH_CHECK - CALL TRANSACTION AUTH CHECK

ABAPCALL_TRANSACTION_AUTH_CHECK - CALL TRANSACTION AUTH CHECK

PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Security note for CALL TRANSACTION

Notes

The authorization for starting a transaction initially checks if the caller is actually authorized to start the transaction. So that the caller can start a transaction, the authorization object S_TCODE must 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, insert the 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.






Vendor Master (General Section)   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 2060 Date: 20240616 Time: 101931     sap01-206 ( 34 ms )