Entering content frameProcedure documentation Unit 11: Defining and Including "Revise Notification of Absence" in the Workflow Definition Locate the document in its SAP Library structure

Use

You will now add the activity Revise notification of absence to your workflow definition. You will create the required task within the workflow definition.

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.

Creating an activity as a step in the workflow definition

  1. Choose This graphic is explained in the accompanying text under step type. The cursor changes shape.
  2. Position the cursor on the Undefined step that follows the outcome Revise after the user decision, and click.

By doing so, you add an activity to your workflow definition. The step definition is shown in the right-hand part of the screen. You are on the tab page Control.

Creating a standard task for use in this step

  1. Choose the arrow This graphic is explained in the accompanying text on the right next to the This graphic is explained in the accompanying text and then Create task.
  2. The Basic data tab in the Standard task: Create screen is then displayed.

  3. Enter the following data.
  4. Abbreviation: <ini_revis>

    Name: <Revise notif. of absence (ini)>

    Work item text: < Revise notification of absence >

    Object category: BOR object type

    Object type: FORMABSENC

    Method: UPDATE

    You can also use the F4 input help to select the method.

  5. Save your task as a local object and exit the task definition.
  6. You then return to the step definition in the Workflow Builder. For this task, a binding must be defined between the workflow and task containers. The system proposes a binding and displays it for you to check in the Define container elements and binding dialog box. This proposal defines that the object reference to the notification of absence is transported from the workflow container (container element AbsenceForm ) to the task container (container element _WI_Object_ID ).

  7. Confirm the proposal with This graphic is explained in the accompanying text.
  8. The system has entered the abbreviation for the new task in the Task field. The Step description field contains a description of the task. You can change this entry if necessary.

  9. Choose This graphic is explained in the accompanying text.
  10. Position the cursor on the name of your task.
  11. Choose Properties…
  12. Set the General task indicator.
  13. Choose This graphic is explained in the accompanying text Copy and then This graphic is explained in the accompanying text.
  14. The screen for editing the standard task is then displayed.

  15. Choose Workflow initiator (expression) under Agents.
  16. The system enters the expression &_WF_INITIATOR& as the responsible agent in the Expression field and in the input field beside the checkbox.

  17. Switch to the Outcomes tab and enter a description (for example, request revised ) for the Step executed outcome.

Concluding the step definition

  1. Choose This graphic is explained in the accompanying text to check the step definition.
  2. Choose This graphic is explained in the accompanying text to exit the step definition.
  3. Choose This graphic is explained in the accompanying text to view the entire workflow definition in the workflow area on the screen.
  4. You will notice that your workflow definition now contains a new step (the activity just created). The undefined step is also still there.

  5. Choose This graphic is explained in the accompanying text.

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

You can now subject your workflow definition to another test. Carry out the test as described in Unit 10: Third Test.

Test proposal

To test the new step, proceed in the following order:

  1. Create notification of absence.
  2. Reject notification of absence.
  3. Revise user decision.
  4. Revise request (the new step)

Note

Since you are both the requester and approver and because advancing with immediate dialog is activated, all of the steps are presented to you directly.

Leaving content frame