Context-Dependent Rules

In addition to the possible SAP GUI reactions Allow and Ask described above, it is also possible to create a rule that is context-dependent. Context-dependent means that certain restrictions apply to the rule, for example, that is only applies for one or more defined SAP systems. A rule of this type is defined in a subsequent step, if the Context-Dependent setting was chosen for the action when setting the security rule.

Context-Dependent Rules Image 1

Once a new context has been added to the table, all information related to the back-end system is usually predefined using a placeholder.

You can use this table to very specifically restrict a security rule to a particular system, a particular transaction, or even a particular screen. The access type, subsequent action, and status of the rule context are also predefined with default values that you can adjust as required. The options Allow or Ask are available for context-dependent actions, just as for general (non-context-dependent) security rules. Denial of requests without a query is not permitted for security rules created by administrators or users. You need to set the status of the rule context to Enabled, since the rule context will otherwise not take effect. The value of the field Network plays an important role when setting up the rule contexts. The predefined setting for this field is an empty field, which means that the current rule context is valid for the local network. A general placeholder in this field would expand the validity of the rule context to any networks. Note the following notation for describing potentially affected networks:

Values for Network Field  
  Local Network
?* Any external networks
* Local and external networks
/H/…/S/… Router string for precisely one defined network

You can create any number of rule-contexts for context-dependent security rules, meaning that you can also design complex security scenarios. You can change the order of security rules not created by SAP in the list, and therefore the chronological sequence in which they are processed. Note that the order in which rules are processed can be particularly important if problems occur due to the use of the rules. This can, for example, be the case if the contents of individual rules contradict each other. The rule contexts are also processed from the top to the bottom.

Alternatively, rules can also be generated by executing security-relevant actions with the setting Status: Customized and the Default Action: Ask. In this case, if there is no rule, a query is shown for the requested action. The options available to the user depend on the action to be performed.

Example

The system is attempting to execute a file on the client PC. The user can now react to the query in the following ways:

Context-Dependent Rules Image 2

If the user’s decision applies only to the current situation (Allow/Deny without checked option Remember my decision), there are no consequences for future queries of this type. However, if the user makes a permanent decision for this type of query (Allow/Deny with checked option Remember my decision), a security rule is automatically generated that corresponds to exactly the present situation. This rule is added to the end of the existing list of rules and is taken into account for subsequent requests of this type.

See also:

  • Chapter 4 of this document

    Starting SAP GUI via SAP Shortcut or Command Line

  • Chapter 6.8.1 of SAP GUI help

    Security Status