Show TOC

 1.2.8: Defining the Edit Form Workflow Step in Detail for the HR Administrator

Use

In this sublesson, you make the necessary settings for the new workflow step for processing the relocation form in your workflow template ZTWS.

The procedure described below shows you an example of how to determine the workflow initiator as the processor and how to determine constants.

Step 3 shows two procedures that you can use to determine the processor.

Step 4a shows how you access the input helps for constants. As an alternative to this procedure, you can also directly enter the value for the constant instead of using the input help. Step 4b shows this procedure.

Procedure

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

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

Edit Relocation Form (Administrator)

Define the agent determination for the step. Enter the workflow initiator as the processor so that you, as the processor that started the workflow, can also run the Edit Form workflow step.

You can choose from the following procedures:

Agent type Expression

Under Processor , select the Expression entry.

Access the field input help to the right of the field with the Expression entry.

The Expression for Step Agent dialog box appears. The elements of your workflow template are listed under the Container node.

Select the entry _WF_INITIATOR, and choose Continue

Agent type Workflow Initiator (Expression)

Under Processor , select Workflow Initiator (Expression) .

For this processor type, the system automatically defines the entry &_WF_INITIATOR&.

Determine the data flow between the workflow container and the workflow step container

On the Control tab page, choose the Data Flow (Existing) pushbutton. The Change Data Flow for Step dialog box appears.

This dialog box shows the following automatically generated definitions for the data flow between the workflow container and the workflow step container:

The data flow from the workflow container to the step container

The data flow from the step container to the workflow container

The system automatically generated these definitions when you included the Edit Form task in your workflow template.

In the Change Data Flow for Step dialog box, in the Data Flow: 'Relocation' Workflow -> Step ‘Edit Form’ area, in the ‘Relocation’ Workflow column, make the following settings:

Determine that the data in the infotypes is saved to the back-end system in this workflow step.

Create the constant A for the entry &SEND_VARIATION&. Use the input helps for constants as follows:

In the ‘Relocation’ Workflow column, choose the input help for the &SEND_VARIATION& element.

The Select Expression dialog box appears. This lists the container elements of the workflow template.

Choose the Enter Constant function.

The system extends the dialog box with the Constant area.

Choose the input help for the field in the Constant area.

Select the entry A (Write Data to Application Database) and choose Continue .

In the data flow, the value A is now in the ‘Relocation’ Workflow column.

Determine which form scenario and which form scenario step to use.

In this case, enter the constants directly, instead of using the input helps for constants. In the ‘Relocation’ Workflow column, simply overwrite the following entries:

the entry &FORM& with ZTFS

the entry &FORM_SCENARIO_STAGE& with FSS_4

The following graphic shows the Data Flow: ‘Relocation’ Workflow -> Step ‘Edit Form’ area after the last step:

Choose End Data Flow Editor.

Determine the interaction between the workflow step and the process object.

On the Programming Exits tab page, enter the class CL_HRASR00_POBJ_WF_EXIT

Choose Transfer and Go to Graphic

Save and activate your workflow template.

Result

Your workflow template now looks like the following graphic:

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 (Administrator) step that the graphic shows as the first step is the second step of the process.

See also:

Standard Task TS17900100: Edit Form