Creating a Container Definition

Prerequisites

A container definition informs the system of the type of data handled by the workflow.

You must decide whether you want to create a container definition that references table fields, or object types. By referencing object types in the container definition, you use the values in the key fields of an object to narrow down the list of possible agents. By referencing the appropriate data dictionary fields, you can use specific data, such as the amount of a purchase order or the customer’s name on an invoice, to specify the possible agent.

To access the standard role transaction from the main R/3 menu, choose Tools -> SAP Business Workflow -> Development - > Definition tools -> Standard roles.

Creating a Container Definition with Table Fields

On the Maintain Standard Role screen:

  1. Choose Create.
  2. The Create Standard Role screen appears.

  3. Name your standard role in the Basic Data field.
  4. Choose Role type Responsibility.
  5. The field Role definition appears.

  6. Choose Container Definition.
  7. The Standard Role: Edit Container screen appears.

  8. Choose Create.
  9. The Create Element dialog box appears.

  10. If you wish to use Data Dictionary fields, choose Yes.
  11. The Create with Data Dictionary field Proposals dialog box appears.

  12. Enter the table from which you intend to select fields and choose Continue.
  13. The table appears.

  14. Select the fields you wish to appear in the container definition.
  15. The system prompts you to confirm the names of these container elements.

  16. In the Standard Role: Edit Container screen, double-click on the element name.
  17. The Element dialog box appears. If you select the box Mandatory, an error will ensue in the workflow step if no bindings have been defined for that element. If you select the box Multiline, you can enter many values for a single container element. You may select both simultaneously.

  18. Choose Back.

The Create Standard Role screen appears.

Creating a Container Definition with Object Types

Follow steps 1 to 5, and then:

  1. If you wish to use object types, choose No.
  2. The Standard Role: Edit Container dialog box appears.

  3. Enter a name for the element. If you select the box Mandatory, an error will ensue in the workflow step if no bindings have been defined for that element. If you select the box Multiline, you can enter many values for a single container element. You may select both simultaneously.
  4. Select the object type you want the container to reference and choose Continue.
  5. The Standard Role: Edit Container screen appears.

  6. Choose Back.

The Create Standard Role screen appears.

Result

You have now created a container definition with data dictionary fields or object types as elements. You will use these elements to define criteria for role resolution.