Show TOC

Setting Events for Subscribed ObjectsLocate this document in the navigation structure

Use

Users can subscribe to all objects that support this service as standard. The user then receives a message if the object subscribed to has been changed or deleted (that is, the event CHANGED or DELETED has occurred).

You can change these settings. For example, you can add additional events that cause a user to receive a message, or offer fewer events, for an object type. You can also enter the message text yourself.

Procedure
  1. Call the table view maintenance (transaction SM30).

  2. Enter the table SGOSSUB.

  3. Choose Maintain.

  4. In order to make the settings for an object type, choose New Entries.

  5. Make the following entries:

    • the object type

    • the event about which the subscribed user is to be informed

    • indicator of whether the subscription service for the event for this object type should be activated or deactivated.

    • if necessary, a check function module

    • the title under which the subscription service is offered to the users

    • the name of a general text that is to be used as the message text. The text SGBT_DEF_SUB is used as standard.

      You can use the following variables in the title and the general text:

      • SY-DATUM (date of the change)

      • OBJTYP (type of the changed object)

      • OBJKEY (key of the changed object)

      • ATTRIBUTE (default attribute).

  6. Choose .

Example 1

Object Type

Event

Sub

Title

Gen. Text

Check

*

CHANGED

X

Object &OBJKEY& has been changed.

SGBT_DEF_SUB

*

DELETED

X

Object &OBJKEY& has been deleted.

SGBT_DEF_SUB

Example 2

The users that are subscribed receive a message for all objects except IDOCs if an object is changed or deleted. The subscription service is deactivated for IDOCs. The function Object Subscribe is not offered to the user in the toolbox.

Object Type

Event

Sub

Title

Gen. Text

Check

*

CHANGED

X

Object &OBJKEY& has been changed.

SGBT_DEF_SUB

*

DELETED

X

Object &OBJKEY& has been deleted.

SGBT_DEF_SUB

IDOC

*

Example 3

The users that are subscribed receive a message for all objects if an object is changed or deleted. A separate message text is used for orders, that additionally informs the user about the release group of the purchase order.

Object Type

Event

Sub

Title

Gen. Text

Check

*

CHANGED

X

Object &OBJKEY& has been changed.

SGBT_DEF_SUB

*

DELETED

X

Object &OBJKEY& has been deleted.

SGBT_DEF_SUB

BUS2012

CHANGED

X

Object &OBJKEY& has been changed.

SGBT_BUS2012

BUS2012

DELETED

X

Object &OBJKEY& has been deleted.

SGBT_BUS2012

Example 4

The general text SGBT_BUS2012 is:

Order &OBJKEY& has been changed. It belongs to the release group &BUS2012.ReleaseGroup&.