Unit 18: Work Item Attachments 

Use

The superior is to have the opportunity to add an attachment to their work item for checking the notification of absence. This attachment is a document (any SAPscript or PC document), which is then made available to all subsequent recipients in the workflow. The superior can use this to give a full explanation for a rejection.

An attachment can be added to a workflow before the workflow is actually executed in the Business Workplace.

To create an attachment after the workflow has been executed, you have to change the definition of the associated standard task.

To enable the superior to create an attachment after the notification of absence has been checked, you must set the Confirm end of processing flag for the task Check notification of absence. This property means that the agent has to confirm the end of processing of the work item explicitly. The agent can also add an attachment before this confirmation.

For further information about using documents in workflows, refer to Document Processing in the SAP Business Workflow documentation.

Procedure

You start the Workflow Builder and open your workflow definition in Change mode. Proceed as described in Unit 7: Including "Check Notification of Absence" in the Workflow Definition.

Changing the task "check notification of absence"

  1. Open the step definition for the step Check notification of absence by double-clicking it.
  2. Double-click the task ID to open the task definition.
  3. You go to the screen Standard task: Display.

  4. Choose to switch to change mode.
  5. Set the Confirm end of processing flag under Execution.
  6. Choose and then .

Concluding step definition

  1. Choose to check the step definition.
  2. Choose to exit the step definition.
  3. Choose .

The workflow definition is checked, saved, and, provided it does not contain any errors, activated. The system displays a message if problems are encountered during the test.

Result

Execution of the work item for the step Check notification of absence must be confirmed expressly. This enables you to create an attachment after the request has been approved or rejected.

You can also create attachments while a work item is being executed. An example of this is provided in the demo workflows. Choose Tools ® Business Workflow ® Development ® Environment ® Start demo workflows. Start the demo workflow Demo for WI execution with WF toolbox. Further information is provided on the right-hand side of the screen.