Creation of Additional Event Parameters With Event Creation 

Use

The system adds the old and new values of all changed fields to the event container of the event created. These values can then be read and evaluated in the workflow started by the event in order to influence the process flow of this workflow.

Prerequisites

Writing values into the event container

In order for the system to write the old and new values of a changed field into the event container, this field must be defined as a database field attribute for the object type in the Business Object Builder.

Using values in the binding

To enable you to define a binding, with which this information is brought from the event container to the workflow container, the relevant fields must be defined as multiline event parameters for the event in the Business Object Builder.

Features

After a change document has been written and the system has recognized from the assignment table that an event of a particular object type is to be created for it, the system checks whether the changed fields are defined as database field attributes of this object type. If this is the case, the changed value and the new value are written under the name of the attribute as a two-line element into the event container. (New value with index 0001 , old value with index 0002 .)

The values are put into the container as described even if they are not defined as event parameters. The definition as event parameters is required so that you can access it in a binding definition.

Activities

If you want to use the function of additional event parameters with event creation, you must proceed as follows:

For further information, refer to Definition of Attributes for an Object Type.

For further information, refer to Definition of Events for an Object Type.

To test what the content of the event container is upon "arrival" at the event receiver, you can send the event container to yourself as a mail. To do this, you must enter a function module as event receiver, which converts the container content into a mail and sends it.

For further information, refer to Evaluation and Maintenance of the Type Linkage Table.

You have created a subtype for the object type BUS1007 ( customer). You have added the following components to this subtype:

The container of the event created when a customer’s address changes (relocation from Trier to Cologne) has not only the standard system elements but also the following multiline elements, each of which has a two-line value.

Element

Value

Index

PostalCode

50999
54294

0001
0002

City

Cologne
Trier

0001
0002

District

Rodenkirchen
Pallien

0001
0002