Creating a Task (Exception) 

In this step, you create a task as the receiver of the event inputErrorOccurred. In addition, you must also activate the type linkage.

Prerequisites

You must have completed the required steps in Defining and Using a Basic Type .

Procedure

Creating a task by copying

  1. From the initial R/3 screen choose Tools ® Business Workflow ® Development, Definition tools ® Tasks ® Copy. Enter Standard task as the task type and the ID 00008046 (inbound processing error in ORDERS01).
  2. Choose and enter a task abbreviation. When copying, select the development class which you have configured for yourself in IDoc administration or which applies to all other objects in your basic type definition.
  3. Changing a new task

  4. Return to the workflow development menu and choose Definition tools ® Task ® Change. The system transfers your new task to the input field.
  5. Choose . Replace the object type IDOCORDERS with your new object type for the following tab pages:
  6. · Basic data

    · Triggering Events (add new rows, delete old rows)

    · Terminating Events (add new rows, delete old rows)

    The object methods inputForeground for exception handling are copied from object type IDOCORDERS (tab page basic data).

  7. Activate the type linkage for triggering event (green light) by clicking the button. Save your entries.
  8. Select Additional data ® Agent assignment ® Maintain, to assign possible agents to your task. Via Attributes you can classify the task as a general task, that is to say, every user is a possible agent.
  9. Save your entries.

You can check whether you have been entered as a possible agent for the task. From the workflow development menu choose Runtime tools ® Start workflow (test environment) and then enter your entries and choose . If an error message appears which indicates that you are not a possible agent, this may be due to the internal buffer tables used in organization modeling. Then choose Refresh Organization Environment and try again.

Make the following entries for the example:

Task abbreviation

TEST_ERROR

Object type

IDOCTEST

Object method

errorProcess

Agent assignment

general task