In this lesson you ensure that the system sends an e-mail to the employee after completing process ZTPR. In this way, you inform your employee that the process is completed and that the data was updated accordingly in the back-end system.
Open your workflow in the
Workflow Builder
.
Choose the
Step Types That Can Be Inserted
menu bar
.
Choose the
Send Mail
entry. Hold down the left-hand mouse button to drag it into the
Graphical Model
area, onto the line after the
Edit Relocation Form (Administrator)
step.
The mouse pointer uses a plus symbol (+) to show you where you can insert the step.
The detail view for the step appears.
Make the following settings on the
Mail
tab page.
Keep the default setting for the
Recipient Type
.
This determines the process initiator (the employee) as the e-mail recipient.
Enter the following text under
Subject
:
Change of Address and Relocation Benefit Confirmation
Enter the following text in the text field:
Dear Colleague,
we hereby confirm that we have received your change of address request from V1. We have updated your address in our HR master data accordingly.
We are also pleased to inform you that you will receive a relocation benefit.
If you have any questions, please quote reference number V2.
Best regards,
Your HR department
Determine variables for the date and reference number as follows:
With the cursor in the text field, choose
Insert Expression
. The
Select Expression
dialog box appears.
Click the
PROCESS_OBJECT
node.
Select the INIT_DATE entry, and choose
Continue
.
Move the cursor to the next line.
Proceed in the same way to select the
REFERENCE_NUMBER
entry.
The system inserts the following variables into the text:
&PROCESS_OBJECT.INIT_DATE&
&PROCESS_OBJECT.REFERENCE_NUMBER&
Enter the following data for the task:
Abbreviation
:
ZTWS_MAIL
Description
:
Confirmation Mail for Relocation Process
Enter the following step name on the
Control
tab page:
E-Mail Confirmation to Employee
Choose
Transfer and Go to Graphic
.
Save the task as a local object.
Save and activate your workflow template.
Your workflow template now looks like 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 (Superior)
step that the graphic shows as the first step is the second step of the process.