Unsubscribing a Portal Event Using a Code Snippet

Prerequisites

You have created the views and their corresponding action handlers.

For more information, see Creating a View

For more information, see SAP CE > Creating an Action.

Procedure

  1. In the Web Dynpro perspective, choose Start of the navigation pathWindows  Next navigation step Show Views  Next navigation step SnippetsEnd of the navigation path
  2. In the Web Dynpro Explorer , select the required view.
  3. Choose Start of the navigation pathOpen Next navigation step Java EditorEnd of the navigation path using the secondary mouse button.
  4. Drag the UnSubscribe from a Portal Event snippet and drop it in the suitable user code area of the Java editor.
  5. In the Insert Snippet: Unsubscribe to Portal Event dialog box, enter the necessary details such as Namespace , Name , and Handler Action and choose Insert .