Show TOC

Automatically Adding Authorization Objects to ScenariosLocate this document in the navigation structure

To enable administrators to control the evaluation of individual authorization objects in the scenario, add the authorization objects to the scenario definition.

Prerequisites

  • You have implemented CL_SACF=>AUTH_CHECK_SPEC in your development.
  • You have created a productive scenario for testing.

Procedure

  1. Start Workbench for Switchable Authorization Check Scenarios (transaction SACF).
  2. Select Production Scenario.
  3. Enter selection parameters.
  4. Choose Execute Object (Execute).
  5. Select a scenario definition and choose Display or Change (Display <-> Change).
  6. Change the <Scenario Status> to the value X, N, or R.
    • Status X

      The system checks your authorizations against the authorization objects in your scenario. The system also records in the scenario definition and the productive scenario that the system should actively check this authorization object for this scenario.

    • Status N

      The system ignores the authorization objects in your scenario, you always succeed. The system also records in the scenario definition and the productive scenario that the system should always ignore this authorization object for this scenario.

    • Status R

      When the system encounters an authorization object in the application, it opens the scenario definition in change mode with the authorization object preselected. Choose a status for the authorization check manually. You have then set the status only for the scenario definition. The status for the productive scenario is empty.

  7. Save your entries.
  8. Start your application and run through the scenario for which your created the scenario definition.

Results

You have determined how you want authorizations to be checked in the scenario definition. As long as the scenario meets the requirements for your solution, you can then transport the scenario definition with your application. Otherwise you can manually adjust the authorization objects until it meets your requirements.