
Creating Method to Execute Work Items Together
The
Workflow Inbox gives you the option to mark several work items and execute them together. Here you only execute the first work item. All other work items are executed by the workflow system in the same way as the first work item. For example, you can approve several leave requests at the same time whereby you only approve the first one and those remaining are selected by the workflow system.For you to be able to use this function in the Business Workplace, the work items selected must fulfill the following prerequisites:
You must insert the sections of the example program that are colored and highlighted by the
NEW comment in an existing implementation program of a method, so that work items for this method can be executed together.Example
Work items that refer to the
Approve method of FORMABSENC object type can be executed together. The PROC_STATE parameter is marked as the result parameter.
begin_method approve changing container.
DATA: proc_state LIKE swxformabs-procstate,
return_code LIKE sy-subrc,