Entering content frameProcedure documentation Unit 6: Creating Task "Check Notification of Absence" Locate the document in its SAP Library structure

Use

You define the task Check notification of absence. This task is incorporated into your workflow definition as the second step.

As this is not the first task you have defined, many steps will doubtless be familiar to you. (Refer to Unit 4: Defining and Inserting Task "Create Notification of Absence".)

Prerequisites

The object type used (here: FORMABSENC (notification of absence)) and the required method (here: Approve) are already defined and implemented in the Business Object Repository.

Procedure

This time, you will not define the task directly from the Workflow Builder, but independently in task maintenance.

  1. Choose Tools ® Business Workflow ® Development ® Definition Tools ® Tasks/Task Groups ® Create.
  2. The Task: Maintain screen is displayed.

  3. In the Task type field, choose the Standard task entry.
  4. Choose This graphic is explained in the accompanying text.

The Basic data tab in the Standard task: Create screen is then displayed.

Entering the basic data

  1. Enter an abbreviation (of your choice) and a name (of your choice) for the task to be created.
  2. Abbreviation: < ini _check>

    Name: <Check notification of absence ( ini )>

    Object type and method

  3. Enter an object type and a method:
  4. Object category: BOR object type

    Object type: FORMABSENC

    Method: APPROVE

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

    Work item text

  5. In the Work item text field, enter the text Check notification of absence from .
  6. Choose This graphic is explained in the accompanying text. Save your task as a local object.
  7. You can include variables in your work item text to be filled with values from the task container at runtime.
  8. The name of the creator of the notification of absence is to be included into the work item text. As soon as the work item appears in the superior’s Business Workplace, the name of the creator appears in the work item information text.

    Position the cursor in the work item text after the word of .

  9. Choose This graphic is explained in the accompanying text.
  10. The Please choose an expression dialog box is then displayed.

  11. Choose the expression Notif. of absence by double-clicking the Container node. ® Issuer object ref. ® Name.

Note

If _WI_Object_ID is displayed instead of Notif. of absence, choose This graphic is explained in the accompanying text. The system then displays the description of the expressions instead of their technical names.

The variable &_WI_Object_ID.Creator.Name& has been added to the work item text automatically. The variable name displayed here is the technical name of the expression.

You can integrate all of the elements in the task container in your work item text. This enables you to include information into the work item text, which is not available until runtime.

Entering the description text

  1. Go to the Description tab.
  2. Choose Task description in the Test type field.
  3. The current task description is then displayed. This text is intended to inform future recipients of a work item in which this task is referenced and help them in their work.

    The text will often be similar to the work item text or may supplement it.

  4. Choose This graphic is explained in the accompanying text.
  5. Enter the following text:
  6. Please check notification of absence no. &_WI_OBJECT_ID.NUMBER& from &_WI_OBJECT_ID.CREATEDATE& of employee &_WI_OBJECT_ID.CREATOR.NAME& .

    Decide whether to approve the request.

    If you want to insert an expression from the task container as a text variable, you have to choose Include ® Expression. Then choose the relevant expression in the Please choose an expression dialog box by double-clicking the Container node. You cannot insert an expression manually in the text.

  7. Choose This graphic is explained in the accompanying text.
  8. Choose This graphic is explained in the accompanying text.

Determining possible agents

  1. Choose Additional data ® Agent assignment ® Maintain.
  2. This takes you to the Standard task: Maintain Agent Assignment screen.

  3. Position the cursor on the name of your task.
  4. Choose This graphic is explained in the accompanying text.
  5. You go to the Choose agent type dialog box.

  6. Double-click Job.
  7. The Choose Job dialog box is displayed.

  8. Enter either part of or the full abbreviation of the job that you created for the head of department in Unit 1: Organizational Plan and select the required job.
  9. You return to the Standard Task: Maintain Agent Assignment screen.

  10. Choose This graphic is explained in the accompanying text.
  11. You have linked the task to the job of a head of department. In the organizational plan, you use this job to describe a position. The holder of the position is also displayed.

  12. Choose This graphic is explained in the accompanying text.
  13. Choose This graphic is explained in the accompanying text.

Result

The task for checking the notification of absence is defined in full. You can now exit the screen for defining a task.

In the next unit, you will incorporate this task into your workflow.

Note

Display your organizational plan again.

          1. Choose Tools ® Business Workflow ® Development ® Definition Tools ® Organizational Management ® Organizational Plan ® Display.
          2. Choose your organizational unit in the search area. Display it by double-clicking the entry in the table.
          3. In the overview screen, choose the arrow This graphic is explained in the accompanying text on the right next to This graphic is explained in the accompanying text and then Staff assignments (list).
          4. Display a detailed view of the position of the head of department by double-clicking the entry in the list.

Here, you can see that this position is assigned to the job and, on the Tasks tab, that it is also assigned to the task Check notification of absence.

Leaving content frame