Notification Channel Configuration (Fiori Launchpad) – Embedded Scenario
Share

The goal of this blog post is to make it possible to receive notifications in Fiori Launchpad (the bell icon) with the hub and the backend on the same ABAP server instance (“Embedded scenario“)

Sandra_Rossi_55-1758535037277.png

It copies the texts from different chapters of the SAP Help Portal, but if you prefer there are more comprehensive documents here:

It’s enriched with some screenshots (70% of them copied from the blog post above).

We’ll go in the customizing of these 3 SAP Help books:

  1. Notifications are based on OData version 4. For SAP Gateway Foundation for OData version 4 (V4) you need to activate ICF node /sap/opu/odata4.
    Sandra_Rossi_11-1758544823327.png

     

  2. Authorizations required. SAP provides a default catalog that contains the relevant target mapping for conveniently enabling notifications in SAP Fiori launchpad: /UI2/CONFIG_NOTIFICATION.
    Sandra_Rossi_10-1758544600341.png
  3. Notification Channel: it describes most of the configurations needed, the below chapters in red are covered.
    Sandra_Rossi_9-1758544357288.png

 

Enable all OData version 4 services (links to SAP Help Portal: OData V4 service name and activating)

Notifications are based on OData version 4. For SAP Gateway Foundation for OData version 4 (V4) you need to activate ICF node /sap/opu/odata4.

Run T-code SICF.

Enter “/sap/opu/odata4” in the Service Path field and click Execute button.

Sandra_Rossi_7-1758535037216.png

Sandra_Rossi_8-1758535037234.png

Sandra_Rossi_14-1758546082121.png

 

Enabling Notifications in the Launchpad (link to SAP Help Portal)

SAP provides a default catalog that contains the relevant target mapping for conveniently enabling notifications in SAP Fiori launchpad: /UI2/CONFIG_NOTIFICATION. By assigning this default catalog to user roles you can quickly configure notifications for your launchpad users.

Go to Transaction PFCG and create the role Z_PUSH_NOTIFICATION.

Go to Launchpad Catalog in the Transaction Button.

Sandra_Rossi_52-1758535037276.png

Enter Catalog ID as /UI2/CONFIG_NOTIFICATION and click on Continue.

Sandra_Rossi_53-1758535037276.png

 

Embedded Scenario (link to SAP Help Portal)

Notification Channel Provider Enablement Configuration

All the configuration steps are available in the SAP Reference IMG in the SAP Implementation Guide (IMG) in transaction SPRO under SAP Customizing Implementation Guide > SAP NetWeaver > Notification Channel > Notification Channel Provider Enablement.

  1. In the IMG navigate to Notification Channel Provider Enablement > Configuration > Connection Settings > Enter the Notification Hub RFC Destination and execute the activity.

    Enter NONE (as HUB and BEP are configured in the same system).
    Sandra_Rossi_28-1758535037291.png
    Sandra_Rossi_29-1758535037228.png

  2. In the IMG navigate to Notification Channel Provider Enablement > Configuration > Connection Settings > Enter the Backend System Alias and execute the activity.

    Enter LOCAL and execute to set the value.

    Sandra_Rossi_25-1758535037289.png
    Sandra_Rossi_26-1758535037227.png

  3. This activity is optional because all standard Notification Providers are already defined. It’s only needed if you want to publish your own providers, or some standard ones are missing.
    In the IMG navigate to Notification Channel Provider Enablement > Administration > Notification Provider Settings > Register Notification Providers and execute the activity.

    Enter the Provider ID, the Provider Class name and description and save your settings.

    Provider ID Class Description Usage
    SAP_BUSINESS_WORKFLOW CL_SWF_PUSH_NOTIF_PROVIDER Business Workflow Notification Provider To get Workflow workitems in the Fiori Notifications
    /IWNGW/DEMO /IWNGW/CL_DEMO_NOTIF_PROVIDER Any description you want e.g., Demo Notification Provider Not part of standard delivery. Described in Demo Content | SAP Help Portal. although the ID and Class are missing!

     

  4. In the IMG navigate to Notification Channel Provider Enablement > Administration > Notification Provider Settings > Manage Notification Providers and execute the activity.
    Sandra_Rossi_50-1758535037274.png
    Sandra_Rossi_51-1758535037275.png

Notification Channel Hub Configuration

All the configuration steps are available in the SAP Reference IMG in the SAP Implementation Guide (IMG) in transaction SPRO under SAP Customizing Implementation Guide > SAP NetWeaver > Notification Channel > Notification Channel Hub.

  1. Create an SAP system alias called LOCAL, RFC destination to NONE.

    In the IMG navigate to Configuration > Connection Settings > Manage SAP System Aliases and execute the activity.

    If a LOCAL system alias with RFC destination set to NONE does not exist, create it with description Local System Alias.

    Sandra_Rossi_1-1758540026390.png

    Sandra_Rossi_0-1758539915599.png 

  2. To publish the notification channel OData service:

    In the IMG navigate to Configuration > Connection Settings > Publish the Notification OData Service and execute the activity.Sandra_Rossi_10-1758535037279.png

    Sandra_Rossi_5-1758541070859.png
    If the Notification Channel Service Group with ID /IWNGW/NOTIFICATION does not exist, publish it.
    1. Under System Alias enter LOCAL and choose /IWNGW/NOTIFICATION in Service Group ID.
      Sandra_Rossi_3-1758540524784.png
    2. Choose Get Service Groups.
      Sandra_Rossi_4-1758540555690.png
    3. Select the /IWNGW/NOTIFICATION Group ID and choose Publish Service Groups.Sandra_Rossi_13-1758535037299.png

      Sandra_Rossi_7-1758541235382.png

  3. Add push functionality so that it can be used in the SAP Fiori launchpad. For more information, see Push Channel Settings.
    SEE BELOW
  4. Add push functionality so that it can be used in SAP Mobile Platform. For more information, see Add Push for Use with SAP Mobile Platform.
    NOT NEEDED IN MY CASE
  5. Activate sensitive data cache so that sensitive information is encrypted. For more information, see Activate Sensitive Data Cache and Data Encryption.
    NOT NEEDED IN MY CASE

 

Push Channel Settings (link to SAP Help Portal)

In this section you can find information about adding push functionality so that it can be used in the SAP Fiori launchpad. The activities are available in the SAP Implementation Guide (IMG) in transaction SPRO under SAP Customizing Implementation Guide  SAP NetWeaver   Notification Channel   Notification Channel Hub.
  1. Activate the WebSocket Endpoint:

    In the IMG navigate to Configuration > Configuration Settings > Manage WebSocket Endpoint.Sandra_Rossi_20-1758535037287.png

    •  

    Enter NOTIFICATION_PUSH_APC as Service Name and choose Execute.Sandra_Rossi_21-1758535037225.png

    Select NOTIFICATION_PUSH_APC and choose Activate in the context menu.

    Sandra_Rossi_8-1758541880522.png

  2. Activate WebSocket Push Channel:

    In the IMG navigate to SAP Netweaver > Notification Channel > Notification Channel Hub > Administration > Push Channel Settings > Activate and Maintain Push Channels and execute the activity.Sandra_Rossi_23-1758535037288.png

    Choose New Entries to create a new record and enter SAP_WEBSOCKET as Push Channel ID. Specify the sequence number, for example, 10, as the sequence in which the push channel will be processed.

    Activate Is Active? and save your settings.

    Sandra_Rossi_24-1758535037282.png

 

Notification Channel User Roles and Authorizations (link to SAP Help Portal)

The Notification Channel framework provides predefined roles as templates for developers, administrators, end users and so-called provider users. You configure the roles based on the provided templates and assign users to the roles.

The role templates specify the authorizations for content that can be accessed by users of the specific consumer application, for example the notification panel in the SAP Fiori launchpad or administrative transactions within the implementation guide (IMG).

You can find more information abut how to use role templates in Creating and Assigning Roles from Templates.

The following role templates are available in transaction PFGC.

PFCG Role TemplatesTemplate NameDescription

/IWNGW/RT_BEP_ADM

Role template for Notification Channel back-end administrator

/IWNGW/RT_HUB_ADM

Role template for Notification Channel hub administrator

/IWNGW/RT_NP_DEV

Role template for Notification Channel developer

/IWNGW/RT_USER_CONSU

Role template for Notification Channel consumer user

/IWNGW/RT_USER_PRODU

Role template for Notification Channel producer user

For more information, refer to the SAP Help Portal which describes precisely all the role templates above.

Below is an example with the template /IWNGW/RT_NP_DEV, and the role will be Z_PUSH_NOTIFICATION.

If the role already exists

Go to Change Authorizations, then select the menu Edit > Insert authorization(s) > From template

Sandra_Rossi_12-1758545337092.png

 

Sandra_Rossi_13-1758545523362.png

If the role doesn’t exist yet:

Sandra_Rossi_0-1758535037187.png

Sandra_Rossi_3-1758535037219.jpeg

Sandra_Rossi_4-1758535037199.png

Sandra_Rossi_5-1758535037206.png

Sandra_Rossi_6-1758535037210.png

 

Demo Content (link to SAP Help Portal)

To test the demo provider proceed as follows:

  1. To activate Demo Provider on your system, go to SPRO  SAP NetWeaver > Notification Channel Provider Enablement > Administration > Notification Provider Settings > Manage Notification Providers.

    See step 7 in Hub deployment for reference. (not needed)

    It’s missing the very important information that the provider ID /IWNGW/DEMO (no other name is possible) is to be created with the class /IWNGW/CL_DEMO_NOTIF_PROVIDER.

    Alternatively, you can use transaction SM30 and the view /IWNGW/VB_REG_P to activate Demo Provider.

  2. Run transaction /IWNGW/BEP_DEMO and trigger a leave request, for example.Sandra_Rossi_15-1758546239548.png
    Sandra_Rossi_16-1758546239549.png

 

  1. Start the SAP Fiori launchpad on your frontend server and verify that the notifications have been created.
    Sandra_Rossi_17-1758546239550.png

  2. The notification should arrive almost instantly, as the launchpad is notified via a web socket connection once the notification instances are created.

 

  Read More Technology Blog Posts by Members articles 

#abap

By ali