Start of Content Area

Procedure documentation 3.2 Defining the Approve Form Workflow Step in Detail Locate the document in its SAP Library structure

Use

In this lesson, you set up the Approve Form workflow step for processing in your workflow template.

Procedure

...

       1.      The details of the Approve Form workflow step appear when you double-click on the step in the Graphical Model.

       2.      To change the description of the step, choose the Control tab page and overwrite the description defined by the system with the following text:

Approve relocation form

       3.      On the Control tab page, set the agent determination. Enter the workflow initiator for the test phase. For more information, see the Defining the Edit Form Workflow Step in Detail for the HR Administrator lesson.

       4.      To define the data flow between the workflow step container and the workflow container, choose the Data Flow (Existing) pushbutton on the Control tab page.

The Change Data Flow for Step dialog box appears. The workflow template container elements and the workflow step container elements are displayed side by side.

The following image shows the Change Data Flow for Step dialog box for your workflow step:

This graphic is explained in the accompanying text

Two of these container elements determine that the following pushbuttons are displayed on the relevant step in the form application:

       Back to Author (container element BACK_BUTTON_VISIBLE)

If the user chooses the Back to Author pushbutton, the form to be edited is sent back to the user who started the process. The value of the PROCSTATE container element in the ‘Relocation’ Workflow <- Step ‘Approve Form’ data flow is set to status BACK when you use this function.

       Save Draft (container element SAVE_DRAFT_BUTTON_VISIBLE)

In most cases this function is not useful in an approval step. This pushbutton is not visible in the standard system. Therefore, copy this setting for your process.

To edit the container elements in the Data Flow: 'Relocation' Workflow -> Step ‘Approve Form’ area, proceed as follows:

                            a.      Set the Back to Author pushbutton to visible.

In the 'Relocation' Workflow column, enter the constant X (Pushbutton Is Visible and Active) for the &BACK_BUTTON_VISIBLE& element.

                            b.      Leave the Save Draft pushbutton invisible.

Leave the entry &SAVE_DRAFT_BUTTON_VISIBLE& in the 'Relocation' Workflow column as created by the system.

                            c.      Enter the form scenario step.

In the 'Relocation' Workflow column, overwrite the &FORM_SCENARIO_STAGE& element with FSS_3.

Note

For more information about entering constants, see the Defining the Edit Form Workflow Step in Detail for the HR Administratorlesson (see above).

The data flow for the element FORM must not be changed. The task container receives the relevant value from the workflow container. For more information, see the Determining the Form Scenario in the Workflow Container lesson.

       5.      Choose Exit Data Flow Editor.

       6.      Determine the programming exit for the workflow step.

On the Programming Exits tab page, enter the class CL_HRASR00_POBJ_WF_EXIT.

       7.      Choose Transfer and Go to Graphic.

       8.      Save and activate your workflow template.

Result

Your workflow template now looks like the following graphic:

This graphic is explained in the accompanying text

Note

The first process step in which the employee starts the process is outside of the workflow and is therefore not represented in this graphic. The Edit Relocation Form (Superior) step that the graphic shows as the first step is the second step of the process.

See also:

Standard Task TS17900101: Approve Form

 

End of Content Area