Show TOC

/IWBEP/IF_MGW_NOTIF_PUBLISHERLocate this document in the navigation structure

Use

This is the interface to extract endpoints out of a list of subscriptions and finally to send the notifications to the original SAP Gateway subscriptions system.

The following constants are provided:

  • GCS_NOTIFICATION_TYPES is either the ID or DATA for ID or full payload push

  • GCS_OPERATION_TYPES is the operation type which can be created / updated / deleted

Methods

Method CREATE_NOTIFICATION_ENDPOINTS

This method creates notification endpoints. Every endpoint represents a connection to one SAP Gateway system. Usually you have a 1:1 relationship of backend system to a SAP Gateway hub system.

Parameters

Description

IS_DATA

Reflects the business event. In case of a ID push (CUD) only the key fields of the business object need to be passed via a structure. The names need to match the key properties defined in the metadata.

IR_POKE_DATA

Optional parameter and reflected in notification HTTP response header x-sap-poke-data.

IV_TYPE

This can be either ID or DATA (payload) push. Use constants from GCS_NOTIFICATION_TYPES.

IV_OPERATION_TYPE

The operation type can be create/update/delete. Use constants from GCS_OPERATION_TYPES.

IV_EXPAND

This is an optional parameter which needs to be provided in expand expression syntax (OData) and which reflects the inlined data in the IS_DATA parameter.

IV_TEXT

Text of the notification. This is used as default if no additional text callback object is provided.

IV_ENTRIES_OF_INTEREST

This is an optional parameter which is reflected in the notification property EntriesOfInterest. In addition it is set in the HTTP response header.

IT_SUBSCRIPTIONS

These subscriptions are used as basis to create the notification endpoints.

IO_TEXT_PROVIDER

This is an optional callback object to pass language-dependent texts in the notifications.

ET_NOTIFICATION_ENDPOINTS

This parameter lists notification endpoints which need to be send to the SAP Gateway systems.

Method SEND_NOTIFICATIONS

This method sends all notifications from a notification endpoint (for example one line entry of the CREATE_NOTIFICATION_ENDPOINTS result) to the SAP Gateway system. The SAP Gateway system takes then care of sending it out to the consumers.

Parameters

Description

IS_NOTIFICATION_ENDPOINT

This parameter points to one SAP Gateway system and can contain multiple notifications or multiple recipients.