Step 4: Finding Agents: Role Definition

As a reaction to a change in the material master data, an employee in the design office responsible for the material is notified. This notification is implemented as a (still to be created) standard task (see section entitled Step 5: Defining a Single-Step Task).

This section is about preparation for establishing the relevant employee.


In the section

Step 3: Finding Agents - Organizational Plan

you created a link between design offices and organizational units.

Procedure: Role definition

To evaluate the link between design offices and organizational units, the role ZXX_FindLab is defined. This role returns the organizational unit for a given design office. It is therefore clear that the design office is the role parameter for this role.

The design office to be notified of the change is returned as the attribute LABOR of the object type ZXX_MARA at runtime. This information is therefore available as "input" for the role resolution.

Now create the role ZXX_FindLab.

1. In the workflow area menu for developers (transaction SWLD), choose Definition tools ® Standard roles ® Create, and then Standard role ® Create.

You are on the screen Standard Role: Create.

2. Describe the role to be created with the abbreviation


and a suitable name of your choice.

3. Select Organization data.

4. Select Enter.

5. In the field Org. object type, enter:

T024L .

6. Set the indicator Terminate if role resolution has no result.

If the role resolution produces no result, the process terminates. This then leads to a work item with errors and enables the appropriate analysis.

7. Save your entries.

Each role is identified by an 8-digit number. This number is assigned automatically the first time the role is saved.

The role parameter container for this role is defined automatically. It contains only the element ORG_OBJECT_ID. This element is created as a mandatory element with a data type preference to the object type T024L.


You have defined a role that requires the specification of a design office as input, and then evaluates the assignments maintained within the organizational plan before supplying the organizational unit found as output.