Defining the End-User Experience
There are two ways for the end user to activate OBN during runtime, an iView link and a context menu.
iView Link
A link, representing an OBN call, is developed on top of a business object operation and appears in the source iView. Clicking the link opens the default implementing iView, in other words, the iView implementing the business object operation with the highest priority in the user role.
To display the default implementing iView, the object-based navigation service searches as follows:
-
First for the operation with the highest priority, if more than one operation is associated with the main object of the source iView.
-
If the high-priority operation has associated with it more than one implementing iView, the OBN service selects the iView for which the current operation has the highest priority.
Information for the Developer
Create an OBN call on the client side using the API doObjBasedNavigate , which is available from Enterprise Portal Client Manager (EPCM), or encapsulate this call in Java in the iView code. For more information, see The OBN Call .
Context Menu
It is also possible to access a context menu on top of a business object operation.
In this case, there are several operations associated with the main object of the source iView and choosing the OBN arrow icon in the iView displays a subset of the operations. Upon choosing the desired operation, the relevant implementing iView is displayed.
Logic behind the Context Menu
-
An operation can appear in a context menu only once; therefore, in the event that several iViews in the user roles implement the same operation, the operation instance appearing in the context menu is the one whose iView-based priority is the highest (as assigned in the OBN Editor).
Only operations whose implementing iViews are contained in one of the user roles are displayed in the context menu.
-
Using the Object-Based Navigation Editor, an administrator may customize the name of a specific operation. In such a case, the customization provided by the implementing iView appears in the context menu, overwriting the original name of the operation.
Although the content developer may use the supplied APIs to implement the context menu as desired, the logic described here cannot be changed.
Information for the Developer
Two levels of APIs are available for the content developer to create context menus for object-based navigation iViews.
-
A high-level API is available for automatically creating context menus with the SAP standard UI look and feel.
-
Lower level APIs may be used as well to create context menus for which the UI is not supplied. Essentially, the content developer can create a context menu for any UI element and associate an OBN call with each operation to be include in the context menu list. The UI can be created as required by specific organizational standards.
An example of the use of the lower level APIs would be in BW reports, where the implementation of the context menu suits the appearance of the native interface.