In this lesson, you make the necessary settings for the new workflow step for processing the relocation form in your workflow template ZTWS.
Note
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 you how to determine the processor.
Step 5 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.
Double-click the new Process Form
icon in the Graphical Model
area to display the Process Form
workflow step details.
Choose the Control
tab.Overwrite the system-provided Step Name
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 Process Form
workflow step.
In the Agents
area, choose Workflow Initiator (Expression)
as
Agent type. For this processor type, the system automatically defines the entry &_WF_INITIATOR&
.
Choose Transfer and To Graphic
.
Choose Basic Data
. In the Description field, re-enter Relocation . Save your entries.
Determine the data flow between the workflow container and the workflow step container.To do this, choose the Binding
(Exists)
pushbutton. The Change Binding for Step
dialog box appears. In the area, in the ‘Relocation’ Workflow
column, make the following settings:
Note
The Process Form
task in your workflow template.
Ensure that the data in the infotypes is saved to the back-end system in this workflow step:
In the ‘Relocation’ Workflow
column, click the drop-down list in the &SEND_VARIATION&
row.The Select Expression
dialog box appears, listing the container elements of the workflow template.
Choose the Enter Constant
pushbutton.The system extends the dialog box to display fields for constants.
From the dropdown list in the Constant
field, select A (Write Data to Application Database)
.
Choose Continue
. A (Write Data to Application Database)
now appears in the ‘Relocation’ Workflow
column.
Determine the form scenario to use.
In the ‘Relocation’ Workflow
column, click the dropdown list in the &FORM&
row. The Select Expression
dialog box appears.
Choose the Enter Constant
pushbutton on the dialog box toolbar. The system extends the dialog box to display fields for the (Form) Scenario
and (Form Scenario) Version
.
Select the following values:
Form scenario: ZTFS
Version: 0000
Choose Continue
. The details for the form scenario now appear in the ‘Relocation’ Workflow
column.
Determine the form scenario step to use.
In the ‘Relocation’ Workflow
column, click the drop-down list in the &FORM_SCENARIO_STAGE&
row.The Select Expression
dialog box appears.
Choose the Enter Constant
pushbutton.The system extends the dialog box to display fields for the form scenario and its steps.
Using the dropdown lists in these fields, select the form scenario ZTFS, the version 0000 and form scenario step FSS_4.
Choose Continue
. The details for the form scenario step now appear in the ‘Relocation’ Workflow
column.
Choose the Exit Binding Editor
button .
The following graphic shows the Data Flow: ‘Relocation’ Workflow -> Step ‘Process Form’
area after the last step:
Determine the interaction between the workflow step and the process object.
Navigate from the Control
tab to the Programm Exits
tab.
Choose the Class
menu bar and select the class CL_HRASR00_POBJ_WF_EXIT
.
Choose Transfer and to Graphic
to return to the Graphic Model.
Save your entries.
Choose Generate and Activate Run-Time Version
to activate your workflow template.
You have now completed all workflow step-specific settings Your workflow template now resembles the following graphic:
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 (Administrator)
step that the graphic shows as the first step is the second step of the process.
See also: