Start of Content Area

Process documentation Tutorial: Event Creation During Status Changes  Locate the document in its SAP Library structure

Purpose

This tutorial covers the following topics:

You can generate an event for a status change in order to respond to a certain business circumstance.

You will learn how to send a text as a message (for example, with a note) to a receiver as a workflow step.

The topics are linked to an integrated scenario whose creation you can follow step by step in individual units.

The tutorial is designed for customers and consultants who want to extend the scenarios provided by SAP. The explanations and working methods are consciously covered in great depth; the fact that existing knowledge is repeated has been taken into account in this case.

Note

It is of central importance to the scenario (and this tutorial) that the changes you make are logged with a system or user status in an application component. You can only transfer what you learn in this tutorial to other scenarios if you make this setting.

Process Flow

In Unit 1: Testing the Existing Application Functions, you will release a production order in the SAP System.

Identifying and modifying object types

The object type that is important with respect to the scenario must be identified. This is the object type BUS2005 (Production order).

Note

This object type is supplied as standard in the Business Object Repository.

You should use this object type in the manner for which it was intended. For this scenario, however, you have to extend it to include the released event.

In Unit 2: Identifying and Extending Object Types, you will extend the definition of the object type.

Creating an event

Setting the status REL for the status object type ORH should be publicized with the event released and therefore made known across the entire system. You must make sure that the event is generated.

The creation of this event is a basic requirement for executing the workflow.

In Unit 4: Flexible Event Creation, you will link the creation of events to the setting of a specific status.

Agent determination

The recipients of the mail are all employees in an organizational unit. This organizational unit is only created to group together the recipients or agents. It thus takes on the characteristics of a distribution list.

In Unit 5: Agent Determination - Organizational Plan, you will create the organizational unit and assign users to it.

Defining a workflow

In Unit 6: Defining a Workflow, you will create a workflow for which the event released is defined as the triggering event. In order to do so, you define a binding from the event container to the workflow container that provides the reference to the released production order.

Send text as mail

In Unit 7: Editing Workflow Definitions, you will define a step with which an e-mail is automatically sent.