Show TOC

Creating Productive Scenarios for TestingLocate this document in the navigation structure

Test your solution with a productive scenario to make sure the solution you developed works as you expect. You can also record the authorization objects used in your scenario for inclusion in your scenario definition.

Prerequisites

The scenario defintion has the status inactive (P).

Context

Note

Active scenarios are client-independent customizing objects in SAP NetWeaver Application Server for ABAP.

Procedure

  1. Start Workbench for Switchable Authorization Check Scenarios (transaction SACF).
  2. Select Scenario Definition.
  3. Enter selection parameters.
  4. Choose Execute Object (Execute).
  5. Select a scenario definition and choose Display or Change (Display <-> Change).
  6. Choose Transfer scenario defintion to productive scenario Scenario.
  7. Set the initial status of the productive scenario.

    Status

    Description

    Active

    When the system runs through authorization checks for the scenario the result of the authorization check is in accordance with the object list of the scenario. If an authorization check is performed on an object that is not part of the object list, the result of the authorization check is the same as with the statement AUTHORITY-CHECK OBJECT.

    Logging

    When the system runs through the authorization checks for the scenario, it records them in the trace. Regardless of the result of the authorization check, the result is always positive.

Next Steps

Test your application with the productive scenario. To effectively test your scenario, you must add the relevant authorization objects. Depending on the scenario status you chose, the system does this automatically during testing. Otherwise you must add the authorization objects manually.