Workflow Documents
Workflow Documents
One similar example to workflow is the automated lines in the manufacturing industry with station
points or loading points.
You can arrange and manage the dependency of tasks. Users can be sent notification for the task waiting
in the SAP inbox for approval or action. Users can be informed of milestones in the process.
By automating the process, you free the users from having to know what to do when. Work items are
sent to the participants notifying them of what they have to do, and a single click on the notification calls
the correct transaction and navigates to the relevant screen.
Components:
Workflow Builder: To generate the Workflow. The Workflow Builder provides a graphical view of the
workflow definition.
Events
Role Resolution
Components
Example:
– The scenario starts when an employee fills out a request for leave.
– If the supervisor rejects the application, the employee is informed and asked to decide whether he/she
wants to re-submit the application or withdraw it completely.
– If the employee decides to revise the application, the form is forwarded to his/her inbox for re-submit.
– If the supervisor approves the request, the employee is informed and the workflow can end.
Steps:
absence)
4. Add activity > first task in the workflow
8. 2nd Test
13. Add 4th Customer Task (Send Notification for approval of leave)
In the Task type field, choose the Workflow template for Workflow Template.
For Creating tasks: Choose Standard Task in the Task type field.
Step2:b: View the workflow in T-code SWDD (Workflow Builder)
In the middle we have overview graphic/flow-chart. And on the right side on the bottom we have various
small buttons/icons called step types. This we can drag and drop and insert into our workflow. We will be
using the first step type which is like theplay button called activity for our Step 3: Create Notification of
Absence.
Name: Form_created
Abbr: create_form
Method: CREATE
Note the Binding button. The binding _WI_ObjectId -> &ABSENCEFORM& has been automatically
defined here by the system. This binding ensures that the reference to the notification of absence
created is not only known in this task, but also in the workflow.
When the SAP workflow runs it creates work items which are like e-mails in the SAP Inbox. When it is
executed it calls the respective task or transaction screen with the correct data.
You have now started the workflow but canceled the processing of its first step.
Your SAP workflow inbox now contains one work item for processing. This is the work item for creating a
notification of absence, the processing of which you canceled previously. You have to select your work
item with the subject as the work item text you have given.
You return to the Create notification of absence screen where the notification of absence form is
displayed. Fill out the form and choose Save. The work item disappears from your workflow inbox.
Step 6: Define 2nd Customer task (Check notification of absence)
This form formabsenc-create you created before will now be sent to supervisor for approval using the
object formabsenc-approve object.
Include Task: Check Notification of Absence in the Workflow. We have Task code as TS99500545.
Make the following entries for object &Approver&: Element: Approver, Name: Approver, Description:
Approver of the absence request, Reference table: WFSYST, Reference field: AGENT.
For Agents Choose Position. Select your position by the name you have created in the organization. You
can note down the id of your position from your organization (Tcode – PPOCE) as S50001707. (Don’t
provide S in the text field).
We can also implement deadline in activities using Latest end, Requested Start, Latest start, Requested
end. For e.g. If the superior has not made the decision about the leave request, the requester should be
notified. Once the deadline (for e.g. latest end) passes, a work item for missed deadlines appears in your
Business Workplace notifying you of the missed deadline.
Now, You will see that two branches are now inserted in your workflow definition for the two marked
outcomes Approved and Rejected.
Choose execute the workflow. You go to the screen Create Notification of Absence.
When the workflow is started, the work item for creating the notification of absence is provided to you
directly for processing. This is because of advancing with immediate dialog. You were introduced to this
in the first test. Fill out the form and choose Save.
You now go to the screen of Business Workplace > Inbox through the user-id of superior/supervisor
(head).
The work items for you to process are displayed with their work item texts and certain other attributes.
Select your work item for checking the notification of absence and Choose execute.
Either reject or approve the request. Notice the two buttons Approve and Reject.
You can see that check Notification has two branches – Approved, Rejected. We will be adding a user
decision to the outcome Rejected. With the user decision, the requester can decide to revise and
resubmit the leave request if the head of department/supervisor rejects it.
Again execute your workflow. Fill out the Form and Save it. The work item will disappear from your
inbox.
If the request is not approved, the next step in the workflow definition is the user decision. The
requester (&WF_INITIATOR&) was entered as the agent for the step. The decision is therefore offered to
you again as the requester.
If you choose Revise request, that should take you to the re-submit form. That is our next step.
Step 11: Define 3rd Customer task (Revise notification of absence) and add to undefined step at
outcome – Revise after the user decision.
Use FORMABSENC-UPDATE as object.
You have created a complete workflow template with which a notification of absence can be created,
approved and revised.
Now you will insert a step in the workflow definition that sends a notification to the requester after the
request has been approved.
Choose Step “Send mail”. Drag it to the Undefined Step after the outcome approved of the step Check
notification of absence.
Enter the mail text – < Dear Colleague, your leave was approved. >
Choose Enter. You will be asked for the name and abbreviation of a task. Fill up the fields.
Other types of SAP workflow steps which can be used in the workflow are Activity, Process Control,
Condition, User decision, Document from template, Container operation, Event creator, Multiple
condition, Fork, Undefined step, Loop (Until), Wait step, Loop(While).