Object ‘Form: Notification of Absence’ (Optional) 

Use

In this process step you change to the business object levels that implement those business objects which have been edited in a workflow. Its methods, attributes and events are the operational elements of a workflow and implement an object-oriented access to the SAP R/3 System functionality. From the process level (flow description) you can easily access the methods, attributes and events of an object in the SAP R/3 System without any programming knowledge. This simplifies the workflow creation.

This process step is particularly interesting for developers. Other user groups can ignore it.

Procedure

  1. Position the cursor on the task number TS30000016 in the Workflow Builder: Display step: Activity screen and choose .
  2. This standard task is implemented by calling the method APPROVE of the object type FORMABSENC.

  3. To view the object type FORMABSENC more closely, position the cursor onto it and select Goto ® Select line/object.
  4. Select the ‘+’ before attributes, methods and events.
  5. Mark the method Absence Form. Approve and choose .
  6. The Method Approve dialog box indicates that it is a synchronous, interactive method with a user dialog.

  7. To find out how the method is implemented, select the ABAP/4 tab. The method calls the function module SWX_FORMABS_APPROVE.
  8. Choose .
  9. If you want to see the ABAP implementation of the method, choose Program.
  10. The code frame for the method and the function call has been automatically generated according to the approve method details above.

  11. Choose until you reach the Workflow Builder screen.
  12. Choose Data flow exists in the top section of the screen to see the input and output data of the task.
  13. The contents of the workflow container elements AbsenceForm are passed to the task as an input parameter (<==) with the name Notif. of absence. (Technically this is the link to the edited object Notification of absence which you just displayed.)
    The task does not return any result data to the workflow container, so no entries have the ‘==>‘arrow.

  14. To display the access to the attributes, position the cursor on the element &AbsenceForm& and click the right-hand mouse key and Possible Entries.
  15. The elements of the workflow container are displayed in the dialog-box. The Notif. of absence element is the only one highlighted in blue/green because it has only one data type which matches the input parameter of the task or object method.

  16. To display the attributes available for the notification of absence, select the ‘+’ sign in front of the element. The ‘+’ sign on front of Approver indicates that this attribute links in turn to an object containing the attributes address, cost center, department etc.
  17. In change mode you could use one of these attributes, for example to formulate a link condition, as input parameter for an activity to be executed, as agent of an activity, or as reference point for deadline monitoring.

  18. Choose .

You must also close the Workflow Builder. Choose Workflow ® Exit.