Show TOC

Event Subscription and NotificationLocate this document in the navigation structure

Use

You must enable SAP Gateway to send and receive subscriptions and notifications for backend events in your SAP system.

Prerequisites

Make sure that you have completed the following:

  • Configured a GSDO group in SAP Gateway for the application that starts the backend event subscription

  • Enabled the Backend Event Publisher (BEP) component in your SAP system

  • Defined an event ID for the specific event in your SAP system

Configuring GSDO Groups for Event Subscription

You configure the subscription of events by adding the GSDO types into a GSDO group that points to the SAP system in which the data for the GSDO is available.

Proceed as follows to configure a GSDO group for subscription:

  1. In the SAP Gateway host go to transaction SPRO and open the SAP Reference IMG.

  2. Navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step Former Development Next navigation step Generic Channel Next navigation step Administration Next navigation step General Settings Next navigation step Manage GSDO Groups End of the navigation path.

  3. Click on the Activity icon. A list of GSDO groups displays.

  4. Select the following GSDOs and add them to a GSDO group:

    • IWF_SUBSCRIPTION

    • <GSDO you have defined for your application>. For example SALES_ORD_HEADER.

  5. Select the GSDO group you have configured and select Assign GSDOs in the dialog structure. For example SO_SALES.

  6. Choose New Entries and select the GSDOs for the event subscription.

  7. Select the Active option to activate the GSDO group.

  8. Save your settings.

Enabling Event Subscription

An event subscription associates a process in SAP Gateway with an event that occurs in your SAP system.

You assign the backend event to a GSDO type in SAP Gateway. The GSDO type is configured for a specific system using a system alias.

For configuring event subscriptions in SAP Gateway you use the implementation guide (IMG). Proceed as follows:

  1. In the SAP Gateway host go to transaction SPRO and open the SAP Reference IMG.

  2. Navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step Former Development Next navigation step Generic Channel Next navigation step Configuration Next navigation step Subscription Settings Next navigation step Maintain Subscription Setting for GSDO End of the navigation path.

  3. Click on the Activity icon.

  4. Choose New Entries and enter the following:

    • GSDO Type

      Select the GSDO to which you want to assign the event. For example, enter IW_WF_TASK_GW for workflow.

    • SAP System Alias

      Select the system alias of the SAP system that will process the request.

    • Event Group ID

      Enter the unique ID of the backend event you want to assign to the GSDO.

    • Description

      Enter an explanatory text.

    • XNotification Type

      GSDO type of notifications used for one or another subscribable GSDO type.

    • Local Subs

      Option to specify that the subscription request must be persisted by SAP Gateway only without forwarding it to BEP.

  5. Save your settings.

Enabling Event Notification

You enable notification for subscribers by configuring an RFC destination to the host that distributes notifications to consumers.

All subscriptions in SAP Gateway have a delivery address for notifications in the following format: urn:sap-com:channel:<name of connectivity provider>:<specific part of delivery address>

Proceed as follows to enable notification through RFC:

  1. In the SAP Gateway host go to transaction SPRO and open the SAP Reference IMG.

  2. Navigate to Start of the navigation path SAP NetWeaver Next navigation step SAP Gateway Next navigation step Former Development Next navigation step Generic Channel Next navigation step Configuration Next navigation step Subscription Settings Next navigation step Maintain RFC Destination to Connectivity Provider End of the navigation path.

  3. Click on the Activity icon and follow the procedures in the documentation.