Setup Fiori Launchpad Notifications for SAP Business Workflow
Share

This blog post describes the setup to receive notifications from workitems sent by SAP Business Workflow in SAP Fiori Launchpad (bell icon):

Sandra_Rossi_0-1758551859348.png

This blog post copies the text from the official documentation Enabling Push Notifications (SAP Business Workflow) | SAP Help Portal. and it’s enriched with a few screenshots taken from the blog post Fiori Launchpad – Notification Configuration – SAP Community.

 

Important prerequisite

You have enabled the Notification Channel (see: Notification Channel Configuration (Fiori Launchpa… – SAP Community), otherwise you can’t use the notifications in SAP Fiori Launchpad.

 

Activating Your Task Provider for Push Notifications (link to SAP Help Portal)

Activate your task provider to enable push notifications in the SAP Fiori style for your workflows in SAP Business Workflow.

Context

You have to activate your task provider once, so that the Provider button in transaction SWF_PUSH_NOTIF1 turns green. Only then can you configure your application to enable push notifications.

Procedure

Call transaction SPRO and start the SAP Reference IMG.

Search for Notification.

Select the entry Notification Channel Provider Enablement.

  1. Choose Administration > Notification Provider Settings > Register Notification Providers.
    Be careful, the entries are sorted by Line number, not by Provider ID.
    If the provider ID SAP_BUSINESS_WORKFLOW exists, skip this activity:
    Sandra_Rossi_0-1758549569666.png

    If it doesn’t exist, create it:

    1. For Notification Provider ID, enter SAP_BUSINESS_WORKFLOW.
    2. For Provider Class, enter CL_SWF_PUSH_NOTIF_PROVIDER.
    3. For Description, enter a description.
  2. Choose Administration > Notification Provider Settings > Manage Notification Providers.
    1. Choose New Entries, select SAP_BUSINESS_WORKFLOW, and activate it.

      Sandra_Rossi_1-1758549675775.png

      Choose Save.

Results

Your provider button in transaction SWF_PUSH_NOTIF1 is now green.

Sandra_Rossi_2-1758549751617.png

Sandra_Rossi_3-1758549782001.png

 

Configuring Your Application for Push Notifications (link to SAP Help Portal)

Configure your application to enable push notifications in the SAP Fiori style for your workflows in SAP Business Workflow.

Prerequisites

  • You have WF_Admin authorization.

Procedure

  1. Call transaction SWF_PUSH_NOTIF1.
  2. Change to edit mode.
  3. Choose Create New Entry.
    Sandra_Rossi_0-1758553659280.png
  4. Choose the task or the workflow step that you want to create notifications for.
    1. For a task, you do not need to maintain Version and Step.
    2. For a workflow step, you have to maintain Version with the definition version, and you have to maintain Step.
      Note

      The definition version is usually 0000. For major changes only (for example, there is a new alternative for a user decision), you can define an entry with a new original version to separate the configuration for the old and new workflow instances. You can create the new version with the Copy button.

  5. The text for Object Name is entered automatically.
  6. Set the Active flag.
    Note

    To disable notifications, remove the flag.

    Recommendation

    We recommend that you disable all notifications before transporting.

  7. Optional: You can group tasks to be executed at the same time, and send just one push notification for the group. If you want the notifications for a task to be grouped on the notifications UI, set the Groupable flag.
  8. Choose Actions.
    1. Enter an Action Text.
    2. If you have set the Groupable flag, enter an Action Text for Mass Execution.
    3. Optional: By default, actions can be executed directly from push notifications. If you want to prevent them from being executable, select the Hidden checkbox.
    4. You can configure the style of the button for the actions.
  9. Choose Texts.
    1. Configure a notification text without exposing sensitive information.
    2. Configure a notification text including sensitive information.
    3. Configure a text to display when notifications are grouped for mass execution.
  10. To delete existing entries and therefore no longer send notifications, choose Remove Selected Entries.
  11. Choose Save.

Next Steps

To make the changes you have made to your workflow visible in your SAP Fiori launchpad, you must refresh the cache in transaction /IWNGW/H_CLEAR_CACHE:

Sandra_Rossi_6-1758553361028.png

  • Clear Metadata Cache:
    • This clears all notification metadata, which includes notification type texts and action texts so that the latest values can be fetched from notification provider during callback. The admin can clear the metadata in two ways:
  • Clear Data Cache
    • This clears the notification properties applied to templates and encrypted secure notification properties so that the latest values can be fetched from notification provider during callback.

Sandra_Rossi_7-1758553550343.png

Sandra_Rossi_5-1758553349817.png

 

Tips about Workflow setup

SAP Business Workflow is complex, so in general, ask a workflow expert in case something doesn’t work.

Just in case you can’t immediately reach an expert, if it “doesn’t work at all”, according to me, the most important activities to check are those two ones:

  1. Workflow Basic Customizing | SAP Help Portal otherwise workflow can’t start at all (transaction SCU3, to be done once per client)
  2. Configure Workflow Tasks | SAP Help Portal to classify the standard tasks, otherwise no “agent” receives the workitems/notifications (transaction PFTS > Create classification > General task)

Example for checking the agents:

Transaction SWI1 (display all workflow workitems) > select one > Workflow log:

Sandra_Rossi_0-1758552693112.png

Agents:

Sandra_Rossi_2-1758553101217.png

Potential agents:

Sandra_Rossi_3-1758553151113.png

The message “All users can process this task” (WL320) means that the task is a General Task. 

The actual agents are the ones obtained from the intersection of Agents and Potential agents. Here, only Sandra will receive the workitem and a notification.

To classify the task 02000070 as General Task, run the transaction PFTS, display the task, then menu Additional data > Classification > Create:

Sandra_Rossi_1-1758553057969.png

Sandra_Rossi_4-1758553246430.png

 

 

  Read More Technology Blog Posts by Members articles 

#abap

By ali