Show TOC

 Case 1: Using Filter and Virtual Standard Package InterfacesLocate this document in the navigation structure

 

Description

Let's assume that a server structure package provides a

  • Filter package interface
  • Virtual standard package interface. 

Solution

In order for the client package hierarchy to be able to use visible repository objects from the server package hierarchy, the client structure package has to declare a use access for the filter package interface that is defined at the server structure package level. 

The declaration of the use access to the filter package interface takes place at the top-level client package only. With this use access, a contract between the provider and the client package hierarchy is established. In other words: it is the prerequisite that both, the virtual standard package interfaces and the package interfaces of the first non-structure level become visible for the client package hierarchy. 

To access the repository objects that are contained in the virtual standard package interface, the respective client package and all its superpackages - up to the level of the structure client package - have to declare a use access for that virtual standard package interface. 

 

 

The above graphic clarifies the principle of using objects from another package hierarchy:

SP1 and SP2 are two structure packages and form the root of two different package hierarchies. SP1 acts as a client structure package and contains a main package MP11, which itself contains a standard development package P111. SP2, on the other hand, acts as a server structure package and provides a filter package interface FILTER_2 and the virtual standard package interface VIRT_DEF_2.

In such a case, the client structure package SP1 must declare a use access to the filter interface FILTER_2. 

In addition, a virtual standard interface VIRT_DEF_2 is defined in the structure SP2. This interface, however, must be entered in the actual client package P111, in its superpackages MP11 and SP1, to declare the use access to all non-encapsulated subpackages of SP2.