Академический Документы
Профессиональный Документы
Культура Документы
%XLOGDQG8VH
%&
6$3%XVLQHVV
:RUNIORZ%XLOGDQG
8VH SAP AG 1999
n R/3 System
n Release: 4.6 C
n November 2000
n Material number: 5004 2078
&RS\ULJKW
&RS\ULJKW6$3$*$OOULJKWVUHVHUYHG
1HLWKHUWKLVWUDLQLQJPDQXDOQRUDQ\SDUWWKHUHRIPD\
EHFRSLHGRUUHSURGXFHGLQDQ\IRUPRUE\DQ\PHDQV
RUWUDQVODWHGLQWRDQRWKHUODQJXDJHZLWKRXWWKHSULRU
FRQVHQWRI6$3$*7KHLQIRUPDWLRQFRQWDLQHGLQWKLV
GRFXPHQWLVVXEMHFWWRFKDQJHDQGVXSSOHPHQWZLWKRXWSULRU
QRWLFH
$OOULJKWVUHVHUYHG
SAP AG 1999
7UDGHPDUNV
n Some software products marketed by SAP AG and its distributors contain proprietary software
components of other software vendors.
n Microsoft, WINDOWS, NT, EXCEL, Word and SQL Server are registered trademarks of
Microsoft Corporation.
n IBM, DB2, OS/2, DB2/6000, Parallel Sysplex, MVS/ESA, RS/6000, AIX, S/390,
AS/400, OS/390, and OS/400 are registered trademarks of IBM Corporation.
n ORACLE is a registered trademark of ORACLE Corporation, California, USA.
n INFORMIX-OnLine for SAP and Informix Dynamic ServerTM are registered trademarks of
Informix Software Incorporated.
n UNIX, X/Open, OSF/1, and Motif are registered trademarks of The Open Group.
n HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C, World Wide
Web Consortium, Laboratory for Computer Science NE43-358, Massachusetts Institute of
Technology, 545 Technology Square, Cambridge, MA 02139.
n JAVA is a registered trademark of Sun Microsystems, Inc. , 901 San Antonio Road, Palo Alto, CA
94303 USA.
n JAVASCRIPT is a registered trademark of Sun Microsystems, Inc., used under license for
technology invented and implemented by Netscape.
n SAP, SAP Logo, mySAP.com, mySAP.com Marketplace, mySAP.com Workplace, mySAP.com
Business Scenarios, mySAP.com Application Hosting, WebFlow, R/2, R/3, RIVA, ABAP, SAP
Business Workflow, SAP EarlyWatch, SAP ArchiveLink, BAPI, SAPPHIRE, Management Cockpit,
SEM, are trademarks or registered trademarks of SAP AG in Germany and in several other countries
all over the world. All other products mentioned are trademarks or registered trademarks of their
respective companies.
n Design: SAP Communications Media
%XVLQHVV,QWHJUDWLRQ7HFKQRORJLHV,
/HYHO /HYHO
2 days 5 days 3 days
SAP Business SAP Business SAP Business Workflow
Workflow - Introduction Workflow - Workflow - Programming
Build and Use
3 days
SAP ArchiveLink
2 days
3 days ADK - Retrieval
programming Archiving
Data Archiving
2 days
Data Archiving Retention
Tool (DART)
2 days
Web connection
SAP Business Connector
SAP AG 1999
%XVLQHVV,QWHJUDWLRQ7HFKQRORJLHV,,
/HYHO /HYHO
3 days
Application Link
Enabling (ALE)
Technology
6
2 days 1 day /0"&#"&1$+23"%*
SAP IDoc Interface SAP IDoc Interface -
Technology Development
57
3 days 4 days
Business Integration EDI Interface
Technology
5 days
Data Transfer 4 +
2 days
Communication
!#"%$&
5 days Interfaces in ABAP
Programming with 5(( '()+*",,.- *
BAPIs in Visual Basic 5 days
Programming with
5 days BAPIs in JAVA
R/3 Interface and BAPI
Programming in C++
SAP AG 1999
&RXUVH3UHUHTXLVLWHV
l 6$35%DVLV7HFKQRORJ\
l %&%XVLQHVV:RUNIORZ,QWURGXFWLRQ
SAP AG 1999
7DUJHW*URXS
l $XGLHQFH
8 :RUNIORZSURMHFWWHDP
l 'XUDWLRQGD\V
SAP AG 1999
6RXUFHVRI,QIRUPDWLRQ
l 6$3+HOS&'
l $SSOLFDWLRQFRPSRQHQWGRFXPHQWDWLRQ
UHJDUGLQJZRUNIORZWHPSODWHV
l ,'(6GRFXPHQWDWLRQ
l &RPSUHKHQVLYHZRUNIORZWXWRULDOV
l ,QIRUPDWLRQIURP6$3KRPHSDJHRQWKH
,QWHUQHW
l 2662QOLQH6HUYLFH6\VWHP
l 7UDLQLQJ
SAP AG 1999
&RXUVH2YHUYLHZ
&RQWHQWV
l &RXUVH*RDO
l &RX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
SAP AG 1999
6$3%XVLQHVV:RUNIORZ
l ,VDWRROIRUWKHDXWRPL]DWLRQ l ,VWDLORUHGWRFXVWRPHU
RIEXVLQHVVSURFHVVHV QHHGVDQG
GHYHORSPHQWV
l ,VQRWWLHGWRDQ\SDUWLFXODUDSSOLFDWLRQ
l 2SHUDWHVXQLIRUPO\DFURVVDSSOLFDWLRQV
l &RRUGLQDWHVDOOSDUWLFLSDWLQJWDVNV
l 3URYLGHVXVHUVZLWKDFWLYHVXSSRUW
6$3%XVLQHVV:RUNIORZ
5
SAP AG 1999
n You can use the SAP Business Workflow system to support your enterprise processes in R/3.
n The SAP Business Workflow system is able to combine steps from different applications into one
process.
n The SAP Business Workflow system supplies the end user with all the information required for the
next step.
n You can change the SAP workflows provided, or you can build your own workflow definitions.
Customer
Order
Material
Purchase
order
Vendor
SAP AG 1999
n Workflows can either be started by events, explicitly in start transactions, or by using external forms,
(for example on the Internet).
n A workflow can start another workflow by triggering an event.
n The individual steps of a workflow are represented by tasks (TS).
The tasks are based on methods of business objects that are defined in the Business Object
Repository, and refer to entities and relations in the R/3 data model.
n Steps of a workflow can also be controlling steps, for example, "waiting for an event", "container
operation", "loop", ...
2UJDQL]DWLRQDOXQLW
3RVLWLRQV :KRLVH[HFXWLQJWKH
5ROHV 8VHU SURFHVVLQJVWHSV"
$FWLYLW\ 2UJDQL]DWLRQ
JURXSV 0DQDJHPHQW
:KLFKVWHSVGRHVWKH
SURFHVVFRQWDLQ"
:RUNIORZ%XLOGHU
:KDWLVVWDUWHG"
$%$3RI
GLIIHUHQW
DSSOLFDWLRQV
SAP AG 1999
n On the level of the SAP business object type, all services are provided in the form of executable
methods.
Methods can be realized as BAPIs. You can then call them from outside the system.
BAPIs have an established static interface.
Methods are related to functions from applications in the SAP R/3 System.
The tool for maintaining business object types is the BOR (Business Object Repository).
n The process level describes the business process in a sequence of individual steps. All the steps
together form the workflow definition.
An individual step can refer to a method in the BOR, but can also serve to control the process,
for example to allow loop processes or carry out container operations.
The tool for maintaining the process level is the Workflow Builder.
The Workflow Management System evaluates the process level at runtime.
n The organizational level provides the link to the organizational chart.
Each task that can be executed within a workflow has a group fo possible agents,
By making further entries, this group can be reduced to the agent in the workflow step.
The selected agents receive a work item (= representative of the task at runtime)
in their Business Workplace at runtime.
n If the work item is executed, the corresponding method of the business object type is started.
,GHQWLI\WKH%XVLQHVV3URFHVV
,GHQWLI\WKH%XVLQHVV3URFHVV
'RHVDQ6$3
<HV ZRUNIORZDOUHDG\ 1R
H[LVWLQWKH
VWDQGDUGV\VWHP"
8VHWKH6$3ZRUNIORZ &UHDWHWKHZRUNIORZ
,PSOHPHQWWKHZRUNIORZ
7HVWWKHZRUNIORZ
SAP AG 1999
n When you have identified a process in your enterprise that you want to structure using a workflow,
first clarify whether SAP delivers a template for this process.
How to find a template and how to adapt it for execution are covered in the course BC600.
n The course BC600 also covers the changes that are possible within a configuration, without copying
the standard template.
n If you find a template, the process logic must be suitable.
You then require the knowledge from this course. You can use the template as an example after you
have created a copy.
n Only if you do not find a suitable template, do you have to plan and implement the workflow from
beginning to end.
:RUNIORZ
HJI ; 9 I
Workflow
& /')%* +,-* .)
%$ E A ?K =>8?;ML;ON(; :P; A ?
"%$ ) Definition Q =SRT=>6 IGUV.A 5-=>E
: IGA ? 9 A 8 U EW; =FX
f%c!#* ),h* )'
ij ),
Y#E A U :A
: IGA : U ?Z?
L A_QTA 5<;(8 AGQ X
Object Type
\ =.[^]D6?:`: IGA
=>L a A 9:b:cRbK A
L A_QTA 5<;/8 AGQ X
02143
5768.9:<; =>8? HdI ; 9 I W5 6b8.9:<; =e8?
? I =>6N Q : IGA
] A : I = Q /; 8 V =>N V A X
SAP AG 1999
n You have selected a business process and divided it into individual steps that can be executed in a
workflow.
n Find the suitable object types in the Business Object Repository.
Check that all required methods, attributes and events are available.
If not, you need to enhance the object type.
n Check whether there are already tasks in the system for your desired steps.
If not, you need to define new tasks.
n Organizational level agent assignment:
You have determined organizational responsibilities and found the corresponding entries in your
organizational plan. An agent can be an SAP user, an organizational unit, position, job, or activity.
You may need to create the specific workflow units additionally in your organizational plan, or,
using the organizational management, you may need to create links to existing units.
n Agent assignment:
In the definition of the tasks you have to enter the largest possible agent group (= SRVVLEOHagents).
In the workflow step used by the task, you reduce the possible agents according to demand. The
intersection between the possible agents and those recognized in the workflow step forms the
VHOHFWHG agents.
3URFHVV :KDW:KR:KHQ"
:KHQHYHUDQHPSOR\HHFUHDWHV
DQRWLILFDWLRQRIDEVHQFH
Event
7KHKHDGRIGHSDUWPHQWVKRXOGGHFLGH $SSURYH
ZKHWKHURUQRWWRDSSURYHWKHUHTXHVW UHTXHVW
,IDSSURYHGWKHFUHDWRURIWKHUHTXHVW 6HQG0DLO
UHFHLYHVDPHVVDJH
,IQRWDSSURYHGWKHFUHDWRURIWKHUHTXHVW
'HFLVLRQDERXW
LVDVNHGZKHWKHUWKHUHTXHVWVKRXOGEH
UHTXHVW
ZLWKGUDZQRUFKDQJHG
,IWKHUHTXHVWLVWREHFKDQJHG &KDQJH
WKHFUHDWRUUHFHLYHVWKHUHTXHVW UHTXHVW
DJDLQWRPDNHWKHFKDQJHV
5HVXEPLW
7KHVFHQDULRVKRXOGWKHQEHUHSHDWHGLI UHTXHVW
FKDQJHVDUHPDGH
SAP AG 1999
:KHQ"
kT
.
l.
l.mm
n
,
o (
,M p
:KDW:KR"
qs
r""%/j
M/l.mn
,
:KR" t
T,
qs
r"
B "%/j p
qr
B"
"%/(j p
7RZKRPH[SUHVV
)pyxr* $
uGnGv o * n* G) w
v T$
,c/M
%) ' xB
r%* $|n),
:KDWPHVVDJH"
/Ml.mn
, ze c
{ l.mn
,
/2
v $
,/ %)'
:KDW:KR"
Ml.mn, ze
/{ l.mn,
k l.m
n
, k .l.mn,
p
$
,M p o )''
p
{
:KDW"
/RRSXQWLO"
kT}On%m~!#* ,
/l.m
n,
t
T
n
f%c!#* ),M
G h7h$
S
G %h7Wh$
,/MM!
4* )
,M/ p
y
SAP AG 1999
n During the workflow design, it is recommeneded that you write the answers to the questions on the
last slide next to the box. The answers will guide you towards the workflow definition requirements:
1. A triggering event:
request created
2. Three tasks based on methods of object type )250$%6(1&
Approve request
Change request
Delete request
3. A task based on a method of object type 6(/),7(0
Send mail
4. A user decision
5. A loop, which will be controlled by a loop-flag.
SAP AG 1999
n If the agents of the individual workflow steps are determined using the customer-specific
organizational diagram, your agent assignment remains flexible to change.
n You have different options to connect your workflows to the SAP organizational plan.
n ([DPSOH:
There is only one chart for the whole company.
All workflows have to be connected to organizational objects from this structure.
Using this option there are no specific structures just for the workflow.
n ([DPSOH:
HR administrates the general structure for all employees in the enterprise.
For the business process, there is a small specific structure for supporting the workflow.
n ([DPSOH:
There is not (yet) a general HR structure for all employees.
To support the workflows there will be one small structure for each process.
PDLQIXQFWLRQV
YE AGU : A =2EC U 8b; U :<; =>8 U 8 Q ?G: U 5h5<;(8 C/[=>EWZ 5PN =.[
&UHDWHRUJDQL]DWLRQDOXQLW
&UHDWHSRVLWLRQ
$VVLJQWDVNV
-g-/
SAP AG 1999
7DVN$SSURYH
YDFDWLRQUHTXHVW l 3RVLWLRQVDUHVSHFLILFWR\RXU
RUJDQL]DWLRQ
l 0XOWLSOHSRVLWLRQVPD\
SHUIRUPVLPLODUMREWDVNV
l (DFKSRVLWLRQW\SLFDOO\
UHSUHVHQWVRQHHPSOR\HHEXW
-RE&KLHI PD\EHSDUWLDOO\ILOOHGE\PRUH
WKDQRQH
3RVLWLRQ 3RVLWLRQ
&KLHI(XURSH &KLHI:HVW5HJLRQ
3RVLWLRQ
&KLHI(DVW5HJLRQ
SAP AG 1999
n A task can be assigned to one or more jobs. Jobs are general activity descriptions.
n Jobs are not designed to be held by employees.
It is the positions in your enterprise that are held by individual people.
n If a position is assigned to a job, the position inherits the tasks of the job, but can also have
additional tasks related to duties performed specifically by that position.
n One position may also be shared by several employees each working less than full time. For
example, two employees can occupy 60% and 40% of a position. The workflow regards both
employees as valid agents and ignores the percentage division of the job.
0DQXIDFWXULQJ
0DQXIDFWXULQJ 0H[LFR6DOHV
0H[LFR6DOHV
([HFXWLYH%RDUG
([HFXWLYH%RDUG 5HJLRQ
5HJLRQ
6WHS&UHDWHURRW 6WHS$GGLWLRQDO
RUJDQL]DWLRQDOXQLW RUJDQL]DWLRQDOXQLWV
6WHS 6WHS
$GPLQLVWUDWLYH
$GPLQLVWUDWLYH
DJHQW
&UHDWHSRVLWLRQ &UHDWHMREV
DJHQW $GPLQLVWUDWLYH
$GPLQLVWUDWLYH
0H[LFR6DOHV5HJLRQ
0H[LFR6DOHV5HJLRQ DJHQW
DJHQW
6WHS 6WHS
$VVLJQKROGHUV $VVLJQWDVNV
Februar
%` |yeG.(b_MOyb>..O(T
/LVD7KRPSVRQ
/LVD7KRPSVRQ
DGGMOTGT-M
e2.>
SAP AG 1999
n The diagram above shows that the first step in simple maintenance consists of constructing the root
organizational unit. Once one organizational unit has been created, the appropriate organizational
units below it need to be created.
n Organizational units and jobs may be created in any order, but must exist before creating the related
positions.
n Jobs may exist in the job index, or may be created once the model contains an organizational unit.
n Positions are created after the appropriate job(s) are created in the job index.
n Tasks are assigned using jobs and positions.
n Holders are assigned to positions and not to jobs.
n From Release 4.6B onwards, you can only create jobs after positions. Steps 3 and 4 in the diagram
are swapped.
2UJDQL]DWLRQDOXQLW),GHSDUWPHQW
0DQDJHUMRE 7DVNV
7DVN 3RVLWLRQ),GHSWKHDG
User 1
7DVN 6HFUHWDU\MRE
7DVNV
3RVLWLRQ6HFUHWDU\
User 2
3RVLWLRQ),DGPLQLVWUDWRU
User 3
),HPSOR\HHMRE 7DVNV
3RVLWLRQ),DGPLQLVWUDWRU
User 4
SAP AG 1999
n All necessary tasks are created within the workflow definition, for example approve request, create
order, update customer master, and so on.
n A user is only authorized to process a work item during runtime if he or she is defined as a possible
agent for the task.
n This diagram shows all the basic options available for creating the connection:
Task 1: User 1 (by job)
Task 2: User 1, user 2 (by job)
Task 3: User 1, user 2, user 3, user 4 (by organizational unit)
Task 4: User 1, user 3, user 4 (by position and by job)
Task 5: User 2 (by job)
Task 6: User 3, user 4 (by job)
n The assignment of workflow task to organizational object is best performed using task maintenance
under additional data - maintain agent assignment (see the unit Tasks).
&DXWLRQ
$IWHUFUHDWLQJDQDJHQWDVVLJQPHQWWKHLQGH[IRUDJHQWDVVLJQPHQWPXVWEHUHJHQHUDWHG
%XWWRQ
*HQHUDWHLQGH[
ZLWKLQWDVNPDLQWHQDQFH
VWDUWV
2UJDQL]DWLRQDOXQLW
0DQXIDFWXULQJ
2UJDQL]DWLRQDOXQLW
3URGXFW0DQDJHPHQW :RUNIORZ
:RUNIORZ
3URGXFWPDQDJHUSRVLWLRQ 5ROH
'HWHUPLQH
+ROGHU-RQHV VXSHULRURI
7DVN'LVSOD\
7DVN'LVSOD\
$JHQWUHVSRQVLEOHSRVLWLRQ FKDQJHGRFXPHQWV
FKDQJHGRFXPHQWV
+ROGHU%M|UQ
7DVN'LVSOD\
7DVN'LVSOD\
5ROH
'HWHUPLQHUHVSRQVLEOHXVHUIRUODERUDWRU\30
PDWHULDO
PDWHULDO
SAP AG 1999
<RXDUHQRZDEOHWR
l %XLOGDQRUJDQL]DWLRQDOVWUXFWXUH
l /LQNZRUNIORZWDVNVWRFRPSRQHQWVRIWKH
RUJDQL]DWLRQDOVWUXFWXUH
l /LVWWKHLPSRUWDQWFRPSRQHQWVRIWKHZRUNIORZ
V\VWHP
l 'HILQHWKHVWUXFWXUHRIDZRUNIORZ
SAP AG 1999
8QLW,QWURGXFWLRQ
6$3%XVLQHVV:RUNIORZ&RPSRQHQWV
1-1 You are invited to a meeting about workflows. Many of the other people present
have some misconceptions about workflows. They are relying on you to answer
their questions and concerns.
Below are some of the statements people made in the meeting. Determine which are
true and which are not.
1-1-1 SAP Business Workflow is a tool for automating business processes which
is not tied to any particular application but which operates uniformly across
different applications.
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
1-1-2 SAP Business Workflow coordinates all the participating tasks and provides
the user with active support.
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
1-1-3 SAP provides several workflow templates that you can use to match your
specific business requirements to a workflow.
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
1-1-5 SAP Workflow provides runtime tools for user interaction, process
characterization and control.
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
1-1-6 SAP Workflow uses the SAP Business Navigator as a tool for process
modeling and design of workflow definitions.
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
1-2 A lot of workflow terms were used in the meeting. Some of the people present did
not know the meanings of all of them. As the workflow expert, you must define
these words for everyone.
Using the list of terminology, ensure that everyone knows the appropriate term for
each statement about the workflow.
1-2-3 Any type of related information which can be accessed uniquely under an
identifying key is called___________________________.
1-2-13 Each workflow consists of a sequence of work items which represent the
individual steps of a workflow definition at the runtime of the workflow.
Managing the execution of individual work items, including the assignment
of agents and deadline monitoring, is the task of the
___________________________.
1-3 Prepare for creating a new workflow by refreshing your memory. Execute the pre-
defined workflow definition for the vacation request.
1-3-1 Start the workflow task for vacation request as the employee, user :)
%&&/(5. This is the test logon of the employee who initiates the
vacation request workflow.
Fill in the requested information on the form and save it.
1-3-2 Logon as the manager, using the logon :)%&0*5 to check the
integrated inbox for a work item. Execute the work item by accepting the
vacation request.
1-3-3 Toggle back to the open R/3 session for user :)%&&/(5.(employee)
and check the Business Workplace inbox for a confirmation message
regarding the response of your vacation request from the manager.
8QLW,QWURGXFWLRQ
7RSLF2UJDQL]DWLRQDO6WUXFWXUH
As you begin your workflow work, you need to ensure the appropriate
organizational plan exists in your R/3 system.
You need to ensure the IDES organizational structure is defined correctly.
2-1 When a workflow is executed, defined step activities forward work items to agents
for processing. These agents are categorized and defined by the enterprise
departmental hierarchy. The workflow definition is notified of this hierarchy by
way of the organizational structure.
2-1-1 The first step in creating your org plan is to enter the abbreviation
=:)B25*B, and name 2UJDQL]DWLRQDOXQLW for your organizational
unit(## represents your assigned group number).
2-2 Once the unit is defined, you must add staff assignments. You need to begin by
creating a position for the department head. Four steps are required to completely
define positions.
If your organization does not default into the fields, use the [F4] key
and search for the proper organization.
You can enter a full or partial search string using the name of your
organization and the * as a wild card.
2-2-1 First you must define a position, with the abbreviation =SRVBKHDGB, for
department head ##.
2-2-3 The next action you must take is to assign holders of the positions you
created.
You want to assign the XVHU named %&0*5 to the department head
position and the XVHU named %& to the employee position.
2-2-4 In the last step you define the position of the manager as a chief position
The holder of this position is therefore the superior of all the other positions
in the organizational unit.
8QLW,QWURGXFWLRQ
7RSLF6$3%XVLQHVV:RUNIORZ&RPSRQHQWV
7KH6$3%XVLQHVV1DYLJDWRULVQRWDGHVLJQWRROOLNHWKH:RUNIORZ
%XLOGHU7KH:RUNIORZJUDSKLFVORRNVLPLODUWRWKH%XVLQHVV1DYLJDWRU
JUDSKLFV
1-2 The appropriate term for each statement is as follows:
1-2-3 Any type of related information which can be accessed uniquely under an
identifying key is called anREMHFW.
1-2-9 The :RUNIORZ%XLOGHU is a tool that is used to define, access and or modify
workflow definitions in a graphical format.
1-2-11 From an organizational perspective, WDVNV are the central element in the
workflow system. They are used to describe a business process that may
require either a single step or several parallel steps to be executed. The
definition of these processing tasks can be in the form of either VLQJOHVWHS
WDVNV or PXOWLVWHSWDVNV
1-2-13 Each workflow consists of a sequence of work items which represent the
individual steps of a workflow definition at the runtime of the workflow.
Managing the execution of individual work items, including the assignment
of agents and deadline monitoring, is the task of the ZRUNLWHPPDQDJHU
1-3 The following are the steps for executing the pre-defined workflow definition for a
vacation request:
1-3-1 ,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV6$3%XVLQHVV:RUNIORZ'HYHORSPHQW(QYLURQPHQW
'RXEOHFOLFN'HPR)LOO2XW)RUP
(QWHUWKHDSSURSULDWHLQIRUPDWLRQLQWKH1DPHDQG$EVHQWGDWHILHOGV
(QWHUDQ\DGGLWLRQDOLQIRUPDWLRQDVUHTXLUHGDQGVHOHFWWKH>6DYH@EXWWRQ
1-3-2 Carry out the following steps to execute the work item as the manager and
accept the vacation request.
,QWKH6$3(DV\$FFHVVPHQXRSHQWKHIROGHU2IILFH
'RXEOHFOLFN:RUNSODFH
2SHQWKH,QER[IROGHUDQGFOLFNRQ:RUNIORZ
3ODFHWKHFXUVRURQWKHDSSURSULDWHZRUNLWHPDQGVHOHFWWKH>([HFXWH@
EXWWRQRUGRXEOHFOLFNWKHLFRQLQWKH([FROXPQ
$SSURYHWKHYDFDWLRQUHTXHVWDQGFOLFNRQWKHEDFNDUURZ<RXZLOO
UHFHLYHDSRSXSZLQGRZWRDSSURYHWKHUHTXHVWH[SOLFLWO\
6HOHFWWKH>&RPSOHWHWKLVZRUNLWHP@EXWWRQ
1-3-3 Return to the open R/3 session for user :)&/(5.(employee) and
check the Business Workplace Inbox for a Notification message regarding
the response of your vacation request from the manager.
8QLW,QWURGXFWLRQ
7RSLF2UJDQL]DWLRQDO6WUXFWXUH
2-1 When a workflow is executed, defined step activities forward work items to agents
for processing. These agents are categorized and defined by the enterprise
departmental hierarchy. This hierarchy is defined to a workflow definition by way
of the PD organizational structure.
Personnel positions of the PD Org are assigned as responsible agents to receive and
process work items that result from processing activities of the workflow definition.
2-1-1 The first step in creating your org plan is to enter the abbreviation
=:)B25*B and name 2UJDQL]DWLRQDOXQLW for your organizational
unit (## represents your assigned group number).
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW
'HILQLWLRQ7RROV2UJDQL]DWLRQDO0DQDJHPHQW2UJDQL]DWLRQDO3ODQ
&UHDWH
$FFHSWWKHWLPHOLPLWRIWKH
(QWU\LQGHWDLOVFUHHQ
2UJDQL]DWLRQDOXQLWDEEUHYLDWLRQ=:)B25*B
1DPH2UJDQL]DWLRQDOXQLW*URXS
>6DYH@
2-2 Once the unit is defined, you must add staff assignments. You need to begin by
creating a position for the department head. Four steps are required to completely
define positions.
5HPDLQLQWKHVDPHVFUHHQDVIRUTXHVWLRQ25FKRRVHWKHIROORZLQJSDWK
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW
'HILQLWLRQ7RROV2UJDQL]DWLRQDO0DQDJHPHQW2UJDQL]DWLRQDO3ODQ
&KDQJH
If your organization is not the default entry in the fields, use the [F4]
key and search for the correct organization.
You can enter a full or partial search string using the name of your
organization and the * as a wild card.
3RVLWLRQWKHFXUVRURQWKHRUJDQL]DWLRQDOJURXS
,FRQ
FUHDWH
!GRXEOHFOLFN
LQFRUSRUDWHSRVLWLRQ
<RXFDQQRZFUHDWHWKHEDVLFGDWDIRUWKHSRVLWLRQLQWKHGHWDLOVFUHHQ
$EEUHYLDWLRQ=SRVBKHDGB
1DPH3RVLWLRQ'HSDUWPHQWKHDG
>6DYH@
3RVLWLRQWKHFXUVRURQWKHRUJDQL]DWLRQDOJURXS
,FRQ
FUHDWH
!GRXEOHFOLFN
LQFRUSRUDWHSRVLWLRQ
<RXFDQQRZFUHDWHWKHEDVLFGDWDIRUWKHSRVLWLRQLQWKHGHWDLOVFUHHQ
$EEUHYLDWLRQ=SRVBHPSOB
1DPH3RVLWLRQ(PSOR\HH
>6DYH@
2-2-3 Next you need to assign holders to the positions you created. You want to
assign the XVHU %&0*5 to the department head position and the
XVHU %& to the employee position.
&OLFN8VHULQWKHVHDUFKDUHD
1DPH%&0*5!%XWWRQ6HDUFK!8VHULVGLVSOD\HGLQWKH
VHOHFWLRQDUHD
$VVLJQWKHXVHUWRWKHSRVLWLRQXVLQJ'UDJ 'URS
$FFHSWWKHSURSRVHGWLPHOLPLW
>6DYH@
5HSHDWWKLVSURFHGXUHIRUWKHGHSDUWPHQWHPSOR\HHSRVLWLRQ
6DYHWKHDVVLJQPHQWV
2-2-4 In the last step you define the position of the manager as a chief position
The holder of this position is therefore the superior of all the other positions
in the organizational unit.
3RVLWLRQWKHFXUVRURQWKHQDPHIRUWKHGHSDUWPHQWKHDGSRVLWLRQ
&OLFNRQWKHSRVLWLRQ
,QWKHEDVLFGDWDVHWWKHIODJ+HDGRIRZQRUJDQL]DWLRQDOXQLW
>6DYH@
The positions are now completely defined.
&RQWHQW
l 6HWWLQJXSWKH6$3%XVLQHVV:RUNIORZ
6\VWHP%DVLF&XVWRPL]LQJ
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l 8QGHUVWDQGWKHVWUXFWXUHRI:RUNIORZ
&XVWRPL]LQJ
l &DUU\RXW&XVWRPL]LQJ
SAP AG 1999
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l <RXQRZQHHGWRFDUU\RXWZRUNIORZFXVWRPL]LQJ
IRU\RXUGHYHORSPHQWV\VWHP
l <RXKDYHWRDFWLYDWHWKHZRUNIORZUXQWLPHV\VWHP
IRUHDFK6$35FOLHQWWKDW\RXZDQWWRXVH
l <RXZLOOOHDUQDERXWWKHZRUNIORZDGPLQLVWUDWLRQ
IXQFWLRQV
SAP AG 1999
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW8WLOLWLHV6:89HULI\&XVWRPL]LQJ
SAP AG 1999
7HVW5)&'HVWLQDWLRQ
3LQJQRWVXFFHVVIXO
&XVWRPL]HWKH5)&GHVWLQDWLRQIRU\RXUZRUNIORZV\VWHP
SAP AG 1999
n If the logical RFC destination "WORKFLOW_LOCAL_xxx" does not already exist, it is created
automatically. The user WF-BATCH is requested (including password). WF-BATCH needs to be
created in the actual client, with the user type "system" for a background user.
Up to and including Release 4.6B, the user type is "background".
n Execute the function "Test RFC dest."
The system tries to log on to the logical destination with the user specified.
If there are password problems, logon is not successful (despite the green check mark in the result
list). A dialog box is displayed to inform you of this.
n Maintain the RFC destination again by double-clicking on the green check mark before the entry
"Workflow RFC destination configuration completed."
n The workflow runtime system always executes tFRC calls in the logical destination
WORKFLOW_LOCAL_<Clnt>. Clnt stands for the 3-figure number of the client.
n The workflow runtime system only uses one client. Assigning a name to a logical destination ensures
that it is unique system-wide.
n No logical destination exists as a default for the tRFC calls of the workflow system.
SAP AG 1999
n Create a user with the name WF-BATCH, using the user administration function (transaction SU01).
Create this user with the user type system .
In R/3 sub-systems before 4.6C, the correct user type is '
background'
.
Assign this user the authorization profiles SAP_ALL and SAP_NEW .
If you have any doubts regarding the security of SAP_ALL/SAP_NEW, read the note 149344.
'HILQLWLRQRIWKHJHQHUDO
ZRUNIORZDGPLQLVWUDWRU
'HILQLWLRQRIWKHJHQHULF
GHFLVLRQWDVNXVHGGXULQJ
UXQWLPH
SAP AG 1999
n Workflow administrator:
Person responsible for the technical side of the workflow definition (system administrator).
The workflow administrator is notified automatically of errors that occur during the runtime
execution of workflow definitions. The administrator should be able to correct workflows with
errors, or find suitable contact persons who can.
n Note:
Each workflow can have its own administrator.
The administrator of a single workflow is defined in the basic data (responsibilities) of the workflow
template.
n Decision task as default value for user decision:
Task used by the workflow system to execute a user decision in the workflow. When you create a
step of type user decision in a workflow definition, the task entered here is copied to the workflow
definition. If you change the entry here, it will affect all workflow definitions with user decisions
that are created in the future.
n The generic decision task is a task supplied by SAP.
'HFLVLRQ
RSWLRQV
7DVN
GHVFULSWLRQ
$WWDFKPHQWV
8VHUGHFLVLRQVL]H
FDQEHDGMXVWHG
SAP AG 1999
n As of Release 4.5, user decisions are only created as full screens. In Releases prior to 4.5, user
decisions appeared in a dialog box.
n The full screen display of the user decisions has the following advantages:
The user decision display may possibly conceal a secondary method, for example
an object display or the ArchiveLink Viewer. It can, however, be moved. This was
not possible with the dialog box.
The size can be adjusted
Attachments are displayed and can be added interactively on the user decision screen.
&KDQJH9LHZ6HW$FWLYH3ODQ9HUVLRQ2YHUYLHZ
Table view Edit Goto Selection Utilities System Help
!#" $
L =9; 6 &% J-(H'). +GF* G %(KH -, * D % 7F
/E .0 * 7,2G+1G 35I4 H >2?2A@ 6B @ 9;C
'HVWLQDWLRQ
PLOGI
PLOGI 01 Integration plan version / active plan vr
67 $8:9;=< +XPDQ5HVRXUFHV
SAP AG 1999
n In this step, you specify the plan version in which you want to maintain your data. In other words,
the active plan version.
Set an active plan version.
The active plan version is set to "01", provided an active plan version has not already been
maintained.
n Careful consideration is required when deciding which is to be the active plan version, for the
following reasons:
For the purposes of integration, the active plan version in all PD modules is simultaneously the
integration plan version.
Therefore, it is not possible to set a new plan version each time you implement a new application
component.
n Enter the plan version you wish to use as the active one, both for the different PD modules and for
integration purposes, in the field "value of semantic abbreviation" of the parameter group "PLOGI
PLOGI"
&XVWRPL]LQJVWHS$FWLYDWHGHDGOLQHPRQLWRULQJ-RE6::'+(;
7KH&XVWRPL]LQJDFWLYLW\LVQHFHVVDU\LILQGLYLGXDOWDVNVWHSVVKRXOGKDYH
WKHLUGHDGOLQHVPRQLWRUHGLQ6$3%XVLQHVV:RUNIORZ
SAP AG 1999
6$35
Work item monitoring Edit Goto Environment System Help
SWWERRE
Background job name
10170901
Background job number
Monitoring of work items with temporary errors X
Interval until next rerun 20 (in minutes)
Repeat counter for work items with errors 3
SAP AG 1999
n With this activity, you schedule monitoring and special handling for background work items that
could not initially be executed because of a temporary error in the underlying object method. These
background work items are then restarted automatically.
n Monitoring is deactivated in the standard version.
n The following steps are required to activate monitoring of work items with errors:
Carry out the customizing activity that will invoke transaction SWWD.
Specify whether monitoring should be carried out.
Specify the interval between two monitoring runs.
Specify after how many attempts the background work item should finally be set to status "error".
n Further notes:
If applicable, carry out the customizing activity again in each client of your production system.
If monitoring is not activated or the total number of attempts is reached, the work item is finally
set to status "error". In this status, a work item can be found using the selection report, and the
error can be analyzed.
6WDUW9HULILFDWLRQ:RUNIORZ
List Edit Goto System Help
(YHQWJHQHUDWHG
<RXZLOOILQGDZRUNLWHPLQ\RXULQWHJUDWHGLQER[ZKLFK
UHSUHVHQWVDXVHUGHFLVLRQ:KHQ\RXKDYHH[HFXWHG
WKLVZRUNLWHP\RXZLOOUHFHLYHWZRPDLOV6$3RIILFH
GRFXPHQWV7KH\DUHWKHQRWLILFDWLRQVRIFRPSOHWLRQIRU
WKLVXVHUGHFLVLRQDQGIRUWKHVXEVHTXHQWEDFNJURXQG
VWHS
,QWHJUDWHGLQER[ -
SAP AG 1999
n When starting the verification workflow, the previous customizing activities are tested. This checks
basic functions in the workflow runtime environment.
n A work item is sent to the user who started the verification. This tests the sending of a work item to
be executed in the form of a "User Decision", and the sending of a notification.
n During the execution of the "User Decision" task, several functions at the task level can be tested, for
example: displaying or creating an attachment in the Business Workplace.
$QHQWU\LVUHTXLUHG
IRUDOOV\VWHPVDQG
FOLHQWVWKDW\RX
ZDQWWRXVH
SAP AG 1999
n The standard objects, for example, roles, tasks, and workflows, are generated using the prefix of the
entry for system and client.
l :K\GRZHQHHGWKHP"
2QHZRUNIORZORJRURQHZRUNLWHPGLVSOD\LVQRWHQRXJK
c
EHFDXVHLWLVXVHGE\GLIIHUHQWXVHUFDWHJRULHVIRUH[DPSOH
w :RUNIORZPRGHOHUVDQGDGPLQLVWUDWRUVUHTXLUHDFFHVVWR
DOOWHFKQLFDOLQIRUPDWLRQVXFKDVFRQWDLQHUVZRUNLWHP
,'VVWHSQXPEHUVDOOVWHSW\SHVHWF
w :RUNIORZHQGXVHUVQRWHFKQLFDOGHWDLOVIRFXVHGRQWKH
FRQWHQWRIWKHZRUNLWHPFRQIXVHGE\WRRPDQ\IXQFWLRQV
HWF
l :KDWIXQFWLRQVDUHLQYROYHG"
w $GPLQLVWUDWRUVHWVWKHGHIDXOWRQDV\VWHPZLGHEDVLV
w (DFKXVHUFDQWKHQPDNHWKHLURZQVHWWLQJV
SAP AG 1999
:RUNLWHP
GLVSOD\
:RUNIORZ
ORJ
2WKHUV
7HFKQLFDO %XVLQHVV
XVHUV XVHUV
SAP AG 1999
n Here you can make settings to adapt the display tools (work item display and workflow log) of the
runtime system to your requirements.
n Other settings
'LVSOD\ZRUNLWHPWH[WVLQWKHORJRQODQJXDJH
- Work item texts are always displayed in the logon language of the users integrated inbox. If
the logon language of the user differs from the language in which the work item was
originally created, additional database access is required. This can cause a certain delay
when structuring
the integrated inbox.
(QDEOHPXOWLSOHIRUZDUGLQJRIZRUNLWHPV
- The work item can be forwarded to several agents (organizational unit, job, position, user,
etc.).
'RXEOHFOLFNLQJRQDQREMHFWGLVSOD\VWKHREMHFWLQWKHVDPHZLQGRZ
In the work item display, you can select an object to be displayed. This object is then displayed
in the window of the current session and replaces the work item display. When you exit the
display of the object, you return to the work item display.
If you do not select this check box, a new session is opened to display the object.
l :RUNIORZFXVWRPL]LQJFDQ
EHFDUULHGRXWXVLQJWKH,0*
RUWKHZRUNIORZGHYHORSPHQW
HQYLURQPHQW
l $QDXWRPDWLFFXVWRPL]LQJIXQFWLRQ
LVDYDLODEOH
SAP AG 1999
8QLW&XVWRPL]LQJ
7RSLF&XVWRPL]LQJWKH6$3%XVLQHVV:RUNIORZ6\VWHP
1-1 The online documentation in the SAP Reference IMG provides a central source of
information related to the various customizing activities.
1-1-1 Call the basic customizing, and use the documentation to find which
transaction can be used to schedule a deadline monitoring job.
____________________________________________________________
1-1-2 What authorizations are required for the USERID necessary for logical
destination WORKFLOW_LOCAL_<Clt.>?
____________________________________________________________
1-1-3 What user type is required for the user ID defined for logical destination
WORKFLOW_LOCAL_<Clt.>?
____________________________________________________________
1-2-1 View the list of SAP Business Workflow Scenarios (Templates) to find
which workflow templates are supplied with R/3.
1-2-2 From various screens within the R/3 system, you can use Application Help
to access specific documentation for the task currently being executed. Find
out what Application Help says about task types.
1-3 Even though the Automatic Customizing in SWU3 will do most of the workflow
customizing, you must still maintain the number range settings for the multi-step
tasks and single-step tasks that you create.
8QLW&XVWRPL]LQJ
7RSLF&XVWRPL]LQJWKH6$3%XVLQHVV:RUNIORZ6\VWHP
1-1 The online documentation in the SAP Reference IMG is a central source of
information related to the various customizing activities.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV$FFHOHUDWHG6$3&XVWRPL]LQJ
'RXEOHFOLFNWKH(GLW3URMHFWLFRQ
,QWKHVFUHHQ&XVWRPL]LQJ([HFXWH3URMHFWFKRRVHWKHEXWWRQ6$35HIHUHQFH
,0*
7RUHDGWKHGRFXPHQWDWLRQFOLFNRQWKH,EXWWRQIRUWKHIXQFWLRQ
6FKHGXOHGHDGOLQHPRQLWRULQJ)LQDOO\FOLFNRQ([HFXWHFORFNLFRQ
WRFKHFNWKHVHWWLQJV
6FKHGXOHGHDGOLQHPRQLWRULQJ7UDQVDFWLRQ6::%
1-1-2 What authorizations are required for the USERID necessary for logical
destination WORKFLOW_LOCAL_<Clt.>? (Read about this under RFC
Destination .)
7KHUHTXLUHGDXWKRUL]DWLRQVDUH6$3B$//DQG6$3B1(:
1-1-3 What user type is required for the user ID defined for logical destination
WORKFLOW_LOCAL_<Clt.>?
6\VWHP
)URPWKH6$3PDLQPHQXFKRRVH
+HOS6$3/LEUDU\
([SDQG%&%DVLV&RPSRQHQWV
([SDQG%XVLQHVV0DQDJHPHQW
([SDQG6$3%XVLQHVV:RUNIORZ
([SDQG5HIHUHQFH'RFXPHQWDWLRQ
&KRRVH:RUNIORZ6FHQDULRVLQ$SSOLFDWLRQV
1-2-2 From various screens within the R/3 system, you can use Application Help
to access specific documentation for the task currently being executed. Find
out what Application Help says about task types.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
7DVNV7DVN*URXSV
'RXEOHFOLFN&UHDWH
3RVLWLRQWKHFXUVRULQWKH7DVNW\SHILHOG
&KRRVH+HOS$SSOLFDWLRQ+HOS
7KHGRFXPHQWDWLRQGLVSOD\HGVKRXOGSURYLGHDQLQGH[IRUWKHRQOLQH
KHOS
1-3 Even though the Automatic Customizing in SWU3 will do most of the workflow
customizing, you must still maintain the number range settings for the multi-step
tasks and single-step tasks that you create.
1-3-1 View the number range for all workflows, tasks, and roles created.
&DOOWKHWUDQVDFWLRQ6:8
([HFXWHWKHLWHP
3UHIL[QXPEHUVIRUVWDQGDUGREMHFWW\SHVPDLQWDLQHG
([HFXWHWKHLWHP0DLQWDLQSUHIL[QXPEHUV
1RWHWKHQXPEHUUDQJHDVVLJQHGWRWKHV\VWHP,'DQGWKHFOLHQW
7KLVQXPEHUUDQJHLVXVHGIRUWKHFUHDWLRQRIZRUNIORZVWDVNVDQGUROHV
6HOHFWWKHJUHHQ%DFNDUURZWRUHWXUQWRWKH'LVSOD\,0*VFUHHQDQG
UHYLHZWKHGRFXPHQWDWLRQIRUWKLVQXPEHUUDQJH
&RQWHQWV
l &RPSRQHQWVRI
ZRUNIORZWHPSODWHV
l 6WUXFWXUHRIWKH:RUNIORZ%XLOGHU
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l &UHDWHDZRUNIORZWHPSODWHZLWKDZRUNIORZ
GHILQLWLRQ
l ,GHQWLI\VWHSVLQDZRUNIORZ
l 8VHWKHIXQFWLRQVRIWKH:RUNIORZ%XLOGHU
SAP AG 1999
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l <RXKDYHODLGRXWWKHGHVLJQRI\RXUEXVLQHVV
SURFHVV
l <RXQHHGWROHDUQDERXWWKH:RUNIORZ%XLOGHU
l <RXZLOOWKHQEHDEOHWRFRQYHUW\RXUEXVLQHVV
SURFHVVLQWRDZRUNIORZGHILQLWLRQ
SAP AG 1999
l &LUFXODUWKDWKDVWREHSURFHVVHGFKHFNHG
DQGDSSURYHG
l &KHFNLQJPDVWHUGDWDDIWHUFKDQJHV
l &URVVDSSOLFDWLRQEXVLQHVVSURFHVVHV
)URPDFKDQJHUHTXHVWWRDSURGXFWLRQRUGHU
%XGJHWPDQDJHPHQWIURPUHTXHVWWKURXJKWR
UHOHDVHRIIXQGV
5HFUXLWPHQWIURPWKHSODFLQJRIWKHMRE
DGYHUWLVHPHQWWKURXJKWRWKHLQWHJUDWLRQRIWKH
QHZHPSOR\HHLQWKHRUJDQL]DWLRQ
SAP AG 1999
n If you want to model a business process using Workflow, always check the SAP R/3 documentation
first and try to use one of the SAP Workflows provided.
n The slide lists examples of workflow templates.
The last three workflows listed are cross-application workflows.
&XVWRPHUGHILQHG
ZRUNIORZWHPSODWH:6
Customer-defined
Reference to the workflow
definition 6$3ZRUNIORZ:6
Client-independent GHOLYHUHGE\6$3
Executable
Reference to the workflow
definition
:RUNIORZWDVN:) Client-independent
XSWR5HOHDVH Cannot be edited
Customer-defined Can be configured
Reference to the workflow Can be used as a template
definition for your own workflows
Client-dependent and time-
dependent
AS OF RELEASE 4.5, DO NOT
USE FOR NEWLY CREATED
TASKS
SAP AG 1999
:RUNIORZ
:RUNIORZ
:RUNIORZ'HILQLWLRQ
:RUNIORZWHPSODWH
:RUNIORZWHPSODWH
:RUNIORZWHPSODWH
Reference to
ZRUNIORZGHILQLWLRQ
Specification of
WULJJHULQJHYHQWV
,QLWLDOYDOXH
DVVLJQPHQW
6SHFLILFDWLRQRI
VWDUWWUDQVDFWLRQV
SAP AG 1999
$UHDVRIWKH:RUNIORZ%XLOGHU
Overview
Container
Tasks
Document
Templates
Step Types
Messages
SAP AG 1999
n The workflow definition is created in the Workflow Builder and is displayed graphically in a
network.
n The Workflow Builder is subdivided into the following areas:
Tree structure with sequence of workflow steps. The corresponding step definition can be
called by double-clicking on a step.
Variables of the workflow interface. You can generate, change, display, delete, and
rename container elements from the context menu.
You can display all tasks and workflows that are relevant to your workflow and
transfer them to your workflow definition by double-clicking.
! #"$!
All available step types for Drag&Drop into the workflow definition.
/10
. All messages generated in where-used lists and workflow tests are displayed here.
n The container, task, and document template areas are disjunct in the display. You have to choose
one each time.
:RUNIORZ'HILQLWLRQ 6WHS
LQ:RUNIORZ%XLOGHU
%XVLQHVVDFWLYLW\
Activity
l $UUDQJHPHQWRIVWHSV
User decision
LQVHTXHQFHRULQ
Document from template SDUDOOHOSURFHVVLQJ
Web activity
l ,IUHTXLUHG
'HDGOLQHPRQLWRULQJIRU
,QWHUQDOSURFHVVFRQWURO LQGLYLGXDOVWHSV
Condition
l &KRRVHDQGQDPH
Multiple condition FRUUHVSRQGLQJRXWFRPH
Event creator IRUHDFKVWHS
Wait steps
Container operation
Loop (UNTIL)
Loop (WHILE)
Fork
SAP AG 1999
n A workflow definition is made up of individual steps in a modular fashion. When creating a step in a
workflow definition, the step type must be specified first.
n The following step types exist:
Steps that relate to business activities: Activity, user decision, document
from template, Web activity
Steps for internal process control and monitoring: Condition, multiple condition, loop,
fork, container operation, event creator, wait step
n The steps can be arranged in series or in parallel processing.
n The processing sequence of the steps depends on the result of the respective preceding step.
n The possible results of a step are usually derived from the underlying business function
and are specfied in the workflow step on the tab page Outcomes.
The system enters another branch to the processing chain for each possible outcome.
n In the graphical display, all steps and events have certain symbols depending on their type.
A legend for the step types is automatically displayed with Release 4.6C.
:RUNIORZ'HILQLWLRQ
(YHQW :RUNIORZ%XLOGHU
6WHS 1DYLJDWLRQDQGGLVSOD\DUHD
%ORFNRULHQWHGPRGHOLQJ
7RSGRZQPRGHOLQJLVSRVVLEOH
6SHFLDOIXQFWLRQVVXFKDVFXW
%ORFN
SDVWHPRYHFRS\
3ULQW
&KHFNLQJDQGDFWLYDWLQJ
'UDJ 'URSIXQFWLRQDOLW\
SAP AG 1999
SAP AG 1999
l 6WHS&DOO:RUNIORZ%XLOGHU
5 'HILQHDQHZVHDUFKDUHDIRUWKHDYDLODEOHWDVNV
l 6WHS,QVHUWILUVWVWHSVIURPWKHDYDLODEOHWDVNV
5 ,QVHUWVWHS&UHDWHQRWLILFDWLRQRIDEVHQFH
5 ,QVHUWVWHS$SSURYHQRWLILFDWLRQRIDEVHQFH
l 6WHS,QVHUWPDLOQRWLILFDWLRQRIDSSURYDO
l 6WHS,QVHUWVWHSWRGHOHWHRUUHYLVHOHDYHUHTXHVWLIUHMHFWHG
l 6WHS,QVHUWORRSWRUHSHDWWKHDSSURYDO
5 &UHDWHDORRSDQGFXWDQGSDVWHZKHUHQHFHVVDU\
5 ,QWHJUDWHIXQFWLRQVIRUWHUPLQDWLQJWKHORRS
l 6WHS$VVLJQDJHQW
SAP AG 1999
7KHVHDUFKDUHD
KDVWREH
GHILQHGRQFH
6LQJOHFOLFN
6LQJOHFOLFN
SAP AG 1999
n The Workflow Builder is the tool for creating workflow definitions. Call the Workflow Builder
directly using transaction SWDD or choose
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools - Workflow
Builder.
n First, all necessary tasks for the notification of absence have to be added to the area "My workflows
and tasks". Click on the My workflows and tasks button (2) and choose New search range" (3). A
dialog box appears. Switch to "Task groups" and press "F4". Enter "SWD*" in the "Restrict value
range" dialog box and press the return key. Double-click task group "SWD_AF_TG" (TG70000023)
the task group is added to the search area (4). If you close the window to set up the search area, the
content of the task group added is displayed under "Available tasks".
1DYLJDWLRQ
1DYLJDWLRQ
*UDSKLFDOUHSUHVHQWDWLRQ
*UDSKLFDOUHSUHVHQWDWLRQ
RIWKHZRUNIORZ
RIWKHZRUNIORZ
/HJHQG
/HJHQG
&RQWDLQHU *UDSKLFDO
*UDSKLFDO
QDYLJDWLRQ
QDYLJDWLRQ
7RROER[
7RROER[
RIDYDLODEOH
RIDYDLODEOH
WDVNV
WDVNV :RUNIORZ
:RUNIORZ
VWHSV
VWHSV
7HPSODWHV
7HPSODWHV
0HVVDJHOLQHZLWKQDYLJDWLRQRSWLRQ
0HVVDJHOLQHZLWKQDYLJDWLRQRSWLRQ
SAP AG 1999
&OLFNRQFH
&OLFNRQFH
WRVHOHFW
WRVHOHFW
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
SAP AG 1999
n You can now use the "available tasks" as a toolbox for our workflow project. To integrate a step
within the empty workflow, you have to click on the step "Undefined Double-click for new step"
(1) and double-click on a task (2) in the "Available tasks" area.
n The system integrates the step in the workflow definition - see dotted circle (3).
n 1RWH1RFRQWDLQHUHOHPHQWVQRUELQGLQJVKDYHWREHFUHDWHGWKHV\VWHPFUHDWHVWKHPDXWRPDWLFDOO\
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
SAP AG 1999
n As the second step, we use "Approve notification of absence". Select the undefined step (1) and
double-click the approval task (2).
n You can see the result in the dotted circle. The approval step has three possible results - New (not
required - you can position the cursor on the line and press the "Delete" button), Approved and
Rejected .
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
6HOHFW
6HOHFW
6HQGPDLO
6HQGPDLO
SAP AG 1999
n Select the outcome Approved (see screen), click the right-hand mouse button and choose
CREATE (1).
n Choose Send mail (2) to insert a step to send a mail.
'HILQH
'HILQH
PDLOUHFLSLHQW
PDLOUHFLSLHQW
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
'HILQH
'HILQH
PDLOWLWOH
PDLOWLWOH
'HILQH
'HILQH
PDLOWH[W
PDLOWH[W
SAP AG 1999
n Specify the recipients of the mail - the recipient in the example is the workflow administrator.
n Define the title and text of the mail.
n Choose Back (2) to exit the screen.
n The system creates a task to send the mail. The short text and long text of the task are queried for this
purpose (3).
&OLFN
&OLFN
&UHDWH
&UHDWH
EXWWRQ
EXWWRQ
&OLFNRQFH
&OLFNRQFH
WRVHOHFW
WRVHOHFW
WKHRXWFRPH
WKHRXWFRPH
SAP AG 1999
n In the dotted circle, the step responsible for sending the notification mail is selected.
n Up to this point, the following has occurred: We can create and approve a notification of absence and
send a mail if the manager decided to approve. Which step comes next? If the manager rejects the
notification of absence, the employee has to be asked if he wants to revise or withdraw the request.
n Proceed as follows: Select the "Rejected" line (1) and click the "Create node" button (2).
n A dialog box (3) appears with all available step and operator types. Choose 8VHUGHFLVLRQ.
n The graphic is now replaced by the detail screen for the user decision (4). Enter at least the two
options (revise and withdraw) and leave the screen by choosing the "Back" button (green arrow to
the left).
&OLFNRQFH
WRVHOHFW
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
SAP AG 1999
n Select the undefined step after the "Withdraw" line (1) and double-click on the task "Delete
notification of absence" in the "Available tasks" area (2). The step is integrated in the workflow
definition (3).
n The dotted circle shows which element has been inserted.
&OLFNRQFH
WRVHOHFW
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
SAP AG 1999
n Select the undefined step after the "Change" line (1) and double-click the "Change notification of
absence" task in the available tasks area (2). The step is integrated into the workflow definition (3).
n The dotted circle shows which element has been inserted.
&OLFNRQFH
&OLFNRQFH
WRGURS
WRGURS
VWHS
VWHS
'RXEOHFOLFN
'RXEOHFOLFN
WRFUHDWH
WRFUHDWH
IODJ
IODJ
&OLFNRQFH
&OLFNRQFH
WRGHILQH
WRGHILQH
FRQGLWLRQ
FRQGLWLRQ
&OLFNRQFH
&OLFNRQFH
WRWUDQVIHU
WRWUDQVIHU
LFRQV
LFRQV
SAP AG 1999
&OLFNRQFH
&OLFNRQFH
WRLQVHUW
WRLQVHUW
'RXEOHFOLFN
'RXEOHFOLFN
WRLQVHUW
WRLQVHUW
IODJ
IODJ
(QWHU
(QWHU
;DVWKH
;DVWKH
FRQVWDQW
FRQVWDQW
SAP AG 1999
&RQWH[WPHQX
&RQWH[WPHQX 6HOHFWVWHS
6HOHFWVWHS
5LJKWPRXVHEXWWRQ
5LJKWPRXVHEXWWRQ &XW
&XW
EXWWRQ
EXWWRQ
SAP AG 1999
n Up to this point, the following has occurred: We have created a loop without content. The approval
step should be able to be repeated as often as necessary. Therefore, we cut the whole part with the
approval and paste it into the loop.
n Double-click on the "Approve notification of absence" step. Click the right mouse button and choose
"Cut block" (1). The whole approval block disappears and is placed on the clipboard.
n Click on the "Undefined" step in the loop (2) and choose the "Paste" function from the menu (3). The
approval sequence is inserted into the loop.
&OLFNRQFH
&OLFNRQFH
WRLQVHUW
WRLQVHUW
DSSURYDO
DSSURYDO
&OLFNRQFH
&OLFNRQFH
WRVHOHFW
WRVHOHFW
GHVWLQDWLRQ
GHVWLQDWLRQ
SAP AG 1999
n We have created the approval sequence and a corresponding loop. We now have to make sure that
the loop is terminated as soon as the manager has approved the notification of absence or the
employee withdrawn it.
n Click once on the symbol Container operation in the toolbox (1) and on the step that sends the mail,
in order to transfer the container operation (sets the X in the flag to terminate the loop) to the
SendMail step (2).
n Fill out the detail view of the container operation with the following values (3):
Field "Result element": Flag
Field "Expression": X
n This will move the value "X" to the variable "Flag".
n Leave the detail view and return to the graphic.
5LJKWPRXVHEXWWRQ
5LJKWPRXVHEXWWRQ
&RQWH[WPHQX
&RQWH[WPHQX
6HOHFWVWHS
6HOHFWVWHS
FKRRVH,QVHUW
FKRRVH,QVHUW
SAP AG 1999
n Now copy this container operation from the "Send mail" to the "Delete notification of absence" step.
n Proceed as follows:
Using the right mouse button, click on the container operation we just created and choose "Copy
block" (1).
Select the "Delete notification of absence" step and choose the "Paste" function from the menu (2).
n The container operation is copied and makes sure that the loop is terminated if the employee
withdraws their notification of absence
n The process is now finished (3): All steps are complete.
:KRLVUHVSRQVLEOHIRUZKDW"
l Employee:
6 Create notification of absence
6 User decision - change or withdraw
6 Change notification of absence
l Manager
6 Approve notification of absence
6 Create document from template
l Workflow System
6 Send mail
6 Delete notification of absence
SAP AG 1999
n We have created a workflow definition. Up to now, however, only the structure of the workflow has
been determined (which action is followed by what) - the agents still have to be assigned.
n This step can be performed without any problems after the workflow definition has been created.
n At this point, we know exactly which step has to be assigned which agent.
&OLFNRQFH
&OLFNRQFH
WRQDYLJDWH
WRQDYLJDWH
&OLFNRQFH
&OLFNRQFH
WRQDYLJDWH
WRQDYLJDWH
SAP AG 1999
n To assign the agents, we use the navigation tree and double-click first the "Create notification of
absence" step (1) - the detail view appears (2). Choose the initiator from the list window and
navigate further.
n Double-click on the "Approve notification of absence" step (3). The detail screen is called. Assign
the "Superior of workflow initiator" and navigate further.
n Correctly assign the agents in the detail screen.
&OLFNRQFH
&OLFNRQFH
WRQDYLJDWH
WRQDYLJDWH
&OLFNRQFH
&OLFNRQFH
WRQDYLJDWH
WRQDYLJDWH
SAP AG 1999
n Proceed with the steps "User decision", "Delete or revise", and "Revise notification of absence" in
the same way as with the previous two steps.
SAP AG 1999
n The process created behaves in exactly the same way as the workflow definition demonstrated.
n You can carry out a syntax check, as well as save and execute the process.
l :K\DUHVWDUWWUDQVDFWLRQVUHTXLUHG"
l :RUNIORZVVRPHWLPHVKDYHWREHVWDUWHGDQG
VXSSOLHGZLWKYDOXHVGLUHFWO\
l 8QWLOQRZDJHQHULFWUDQVDFWLRQ6:86KDVEHHQ
XVHGWRVWDUWZRUNIORZV
l 7KLVWUDQVDFWLRQLVDWHVWWRROQRWDZRUNLQJWRROIRU
XVHUV
l :KRUHTXLUHVVWDUWWUDQVDFWLRQV"
l ,WLVSRVVLEOHWRLQVHUWKHOSWH[WVGLUHFWO\LQWKH
VFUHHQVRIWKHVWDUWWUDQVDFWLRQ
l 8VHUVZKRVWDUWZRUNIORZVGLUHFWO\IURPDUHDPHQX
RU6$3PDLQPHQX!2IILFH!6WDUWZRUNIORZ
l 8VHUVZKRZDQWWRVWDUWZRUNIORZVIURPDVKRUWFXW
RQWKHLU:LQGRZV'HVNWRS
SAP AG 1999
l +RZDUHVWDUWWUDQVDFWLRQVJHQHUDWHG"
: &XVWRPL]LQJRQHRIIDFWLYLW\
: 'HWHUPLQHQDPHVSDFHRIWUDQVDFWLRQFRGHVDQGPRGXOH
SRROVLQ&XVWRPL]LQJWUDQVDFWLRQ6:87
: *HQHUDWLRQXSWRDQGLQFOXGLQJ%
: ,QWKH6$3%XVLQHVV:RUNIORZ>'HYHORSPHQW@DUHDPHQX
FKRRVH'HILQLWLRQ7RROV!:RUNIORZ6WDUW7UDQVDFWLRQV
: ,QWKH7DVNILHOGVSHFLI\\RXUZRUNIORZWHPSODWH
: (QWHUIRUH[DPSOHDVWKHVFUHHQQXPEHU
: &KRRVHWKH&UHDWHSXVKEXWWRQ!WKHVWDUWWUDQVDFWLRQLV
QRZJHQHUDWHGDXWRPDWLFDOO\
: *HQHUDWLRQDVRI5HOHDVH&
: &DOOWKHZRUNIORZWHPSODWHDQGFKRRVH*RWR!%DVLFGDWDLQ
WKH:RUNIORZ%XLOGHU
SAP AG 1999
n To enable the system to create a unique name for the task-related transactions, you must maintain a
namespace template and a development class.
Customizing activities:
Maintain a two-character namespace template.
Specify the development class to which the task, the generated transaction, and all the required
programs are assigned.
n When generating start transactions, the system creates the following from this information:
The transaction code prefix Y<namespace_template> that all start transactions receive.
The module pool prefix SAPMY< namespace_template > under which the programs and screens
of a start transaction are stored.
n ;<=>
This Customizing is used both for the start transactions and the Web forms.
.QRZOHGJHRIRSHUDWLQJWKH
JUDSKLFDOVFUHHQSDLQWHULV
Input data for task
WKHRQO\SUHUHTXLVLWH
Decision Edit Goto System Help
Department
Cost center
Absent from To
Reason
Contact at
1RSURJUDPPLQJ
UHTXLUHG
0DQXDOO\HGLWHGVFUHHQ
<RXFDQDOVRLQVHUWDGGLWLRQDO
KHOSWH[WVKHUH
SAP AG 1999
n The screen created by the system can easily be changed with the graphical screen painter, if you
adhere to the following rules:
Do not delete any fields that are not to be displayed and filled with values. Instead set these fields to
Output only and
Invisible.
The flow logic of the screen therefore does not have to be changed. Note, however, that mandatory
input parameters cannot be hidden'in this manner.
6WDUWZRUNIORZ
6WDUWDQGWHVW
ZRUNIORZ
SAP AG 1999
l :RUNIORZWHPSODWHVDUHFOLHQW
LQGHSHQGHQW
l 7KHZRUNIORZGHILQLWLRQLVWKH
GHVFULSWLRQDQGLPSOHPHQWDWLRQ
RIDZRUNIORZSURFHVV
l :RUNIORZGHILQLWLRQLQVWHSW\SHVDQG
WKHLUV\PEROVLQWKH:RUNIORZ%XLOGHU
SAP AG 1999
At the beginning of your workflow project, you laid out the design of
your business process.
In order to design this process with SAP Business Workflow, you want to
learn about the features of the Workflow Builder.
This will enable you to convert your business process into a workflow
definition.
1-1 When editing a workflow template, you create the workflow definition. This is
processed when the workflow is executed. While the basic data of the workflow
represents the external relationship (such as triggering events), the workflow
definition describes the actual implementation of a business scenario as a sequence
of linked steps.
You can define the workflow using the Workflow Builder. Create a workflow
definition using the Workflow Builder and integrate a user decision step.
1-1-1 The first step is to create a workflow egfihZj#kmlonpk+q`j#r#r . Call this task
lms#t#uwvyx{zVt|qb}~zt#utyvyx{zVx{#uw#r#r .
1-1-2 Since no tasks are available yet, incorporate a user decision in your
workflow definition.
At the beginning, the Workflow Builder displays an initial workflow
definition with a default structure consisting of:
Two symbols indicating the start and the end of the workflow definition
One undefined step
1-1-2-1 Create the user decision as the first step in the workflow definition
after the workflow is started. Call it hZx/uz)ZPtyzp Include 2
decisions and events, the first to #'#Ext and the other to
npE# .
1-1-2-2 The agent should be lms#uwt`z)z)x{# and the workflow initiator is the
person responsible.
1-2 Test your workflow and display the work item in a parallel session in the Business
Workplace.
Open another session and go to the Business Workplace.
Arrange the windows so you can see both at the same time.
1-2-1 Go back to the first session and choose the "Test" icon in the Workflow
Builder.
You begin your test in the "Start Workflow (Test Environment)" screen.
1-2-2 After starting the workflow template, you will be presented with the
decision that you specified in your workflow definition. You are asked
whether you want to vy#Ext , z)E# or v`#v`ty , but do not give a decision
yet.
1-2-2-1 Switch to the other session and check the worklist of the Business
Workplace. Does it contain a work item?
___________________________________________________
1-2-2-2 The work item should NOT be listed in the worklist. Return to the
decision step in the other session and specify that the workflow is
to vy#Ex{t .
1-2-2-3 Check your worklist again. Is the previous work item still there?
___________________________________________________
1-3-1 Insert the step )uV###tuy . This step should be specified for the
undefined step immediately following the '#Px{t event after the first
user decision. Choose the step type User decision again.
Assign ")uEx##vyvytyEt` " as the outcome name.
1-3-2 The agent of the user decision should be the manager, g~#q`P~r#r#
1-4 Finally, you must check, activate, and test your workflow definition.
1-4-1 Check the modified workflow definition with the inclusion of the $)uw
###tuy step. What has changed?
1-4-3 Start your workflow and test your modified workflow definition.
1-4-4 Check the workflow log for your workflow from the "Workflow Log"
screen and check the execution steps of your workflow.
The :RUNIORZORJ screen contains three tabs -
View: Workflow Chronicle, View: Workflow Agents, View:
Workflow Objects.
1-6 Generate a workflow start transaction and include this in your favorites
in the SAP EASY ACCESS Menu.
You can define the workflow using the Workflow Builder. Create a workflow
definition using the Workflow Builder and integrate a user decision step.
1-1-1 The first step is to create a workflow template egfhWj#kmlonpk+q`j#r#r . Call this
task lms#tuvyx{z)t*qb}~ztuHt`vyx{z)x#uw#dr#r .
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
:RUNIORZ%XLOGHU
&KRRVHWKH6DYHEXWWRQ6DYHWKHZRUNIORZWHPSODWHXQGHUWKH
VSHFLILHGQDPHDQGVWRUHLWLQWKHGHYHORSPHQWFODVV=
hZxty{'t )~#P
Abbr: ZWF_TEST1_##
1-1-2 Since no tasks are available yet, incorporate a user decision in your
workflow definition as the first step. To do this, access the Workflow
Builder and insert the step.
1-1-2-1 Create the user decision as the first step in the workflow
definition after the workflow is started. Call it hZx/uzZEt`z)p
Include 2 decisions and events, the first to p'#Px{t and the
other to npE# .
2QWKH:RUNIORZ%XLOGHU&UHDWHVFUHHQGRXEOHFOLFNWKH
ILUVWXQGHILQHGVWHS
,QWKHGLDORJER[FKRRVHWKH8VHUGHFLVLRQEXWWRQ
2QWKH:RUNIORZ%XLOGHU&UHDWH6WHS8VHU'HFLVLRQ
VFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQRQWKH'HFLVLRQWDE
SDJH
hZx{t`{~tyz
Stop Stopped
1RSDUDPHWHUVDUHUHTXLUHGIRUWKLVWHVW
1-1-2-2 The agent should be lms#uwt`z)z)x{# and the workflow initiator is the
person responsible.
,QWKH$JHQWVVHFWLRQFKRRVH([SUHVVLRQDQGXVHWKH)
+HOSWRFKRRVHWKHYDULDEOH,QLWLDWRURIDZRUNIORZLQVWDQFH
IURPWKHSXOOGRZQPHQX
5HWXUQWRWKH:RUNIORZ%XLOGHU&UHDWHVFUHHQE\FKRRVLQJ
WKH%DFNEXWWRQJUHHQDUURZ
1-1-2-3 Check the change you made in the Workflow Builder. How has
your workflow definition been modified?
7KHXVHUGHFLVLRQ)LUVWWHVWLVWKHILUVWVWHSLQWKHZRUNIORZ
7KLVLVIROORZHGE\DQH[FOXVLYH25OHDGLQJWRWZRHYHQWV
&RQWLQXHDQG6WRSSHG7KLVLVWKHFKRLFHIRU\RXUGHFLVLRQ
2QWKH:RUNIORZ%XLOGHU&UHDWHVFUHHQFKRRVHWKH*HQHUDWHDQG
DFWLYDWHUXQWLPHYHUVLRQEXWWRQPDWFKV\PERO
Arrange the windows so you can see both at the same time.
1-2-1 You begin your test on the "Start Workflow (Test Environment)" screen.
Start your workflow template.
6ZLWFKEDFNWRWKH6WDUW:RUNIORZ7HVW(QYLURQPHQWVHVVLRQ
&KRRVH(QYLURQPHQW5HIUHVKRUJDQL]DWLRQDOHQYLURQPHQWRUWKH
5HIUHVKRUJDQL]DWLRQDOHQYLURQPHQWEXWWRQ
7KHQXPEHURI\RXUZRUNIORZWHPSODWHVKRXOGEHGLVSOD\HGLQWKH7DVN
ILHOG
&KRRVH7DVN([HFXWHRUWKH([HFXWHEXWWRQ
1-2-2 After starting the workflow template, you will be presented with the
decision that you specified in your workflow definition. You are asked to
decide whether to vy#Ext , zVE# or vy#v1ty and whether you want to keep
the work item in the worklist, but do not give a decision yet.
1-2-2-1 Switch to the other session and check the worklist of the Business
Workplace. Does it contain a work item?
2QWKHLQLWLDOVFUHHQFOLFNRQWKH
6$3%XVLQHVV:RUNSODFH
LFRQRUFKRRVH2IILFH!:RUNSODFH!,QER[DQGGRXEOHFOLFN
RQ:RUNIORZ
<RXZLOOILQGDZRUNLWHP
1-2-2-2 The work item should NOT be listed in the worklist. Return to the
decision step in the workflow session and choose ~#Ext for the
workflow.
1R
1-3-1 Insert the step )uV###tuy . This step should be specified for the
undefined step immediately following the '#Px{t event after the first
user decision. An event should follow this user decision. Call this event
)u#Px{##vyv1tyEt`N .
2QWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQGRXEOHFOLFNWKHILUVW
XQGHILQHGVWHSDIWHUWKHHYHQW&RQWLQXH
,QWKHGLDORJER[FKRRVHWKH8VHUGHFLVLRQEXWWRQ
2QWKH:RUNIORZ%XLOGHU&UHDWH6WHS8VHU'HFLVLRQVFUHHQHQWHUWKH
IROORZLQJLQIRUPDWLRQ
hZxty{'t )~#P
hZx{tyd'tyz
1RSDUDPHWHUVDUHUHTXLUHGIRUWKLVWHVW
1-3-2 The agent of the user decision should be the manager, g~#q`P~r#r#
,QWKH$JHQWVIUDPHVHOHFW8VHUIURPWKHSXOOGRZQPHQX
3UHVVWKH)NH\LQWKHILHOGQH[WWR8VHU
6HDUFKIRU%&0*5DQGFOLFNWKH&RS\EXWWRQJUHHQWLFN
5HWXUQWRWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQE\FKRRVLQJWKH
%DFNEXWWRQJUHHQDUURZ
1-4 Finally, you must check, activate, and test your workflow definition.
1-4-1 Check the modified workflow definition with the inclusion of the $)uw
###tuy step. What has changed?
8QGHU&RQWLQXHWKHUHLVDQDGGLWLRQDOVWHS,QIRUPPDQDJHUDQGD
QHZHYHQW,QIRUPHG
&KRRVHWKH*HQHUDWHDQGDFWLYDWHUXQWLPHYHUVLRQEXWWRQPDWFK
V\PERORQWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQ
1-4-3 Start your workflow and test your modified workflow definition.
&KRRVHWKH7HVWEXWWRQ
7KHQXPEHURI\RXUZRUNIORZWHPSODWHLVGLVSOD\HGLQWKH7DVNILHOG
&KRRVH7DVN([HFXWHRUWKH([HFXWHEXWWRQ
1-4-4 Check the Workflow log for your workflow on the "Workflow Log" screen
and check the execution steps of your workflow.
6ZLWFKEDFNWRXVHU%&DQGFKRRVHWKH:RUNIORZORJEXWWRQRQ
WKH6WDUW:RUNIORZ7HVW(QYLURQPHQWVFUHHQ
&KHFNWKHH[HFXWLRQVWHSVLQWKH6WDWXVFROXPQ
Select these tabs and functions to check the details of your workflow.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
7DVNV7DVN*URXSV
'RXEOHFOLFN&UHDWH
2QWKH7DVN0DLQWDLQVFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
hZxty{'t )~#P
7DVNW\SH 7DVN*URXS
7DVN =B$*
&KRRVHWKH&UHDWHEXWWRQ
2QWKH
7DVN*URXS$GGVFUHHQDVVLJQWKHQDPH7DVNJURXS*URXS
6DYHWKHWDVNJURXSDVDORFDOREMHFW
1-5-1 Assign your newly created workflow template to this task group.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
7DVNV7DVN*URXSV
'RXEOHFOLFN&KDQJH
2QWKH7DVN0DLQWDLQVFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
hZxty{'t )~#P
7DVNW\SH 7DVN*URXS
7DVN =B$*
&KRRVHWKH&KDQJHEXWWRQ
2QWKH
7DVN*URXS&KDQJHVFUHHQFOLFNRQWKH:)7HPSODWHWDE
SDJH
8QGHU2EM,'HQWHUWKHQXPEHURI\RXUQHZO\FUHDWHGZRUNIORZWHPSODWH
IRUH[DPSOHRUVHDUFKIRULWXVLQJWKH)+HOS]ZI
6DYH\RXUHQWULHV
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV:RUNIORZ
6WDUW7UDQVDFW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QWWRNQRZPRUH
DERXWWKHEDVLFFRPSRQHQWVRIDWDVN
l ,Q6$3%XVLQHVV:RUNIORZDQREMHFWW\SHLVWKH
EDVLVIRUDOOVLQJOHVWHSWDVNV
l &KHFNDQGHQKDQFHWKHPDWHULDOPDVWHUEXVLQHVV
REMHFWW\SH%86
SAP AG 1999
n For this course, sub-types of the object type BUS1001 have already been created.
You will be working with the object types Y##MARA.
,QWHUIDFH
,QWHJULW\ $FFHVV
XVLQJ
Attributes
%XVLQHVV Consistency
2EMHFW requirements
COM/DCOM
NHUQHO (object-
related) %$3,V
0HWKRGV
Representative is part of
CORBA
is a
SAP AG 1999
%XVLQHVV
:RUNIORZ
%2
%2
%2
%2
%2
%2 %2
%2
%25
$UFKLYH/LQN %2
%2 %2
%2
%2
%2
%$3,
%2
%2
%2
%2
%2
%2
0RGHOLQJ
SAP AG 1999
n Object types are developed from the applications and stored in the Business Object Repository
(BOR)
n To find the BOR, choose
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools - Business
Object Builder
n The Business Object Repository button enables you to carry out a specific search by application
component
n The business object type is implemented using an ABAP program.
n Object types and their components are each assigned one of 4 statuses:
Modeled: A program does not yet exist for the object type
Implemented: The program for the object type can be called, but the implementation is not yet
fully completed
Released: The program for the object type can be called by anyone
Obsolete: The object type is being replaced by another object type in the long term.
6
&ODVV 6SHFLDOL]DWLRQ &ODVV 2EMHFWW\SH
,QVWDQFLQJ 6LQJOHREMHFW ,QVWDQFH
2EMHFW
$LUFUDIW
&DUJRSODQH 3DVVHQJHUSODQH
&KDUWHUSODQH 6FKHGXOHGSODQH
7879$: ;<=)>
#$&%(') *+ D79DE FD)
? -.
,-. , -.
/)@ +0"2A:222B3C !" ))!" ))!G
/!) +012435 /@) +0.22435
SAP AG 1999
n In SAP terminology, object classes are described as object types and a single business object is
described as an instance.
n Object types (classes) describe an abstract business object, the data that belongs to it, methods, and
so on.
n Object types can be inherited. Inherited object types contain all the methods and data fields of the
original, and additional specific data and methods.
n This enables polymorphism, which combines the same attributes from different, specialized objects.
Implementing defined interfaces (attributes and methods) from objects has the same effect.
n In this example, charter and scheduled planes are specific instances of a passenger plane. They are
polymorphs relating to the object type class Passenger plane.
n Multiple inheritance is currently not directly supported by SAP business objects. An object can
implement several interfaces.
n Instances of business objects contain actual data, for example, a customer order. There can be any
number of instances of an object type.
l 6$3REMHFWW\SHV
,QYRLFH %6(*B00,9
H
6DOHV2UGHU %86
H
'HOLYHU\QRWH /,.3
H
0DWHULDO %86
H
%LOORIPDWHULDO %86
H
l ([WHUQDOGRFXPHQWV
$UFKLYHGGRFXPHQWV 72$9
H
3XUFKDVHRUGHU,GRF ,'2&25'(56
H
SAP AG 1999
n SAP Business Workflow represents the concept and implementation of an object-oriented approach.
n The object type Notification of absence is, for example, described by the following data:
Key: Number of the notification of absence
Attributes: Created by, entry date, status
Methods: Create, approve, edit, delete
n Objects are concrete instances of an object type that can be identified by a unique key, for example,
the notification of absence with the number 2000, or the notification of absence with the number
2010.
n Access to the method is implemented in an ABAP program.
You can view the program. Use the Program button in the display function of the object type in the
BOR
Event
Triggering
event
Workflow
Workflow
definition
Workflow manager
Terminating
event
Task Work item
ABAP
Dictionary Database
External
SAP AG 1999 SAP functions applications
n The actions in a workflow are described by tasks. These tasks are based on the methods of object
types.
n The definition of objects can be changed without having to modify workflow definitions or
organizational structures.
n The definition of an object type in the BOR also includes events that describe status changes of the
object type.
These events can have a triggering effect on workflows as well as terminating effects on individual
tasks within the workflow.
2UJ3ODQ
(QJLQHHULQJXQLW
5ROH
'HWHUPLQH
3URGXFW0DQDJHPHQWXQLW :RUNIORZ
VXSHULRURI
3URGXFW0DQDJHUSRVLWLRQ
+ROGHU-RQHV 7DVN'LVSOD\
$JHQW FKDQJHGRFXPHQWV
+ROGHU5DQGRO
7DVN'LVSOD\
5ROH
'HWHUPLQHUHVSRQVLEOHXVHUIRUODERUDWRU\30
PDWHULDO
SAP AG 1999
6XSHUW\SH 6XEW\SH
%86 =%86
0DWHULDO 0\B0DWHULDO
0HWKRGV Edit
0HWKRGV Edit
Create
Create Display
Display Report1
(YHQWV
Created
Created (YHQWV
Changed
SAP AG 1999
n The analysis of an existing object type can result in a need for additional attributes, methods, and
events.
Adjustment of the standard object type is then carried out using the definition of a subtype.
The subtype inherits all properties, methods and events of the supertype and is open for new
customer-specific attributes, methods and events.
n You can only make changes directly in an object type provided by SAP if the change is described in
a SAPNet note.
n When creating a subtype, proceed as follows:
Position the cursor in the BOR on the standard object type
Button Create subtype
Enter the required names in the subsequent dialog box. When assigning names use the customer
namespace. By defining a sub-object type you are creating a new ABAP program.
n This is reflected in the program name
The object type must be assigned when saving a development class. Otherwise it is not possible
to release the object type.
Enhance the object type according to your requirements
Set the whole object type to status implemented and then to released, and then set the
individual
components to 'implemented'and ' released'
.
([DPSOHVFHQDULR
8VLQJWKH6$3$UFKLYH/LQNLQWHUIDFHDSDSHUGRFXPHQWLVWREHFRPHDQREMHFWRI
W\SH(..2SXUFKDVLQJGRFXPHQWWKDWLVWREHVXEVHTXHQWO\VWRUHGLQDQ
H[WHUQDODUFKLYH
,QWKLVVFHQDULR6$3$UFKLYH/LQNFDOOVWKHPHWKRG&21),50LQWKHREMHFWW\SH
(..2LVHQKDQFHGZLWKDVXEREMHFWW\SH=(..2IRUDVSHFLILFFXVWRPHU
(..2 =(..2
QRPHWKRG 1RGHOHJDWLRQ PHWKRG
HNNRFRQILUP ]HNNRFRQILUP
7KHDSSOLFDWLRQ6$3$UFKLYH/LQNRQO\NQRZVWKHREMHFWW\SH(..2
(..2GRHVQRWKDYHWKHPHWKRG&21),50
6XEVHTXHQWVWRULQJIDLOVDWUXQWLPHZLWKWKHHUURUPHVVDJH
0HWKRG&21),50QRWLPSOHPHQWHG
SAP AG 1999
n Testing delegations:
I?JLK)JNM?OQP?RSNT)URBVRW!RX)K)J0Y!TZ\[
Display the required supertype in the Business Object Builder and choose the icon Test
You will not see any attributes, events and methods defined in the subtype
I?JLK)JNM?OQKSNJNRU]VRW@RX)K)J0Y!T)ZQ[
Display the required supertype in the Business Object Builder and choose the icon Test
You will see all the attributes, events and methods defined in the subtype and you can test the
elements
n To set up a delegation, you use the Business Object Builder:
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools - Business
Object Builder - Settings - Delegate - System-wide
Change mode - Button New entries
Object type: Supertype entry
Delegation type: Subtype entry
Person responsible: Person who entered the delegation and is therefore responsible for the
Customizing.
^ TJNR
:
The GUI-specific checkbox must remain empty
([DPSOHVFHQDULR
8VLQJWKH6$3$UFKLYH/LQNLQWHUIDFHDSDSHUGRFXPHQWLVWREHFRPHDQREMHFWRI
W\SH(..2SXUFKDVLQJGRFXPHQWWKDWLVWREHVXEVHTXHQWO\VWRUHGLQDQ
H[WHUQDODUFKLYH
,QWKLVVFHQDULR6$3$UFKLYH/LQNFDOOVWKHPHWKRG&21),50LQWKHREMHFWW\SH
(..2LVHQKDQFHGZLWKDVXEREMHFWW\SH=(..2IRUDVSHFLILFFXVWRPHU
'HOHJDWLRQVHWXS =(..2
(..2
QRPHWKRG 0HWKRG
HNNRFRQILUP ]HNNRFRQILUP
7KHDSSOLFDWLRQ6$3$UFKLYH/LQNRQO\NQRZVWKHREMHFWW\SH(..2
(..2GRHVQRWKDYHWKHPHWKRG&21),50
7KHUHLVQRGHOHJDWLRQEHWZHHQ(..2DQG=(..2ZKLFKPHDQVWKHPHWKRGVIURP
=(..2DUHXVHGDWUXQWLPH
=(..2NQRZVWKHPHWKRG&21),50
6XEVHTXHQWVWRULQJLVSRVVLEOH
SAP AG 1999
2EMHFWW\SH
3URJUDP
.H\ILHOGV
7UDQVDFWLRQ
)LHOGUHIHUHQFH
$WWULEXWHV
2EMHFW
UHIHUHQFH )XQFWLRQ
PRGXOH
([SRUWLPSRUW 5HSRUW
SDUDPHWHU
0HWKRGV
5HVXOW $%$3FRGLQJ
(YHQWV
SAP AG 1999
%DVLFGDWD Object
l *HQHUDO5HODWLRQVKLSVWRVXSHULRU
W\SHUHOHDVHJHQHUDWLRQ
l &KDQJLQJDQGWUDQVSRUWLQJGDWD
l 'HIDXOWV)RUPHWKRGVDQGDWWULEXWHV
l &XVWRPL]LQJ'LVSOD\SHUVRQVUHVSRQVLEOHGHOHJDWLRQ
.H\ILHOGV
l ,GHQWLILFDWLRQRIDQREMHFW
l 'DWDW\SHUHIHUHQFH
H
Dictionary field: Only character-based data types,
up to 70 characters total
SAP AG 1999
n The basic data of an object type is in Business Object Repository Maintenance (SWO1), under the
icon Basic data (hat icon)
n To find out whether a supertype exists, see the tab page '
General'in the basic data.
On the tab page Customizing , you can see whether a delegation type has been created
n The person who last changed the object is also stored in the basic data.
n Entry default method: This method is selected if no there are no further specifications when
accessing an object of this object type.
Example: Executing an object by double clicking in a display list.
n Key fields act as the unique identification of a concrete object
n The key fields of supertypes and subtypes must be identical
l $WWULEXWHVGHVFULEHWKHIHDWXUHVRIDQREMHFWW\SH
l 5HTXLUHGHQWULHV
l 'HVFULSWLRQWH[WV
l +RZWKHYDOXHRIWKHDWWULEXWHDWUXQWLPHLVGHFLGHG
,QIRUPDWLRQVRXUFH
'DWDEDVHILHOG
H
9LUWXDO
H
l :KDWWKHDWWULEXWHUHIHUVWRGDWDW\SHUHIHUHQFH
$%$3'LFWLRQDU\ILHOG
H
2EMHFWW\SH
H
l $WWULEXWHSURSHUWLHVLIQHFHVVDU\
SAP AG 1999
n Attributes are available as interface elements and can be incorporated into workflow texts. Attributes
are also used in the workflow definition when formulating conditions, which means they can be used
within process control
I?TM?U_R
n :
ABAP Dictionary field: At runtime, the value of the attribute is taken from a field in an R/3
database table
Example: Material short text from BUS1001 - Refers to the field MAKTX in the table MAKT
Virtual: The value of the attribute must be determined dynamically at runtime according to the
values of the object type
Example: All existing orders for a material
KJNKaJNb)cR]URSNRURZ?_R
n ` :
Reference to a dictionary field - Example: see material short text above
Reference to an object type - Example: see all existing orders above
n If an attribute refers to another object type, its attributes and methods are also available at runtime in
the program
n For virtual attributes, coding must be implemented in the program of the object type.
n Attribute properties: An attribute can have multiple lines (all orders), and/or can be obligatory (must
always have a value), or instance independent (value does not depend on a concrete object, for
example, all IDOC message types in R/3)
l 3HUPLWWHGIXQFWLRQIRUDQREMHFW
l 3URSHUWLHV
5HIHUHQFHWR6$3IXQFWLRQV
H
'LDORJPHWKRG
H
'LDORJPHWKRGFKDQJHPDWHULDOFUHDWHVDQH[HFXWDEOHZRUNLWHP
IRUWKHVHOHFWHGDJHQWV
1RGLDORJPHWKRG
H
7KHEDFNJURXQGPHWKRG'HOHWHUHTXHVWFUHDWHVDZRUNLWHPDQG
DXWRPDWLFDOO\H[HFXWHVLW
6\QFKURQRXVPHWKRGVFDQKDYHDGHWHUPLQHGUHVXOWRU
H
H[SRUWSDUDPHWHU
6\QFKURQRXVPHWKRGVFDQGHILQHH[FHSWLRQVIRUHUURUKDQGOLQJ
H
3DUDPHWHUVFDQEHWUDQVIHUUHGWRPHWKRGVZKHQFDOOHG
H
SAP AG 1999
n Methods encapsulate the functions that are available and are permitted for an object
n It can be necessary to enter import parameters at runtime for methods to work correctly (defined in
the interface for the method)
n Synchronous methods can return values to the calling program in the form of
Export parameters (defined in the interface of the method)
Result parameter
- The possible values of the result are stored in a check table
- They are then recognized in the workflow definition, and are automatically inserted as the
possible outcomes of the workflow step the method has called Example: APPROVE
method of the object type FORMABSENC
n The opposite of synchronous methods are asynchronous methods. Asynchronous methods can have
import parameters, but no export parameters, result parameters, or exceptions.
Reason: Asynchronous methods do not send a response to the calling program.
n To implement the method in the object type, proceed as follows:
Select a method, button Create , enter the basic data
Select the new method, button Program
The system will implement the method in the program on demand, as far as possible.
SAP AG 1999
n Synchronous methods return control to the calling program when the method is complete. The work
item underlying the method is then completed by the system.
n Asynchronous methods do not return confirmation.
The work item generated remains in the inbox of the agent because it is not known when the called
method is completed.
n To terminate work items for asynchronous methods, the application executed by the work item must
trigger a terminating event.
n The terminating event is specified when defining the standard task.
Menu path: SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools -
Tasks/Task Groups
Create/Change - Enter "standard task" in the "Task type" field and click on the tab page
"Terminating events"
n A terminating event always refers to exactly 1 work item, which means that the work item ID must
be entered as a variable when defining the terminating event. The variable is always called
_WI_OBJECT_ID, and is always entered under ELEMENT.
6\VWHPZLGH (YHQWVDUHRQO\GHILQHG
QRWLILFDWLRQUHJDUGLQJ LQWKHREMHFWW\SH
FKDQJHVWRWKHREMHFW
VWDWXV
Object
7KH6$3DSSOLFDWLRQ (YHQWSDUDPHWHUV
PXVWDFWLYDWHWKH WUDQVIHULQIRUPDWLRQ
HYHQWQRWWKHREMHFW IURPHYHQWFUHDWRUWR
W\SH HYHQWUHFHLYHU
SAP AG 1999
0HWKRG([DPSOHV
6$36FULSW
67'B7(;7 Replace text symbols and display text
VWDQGDUGWH[W
&DOOH[WHQGHG
+(/3 Display help object
KHOS
$%$3
75',5
SURJUDP
Execute program
SAP AG 1999
n The object type SOFM is intended for SAP experts who want to program functions for the SAP
office folders and documents.
n The object type STD_TEXT can be used to integrate SAPscript text into a mail sent out by
workflow. (Although the SELFITEM approach is easier.)
n Use the object type TSTC to execute a transaction in a workflow step.
n Use the object type TRDIR to execute a report in a workflow step.
l :RUNIORZDUFKLWHFWXUHLVEDVHG
RQREMHFWW\SHV
l 2EMHFWW\SH.H\ILHOGVDWWULEXWHV
PHWKRGVHYHQWV
l %XVLQHVV2EMHFW5HSRVLWRU\%25
&ROOHFWLRQRI6$3DQGRZQREMHFW
VXEW\SHV
SAP AG 1999
z=r8vwzyB{rp]| {{~}|ts|s{rtFq|tCrLpFyssts| {
1-1 The Business Object Repository is the basis for all workflows. To better understand
these workflows, you need to become familiar with navigation in the Business
Object Repository (BOR), and the different statuses of object types.
____________________________________________________________
1-1-2 List all the possible statuses for an object type, and their icons:
____________________________________________________________
____________________________________________________________
____________________________________________________________
For a positive test, the object type methods, events, and attributes
triggered are displayed. After executing ExistenceCheck, you will
receive a success notification S 000.
For the negative test, you will receive an exception error message
stating that the object does not exist.
1-1-4 Test the Edit method for your material u (## is your group
number), and check Basic data 1 and Basic data 2 . Change the value of
the fields Old Matl Number (Basic data 1) and Basic Material (Basic
data 2) Choose your G## for the Lab./office field (Basic data 1 - Entry:
G##)
1-2 To meet specific business requirements, you may sometimes need to enhance object
types for your workflows. In the following exercises, you will create your own
subtype for doing this.
After each implementation step, note any relevant changes in color keys, symbols,
and status. Create a subtype of your material object type.
The object type and program fields both need to be in the Customer
Namespace (should start with a Z or Y).
The Object type , Object name and Program fields must be
filled.
1-2-3 Change your material object type to meet the requirements of the following
steps. After each step, examine the object type program to see if anything
has changed.
1-2-5 Allow access to the field Basic material from Basic data 2 in the
material master. Create a new attribute BasicMaterial , based on the same
ABAP Dictionary table used to implement the object key (use field
WRKST).
1-2-6 In the Create Attribute dialog box, answer the question Create with
ABAP Dictionary field attributes? with<HVThen enter the table name
MARASelect your field WRKST and define the attribute. Finally,
change the status to implemented.
1-2-7 For the new task in the workflow definition, a user must display a change
log of the material master. Create a new method Display_Changes . In
dialog mode, and using the ABAP transaction MM04, define the method as
synchronous. In the Create Method dialog box, answer the question
Create with function module as template? with 1R
Then implement the program for this method. This will be generated by the
system.
Finally, change the status of the method to implemented .
1-2-8 Change the status of your object type to implemented and then to
released . Click away any warnings that may appear. Then change the
status of all new events, attributes and methods to released .
z=r8vQ|80|Q8t5r8p
2-1 Before you create a delegation, check the object type Y##MARA. This test
environment provides an overview of the situation before and after delegation.
2-1-1 Display the object type Y##MARA, choose test with Material T-BBD## ,
and find its events and methods.
The object type will be your supertype Y##MARA . Enter your name as the
responsible person and choose your sub- object type YMARA## as the
delegation type.
2-3 You will now see the new event, the new method and the new attribute that you
have defined.
2-5 Why don t you see your new event and your new method when displaying the
methods and events of the object type Y##Mara?
z=r8vwzyB{rp]| {{~}|ts|s{rtFq|tCrLpFyssts| {
1-1 The Business Object Repository is the basis for all workflows. To better understand
these workflows, you need to become familiar with navigation in the Business
Object Repository (BOR), and the different statuses of object types.
____________________________________________________________
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
'RXEOHFOLFN%XVLQHVV2EMHFW%XLOGHU
,QWKH%XVLQHVV2EMHFW%XLOGHU,QLWLDO6FUHHQHQWHUWKHIROORZLQJ
LQIRUPDWLRQDQGFKRRVH'LVSOD\
=h
9x? Qu
1-1-2 List all the possible statuses for an object type, and their icons:
____________________________________________________________
____________________________________________________________
____________________________________________________________
6HOHFW2EMHFW7\SH'LVSOD\
,QWKH'LVSOD\2EMHFW7\SHVFUHHQFKRRVH8WLOLWLHV&RORUOHJHQGRU
FKRRVH(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SH
)URPWKH'LVSOD\2EMHFW7\SHVFUHHQ
FOLFNRQWKH3/86VLJQLQIURQWRI0HWKRGV3RVLWLRQWKHFXUVRURQ
([LVWHQFH&KHFN
&KRRVH(GLW7HVWH[HFXWHRUWKH7HVWH[HFXWHLFRQ
&OLFNWKH&UHDWH,QVWDQFHEXWWRQDQGHQWHUPDWHULDOQXPEHU7%%'
6FUROOGRZQDQGFKRRVHWKHPHWKRG(;,67(1&(&+(&.
&KRRVHWKH([HFXWH0HWKRGLFRQ
5HSHDWWKHVDPHSURFHGXUHIRUWKHQHJDWLYHWHVWEXWHQWHUPDWHULDO===
For the negative test, you will receive an exception error message
stating that the object does not exist.
1-1-4 Test the Edit method for your material and check Basic data 1 and Basic
Data 2 .
&KRRVH(GLW7HVWH[HFXWHRUWKH7HVWH[HFXWHLFRQ
&OLFNWKH&UHDWH,QVWDQFHEXWWRQDQGHQWHUPDWHULDOQXPEHU7%%'
6FUROOGRZQDQGVHOHFWPHWKRG(',7
&KRRVHWKH([HFXWH0HWKRGLFRQ
6HOHFW%DVLFGDWDDQGFOLFNWKH&RQWLQXH(QWHUEXWWRQ
Change the value of the fields Old Matl Number (Basic data 1) and Basic
Material (Basic data 2) Choose your G## for the Lab./office field
(Basic data 1 - Entry: G##) ## is your group number.
&KRRVHWKH6DYHEXWWRQ
5HWXUQWRWKH7HVW2EMHFW7\SHVFUHHQE\VHOHFWLQJWKH%DFNEXWWRQ
1-2 To meet specific business requirements, you may sometimes need to enhance object
types for your workflows. In the following exercises, you will create your own
subtype for doing this.
After each implementation step, note any relevant changes in color keys, symbols,
and status. Create a subtype of your material object type.
1-2-2 Enter your object type, and create a new subtype called xxx
,QWKHVFUHHQ%XVLQHVV2EMHFW%XLOGHU,QLWLDO6FUHHQHQWHUWKH
IROORZLQJLQIRUPDWLRQ
=h
9x? Qu
&KRRVHWKH&UHDWHVXEW\SHLFRQ
,QWKH&UHDWH2EMHFW7\SHGLDORJER[HQWHUWKHIROORZLQJLQIRUPDWLRQ
=h
9x? Qu
Supertype Y##MARA
YMARA##
Object type
Object name Material_Group_##
Name Material, Group-##
Description Material, Group-##
Program YMARA##
Application S
&KRRVHWKH&RQWLQXH(QWHUEXWWRQ
,QWKH&UHDWH2EMHFW'LUHFWRU\(QWU\GLDORJER[HQWHU=DVWKH
GHYHORSPHQWFODVV
&KRRVHWKH6DYH(QWHUEXWWRQ
,QWKH(QWHU&KDQJH5HTXHVWGLDORJER[FKRRVHWKH&UHDWHUHTXHVW
EXWWRQ
,QWKH&UHDWHUHTXHVWGLDORJER[HQWHUWKHIROORZLQJLQIRUPDWLRQ
=h
9x? Qu
&KRRVHWKH6DYH(QWHUEXWWRQ
&KRRVHWKH&RQWLQXH(QWHUEXWWRQ
1-2-3 Change your material object type to meet the requirements of the following
steps. After each step, examine the object type program to see if anything
has changed.
1-2-4 For this workflow exercise, one event is needed as a triggering event. Create
the new event Old_Material_Changed for your object type xx .
,QWKH&KDQJH2EMHFW7\SHVFUHHQSRVLWLRQWKHFXUVRURQ(YHQWVDQG
&KRRVH(GLW&UHDWHRUWKH&UHDWHEXWWRQ
,QWKH&KDQJH2EMHFW7\SHGLDORJER[HQWHUWKHIROORZLQJLQIRUPDWLRQ
=h
9x? Qu
Event Old_Material_Changed
&KRRVHWKH&RQWLQXH(QWHUEXWWRQ
&KRRVHWKH6DYHEXWWRQ
&OLFNRQWKH3/86VLJQLQIURQWRI(YHQWV
3RVLWLRQWKHFXUVRURQ0DWHULDOB*URXSB2OGB0DWHULDOB&KDQJHG
6HOHFW(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SHFRPSRQHQW7R
LPSOHPHQWHG.
1-2-5 Allow access to the field Basic material from Basic data 2 in the
material master. Create a new attribute BasicMaterial , based on the same
ABAP Dictionary table used to implement the object key (use field
WRKST).
3RVLWLRQWKHFXUVRURQ$WWULEXWHV
&KRRVH(GLW&UHDWHRUFKRRVHWKH&UHDWHEXWWRQ
1-2-7 For the new task in the workflow definition, a user must display the change
log of the material master. Create a new method Display Changes In
dialog mode, and using the ABAP transaction MM04, define the method as
synchronous.
3RVLWLRQWKHFXUVRURQ0HWKRGVDQGFKRRVH(GLW&UHDWHRUWKH
&UHDWHEXWWRQ
In the Create Attribute dialog box, answer the question Create with
function module as template? with 1R
,QWKH&KDQJH2EMHFW7\SHGLDORJER[HQWHUWKHIROORZLQJLQIRUPDWLRQ
=h
9x? Qu
2QWKH*HQHUDOWDESDJHVHOHFWWKH'LDORJDQG6\QFKURQRXVFKHFN
ER[
*RWRWKH$%$3WDESDJHDQGVHOHFWWKH7UDQVDFWLRQUDGLREXWWRQ
(QWHUWUDQVDFWLRQ00LQWKH1DPHILHOG
&KRRVHWKH&RQWLQXH(QWHUEXWWRQ
,QWKH&KDQJH2EMHFWW\SHVFUHHQ
&OLFNRQWKH3/86VLJQLQIURQWRI0HWKRGVDQGVHOHFW\RXUQHZ
PHWKRG'LVSOD\&KDQJHV
&KRRVH*RWR3URJUDP
$QVZHU<HVWRWKHJHQHUDWLQJTXHVWLRQ
&KRRVHWKH6DYHEXWWRQRQWKH2EMHFW7\SH(GLWRUVFUHHQ
5HWXUQWRWKH&KDQJH2EMHFW7\SHVFUHHQE\VHOHFWLQJWKH%DFNEXWWRQ
3RVLWLRQWKHFXUVRURQ0DWHULDOB*URXSB'LVSOD\&KDQJHV
6HOHFW(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SHFRPSRQHQW7R
LPSOHPHQWHG.
1-2-8 Change the status of your object type to implemented and then to
released .
&KRRVH(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SH 7RLPSOHPHQWHG
&KRRVH(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SH 7RUHOHDVHG
&OLFNDZD\DQ\PHVVDJHVWKDWPD\DSSHDU
Now change the status of all new events, attributes and methods to
released .
,QWKHVFUHHQ%XVLQHVV2EMHFW%XLOGHU,QLWLDO6FUHHQFKRRVH
2EMHFWW\SH&KDQJHRUFKRRVHWKH&KDQJHEXWWRQ
&OLFNRQWKH3/86VLJQLQIURQWRI(YHQWV
3RVLWLRQWKHFXUVRURQ0DWHULDOB*URXSB2OGB0DWHULDOB&KDQJHG
&KRRVH(GLW&KDQJHUHOHDVHVWDWXV2EMHFWW\SHFRPSRQHQW7R
UHOHDVHG.
5HSHDWWKHDERYHVWHSVWRFKDQJHWKHVWDWXVRI\RXUQHZ0HWKRG
0DWHULDOB*URXSB'LVSOD\&KDQJHVDQG\RXUQHZ$WWULEXWH
0DWHULDOB*URXSB%DVLF0DWHULDOWRUHOHDVHG
,QWKH&KDQJH2EMHFWW\SHVFUHHQFKRRVH
2EMHFWW\SH*HQHUDWHRUWKH*HQHUDWHEXWWRQ
z=r8vQ|80|Q8t5r8p
2-1 Before you create a delegation, check the object type Y##MARA. This test
environment provides an overview of the situation before and after delegation.
2-1-1 Display the object type Y##MARA, choose test with Material T-BBD## ,
and check its events and methods.
Can you see your new event and your new method?
_____________
The object type will be your supertype Y##MARA . Enter your name as the
responsible person and choose your sub- object type YMARA## as the
delegation type.
,QWKHVFUHHQ'LVSOD\9LHZ&XVWRPL]LQJ2EMHFW7\SHV2YHUYLHZ
&KRRVHWKH'LVSOD\!&KDQJHEXWWRQSHQFLOLFRQWRVZLWFKWR&KDQJHPRGH
7DEOHPD\EHORFNHGE\DQRWKHUFRXUVHSDUWLFLSDQW2QO\RQHXVHUFDQXSGDWH
WKLVWDEOHDWDWLPH
&KRRVHWKH1HZHQWULHVEXWWRQ
,QWKHVFUHHQ1HZ(QWULHV'HWDLOVRI$GGHG(QWULHVHQWHUWKHIROORZLQJ
LQIRUPDWLRQ
=f
9 \x
&KRRVHWKH6DYHEXWWRQDQGH[LWWRDOORZWKHQH[WSDUWLFLSDQWWRFUHDWHDWDEOH
HQWU\
<RXFDQVHHWKHFKDQJHGRFXPHQWDERXWWKHFKDQJH\RXKDYHPDGH
2-5 Why don t you see your new event and your new method when displaying the
methods and events of the object type Y##Mara?
7KHPHWKRGDQGWKHHYHQWDUHQRWGHILQHGIRUWKHREMHFWW\SH<0$5$
<RXZLOORQO\EHDEOHWRDFFHVVWKHPWKURXJKWKHGHOHJDWLRQ
&RQWHQWV
l %DVLFVIRUGHILQLQJDWDVN
l (QKDQFHGFRPSRQHQWVIRU
GHILQLQJDWDVN
l 7DVNJURXSV
l %XVLQHVV:RUNIORZ([SORUHU
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l &UHDWHDWDVN
l 'HILQHWKHEDVLFFRPSRQHQWVRIDWDVN
l 'HILQHWKHHQKDQFHGFRPSRQHQWVRIDWDVN
l 'HILQHDQGXVHWDVNJURXSVIRUVWUXFWXULQJ
WDVNV
l 8VHWKH%XVLQHVV:RUNIORZ([SORUHU
SAP AG 1999
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l <RXQRZNQRZWKDWLQDZRUNIORZRQO\DWDVNEULQJV
DERXWIXQFWLRQDOLW\
l <RXZDQWWRFUHDWHDQHZWDVN'LVSOD\PDWHULDO
FKDQJHGRFXPHQWWRIXOILOOWKHUHTXLUHPHQWVRI
\RXUEXVLQHVVSURFHVV
l <RXKDYHWRNQRZDOOWKHFKDUDFWHULVWLFVRI\RXU
WDVNWRFRUUHFWO\LQWHJUDWHLWLQWR\RXUZRUNIORZ
GHILQLWLRQ
l ([LVWLQJWDVNVDUHWREHJURXSHGLQWRDWDVNJURXS
l <RXZDQWWRPDQDJHWDVNVXVLQJWKH%XVLQHVV
:RUNIORZ([SORUHU
SAP AG 1999
:RUNIORZWHPSODWH
Workflow
7DVNW\SHV
Definition
:RUNIORZWHPSODWH
:6
7DVNV
Task 76
Object type
Attribute Method
6$3IXQFWLRQV
SAP AG 1999
7DVN
6WDQGDUGWDVN
76
Reference to object
method or
manual activity
:RUNIORZ
:RUNIORZWHPSODWH
Reference to :6
workflow definition
SAP AG 1999
n From an organizational perspective, tasks are the central element in the workflow system.
n Tasks are used to describe a business process. Tasks can be executed one after the other in the
business process. Parallel steps can, however, also be defined.
n Tasks are designed as client-independent and time-independent, reusable modules.
n Tasks are generally executed in the context of a workflow definition.
In exceptional cases, they can also be explicitly triggered without being included in a workflow.
n Like tasks, workflow templates are also client-independent and time-independent.
n You may find workflow tasks (WF) and customer tasks (T ) in your system. They are client-specific
and have a validity period.
Up to and including Release 4.0, WF and T could be created with the same authorizations as WF
und TS.
As of Release 4.5A, when you create new workflows and tasks, the system only offers you WS
and TS.
WF and T are not being further developed.
Existing WF and T are still executable.
n 1RWH: You cannot include customer tasks (T ) in a workflow template.
(YHQW
=%86
2UJDQL]DWLRQDOSODQ 2OGB0DWHULDOB&KDQJHG
'HVLJQGHSDUWPHQW :+2"
'HVLJQHUSRVLWLRQ
+ROGHU0DU\
=%86'LVSOD\ :KDW"
Task
$WWULEXWHVDQGNH\ :RUNLWHP Display material
RI=%86 DQG (Confirm end of
ORQJWH[WV processing)
SAP AG 1999
2UJDQL]DWLRQDO
6WDQGDUGWDVN
SODQ
2EMHFWW\SHZLWK What is to
Who is
REMHFWPHWKRG execute
responsible
for the
the task? task?
&KDUDFWHULVWLFV
*HQHUDOWDVN
DOO6$3XVHUV
7H[WV (YHQWV
Work item text: Title of work
item in inbox Terminating Events
Long texts: Triggering events
! Description Only if the task is not
! Notification used in a workflow
! Missed deadlines
SAP AG 1999
l %DFNJURXQG
" %DVHGRQWKHREMHFWPHWKRGWKHWDVNFDQEHIODJJHGDVD
EDFNJURXQGWDVN
l &RQILUPHQGRISURFHVVLQJ
" 'XULQJUXQWLPHWKHXVHUFDQFUHDWHDQDWWDFKPHQWDIWHUWKH
ZRUNLWHPKDVEHHQH[HFXWHG
" 7KHXVHUH[SOLFLWO\H[SODLQVWKDWWKHZRUNLWHPGRHVQRWKDYH
WREHSURFHVVHGDQ\ORQJHU
l 6$3SKRQH
l )RUP6$3IRUPVLQGLFDWRU
SAP AG 1999
l :RUN,WHP7H[W
" 7LWOHRIZRUNLWHPLQWKH%XVLQHVV:RUNSODFH
" )LUVWFUHDWHWKHZRUNLWHPWH[WDQGSRVLWLRQWKHFXUVRUWRLQFOXGHD
YDULDEOH
" &KRRVHWKH
,QVHUWYDULDEOH
LFRQXQGHUWKHZRUNLWHPWH[W
" 7KHREMHFWDWWULEXWHVIURPWKHWDVNLQWHUIDFHDUHWKHQDYDLODEOH
([DPSOH
3URFHVVUHTXHVWIURP B:,B2EMHFWB,'&UHDWHG%\
SAP AG 1999
n The long texts of tasks use the same concept for variables.
You maintain long texts in the task on the Description tab page.
You include variables by choosing Insert -> Expression .
n Example of a task description for the "Approval step
Employee &_WI_Object_ID.CreatedBy& created a notification of absence under the number
&_WI_Object_ID.Number& on &_WI_Object_ID.CreateDate&. Decide whether to approve.
l 7DVNVEDVHGRQDV\QFKURQRXVPHWKRG
FDQKDYHWHUPLQDWLQJHYHQWV
l 7DVNVEDVHGRQDQDV\QFKURQRXV
PHWKRGPXVWKDYHDWOHDVWRQH
WHUPLQDWLQJHYHQW
" 7KHDV\QFKURQRXVPHWKRGLVRQO\ 6LQJOHVWHS
6LQJOHVWHS
WDVN
VWDUWHGE\WKHZRUNIORZV\VWHP
" 7KHDV\QFKURQRXVPHWKRGFDOOV
DWUDQVDFWLRQRIDQ6$3DSSOLFDWLRQ $V\QFKURQRXV
$V\QFKURQRXV Terminating
REMHFWPHWKRG
REMHFWPHWKRG
" 7KHDSSOLFDWLRQWKHQDFWLYDWHVWKH
event
WHUPLQDWLQJHYHQW
" 7KHWDVNLVHQGHGZKHQWKHWHUPLQDWLQJ
HYHQWLVDFWLYDWHG
SAP AG 1999
n The terminating events are published events of the business object type on which the task is based.
n You have to assign terminating events to each asynchronous task. The system recognizes by the
triggering event that the method call is completed.
n ([DPSOH: The asynchronous task "Delete leave request" has to have at least one terminating event,
usually the event "Deleted".
The application triggers the event in the context of the method "Delete leave request" and the
associated work item can be completed.
n ([DPSOH: The synchronous task "Approve application" can have a terminating event. The event
may be an enterprise-wide recruitment freeze.
n Synchronous tasks need terminating events if it is not guaranteed that the processing on which the
work item is based is executed by the workflow system exclusively.
n If a task is to be able to be completed by a business event exclusively, this task has to contain an
asynchronous method.
l 7HUPLQDWLQJHYHQW (OHPHQWRIWKHWDVN
FRQWDLQHUZKLFKUHIHUVWR
WKHWULJJHULQJREMHFWW\SH
RIWKHHYHQW
Task container
#$&%'#)(*)+
,.-0/1#2%43
#$&%'#56-/
7.891#.5;:.,<;/
Terminating events
(OHPHQW Object
D (EF5)=G?H@
Object type
type Notification
Notification of
of absence
absence
B:,B2EMHFWB,'RI Event C.?.I?.A?C Deleted
WDVNFRQWDLQHU
Event Deleted
Element
Element #$&%1#)(=>?.@AB#2%C
B:,B2%-(&7B,'
B:,B2%-(&7B,'
VWDQGVIRUWKHDIIHFWHGZRUNLWHP
VWDQGVIRUWKHDIIHFWHGZRUNLWHP
DWUXQWLPH
DWUXQWLPH
SAP AG 1999
n A terminating event applies to one instance of a task only, that is, to one specific work item. The key
of the work item, therefore, has to be given to the terminating event.
n ([DPSOH:
A head of department has four work items for leave request.
They have the work item numbers 1, 2, 3, 4.
The person making request number 3 deletes their request. The work item in the inbox is then no
longer needed and has to be deleted.
The terminating event "Request deleted" now has to be generated for work item 3.
The object reference is given to the terminating event for this purpose.
n The object reference for a task is always in the variable _WI_OBJECT_ID.
n A terminating event for a task is, therefore, specified as follows:
Object type for which the event is defined
Name of event
Container element _WI_OBJECT_ID
l 7KHWDVNLVFRPSOHWHG
ZKHQWKHPHWKRGUHWXUQV
ILQDOFRQILUPDWLRQ
WRWKHZRUNIORZV\VWHP Terminating
7DVN
l 7KHWDVNLVDOVRFRPSOHWHG
event
LIWKHDSSOLFDWLRQ
WULJJHUVWKHWHUPLQDWLQJHYHQW
6\QFKURQRXV
6\QFKURQRXV
REMHFWPHWKRG
REMHFWPHWKRG
l 6\QFKURQRXVWDVNVFDQ
KDYHH[SRUWSDUDPHWHUVDQGUHVXOWV
SDUDPHWHUV
'DWDH[FKDQJHRFFXUV
LQERWKGLUHFWLRQV
SAP AG 1999
n Since a synchronous method can return values to the calling system, synchronous methods can have
export parameters or results parameters.
n Example of results parameters:
The method Approve leave request is to be completed with Approved (A), Rejected (R) and
New (N).
The values A, R and N are stored as fixed values in a domain.
The relevant value is transferred to the workflow in a special attribute.
n The definition of results parameters can be exemplified using the method Approve notification of
absence (Formabsenc.Approve).
General definition: Results parameter flag set
Under Result type, you find the reference field for the respective value (= PROCSTATE) and the
reference table SWXFORMAB.
In the ABAP Dictionary, the field PROCSTATE is of the field type SWX_PROCST. This field
type is assigned a domain SWX_PROCST. The domain contains the fixed values A, R, N.
n If you incorporate a task that links to a method with results parameters into a workflow definition,
the Workflow Builder automatically generates outcomes corresponding to the defined fixed values.
n If a task is to be able to be completed by a business event exclusively, this task has to contain an
asynchronous method.
'\]^4QK `
_ba XcPed)f2Zhghi
J 4LKNM O
Number
Number 1XPEHU
P UQVR S
WT4
ApprovDate
ApprovDate $SSURYDOGDWH
ApprovBy
ApprovBy $SSURYHGE\
CreateDate
CreateDate &UHDWLRQGDWH
CreatedBy
CreatedBy &UHDWHGE\
X 4WYO
Display
Display 'LVSOD\QRWLILFDWLRQRIDEVHQFH Dialog Synchronous
Create
Create &UHDWHQRWLILFDWLRQRIDEVHQFH Dialog Synchronous
Delete
Delete 'HOHWHQRWLILFDWLRQRIDEVHQFH Asynchronous
Update
Update 8SGDWHQRWLILFDWLRQRIDEVHQFH Dialog Synchronous
Approve
Approve $SSURYHQRWLILFDWLRQRIDEVHQFHDialog Synchronous Result
Z[
Q
Created
Created 1RWLILFDWLRQRIDEVHQFHFUHDWHG
Deleted
Deleted 1RWLILFDWLRQRIDEVHQFHGHOHWHG
SAP AG 1999
n The object type notification of absence (FORMABSENC) is used as an example demonstrating the
attributes, methods, and events above.
$)BDSSURYH
/RQJWH[W
SAP AG 1999
n A results parameter is defined for the method APPROVE. The results parameter refers to a result
type that references a table field (PROCSTATE in SWXFORMABS).
n From the entries in the dictionary, it becomes clear that the result type refers to fixed values of the
domain SWX_PROCST. The fixed values are A (Approved), R (Rejected) and N (New).
n If the method APPROVE is incorporated in a workflow step, the system always generates possible
outcomes for the 3 values automatically.
$)BGHOHWH
SAP AG 1999
&DOOWKH:RUNIORZ%XLOGHU $FWLYLW\VWHSW\SHLQD
&KRRVHWKH$FWLYLW\VWHSW\SH ZRUNIORZ
l ,QWKHZRUNIORZVWHSHQWHU
UHIHUVWRDWDVN
l $WDVNDEEUHYLDWLRQRU
Activity 1
l $ZRUNIORZDEEUHYLDWLRQ
l 6SHFLI\QDPHVIRUWKHRXWFRPHVRIWKH
VWHS
+RZGRHVWKHWDVNZRUNIORZHQG
Multiple outcomes
l (QVXUHELQGLQJIRUGDWDH[FKDQJHEHWZHHQ
WDVNFRQWDLQHUDQGZRUNIORZFRQWDLQHU
UHIHUVWRDZRUNIORZ
l 'HILQHDJHQWV
l 'UDZXSDGHDGOLQHHVFDODWLRQZKHQ Activity 2
UHTXLUHG
Multiple outcomes
SAP AG 1999
Task group 1
Standard task 1
Standard task m
Task group 3
SAP AG 1999
n Logically connected tasks are grouped together in task groups. Note also that task groups can have a
description text. The use of the task group can therefore be precisely documented.
n Hence, it is possible, for example, to:
Place workflow templates that only communicate with each other using events together in a task
group. As a result, you obtain a better overview.
Bundle tasks (workflow templates and standard tasks) that belong to one work area in order to
increase reusability.
n Task groups are also useful for defining the search range for the Business Workflow Explorer. The
Business Workflow Explorer can then display the tasks in these task groups.
n Important note: Task groups can only contain the task types workflow template and standard task.
Workflow tasks and customer tasks are no longer supported.
:RUNIORZWHPSODWH[
)RUZDUGVWR
)RUZDUGVWR
866&+0,'73$3DWULFN6PLWK DJHQW
DJHQW
DVVLJQHG
DVVLJQHG
6WDQGDUGWDVN[ 866&+0,'73$
866&+0,'73$
866&+0,'73$3DWULFN6PLWK
:RUNIORZWHPSODWH\
SAP AG 1999
n Tasks pass on their characteristics to the collected tasks and task groups.
n This inheritance also continues through any assigned task groups. As shown in the graphic, the tasks
in a task group also inherit the characteristics of the task group highest in the hierarchy.
n With very extensive inheritance hierarchies, undesired agent assignments can be made if an
organizational object is assigned to the highest task group. Therefore, ensure that the change of
responsibility for the task group is also desired for the assigned tasks and task groups.
l 2QHPHGLXPIRUPDQDJLQJWDVNVDQGZRUNIORZV
l )XQFWLRQVDYDLODEOHLQFOXGH
" &UHDWH
" &KDQJH
" 'LVSOD\
" &RS\
" $JHQWDVVLJQPHQW
" $QGVRRQ
l 1RKHOSYDOXHVUHTXLUHG$OOUHOHYDQWWDVNV
DUHGLVSOD\HGGLUHFWO\
SAP AG 1999
n The Business Workflow Explorer facilitates the management of workflow projects. All tasks can be
assigned to a task group. The relevant employees incorporate this task group into the search range of
the Business Workflow Explorer.
n The functions mentioned here can always be accessed from context menus (right mouse button). The
following functions are also possible:
Display current workflows of task
Quick overview of most important task attributes
n The Business Workflow Explorer always uses a defined search area. This area can be defined
interactively by the user. Note, however, that calling the Business Workflow Explorer takes longer
than accessing the largest chosen search range since all tasks have to be imported with their
attributes. Therefore, ensure that the chosen search range is not unnecessarily large.
n Parts of the Business Workflow Explorer can be used within the Workflow Builder.
Query
SAP AG 1999
n The search range of the Business Workflow Explorer can be defined with the following objects:
7DVNJURXSV: This is the preferred option since granularity is optimized. In principle, every
workflow modeler can create one or more task groups to organize their tasks.
$SSOLFDWLRQFRPSRQHQWV
This key is not a very precise sort key and is probably not relevant for customer projects.
2WKHU
- 6$3SKRQHWDVNV: Tasks suitable for telephone integration (inbound calls and/or outbound
calls).
- /RFDOREMHFWV: All local tasks in the system. Only your own local tasks (user-specific).
n The tasks used in a workflow definition can be displayed in more detail by choosing View->Details.
The Explorer then displays more information about the tasks in additional columns (object type,
method, agent assignment, background task, and so on.).
n If you click on a multistep task in the left-hand tree, the most recent (and not the active) version is
read and displayed in detail in the right-hand tree.
l 7ZRW\SHVRIWDVNV6LQJOH
VWHSWDVNVDQGZRUNIORZV
l 6LQJOHVWHSWDVNVUHIHUWRREMHFW
PHWKRGV
l :RUNIORZVUHIHUWRVLQJOHVWHSWDVNV
DQGRURWKHUZRUNIORZV
l 6LQJOHVWHSWDVNVWKDWDUH
" V\QFKURQRXVFDQKDYHWHUPLQDWLQJHYHQWV
" DV\QFKURQRXVPXVWKDYHDWOHDVWRQH
WHUPLQDWLQJHYHQWV
l <RXFDQFUHDWHDQGPDLQWDLQ7DVN*URXSV
l <RXDUHQRZIDPLOLDUZLWKWKH%XVLQHVV
:RUNIORZ([SORUHU
SAP AG 1999
8QLW7DVNV
7RSLF%DVLFVIRU7DVN'HILQLWLRQ
Standard tasks are based on the methods of object types. These tasks can
be used as stand alone single-step tasks or as steps in a workflow
definition.
1-1 Familiarize yourself with the different tasks in the SAP workflow concept.
1-1-1 List all the task types that you can create by default in Release 4.6, along
with their abbreviation and their usage method:
_________________________________________________________
_________________________________________________________
_________________________________________________________
Enter TS and the number of your "Change documents for material" task, for
example, "
In the "Initialize Container" dialog box, use the input help in the "Value"
field to enter your material 7%%'.
1-4 You have demonstrated the tasks to your users and they have asked for some
enhancements. They would like the completion of the task to be explicitly
confirmed and would like to add some meaning to the message text in the worklist.
Adjust the task "Change documents for material" to the user requirements.
1-4-2 Change the work item text for the task "Change documents for material".
The work item text appears in the worklist of the recipients.
On the "Basic data" tab page, enter your text, for example "Display changes
of material" in the "Work item text" field.
Position your cursor after "material" and insert the material number variable
by choosing the "Insert variables" button.
In the "Please Choose an Expression" dialog box, click on the plus sign next
to the object type "Y##MARA" (may also be displayed as
BUS1001_Groupnr_## or _WI_OBJECT_ID).
Double-click the "Material" field.
The work item text now contains the value
&_WI_OBJECT_ID.MATERIAL& after "material".
Save your task.
(Note: The & sign is a placeholder for the variable.)
Make sure that there is at least one space before the first & sign and one
space after the second & sign.
Again, make sure that there is at least one space before the first '
&'sign and
one space after the second '
&'sign.
1-4-5 Test your task again. Open another session and go to the Business
Workplace.
Write down your work item text:
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
The task description of your work item is displayed in the lower part of the
screen. Afterwards end that session.
To complete this work item, click on the "Complete processing of step"
button in the "This Work Item Has To Be Completed Explicitly" dialog box.
Why was this additional dialog box displayed?
________________________________________________
1-5-1 Insert your task "Change documents for material" as the new first step in
your workflow.
Call the Workflow Builder.
Your workflow template is displayed.
Integrate the task directly after the step "Workflow started".
Accept the question about the workflow <-> task container binding. This
point will be covered later.
As the agent of this step, choose the "expression" &_WF_INITIATOR&.
On the "Outcomes" tab page for "Step executed", enter a text, for example
"Change documents displayed".
Exit the screen and activate your workflow again.
8QLW7DVNV
7RSLF%DVLFVIRU7DVN'HILQLWLRQ
1-1 Familiarize yourself with the different tasks in the SAP workflow concept.
1-1-1 List all the task types that you can create by default in Release 4.6, along
with their abbreviation and their usage methods.
6$3($6<$&&(66!7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW
'HILQLWLRQ7RROV7DVNV7DVN*URXSV
'RXEOHFOLFN&UHDWH
&KRRVHWKH)+HOSIRUWKH7DVNW\SHILHOG
76 Standard task, stand-alone or as a step in a workflow
:6 Workflow template, stand-alone or as a subworkflow
7* Task group
6$3($6<$&&(667RROV%XVLQHVV:RUNIORZ'HYHORSPHQW
'HILQLWLRQ7RROV7DVNV7DVN*URXSV
2QWKH7DVN'LVSOD\VFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPH ,QSXW'DWD
Task AF_approve
&KRRVHWKH'LVSOD\EXWWRQ
2QWKH6WDQGDUGWDVNGLDORJER[GRXEOHFOLFN$)BDSSURYH
2QWKH'LVSOD\2EMHFW7\SHVFUHHQ
FOLFNRQWKHSOXVVLJQQH[WWR.H\ILHOGV
$EVHQFH)RUP1XPEHU
Check the "possible agents" of this task.
&KRRVHWKH%DFNEXWWRQWRUHWXUQWRWKH6WDQGDUG7DVN'LVSOD\
VFUHHQ
2QWKH6WDQGDUG7DVN'LVSOD\VFUHHQFKRRVH
$GGLWLRQDOGDWD $JHQWDVVLJQPHQW 'LVSOD\
1-2 Define the two tasks as standard tasks. Do not enter a work item text yet.
)LHOG1DPH ,QSXW'DWD
Task Blank
&KRRVHWKH&UHDWHEXWWRQ
)LHOG1DPH ,QSXW'DWD
Abbr: Z##_TS_1
Method Display_Changes
&KRRVHWKH6DYHEXWWRQ
3RVLWLRQ\RXUFXUVRURQWKHWDVNKLJKOLJKWHGLQOLJKWJUHHQDQGFKRRVH
(GLW $WWULEXWHVRUWKH$WWULEXWHVEXWWRQ
,QWKH7DVNZLQGRZVHOHFW*HQHUDOWDVNDQGFKRRVHWKH
7UDQVIHUEXWWRQ
([LWWKHZLQGRZDQGVDYH\RXUWDVNDJDLQ
Task Blank
&KRRVHWKH&UHDWHEXWWRQ
2QWKH%DVLFGDWDWDESDJHHQWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPH ,QSXW'DWD
Abbr: Z##_TS_2
Method Display
&KRRVHWKH6DYHEXWWRQ
$QVZHU<HVWRWKHSURPSW7UDQVIHUPLVVLQJHOHPHQWVIURPWKHREMHFW
PHWKRG"
$GGLWLRQDOGDWD$JHQWDVVLJQPHQW0DLQWDLQ
3RVLWLRQ\RXUFXUVRURQWKHWDVNKLJKOLJKWHGLQOLJKWJUHHQDQGFKRRVH
(GLW $WW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BB2%-(&7B,'
'RXEOHFOLFNWKH0DWHULDOILHOG
The value &_WI_OBJECT_ID.MATERIAL& has been inserted after your
work item text "Display changes of material".
(Note: The & sign is a placeholder for the variable.)
Make sure that there is at least one space before the first & sign and one
space after the second & sign.
Enter your text, for example "Display changes for requested material...".
Position the cursor after "material" and choose:
,QVHUW([SUHVVLRQ
&OLFNRQWKHSOXVVLJQQH[WWR\RXUREMHFWW\SH<0$5$GLVSOD\HGDV
%86B*URXSB
'RXEOHFOLFNWKH0DWHULDOILHOG
7KHSDUDPHWHUYDOXH B:,B2%-(&7B,'0$7(5,$/ KDVEHHQ
LQVHUWHGDIWHU\RXUGHVFULSWLRQWH[W
&KRRVHWKH%DFNEXWWRQWRUHWXUQWRWKH6WDQGDUG7DVN&KDQJH
VFUHHQ
Again, make sure that there is at least one space before the first & sign and
one space after the second & sign.
6WDQGDUGWDVN6DYHRUWKH6DYHEXWWRQ
1-4-5 Test the task "Change documents for material" again. Open another session
and go to the Business Workplace.
Write down your work item text:
________________________________________________
The task description of your work item is displayed in the lower part of the
screen. Afterwards end that session.
To complete this work item, click on the "Complete processing of step"
button in the "This Work Item Has To Be Completed Explicitly" dialog box.
Why was this additional dialog box displayed?
<RXKDYHVHWWKH&RQILUPHQGRISURFHVVLQJIODJ
5HWXUQWRWKH6$3(DV\$FFHVVPHQXE\FKRRVLQJWKH%DFNEXWWRQ
JUHHQDUURZ
1-5-1 Insert your task "Display changes" as the new first step into your workflow.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV!%XVLQHVV:RUNIORZ!'HYHORSPHQW!'HILQLWLRQ7RROV!
:RUNIORZ%XLOGHU
<RXUZRUNIORZWHPSODWHLVGLVSOD\HG
2QWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQVHOHFWWKHHYHQW:RUNIORZ
VWDUWHG
7KHQFKRRVH(GLW&UHDWHRUWKH&UHDWHEXWWRQ
&KRRVHWKH$FWLYLW\EXWWRQDQGHQWHU\RXUWDVNQXPEH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WDUWHGZRUNIORZV
ZRUNIORZZRUNLWHPIRU:6
ZRUNIORZZRUNLWHPIRU:6
ZRUNIORZZRUNLWHPIRU:6
([HFXWHGZRUNLWHPV
ZRUNLWHPIRU76
ZRUNLWHPIRU76
ZRUNLWHPIRU76
)RUZDUGHGZRUNLWHPV
ZRUNLWHPIRU76
SAP AG 1999
n The functions for displaying executed and forwarded work items are available from Release 4.6
onwards.
n These functions are in the Business Workplace Outbox folder.
SAP EASY ACCESS - SAP Business Workplace, or Office - Workplace.
:KLFKWDVNVDQGZRUNIORZVXVH
WKHREMHFWW\SH1RWLILFDWLRQRIDEVHQFHLQWKHLU
GHILQLWLRQ"
2EMHFWW\SH
1RWLILFDWLRQRI
DEVHQFH :KLFKLQVWDQFHVDUHWKHUHIRUWKHZRUNIORZVDQG
WDVNVWKDWXVHWKHREMHFWW\SH
1RWLILFDWLRQRIDEVHQFHLQWKHLUGHILQLWLRQ"
2EMHFW
:KLFKZRUNLWHPUHIHUVWRWKHREMHFW
1RWLILFDWLRQRI
RIWKHREMHFWW\SH1RWLILFDWLRQRIDEVHQFH
DEVHQFH
DQGZKLFK%XVLQHVV:RUNSODFHLVLWLQ"
QXPEHU
SAP AG 1999
l &RQVLVWHQF\FKHFN
7DVNGHILQLWLRQ
&XVWRPL]LQJRIWKHZKROHZRUNIORZV\VWHP
l (YHQW
6LPXODWLRQ
(YHQWWULJJHUSURYLGHLQSXWGDWD
(YHQWWUDFHVZLWFKRIILQSURGXFWLRQ
l 5)&/RJV
l 0DQXDOVWDUWRIDWDVNRUZRUNIORZ
)LUVWUHIUHVKWKHRUJDQL]DWLRQDODVVLJQPHQW
DQGWKHQSURYLGHLQSXWGDWD
SAP AG 1999
n Before you process a workflow in the development system, you should see only green lights on the
screen for Customizing of the whole workflow system. Always check SWU3 if you suspect an error
in the workflow system.
n The event simulation is a what if'game.
The system will inform you about the consequences of such an event, without actually triggering it.
If there are errors in event linkage you will receive a list of identified problems.
To find event simulation, choose Utilities - Events - Simulate Event
n The event trigger will ultimately trigger the event. You can use this to test whether your workflow
works properly without having to create the event in the application.
To find event triggering, choose Utilities - Events - Create Event
n In the development system, the event trace should be switched on.'
Periodically, the workflow system administrator should remove this physical file.
In the productive system, the event log should be switched off for performance reasons.
To find the event trace, choose Utilities - Events - Event Trace
n The RFC log provides an overview of RFC problems.
To find the RFC log, enter transaction SM58.
n You can start a task or a workflow manually for test purposes using the transaction SWUS, or from
the Workflow Builder using the test icon.
7KHIROORZLQJVWHSVDUHILOWHUHGRXWLQWKHGLVSOD\IRUEXVLQHVVXVHUV
&RQWDLQHURSHUDWLRQ
(YHQWFUHDWRU
3URFHVVFRQWURO
8QGHFLGHGVWHSV
$FWLYLW\DQGXVHUGHFLVLRQ
DVORQJDVWKH\DUHPDUNHGZLWKWKHRSWLRQ1RWLQ
ZRUNIORZORJ
7KHGLVSOD\LVQRWILOWHUHGIRUWHFKQLFDOXVHUV
SAP AG 1999
n The workflow log provides different modes for various information requirements. Each mode
answers particular questions and is aimed at a particular user group. The following modes are
available:
Modes for agents with no technical information.
Modes with technical details, as required, for example, by a workflow administrator.
n The standard display is the log for the business user.
n Your personal display depends on the mode you have chosen in your personal workflow settings. If
you have chosen the technical mode there, the display is not filtered.
n Workflow administrators should activate the technical view, so that they do not get any simplified
views. (This could mean viewing a workflow in a workflow log, but not seeing all the steps, and
therefore possibly making an incorrect diagnosis.)
5HTXHVWFUHDWHG
$SSURYH
UHTXHVW
Approved
Rejected $JHQWDQGZRUN
8VHU LWHPVWDWXV
GHFLVLRQ 6HQG
PDLO
Delete request "!$#&%"#
'
(
:LWKGUDZ &KDQJH
DSSOLFDWLRQ UHTXHVW 6WDUWHGDQG
H[HFXWHG
VWHSVDQG
Request deleted Request changed Yes
ZRUNIORZV
5HVXEPLW
UHTXHVW
No
:RUNIORZ
WHUPLQDWHG
SAP AG 1999
n The graphical workflow log supplements the information in the text. The flow of workflow steps that
have already been processed is marked by the green line in the graphical representation of the
workflow definition.
You can tell at first glance which "route" a workflow instance has taken, and which activities are
processed in parallel to your own activities within a business process.
In contrast to the workflow log in text form, the graphical workflow log also shows the future steps
of a workflow instance. You can therefore see how a process is continued after executing your
activity.
n The technical basis of the graphical workflow log is the graphical workflow editor. To display the
graphical workflow log, the relevant workflow definition is read and combined with the runtime
information.
n The graphical workflow log in the view without event-driven process chains (EPCs) has the same
advantages as the graphical workflow editor:
Space-saving presentation
Improved clarity
n Work items that have already been processed or are currently being executed are marked with their
status icon. In addition, the current agents and the work item status are shown below a node.
+,"-,.& #
/ "0
**)
"-,." #
& " IJ & "
+14325( / 6(" *)
7 #
/8 # 8 9
0 8 $JHQWDQGZRUN
3 "!$#&%&#
:;1
6( >=< 0
I'
LWHPVWDWXV
"&-,." # "-,." #
?@0 8 A# &
8 < 0 ! < 0
"-,. # &-,." #
+;1"&-,.& # +,"-,." # &RORUFRGLQJRI
(
/ < 0
&" VWDUWHGDQG
H[HFXWHGVWHSV
+;&B # .*C 8 DQGHYHQWV
&-,." #
D E #
F 6 8 &0"
!GH &!
!
( ( 8
0 (
SAP AG 1999
n The graphical workflow log is also available in the "event-driven process chains" view: Up to and
including Release 4.0, this was the only possible form of representation.
Yellow and crossed-out nodes show which steps have already been executed or are currently
being processed.
The current agent and the work item status are shown below a node.
n To call the view using EPC, choose the following:
Workflow Builder - Extras - Options - Graphic,
or from the graphic log using Extras - Options - Graphic
l ,PSRUWDQW7KHJUDSKLFDOZRUNIORZORJGLVSOD\VWKHZRUNIORZ
GHILQLWLRQDQGDOVRWKHUXQWLPHGDWD
l ,IDYHUVLRQRIDZRUNIORZGHILQLWLRQLVFKDQJHG
FRQVLGHUDEO\DQGLQFRPSDWLEO\E\
$GGLQJVWHSV
'HOHWLQJVWHSV
0RYLQJEORFNVFXWWLQJSDVWLQJHWF
DQGQRQHZYHUVLRQLVFUHDWHG
l WKHJUDSKLFDOZRUNIORZORJPD\QRORQJHUUHSUHVHQWZKDW
RFFXUUHGSUHYLRXVO\
SAP AG 1999
n This problem will occur mainly in the development and test phase, if a workflow definition is
changed, executed, changed and executed again, and so on.
n While the workflow log in list form only formats past values from the workflow runtime tables in a
list, the graphical workflow log shows the version of the workflow executed as it is currently
defined.
n If the version has been notably changed, the graphic displays the changed workflow definition, but
the workflow process differs from this. The graphical workflow log therefore tries to enter
information from the runtime tables into a workflow definition that looks totally different. How can
you identify this problem?
Steps seem to have been skipped (particularly apparent in a sequence)
All steps are shown as "executed", even those in an alternative (not loop)
The workflow is terminated, but you cannot determine a direct consequence of the workflow
execution.
1RWLILFDWLRQRIDEVHQFH
:RUNLWHPVWDWXV
&UHDWHUHTXHVW &RPSOHWHG
$SSURYHUHTXHVW &RPSOHWHG
$FFHVVWR
6HOHFWHGDJHQWV
3RVVLEOHDJHQWV
$FFHVVWRZRUN ([FOXGHGDJHQWV
LWHPKLVWRU\
$FFHVVWRJUDSKLFDO
ZRUNIORZORJ
SAP AG 1999
n The "Workflow chronicle" tab page in the workflow log (ActiveX) shows a hierarchical display of
all the steps of the workflow that have already been processed or are due to be processed. If the
workflow has a structure of (sub-)workflows, these are also displayed.
n The function "Details" lists the following details for one step in the lower part of the screen:
Who carried out what detailed action with what result on these work items.
When this action was executed.
Which objects were involved.
n The function "Agents" shows:
Selected agents
Possible agents
Excluded agents for a step
n The function "Graphic" leads to the graphical workflow log.
n The different views (Workflow chronicle, Workflow agents, Workflow objects) are also available in
the workflow log in the user view (without ActiveX), using the "Views" menu.
3DWULFN6FKPLGW
+XJR%RVV
$SSURYHUHTXHVW 'LDORJVWHSFUHDWHG
$SSURYHUHTXHVW 4XHU\VHQW
$SSURYHUHTXHVW :RUNLWHPSURFHVVLQJFRPSOHWHG
:RUNIORZ6\VWHP
6HQGPDLO %DFNJURXQGZRUNLWHPFUHDWHG
6HQGPDLO :RUNLWHPSURFHVVLQJFRPSOHWHG
SAP AG 1999
n The tab page "Workflow agents" of the workflow log (ActiveX) displays the employees involved in
this workflow so far. The following entries are contained for every employee:
Which action was executed in which step
When was this action executed.
Which objects were involved.
n This view mainly indicates which role an employee has played in executing a workflow.
1RWLILFDWLRQRIDEVHQFH
:,IRUVHOIPHWKRG
$SSURYHUHTXHVW 'LDORJVWHSFUHDWHG
SAP AG 1999
n The "Workflow objects" tab page lists the objects that are connected with the workflow or that have
been called by the workflow execution so far. These objects are:
The "leading" object of the workflow
Attachments and objects that have been added in the individual steps of the workflow.
n The following are listed for each object:
Who carried out what detailed action in what task.
When this action was executed.
n This view therefore shows what information was created and processed in what way.
|~}1
4 } ;*,J}Z
}
|~}1
4 }S5H* ;*,J}Z
}
S5H;H **
56;,5 H *H
5 H(5 1Hj1I
56H4 '
;S*; * G,(,*;(4* S;6};
|~}1
4 }t,}1; ;
SAP AG 1999
n The workflow log (non-ActiveX version) can be switched to an expert mode that displays technical
details. This includes:
All steps: Hidden steps are also displayed.
All information, warnings and errors that appeared during execution.
Access to the workflow container and the relevant work item containers (container display
extended to display the attributes for object container elements).
Display of work item IDs.
n In addition, all the functions and information of user mode are available.
n From the standard log, you can go to the technical display by choosing Goto - List with technical
details - Goto.
l 7RDQDO\]HWKHDFFXPXODWHG
ZRUNIORZUXQWLPHGDWDWKHUH
DUHDORWRIVWDQGDUGGHOLYHUHG
UHSRUWV
l <RXFDQPDQXDOO\VWDUWDWDVN
RUZRUNIORZDQG\RXFDQ
PDQXDOO\WULJJHUHYHQWVIRU
WHVWLQJ
SAP AG 1999
8QLW0RQLWRULQJDQG$QDO\VLV
7RSLF:RUNIORZ5HSRUWV
For the following reports, use as many options as you like. See the
solutions for help.
8QLW0RQLWRULQJDQG$QDO\VLV
7RSLF:RUNIORZ5HSRUWV
From the Started workflows overview area, you can select a GLDORJ
ZRUNLWHP or a EDFNJURXQGZRUNLWHP from the work item list. The
work item steps are displayed below in the Detail area. To go to the
workflow log, choose any of these steps followed by the Workflow
log button.
There are three views in the workflow log display: View: Workflow
Chronicle (what was processed when), View: Workflow Agents (who
processed what), and View: Workflow Objects (what was processed).
,QWKH:RUNIORZ/RJVFUHHQFKRRVH
*RWR/LVWZLWKWHFKQLFDOGHWDLOV
Work item display
,QWKH:RUNIORZ/RJVFUHHQVHOHFWDVWHSIURPWKH2YHUYLHZDUHD
WKHQFKRRVH*RWR/LVWZLWKWHFKQLFDOGHWDLOV
<RXFDQDOVRVHOHFWWKH/LVWZLWKWHFKQLFDOGHWDLOVEXWWRQDQG
GRXEOHFOLFND:RUNIORZVWHS7KLVGLVSOD\VWKH'LVSOD\:RUNLWHP
VFUHHQ
To obtain further information for the displayed work items, choose the
relevant function from the Display work item screen:
Agent info
*RWR$JHQW3RVVLEOHDJHQWV
Containers
([WUDV&RQWDLQHUV
Object links
:RUNLWHP2EMHFW'LVSOD\
1RWH: Before you can execute one of the above functions, you must
position the cursor on the respective work item.
7RVWDUWZRUNLWHPDQDO\VLVFKRRVHWKHIROORZLQJIURPWKH6$3(DV\
$FFHVVPHQX
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW5HSRUWLQJ :RUN
,WHP$QDO\VLV.
6HOHFWWKHGLIIHUHQWZRUNLWHPDQDO\VLVW\SHV
'RXEOHFOLFN:RUNLWHPVSHUWDVN.
,QWKH:RUN,WHPV3HU7DVNVFUHHQVHOHFWWKHIROORZLQJUDGLR
EXWWRQV:
,QWKH0RQLWRULQJSHULRGIUDPH
7KHZRUNLWHPHYDOXDWLRQVDOZD\VUHIHUWRDPRQLWRULQJSHULRG
6HOHFW7RGD\.
,QWKH:RUNLWHPW\SHIUDPH
<RXFDQVSHFLI\WKHZRUNLWHPW\SHDVDQRWKHUVHOHFWLRQFULWHULRQIRU
WKHZRUNLWHPVWREHDQDO\]HG.
<RXFDQPDNHPRUHWKDQRQHVHOHFWLRQ<RXPXVWVHOHFWDWOHDVWRQH
ZRUNLWHPW\SH
Make sure that the entries for the task filter and work item types are not
mutually exclusive.
,QWKH7DVN)LOWHUIUDPHRSWLRQDO
<RXFDQOLPLWWKHZRUNLWHPVWREHDQDO\]HGE\VSHFLI\LQJWKH
XQGHUO\LQJWDVN.7KLVLQIRUPDWLRQLVRSWLRQDOEXWUHFRPPHQGHGIRU
WKLVH[HUFLVHWRUHVWULFWWKHGLVSOD\HGRXWSXWRI\RXUH[HFXWHGZRUNIORZ
WDVN
,QWKH:RUN,WHPV3HU7DVNVFUHHQFKRRVH
$QDO\VLV([HFXWHRUWKH([HFXWHEXWWRQ
The work items of the specified type, or for the specified tasks in the
specified monitoring period are displayed. The list is sorted according to
WDVN.
Repeatedly double-clicking an entry displays the following information:
Detailed information for a shorter period (only for monitoring periods
of more than one day.)
List of all work items for a task with GDWH, VWDWXV, and possibly the
DJHQW.
Work item display for work items of single-step tasks; workflow log
for workflow work items.
'RXEOHFOLFN:RUN,WHPV:LWK0RQLWRUHG'HDGOLQHV.
5HSHDWWKHFKRLFHVRXWOLQHGDERYHLQWKH:RUN,WHPV:LWK0RQLWRUHG
'HDGOLQHVVFUHHQ
&KRRVH$QDO\VLV([HFXWHRUWKH([HFXWHEXWWRQ
If the work items of the specified type or specified tasks were subject to
deadline monitoring, information is given on how often these deadlines
were exceeded within the specified monitoring period. The list is sorted
according to WDVN.
'RXEOHFOLFN:RUNLWHPV%\3URFHVVLQJ'XUDWLRQ.
5HSHDWWKHFKRLFHVRXWOLQHGDERYHLQWKH:RUN,WHPV%\3URFHVVLQJ
'XUDWLRQVFUHHQ
&KRRVH$QDO\VLV ([HFXWHRUWKH([HFXWHEXWWRQ
Specifies the process duration of work items of the specified type or for
the specified tasks. The list is sorted according to task.
6WDUW:RUNORDG$QDO\VLVIURPWKH5HSRUWLQJIROGHU
'RXEOHFOLFN:RUNORDG$QDO\VLV
,QWKH:RUNORDG$QDO\VLVVFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
,QWKH5HVSRQVLELOLW\IUDPH
)LHOG1DPH ,QSXW'DWD
,QWKH3HULRGIUDPH
&KRRVHWKHSHULRGIRUZKLFK\RXZDQWWRGHWHUPLQHWKHZRUNORDGE\
VHOHFWLQJWKH7REHSURFHVVHGE\UDGLREXWWRQ
&KRRVH:RUNORDG([HFXWHRUWKH([HFXWHEXWWRQ
Task analysis returns information from the environment of the task and
workflow definition. It does not provide runtime information.
6WDUW:RUNORDG$QDO\VLVIURPWKH5HSRUWLQJIROGHU
)URPWKH7DVN$QDO\VLVIROGHU
'RXEOHFOLFN7DVNVLQ:RUNIORZV
7\SHRI(YDOXDWLRQ
:KHUHXVHGOLVW
IRUWDVNVLQZRUNIORZGHILQLWLRQV
IRUREMHFWW\SHVLQZRUNIORZGHILQLWLRQV
)URPWKH7DVN$QDO\VLVIROGHU
'RXEOHFOLFNWKH7DVNV3URILOHLFRQ
7\SHRI(YDOXDWLRQ
$XWKRUL]DWLRQWRH[HFXWHDQGVWDUWWDVNV
1RWH'RXEOHFOLFNWKHWDVNVGLVSOD\HGLQWKHLQGLYLGXDODQDO\VHVWR
GLVSOD\WKHLUGHILQLWLRQ
6WDUWWKLVUHSRUWIURPWKH6$3(DV\$FFHVVPHQX
2SHQWKH5XQWLPH7RROVIROGHU
'RXEOHFOLFN:RUNIORZV)RU2EMHFW
,QWKH&KRRVH,QIR+HOSGLDORJER[FKRRVHWKH,QIRV\VWHPEXWWRQ
(QWHU
LQWKH2EMHFWW\SHILHOGDQGFKRRVHWKH([HFXWH(QWHU
EXWWRQ
)URPWKH%XVLQHVVREMHFWVVHOHFW)250$%6(1&)RUP: 1RWLILFDWLRQ
RIDEVHQFH
&KRRVHWKH>$FFHSW(QWHU@EXWWRQ.
(QWHUWKHQXPEHURI\RXUODVW1RWLILFDWLRQRIDEVHQFHUHTXHVW
$IWHUZDUGV\RXFDQGLVSOD\DEUHDNGRZQRIWKHZRUNIORZORJIRUWKLV
ZRUNIORZDQGFKHFNZKLFKDJHQWVKDYHEHHQLQYROYHGLQWKHSURFHVVVR
IDU
Use this report to display work items that were recently started .
6WDUWWKH:RUN,WHP6HOHFWLRQUHSRUWLQWKH6$3(DV\$FFHVVPHQX
2SHQWKHIROGHU8WLOLWLHV
'RXEOHFOLFNWKH:RUN,WHP6HOHFWLRQLFRQ
,QWKH6HOHFWLRQ5HSRUWIRU:RUN,WHPVVFUHHQ\RXZLOOQRZH[HFXWH
WKLVUHSRUWXVLQJWKHGHIDXOWRSWLRQV
$IWHUZDUGVXVHDQRWKHUVHWWLQJIRUH[DPSOH7\SH)DQG6WDWXV
&RPSOHWHG8VHWKH)NH\IRULQSXWKHOS%HIRUH\RXVWDUWWKH
UHSRUWGHOHWHWKH7LPHFUHDWHGHQWU\DQGFKRRVH3URJUDP
([HFXWHRUWKH([HFXWHEXWWRQ
7KLVUHSRUWVHWWLQJZLOOJLYH\RXDOLVWRIDOOZRUNIORZVFRPSOHWHGWRGD\
'LVSOD\WKHZRUNIORZORJWRILQGWKHDJHQWZKRSDUWLFLSDWHGLQWKLV
SURFHVV
Also use transaction SM58 with the user name to obtain a longer list.
6WDUWWKH5)&PRQLWRUIURPWKH6$3(DV\$FFHVVPHQX
2SHQWKH(YHQWVIROGHU
'RXEOHFOLFNWKH:RUNIORZ5)&0RQLWRULFRQ
In case of errors, double click the status text to obtain more information.
5XQWKHGLDJQRVLVRIZRUNIORZVZLWKHUURUVUHSRUWE\FKRRVLQJ
$GPLQLVWUDWLRQ:RUNIORZ5XQWLPH
'RXEOHFOLFN'LDJQRVLV2I:RUNIORZV:LWK(UURUV
If an error has occurred, display the work item with the error. For more
information, double-click the work item.
&RQWHQWV
l &RQWDLQHUV
l &RQWDLQHUELQGLQJV
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l &UHDWHDZRUNIORZFRQWDLQHUHOHPHQW
l &UHDWHDWDVNFRQWDLQHUHOHPHQW
l 8QGHUVWDQGDQGFKHFNFRQWDLQHUELQGLQJV
l &UHDWHFRQWDLQHUELQGLQJVE\GHPDQG
SAP AG 1999
SAP AG
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l 7KHPDWHULDOEXVLQHVVSURFHVV\RXZDQWWRVXSSRUW
ZLWKZRUNIORZKDVGLDORJVWHSV
l ,QIRUPDWLRQSDVVHGLQWRDWDVNLVLPSRUWHGDWWKH
EHJLQQLQJRIWKHZRUNIORZRUSURGXFHGE\SULRUVWHSV
l <RXZDQWWRNQRZKRZGDWDLVVWRUHGLQFRQWDLQHUV
DQGFDQEHXVHGLQODWHUVWHSV
SAP AG 1999
SAP AG
$FKDQJHWRWKHPDWHULDOPDVWHUWULJJHUV
HYHQWROGBPDWHULDOBFKDQJHG Data transferred to event container
0DWHULDOREMHFW3
/DVWFKDQJHGE\8VHU-RQHV
starts
:RUNIORZ3URFHVVFKDQJHWRPDWHULDOPDVWHUGDWD
(YHQWFRQWDLQHU
-RQHV B(97B&5($725
3 B(97B2%-(&7
7DVN &RQWDLQHUWDVN
'LVSOD\PDWHULDO 0DWHULDOPDVWHU
PDVWHU B:,B2%-(&7B,'
5ROHFRQWDLQHU
2UJREMHFW B:)B,1,7,$725
SAP AG 1999
n User Jones changes the material master P-100 and therefore triggers the event
old_material_changed.
The event triggers the workflow "Change material master".
n In the event container, the object reference and the person who triggered the event are transferred
from the event.
The variable for the person who triggered the event is _EVT_CREATOR, the variable for the object
reference is _EVT_OBJECT.
n Both values are transferred from the event container into the workflow container.
The person who triggered the event becomes the workflow initiator (_WF_INITIATOR).
The object reference variable depends on the object used.
n The workflow container variables are available throughout the workflow runtime.
n The task containers are created from the workflow container.
Caution: The task containers do not know your variables
Each task container must be provided from the workflow container.
n In each task container there is a variable _WI_OBJECT_ID for the object reference.
The task recognizes the object reference, because the object type must be specified when defining the
task.
n The changed material master flows from container to container as follows:
First it is an event object, then it is stored as ZBUS1001 in the workflow container, and from there
enters the different task containers.
l 4XHVWLRQDWGHILQLWLRQWLPH
:KDWGDWDKDVWREH
Definition of modeling and
WUDQVIHUUHGWRVXSSRUWWKH
SURFHVV"
assignment rules which are
implemented at runtime for
w 7UDQVIHUULQJGDWDIURP
RQHFRQWDLQHUWRDQRWKHU
FRQWDLQHU :RUNIORZ 7DVN
FRQWDLQHU FRQWDLQHU
w $VVLJQLQJLQLWLDOYDOXHV
WRVRPHFRQWDLQHU
HOHPHQWV
l 5XQWLPH
Binding definition is executed at
runtime
w 7KLVPHDQVGDWDLVPRYHG
IURPRQHFRQWDLQHUWR
DQRWKHU
SAP AG 1999
n Binding definition - Definition of modeling and assignment rules introduced at runtime for
Transferring the data from one container to another container
Assigning values to container elements.
n The workflow container is on the left hand side in the Workflow Builder.
n When defining the tasks, choose the "Container" button for the task definition.
n The binding definition is always executed with reference to the elements of a container. This means
that an expression is assigned to the container element or the container element is assigned to an
expression.
n At definition time the system automatically generates a proposal for the required bindings.
Each binding generated must be checked for correctness.
n When entering the task, choose the "Binding" buttton to find the binding between the workflow and
task containers in the workflow step.
For the binding to the role container, choose the button "Binding" in the box "Agent".
In the workflow basic screen, the binding from the event to the workflow container is on the
"Triggering events" tab page.
l 7DEOHOLNHGDWDVWUXFWXUHXVHGIRU
)LHOGYDOXHV
2EMHFWUHIHUHQFHV Runtime: Object reference to object type
in accordance with data type reference
:6%LQGLQJLQZRUNIORZVWHS$SSURYHQRWLILFDWLRQRIDEVHQFH
'LVSOD\RIDOOSRVVLEOHYDULDEOHV
XVLQJ6KRZOLQHV
7DVN
7DVN :RUNIORZ
:RUNIORZ
6WDQGDUGVFUHHQLQFKDQJHPRGH
SAP AG 1999
n The upper part of the screen shows the binding from the workflow container into the task container.
The lower part of the screen shows the binding from the task container back into the workflow
container.
n Not all container elements are visible by default. You can use the "Show lines" icon to make them
visible for processing.
n Use the input help (F4) for values.
:RUNIORZ WDVN
n The WDVNFRQWDLQHUalways contains an element that can store the reference to the object to be
processed in the respective single-step task (_WI_Object_ID). It also contains the element
"_WI_Actual_Agent". This is the agent who actually executed the work item. For synchronous tasks
with a defined result parameter, the _WI_Result'element can store
the result of the underlying object method.
n The ZRUNIORZFRQWDLQHUalways contains an element that can store the user name of the initiator
of the current workflow (_WF_Initiator). For most workflows you have to create a new element in
the workflow container. To do this you can either go along with the SAP proposals, or you can create
your own element. For example, you have to provide a storage element for the main object of your
process.
n The HYHQWFRQWDLQHUalways contains an element that can store the (object) reference to the object
whose change of status is announced using the event '_EVT_Object' . It also always contains an
element with the name of the user responsible for changing the status of the object ('
_EVT_Creator' ).
n The UROHFRQWDLQHUcontains the elements required as input in connection with the role resolution to
be run at runtime.
If a default role is defined for the entry, the binding can also begin from the entry in the role.
n The PHWKRGFRQWDLQHUcontains elements which are import parameters in connection with the
method execution.
Notification of
absence created
QRWLILFDWLRQRIDEVHQFH
5HIHUHQFHWRREMHFWW\SH
Approve notification
of absence
approved rejected
Change notification
6HQGPDLO of absence ?
No Yes
Delete notification
mail sent of absence
deleted revised
Yes
Re-submit
for
No
:RUNIORZ
approval ?
Complete
FRQWDLQHU
workflow
Workflow
completed
SAP AG 1999
Notification of
absence created
QRWLILFDWLRQRIDEVHQFH
5HIHUHQFHWRREMHFWW\SH
Change notification
of absence
approved rejected
Change notification
6HQGPDLO of absence ?
No Yes
Delete notification
mail sent of absence
deleted revised
Yes
Re-submit
for
No approval ?
Complete
workflow
:RUNIORZ
Workflow FRQWDLQHU
SAP AG 1999
completed
Notification of
absence created
3HUVRQVXEPLWWLQJQRWLILFDWLRQRIDEVHQFH
QRWLILFDWLRQRIDEVHQFH
Change notification
5HIHUHQFHWRREMHFWW\SH
of absence
approved rejected
Change notification
6HQGPDLO of absence ?
No Yes
Delete notification
mail sent of absence
deleted revised
Yes
Re-submit
for
No approval ?
Complete
:RUNIORZ
workflow
Workflow FRQWDLQHU
SAP AG 1999
completed
n If the role resolution of a workflow step requires an import parameter, then those values have to be
provided from the workflow container.
n Binding
Workflow container -> Role container
&_WF_INITIATOR& -> &ORG_OBJECT&
B(97B&5($725
B(97B2%-(&7
:RUNIORZ
FRQWDLQHU &+$1*(7DVN
FRQWDLQHU
B:,B$FWXDOB$JHQW
&KDQJH 0$7(5,$/
PDWHULDO 5ROHFRQWDLQHU
&KDQJHGBE\
B:,B2EMHFWB,G
=BFKDQJHGBE\
SAP AG 1999
6FHQDULR,QDZRUNIORZIRUSURFHVVLQJRUGHUV\RXZDQWWRSURYLGHDQREMHFW
UHIHUHQFHWKDWUHIHUVWRWKHVROGWRSDUW\WKHFXVWRPHU
9DOXHIURP
6HOI RUGHU
GHILQHG WUDQVIHUUHG
REMHFW IURPWKH
UHIHUHQFH HYHQW
WRFXVWRPHU
SAP AG 1999
n Container elements can also be specifically provided by a workflow step. This involves the container
operation step.
Container operations are necessary, for example, if you want to execute a secondary method in
addition to the main method.
n The binding entered in the workflow step usually only provides the main method.
Secondary methods must be provided using a container operation with valid values.
n If it does not already exist, you must first create the object reference in the workflow container.
For example, you can create an element CUSTOMER in the workflow container that refers to the
object type KNA1 (customer).
n You must then insert the container operation step into the workflow.
Your workflow processes a customer order.
n In the container operation you provide the Customer element with the ordering party value
(ORDERINGPARTY) from the order (Element CUSTOMERORDER) in the workflow container
n &DXWLRQ:
The customer number (database key field) must not be transferred.
You must enter the reference to the whole object "ordering party" (object reference).
l :RUNIORZFRQWDLQHU
)URPWKHFRQWDLQHUHOHPHQWVRIWKHWULJJHULQJHYHQW
)URPWKHH[SRUWSDUDPHWHUVRUUHVXOWVRIDWDVN
)URPDFRQWDLQHURSHUDWLRQVWHS
%\HQWHULQJLQLWLDOYDOXHV
l 7DVNFRQWDLQHU
)URPDWHUPLQDWLQJHYHQW
)URPPHWKRGSDUDPHWHUV
%\HQWHULQJLQLWLDOYDOXHV
SAP AG 1999
n How containers are assigned values at runtime is shown in workflow runtime reporting.
n 7DVNFRQWDLQHU:
Display work item (type W) that belongs to the task
Goto ,Technical work item display
Extras Container
n :RUNIORZFRQWDLQHU:
Display work item (Type F), that represents the whole workflow to which the task belongs
Goto - Technical work item display
Extras Container
n The simplest way to view the type F work item (workflow work item):
From the work item display, go to the log and double click the highest level.
The workflow work item is displayed.
l :RUNLWHPWH[W
l 7DVNGHVFULSWLRQ
l 0LVVHGGHDGOLQHWH[WV
GHDGOLQHODWHVWVWDUWGHVLUHGHQG
l 1RWLILFDWLRQWH[W
l ([SRUWLQWHUIDFHWRWKHREMHFWPHWKRG
l ([SRUWLQWHUIDFHWRWKHWDVN
l ([SRUWLQWHUIDFHWRWKHUROH
l &RQWDLQHURSHUDWLRQV
l 6HFRQGDU\PHWKRGV
l &RQGLWLRQ(GLWRU
l 6WDUWFRQGLWLRQVIRUHYHQWV
SAP AG 1999
l &RQWDLQHUVDUHWDEOHOLNHGDWD
VWUXFWXUHV
l &RQWDLQHUVFRQWDLQFRQWURO
LQIRUPDWLRQIRUWKHZRUNIORZV\VWHP
l &RQWDLQHUVDUHXVHGIRUILHOGYDOXHV
DQGREMHFWUHIHUHQFHV
l 'XULQJUXQWLPHWKHGLIIHUHQW
FRQWDLQHUVSURYLGHHDFKRWKHU
ZLWKQHFHVVDU\LQIRUPDWLRQ
ELQGLQJGHILQLWLRQWUDQVIHUV
GDWDIURPRQHFRQWDLQHUWRDQRWKHU
SAP AG 1999
8QLW&RQWDLQHUV
When you create your own workflow, you also have to think about the
data flow. Within a workflow, data is transferred from one container to
the next. You prepare this data flow by defining the binding between
different containers.
1-1 Familiarize yourself with containers in the SAP Workflow system at runtime.
1-1-2 Name at least 2 possible ways to reach the starting point for a runtime
evaluation of a workflow or a task container?
____________________________________________
____________________________________________
1-1-3 You have a work item in your worklist. How do you display the associated
task container?
____________________________________________
1-1-5 You see a particular workflow container. Who is the initiator of this
workflow?
____________________________________________
1-1-6 Looking at the work item for your "Z##_T_1" task, where could you have
used an imported container element?
____________________________________________
____________________________________________
____________________________________________
____________________________________________
____________________________________________
8QLW&RQWDLQHUV3DUW
When you create your own workflow, you also have to think about the
data flow. Within a workflow, data is transferred from one container to
the next. You prepare this data flow by defining the binding between
different containers.
1-2 After the Display material change documents task, insert the Display material
master task
1-3 Name the manager of your organizational unit as the agent for this step.
Choose this person using their position.
1-4-1 How does the first task know which material to work with?
1-5 Activate the workflow and choose the Test button in the Workflow Builder.
In the first step, the change documents are displayed to the workflow initiator.
After the first step has been processed, the manager BC601-MGR## receives a
work item to display.
If you are executing the test as a manager, you will immediately see the material
displayed.
Otherwise, change to a mode in which you are registered as a manager, and execute
the work item to be sure that your material was correctly transferred. If you have
problems executing the work item, use Refresh in the inbox of your
organizational chart.
8QLW&RQWDLQHUV$GGLWLRQDOH[HUFLVH
7RSLF8VLQJDGRFXPHQWWHPSODWHLQ
ZRUNIORZ
Until now you have created and tested a workflow. You now want to edit,
save, and release some of the workflow runtime data and additional user
data in your own document. The SAP Workflow development
environment provides the following document processing functions for
doing this.
Enter a new step description for each of the starting points Step
executed or Document could not be created .
1-2-3 Which element was created from new in the Workflow Container?
1-2-4 Insert a new activity after the starting point Step executed
This involves the activity Edit document , task
TS71007944.
All tasks for processing document templates can be found in
the task group TG71000004.
Check the binding in both directions.
The agent is the user BC601-MGR##.
8QLW&RQWDLQHUV
1-1 Familiarize yourself with containers in the SAP Workflow system at runtime.
1-1-1 The workflow components with their own containers are:
Workflow
Task
Event
Role
Object method
1-1-4 After you have started the Work item selection report, select Type '
F'
on the Selection Report for Work Items screen. Then choose
3URJUDP([HFXWHRUFKRRVHWKH([HFXWHEXWWRQ
to start the report. Finally, position the cursor on your type F work item,
and choose
*RWR&RQWDLQHU
&KHFNWKHYDOXHLQWKHYDULDEOHB:)BLQLWLDWRU
1-1-6 Looking at the work item for your "Z##_T_1" task, where could you
have used an imported container element?
:RUNLWHPWH[W
7DVNGHVFULSWLRQ
0LVVHGGHDGOLQHWH[WV
1RWLILFDWLRQWH[W
([SRUWLQWHUIDFHIRUREMHFWPHWKRGIRUWDVNIRUUROH
&RQGLWLRQ(GLWRU
6HFRQGDU\PHWKRGV
6WDUWFRQGLWLRQVIRUHYHQWV
&RQWDLQHURSHUDWLRQ
8QLW&RQWDLQHUV3DUW
&KHFNLQJ%LQGLQJ
6$3($6<$&&(66!7RROV!%XVLQHVV:RUNIORZ!'HYHORSPHQW!
'HILQLWLRQ7RROV!:RUNIORZ%XLOGHU
<RXUZRUNIORZWHPSODWHLVGLVSOD\HG
1-7 After the Display change documents of material task, insert the task Display
material master
'RXEOHFOLFNWKHXQGHFLGHGWDVNDIWHU\RXUWDVN&KDQJHGRFXPHQWVIRU
PDWHULDODQGFKRRVHWKH$FWLYLW\EXWWRQ
(QWHU76DVWKHWDVNDQGWKHQXPEHURI\RXUVLQJOHVWHSWDVN'LVSOD\PDWHULDO
PDVWHU8VHWKHLQSXWKHOS)LI\RXQRORQJHUNQRZWKHQXPEHU
1-8 Name the manager of your organizational unit as the agent for this step.
Choose this person using their position.
<RXDUHVWLOOLQWKHWDVNVWHS'LVSOD\PDWHULDO
&KRRVH3RVLWLRQLQWKH$JHQWVER[DQGXVHWKHLQSXWKHOSWRVHDUFKIRUWKH
PDQDJHUSRVLWLRQRI\RXURUJDQL]DWLRQDOXQLW
&KHFNWKHELQGLQJEHWZHHQWKHWZRWDVNV
+RZGRHVWKHILUVWWDVNNQRZZKLFKPDWHULDOWRZRUNZLWK"
7KHWDVN'LVSOD\FKDQJHGRFXPHQWVNQRZVWKHPDWHULDOIURPWKHLQLWLDOYDOXH
HQWHUHGLQWKHVLQJOHVWHSWDVN
,WGRHVQRWNQRZLWIURPWKHZRUNIORZFRQWDLQHU
+RZLVWKHREMHFWWUDQVIHUUHGWRWKHVHFRQGWDVN"
'LVSOD\WKHELQGLQJE\GRXEOHFOLFNLQJWKHLFRQ%LQGLQJH[LVWV
7KHVHFRQGWDVNPXVWKDYHWKHPDWHULDOLQWKHWDVNFRQWDLQHULQWKHYDULDEOH
B:,B2%-(&7B,'7KLVYDULDEOHPXVWEHILOOHGGXULQJELQGLQJLQWKHVWHSIURP
WKHZRUNIORZFRQWDLQHU
%LQGLQJZRUNIORZFRQWDLQHU!7DVNFRQWDLQHU
1RUPDOO\DZRUNIORZLVVWDUWHGXVLQJHYHQWVDQGWKHREMHFWLVWUDQVIHUUHGLQWRWKH
ZRUNIORZFRQWDLQHUE\WKHHYHQWPDQDJHU
%HFDXVHWKHZRUNIORZLVQRW\HWVWDUWHGZLWKHYHQWV\RXPXVWHQVXUHWKDWWKH
ZRUNIORZFRQWDLQHUYDULDEOHLVILOOHGFRUUHFWO\IURPWKHILUVWWDVNRQZDUGV
5HWXUQWRWKHVFUHHQ:RUNIORZ%XLOGHU]ZIBWHVWBFKDQJH
'RXEOHFOLFNWRGLVSOD\WKHZRUNIORZVWHS&KDQJHGRFXPHQWVIRUPDWHULDO
'LVSOD\WKHELQGLQJE\GRXEOHFOLFNLQJWKHLFRQ%LQGLQJH[LVWV
&KHFNWKHELQGLQJ7DVNFRQWDLQHU!:RUNIORZFRQWDLQHULQWKHORZHUSDUWRIWKH
VFUHHQ
<RXPXVWHQVXUHWKDWRQWKHZRUNIORZFRQWDLQHUVLGHDYDULDEOHLVVSHFLILHGWKDW
FDQLQFOXGHWKHHQWU\LQ:,B2%-(&7B,'
8VHWKHLQSXWKHOS)IRUWKLVDQGVHOHFW\RXUPDWHULDOYDULDEOH
1-10 Activate the workflow and choose the Test button in the Workflow Builder.
5HWXUQWRWKHVFUHHQ:RUNIORZ%XLOGHU]ZIBWHVWBFKDQJHDQGFKRRVHWKH
LFRQ&UHDWHDQGDFWLYDWHUXQWLPHYHUVLRQ
7KHQFKRRVHWKH7HVWLFRQ
([HFXWHWKHZRUNIORZWHPSODWH
In the first step, the change documents are displayed to the workflow initiator.
After the first step has been processed, the manager BC601-MGR## receives a
work item to display.
If you are executing the test as a manager, you will immediately see the material
displayed.
Otherwise, change to a mode in which you are registered as a manager, and execute
the work item to be sure that your material was correctly transferred.
If you have problems executing the work item, use Refresh in the inbox of your
organizational environment.
7RGRWKLVFKRRVHWKHIROORZLQJLQWKH%XVLQHVV:RUNSODFHVFUHHQ
6HWWLQJV!:RUNIORZVHWWLQJV!5HIUHVKRUJDQL]DWLRQDOHQ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DWHLFRQ
$QLQSXWKHOSEXWWRQDSSHDUV
8VHWKHLQSXWKHOSWRVHOHFW\RXUGRFXPHQWWHPSODWH
(QWHUWKHZRUNIORZLQLWLDWRUDVDJHQW
1-2-2 Enter a step description on the Outcomes tab page.
&KRRVHWKH2XWFRPHVWDESDJHDQGDVVLJQQDPHV
1-2-3 Which element was created from new in the Workflow Container?
,QWKHQDYLJDWLRQDUHDFOLFNRQWKH:RUNIORZFRQWDLQHUEDU
<RXZLOOVHHWKHHOHPHQW:)B'RFXPHQWBWKDWZDVXVHGLQWKH
ZRUNIORZVWHSXQGHU(OHPHQWIRUGRFXPHQW
1-2-4 Insert a new activity in the outcome Step executed
6HOHFWWKHRXWFRPH6WHSH[HFXWHGIRUWKHDFWLYLW\\RXKDYHMXVWFUHDWHG
&KRRVHWKH&UHDWHEXWWRQDQGWKHQFKRRVH$FWLYLW\
(QWHUWKHWDVN76(GLWGRFXPHQW
$OOWDVNVIRUGRFXPHQWWHPSODWHVDUHLQWKHWDVNJURXS7*
&KHFNWKHELQGLQJLQERWKGLUHFWLRQV7KHZRUNIORZFRQWDLQHUYDULDEOHLV
:)B'2&80(17B
&KRRVHWKHXVHU%&0*5DVWKHDJHQW
1-3 Activate and test the workflow
,QWKH:RUNIORZ%XLOGHUFKRRVHWKHLFRQ&UHDWHDQGDFWLYDWHUXQWLPHYHUVLRQ
&KRRVHWKH7HVWLFRQLQWKH:RUNIORZ%XLOGHU
&RQWHQWV
l 5ROHV
5HVWULFWLQJSRVVLEOHDJHQWV
'HILQLWLRQZLWKUHVSRQVLELOLWLHV
$G+RFZRUNIORZDQGDJHQW
DVVLJQPHQW
5ROHUHVROXWLRQDQGELQGLQJ
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l 'HVLJQDWHUHVSRQVLEOHDJHQWV
l 8VHUROHV
SAP AG 1999
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l ,QWKHPDWHULDOEXVLQHVVSURFHVV\RXZDQW
WRUHVWULFWWKHQXPEHURISRVVLEOH
DJHQWVLQRUGHUWRREWDLQWKRVHXVHUVWKDWDUH
UHVSRQVLEOHIRUWKLVVWHSDFFRUGLQJWR
UXQWLPHGDWD
SAP AG 1999
SAP AG
3URFHVV 2UJDQL]DWLRQ
ZRUNIORZGHILQLWLRQ Business
2UJXQLW
2UJXQLW Workplace
-RE
:RUNOLVW
3RVLWLRQ
3RVLWLRQ
Prio Tasks Date
8VHU,'
1 Approve Form Mar 1
Responsibility 2 Post Invoice Mar 25
5ROH
5ROH 3 Post Invoice Apr 5
IXQFWLRQ
3UHYLRXV
ZRUNIORZ
Your worklist can display
DJHQWV all work items for which
you are a recipient
SAP AG 1999
n Using the agents in the workflow step, and the possible agents for the task, the runtime system
determines the current valid agent for the workflow step.
n All responsible agents, who are also possible agents for the task, will become recipients of the work
item.
n The workflow system only enters this work item once in the work item list.
n All recipients can view this work item by refreshing their worklist.
n You have the option to make fixed agent assignments. These include
Members of organizational units
Owners of positions
Owners of positions who have inherited tasks from job assignment
SAP users
n They can refer to variables (output) of the workflow container.
For example, you can save the agent for the 1st workflow step in a variable of the workflow
container and enter this variable in the 5th step of the workflow as the agent for that step.
n Another possibility are agents who are found dynamically at runtime using a role.
According to runtime entries that are transferred into the role container, a role function module
determines responsible users, for example, the superior of the workflow initiator.
l 5ROHW\SHVFDQEH
5HVSRQVLELOLWLHV
w 'DWDIURPWKHZRUNIORZFRQWDLQHULVDVVLJQHGWRDJHQWV
w 1R$%$3&RGHMXVWFRQILJXUDWLRQ
2UJDQL]DWLRQDOGDWD
w 6$32UJDQL]DWLRQDO2EMHFW7\SHVDUHXVHGWRDVVLJQ
DJHQWV
w 1R$%$3&RGHMXVWFRQILJXUDWLRQ
)XQFWLRQPRGXOH
w $%$3&RGH
<RXDUHIUHHWRGHYHORSHYHU\IXQFWLRQPRGXOH\RXQHHG
SAP AG 1999
:LWK6$3 :LWKRXW6$3
2UJDQL]DWLRQDO6WUXFWXUH 2UJDQL]DWLRQDO6WUXFWXUH
- Particular groups - Fixed user assignment
or positions - Role with responsibilties
- SAP role, for example, Manager for user
- Responsibilities Workflow container element,
for example, workflow initiator
- SAP Org. Objects or last agent
- BBP Manager - SAP Office distribution list
Ad Hoc Selection - New step for the free
- New step for the free selection of the next
selection of the next recipient
recipient - Own ABAP function with
customer tables or SAP tables
- Own ABAP programs
with evaluation path
or self-created
function
SAP AG 1999
l 5ROH Possible
Possible agents:
agents:
Restriction of possible agents Group of all
Group of all
according to organizational model managers
managers
l 6WDQGDUG7DVN'HILQLWLRQ
Approve notification of absence
Linked to job: Head of department
Parameter for role: Employee Responsible
Responsible agent:
agent:
l :RUNLWHPDFWLYLW\DWUXQWLPH
Approve notification of absence 4712
Employee: Marcus Adams
Evaluation of organizational plan
Superior: David Boss
SAP AG 1999
n The role Superior... can be used to route a notification of absence to the responsible superior.
n In this case, Adams wants to go on vacation and only David Boss should receive this work item.
No other possible agents should receive this notification of absence.
l 3RVVLEOH$JHQWVRI7DVN
Post document
Linked to job:
Invoice verification clerk
l 5ROH)LQGLQYRLFHYHULILFDWLRQFOHUN
2 Parameters: Customer
- Customer name names
- Invoiced amount H-N
Customer names
l :RUNLWHPDFWLYLW\DWUXQWLPH O-Z
Post document 4712
Customer - Manley Corp. Invoiced amount: < $ 50,000
Invoiced amount - $ 258,300
Invoiced amount: > $ 50,000
SAP AG 1999
l 0DWHULDO0DVWHUFKDQJHGE\6FKPLG
0DWHULDO 0\BSDUW &KDQJHGRFXPHQWV
2OGPDWHULDO 2ULJLQDOBSDUW
1HZBSDUW
&U
HD Design department
WH CAD engineer position
=%86
G Owner: Schmid Possible 2OGB0DWHULDOB&KDQJHG
E\ 3URGXFWPDQDJHPHQW agents
GHSDUWPHQW
3URGXFWPDQDJHUSRVLWLRQ
7DVN
Owner: Jones
'LVSOD\PDWHULDO
0DWHULDO&RQWUROOHU3RVLWLRQ Selected
Owner: Meier
agents 5ROH
)LQG&RQWUROOHU
,PSRUWSDUDPHWHUV
SAP AG 1999
n Acceptance for this example of a business process:The creator of the material master basic view is
considered to be the material controller.
n Design-Procedurefor the Material Controller Role:
n First - Assign the possible agents to the task.
n Second - Create a role that returns the controller for a given material. You will probably have to
create this role yourself:
Copy an existing role function module (ABAP-program).
Change this program to find the creator of the imported material master.
n Third - Assign this role to your step definition and provide the import parameter. If you use the task
stand alone, you can assign the role directly to the task.
n During runtime this role resolution will return a special user ID. This user becomes a recipient if he
or she is also a possible agent for this task.
l %XVLQHVV:RUNSODFH
6KDUHGIROGHUVULJKWPRXVHEXWWRQ
w &UHDWHQHZVXEIROGHU
1DPH:)B9HUWHLOHU
%XWWRQ'LVWULEXWLRQOLVWV
w &UHDWHEXWWRQ
1DPH:)B9/,67(
7LWOH$Q\WLWOH
)ROGHU:)B9HUWHLOHU
w 7DESDJHGLVWULEXWLRQOLVWFRQWHQW
(QWHUUHFLSLHQW6$3XVHU,'
w 6DYH
SAP AG 1999
l :RUNIORZ%XLOGHU
3URFHVVGLDORJVWHS
$JHQWDVVLJQPHQW
5ROHVZ[BUHDGBGOL
%LQGLQJ:)B9/,67(
(QWHUQDPHRIGLVWULEXWLRQOLVWDVFRQVWDQW
$FWLYDWHZRUNIORZ
l 6WDUWZRUNIORZ
l &KHFNZRUNLWHPUHFLSLHQW
SAP AG 1999
l :K\GRZHQHHGWKLVW\SHRIUROH"
7KHDSSOLFDWRQRIWHQUHTXLUHVWKHDVVLJPHQWRI
UHVSRQVLELOLWLHVWREXVLQHVVREMHFWVVXFKDVIRUH[DPSOH
ZKRLVUHVSRQVLEOHIRUPDWHULDOJURXS[\"
l :KDWLVDUROHRIWKLVW\SH"
$UROHWKDWGRHVQRWKDYHWREHSURJUDPPHG
-XVWFRQILJXUDWLRQQR$%$3FRGH
l +RZDUHWKHVHUROHVGHILQHG"
'HILQLWLRQRIUROHSDUDPHWHUVFRQWDLQHU
5HVSRQVLELOLWLHVSRVLWLRQVRUJDQL]DWLRQDOXQLWVXVHUVHWF
FDQEHGHILQHGIRUYDOXHVRUYDOXHUDQJHVRIWKHSDUDPHWHU
SAP AG 1999
n This type of role can help the application to solve problems, such as finding the person responsible
for a material, without separate tables and role function modules.
n An assigment table is evaluated for role resolution, in which the various instances of the role
parameters are assigned to objects of organizational management (jobs, positions, users,
organizational units).
n If you create a role of this type, you must:
Maintain the elements in the role container
Maintain the responsibility for each possible value/value interval of the role parameter(s) in the
assignment table
Assign responsible agents to the values/value intervals
n Advantages of role definition with reponsibilities:
If an organizational object is deleted, the roles of this type are also updated
Where-used lists for organizational objects also find these roles
No ABAP programming is required
5HSRQVLEOHIRU
(PSOR\HHQDPHV$.
%HUQ 7KRP
'UHLHU
&ODVV
0U6PLWK 0V-RQHV
3HWHUV $GDPV
3RVLWLRQ 6FKXO] 3RVLWLRQ
$GPLQLVWUDWRU /\QQ $GPLQLVWUDWRU
LQ+5GHSW LQ+5GHSW
5RVW
.HUQHU
'UHLHU
$QGUHZV =\OLQN
5HSRQVLEOHIRU
(PSOR\HHQDPHV/=
SAP AG 1999
n The two administrators are responsible for employee queries in a medium-sized business:
Mr. Smith for employees from A to K,
Ms Jones for employees from L to Z.
5ROHFRQWDLQHUGHILQLWLRQEDVLVIRUFRPSDULVRQ
&RQWDLQHUHOHPHQW 'DWDW\SH 1DPH
$UHDRIUHVSRQVLELOLW\ILUVWOHWWHURIVXUQDPH
9DOXHIURP 9DOXHWR 1DPH
$ . (PSOR\HHVIURP$WR. 0U6PLWK
/ = (PSOR\HHVIURP/WR= 0V-RQHV
:KLFKYDOXH :KLFKDJHQW
SAP AG 1999
n To create a role with responsibilites, you must make the following entries.
n 1. Role container
The first letter of the surname is transferred at runtime, so here you are creating an element that is
character long.
n 2. The areas that can be assigned to agents must be defined.
In this case, the areas are "Employees from A to K" and "Employees from L to Z".
n 3. The area "Employees from A to K" is defined by the interval into which the values must fall at
runtime, in order to belong to this area of responsibility.
Likewise for area "Employees from L to Z".
n 4. Finally, the persons responsible are assigned: Use the "Insert agent assignment" button.
n What happens at runtime:
The role just defined is called, and receives a value for "element".
If the current value is between A and K, Mr Smith is the selected agent. If the current value is
between L and Z, Ms Jones is the selected agent.
5ROHSDUDPHWHUVUXQWLPH
Role parameters (definition)
,QSXW
!"
%LQGLQJIURPWDVN
%LQGLQJIURPWDVN
FRQWDLQHURUZRUNIORZ
FRQWDLQHURUZRUNIORZ
FRQWDLQHU
FRQWDLQHU
5ROHUHVROXWLRQ 0DVWHUGDWD
0DVWHUGDWD
2UJDQL]DWLRQDOSODQ
2UJDQL]DWLRQDOSODQ
Function module for &XVWRPL]LQJGDWD
&XVWRPL]LQJGDWD
role resolution Rules
Org. 5HVXOWRI
Org. unit
unit Person
Person UROHUHVROXWLRQ
Job
Job Position
Position
User
User
SAP AG 1999
:RUNIORZ'HILQLWLRQ
Task
displays
list Task
Select Container:
of
recipient Import: Workflow
possible
agents
for next step TaskID 76[\ Container
Task Export:
of
76 6HOHFWHG2EMHFW/LVW $JHQWBOLVW
TS500000xy
on the
screen.
Recipient
Next Responsible agent
chooses
dialog step Expression:
valid
agents
Task $JHQWBOLVW
76[\
as
selected
object list
SAP AG 1999
n Your workflow is very dynamic, and in some steps the responsible agent cannot be determined at the
design stage. Within the workflow, however, each user knows who will execute the next step.
n You can use the task TS30200146 to enable manual selection of the responsible agent for one of the
following steps. This task generates an on-screen list of the possible agents for the subsequent task.
n At runtime, the user who executes the work item for the first step may choose from the list of
possible agents for task TS500000xy.
n All those manually selected responsible agents are transferred to the agent list for the next step.
n The work item of the next step is now available for all users who have a connection to the elements
of the agent list.
n Until Release 4.5, the task for the subsequent step ( TS500000xy ) may not be defined as a general
task.
n Using the wizard "Select agent", you can enter the dispatcher task TS30200146 into your workflow
definition, as well as the subsequent task.
n In Releases before 4.5 this wizard does not exist, and you should use task TS30200141.
With this task you can only select one agent.
l 6WDQGDUGIXQFWLRQVLQWKHZRUNIORZLQER[
$GGDWWDFKPHQW
#
)RUZDUGZRUNLWHP
#
6HQGPDLO
#
&KDQJHZRUNLWHPSULRULW\
#
'HOHWHZRUNLWHPGHDGOLQH
#
l &RQILJXUDEOHRSWLRQV
(LWKHUWKHZRUNIORZLQLWLDWRUDORQHFDQHQWHUQHZDJHQWVRU
#
$QDGGLWLRQDOZRUNIORZVWHSDOORZVVRPHERG\WR
#
GHWHUPLQHWKHQH[WDJHQWDGKRF
SAP AG 1999
)LQDOO\DFWLYDWH )LUVWDVVLJQDOOSRVVLEOHXVHUVWRHDFKGLDORJVWHS
WKHZRUNIORZ
)RUDOODGKRFVWHSVGRQRWDVVLJQDQDJHQWLQWKHDFWLYLW\GHILQLWLRQ
SAP AG 1999
n You can develop a workflow very quickly with the use of task groups.
n After the workflow has been activated, call the function:
Extras - Ad hoc functions - Enable ad hoc agent assignment.
SAP AG 1999
n The menu option "Extras - Ad hoc functions - Enable ad hoc agent assignment"
has also changed the workflow basic type:
See the "Technical Information" tab page in the workflow basic data.
Menu: Workflow Builder - Goto - Basic data
Tab page: Technical information
-> Type of workflow definition: "Ad hoc"
n 1RWH: Ad hoc workflow agent assignment will only work with this ad hoc definition type.
n Finally, reactivate the workflow.
n Next configuration step: "Extras - Ad hoc functions - Test ad hoc agent assignment"
6HOHFWRQH
RUPRUH
DJHQWV
&RS\VHOHFWLRQ
6WDUWWHVW
SAP AG 1999
&KDQJHDJHQW
QGRSWLRQIRUFKDQJLQJWKHDJHQW
)LUVWILQGDQGVHOHFW
7KHQVDYH
SAP AG 1999
n Consequence: The work item is immediately removed from the workflow inbox of the current agent
6HOHFWWKHZRUNLWHPIURPWKHRXWER[RIWKHZRUNIORZLQER[
&KDQJHDJHQW
(QWHUDJHQWIRUDOO
DGKRFVWHSVQRW
\HWFRPSOHWHG
SAP AG 1999
n This is the first of two options for changing the agent at runtime.
1RWHV'RQRWIRUJHWWKHDJHQWDVVLJQPHQWIRUWKLVWDVN
7KHELQGLQJIRUWKLVWDVNUHPDLQVXQGHILQHG
SAP AG 1999
)LUVW 6HFRQG
)LQGSRVVLEOHDJHQWV
(YDOXDWHWKH6WHS
)RUDJHQHUDOWDVNHYHU\
5ROH5HVROXWLRQ
XVHULVDSRVVLEOHDJHQW
7KLUG )RXUWK
(YDOXDWHWKHWDVN 'HOHWHDOOH[FOXGHG
VWDQGDUGUROHLI DJHQWVIURPWKH
QRVWHSUROHH[LVWV UHFLSLHQWOLVW
,IDXVHULVGHWHUPLQHGE\WKH
UROHDQGLVDOVRDSRVVLEOH
DJHQWWKLVXVHULV
DUHFLSLHQW
,IDXVHULVGHWHUPLQHGE\WKH
UROHDQGLVQRWDSRVVLEOH
DJHQWDOOSRVVLEOHDJHQWV
UHFHLYHWKHZRUNLWHP
SAP AG 1999
n Only recipients who are still on the list after the fourth step can execute a work item.
n Most common error situation:
The dialog task has no possible agents assigned to it (this means that there can never be a recipient).
You have to assign possible agents to all dialog tasks, even to those in workflow templates.
n If no agent assignment is entered in the workflow step, the system checks whether a default role is
saved in the workflow step task.
The default role is on the "default roles" tab page in the task definition.
SAP EASY ACCESS -> Tools -> Business Workflow -> Development -> Definition Tools ->
Tasks/Task Groups
l 5ROHVDUHXVHGIRUILQGLQJWKH
UHVSRQVLEOHDJHQWV
l 'XULQJUXQWLPHWKHUROHUHVROXWLRQ
ZLOOGHWHUPLQHRQHRUPRUH
UHVSRQVLEOHDJHQWVIRUDZRUN
LWHP
l 6RPHUROHVDUHVXSSOLHGE\6$3
l <RXFDQFUHDWH\RXURZQUROHV
l 5ROHVGHILQLWLRQXVLQJ
6$3RUJDQL]DWLRQDOREMHFWV
5HVSRQVLELOLWLHV
SAP AG 1999
8QLW5RXWLQJ
7RSLF&UHDWLQJ5ROH5HVROXWLRQ8VLQJ5HVSRQVLELOLWLHV
This procedure will enable you to create a role resolution based on your
own requirements, without writing ABAP code.
By assigning responsibilities to specific field values, you can use a role to
map those responsibilities to your organizational chart.
In this scenario we assume that particular people are responsible for
material groups. If a material is changed, the role will find who is
responsible for that material group and notify them of the change.
1-1 Create a standard role ZMat_group## , and specify the role type as Responsibility. The
role should terminate if no agent can be found.
1-2 Create container entries with ABAP Dictionary field proposals for the table name MARA,
field MATKL. Use the default element name Material Group .
1-3 Define a responsibility and assign a name for this responsibility, such as Matl_grp_001 .
The material group should be 001.
1-4 Define the organizational unit ZWF_ORG_## as the agent for the responsibility.
&DXWLRQ5HPHPEHUWRVHWWKHPDWHULDOJURXSLQ\RXUWHVWPDWHULDO
DSSURSULDWHO\IRUWHVWLQJWKHUROHUHVROXWLRQ
8QLW5RXWLQJ$GGLWLRQDOH[HUFLVH
7RSLF&KRRVH6HOHFWHG8VHUDW5XQWLPH
Your workflow is very dynamic, and in some steps the recipient cannot
be determined at the design stage. Within the workflow, however, each
user knows who will execute the next step.
Execute the first step. This will provide a list of possible agents for the following
step. Select one or more agents, and the work item will be routed to them.
8QLW5RXWLQJ$GGLWLRQDOH[HUFLVH
7RSLF$G+RF:RUNIORZ)XQFWLRQV
Until now you have created and tested a workflow with fixed role
assignment. Now you want to make sending the work item at runtime
more flexible. The SAP Workflow development environment provides the
ad hoc functions for doing this.
1-3 Also change the possible agents of the corresponding single-step tasks.
Deactivate the assignment general tasks ,
and enter four user IDs as possible agents. Use your
own IDs and those of your neighboring group.
1-4 Now call the ad hoc function in the Workflow Builder that prepares the dialog steps
in the workflow for ad hoc processing.
What has changed in your workflow after doing this?
_____________________________________________________________
_____________________________________________________________
_____________________________________________________________
1-8 Change the possible agents for your dialog tasks for material display. These tasks
should now be redefined as general tasks .
1-9 Test your workflow again after you have refreshed the organizational environment.
Has the runtime procedure changed?
_____________________________________________________________
_____________________________________________________________
8QLW5RXWLQJ
7RSLF5ROH5HVROXWLRQ8VLQJ5HVSRQVLELOLWLHV
1-1 Create a standard role ZMat_group## , and specify the role type as Responsibility.
0HQXSDWK7RROV!%XVLQHVV:RUNIORZ!'HYHORSPHQW!'HILQLWLRQ7RROV!
6WDQGDUG5ROHV!&UHDWH,FRQ&UHDWH
%DVLFGDWD
$EEUHYLDWLRQ=0DWBJURXS
1DPH0DWHULDO*URXS
5ROHGHILQLWLRQ
5ROH7\SH5HVSRQVLELOLWLHV
6HWWKHIODJ7HUPLQDWHLIUROHUHVROXWLRQKDVQRUHVXOW
1-3 In the next step, you define the variants that should be in the responsibility,
meaning which agents have which different material group values
&OLFNRQWKH5HVSRQVLELOLWLHVWDESDJH
,FRQ&UHDWHUHVSRQVLELOLW\
2EMHFWDEEUHYLDWLRQ0DWOBJUSB
1DPH0DWHULDOJURXS
(QWHU
6FUHHQ5HVSRQVLELOLW\&KDQJHIRU6WDQGDUGUROH
1DPH0DWHULDOJURXS
2I7R
6DYHWKHUHVSRQVLELOLW\
3RVLWLRQWKHFXUVRURQ0DWHULDOJURXS
,FRQ,QVHUWDJHQWDVVLJQPHQW
'RXEOHFOLFN2UJDQL]DWLRQDOXQLW
6HDUFKWHUP<RXURUJDQL]DWLRQDOXQLW]ZIBRUJB
&KRRVH&UHDWH
Choose the icon "Simulate role resolution" in the upper part of the screen, or use
Shift+F8
Enter 001 as the input value for the material group in the Role container for
runtime , and choose Continue
Your organizational unit should be displayed as the result of the role resolution
1-6-1 Open the Workflow Builder and display your workflow for processing the
material master.
If it is not automatically displayed, choose the menu options:
Workflow Other workflow/version, and enter the number of your
workflow template from zwf_test1_##, or find it using the input help.
Go to the change mode
Double-click the step Display material master
1-6-2 In the screen "Workflow Builder: Change step: Activity": Make sure
that you are on the Control tab page.
Select Role from the pulldown menu in the Agents frame.
1-6-3 Enter your role number in the field next to Role , e.g. 99100131.
1-6-4 The input parameter for the role must be the material group of the object.
In the Binding Responsibility for.. window, use the input help (F4) and
select the Material group attribute from your object type.
1-6-5 Leave the window and re-activate your workflow by selecting the Generate
and activate runtime version button.
SAP EASY ACCESS -> Tools -> Business Workflow -> Development ->
Runtime Tools -> Start Workflow (Test Environment)
Caution: Set the material group in the material master to the correct test
value.
8QLW5RXWLQJ$GGLWLRQDOH[HUFLVH
7RSLF&KRRVH6HOHFWHG8VHUDW5XQWLPH
1-1 Create a single step task that has a specific agent list.
Assume we are working with a task that displays the changes to a material (Task:
z##_choosag, description and work item text: Dynamic agent selection, method:
Display_Changes, Object type: Y##MARA).
There are three users on the list of possible agents: BC601-##, BC601-MGR##, and
WF-BC_MGR.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV7DVNV7DVN
*URXSV
'RXEOHFOLFN&UHDWH
2QWKH7DVN0DLQWDLQVFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPH ,QSXW'DWD
&KRRVH7DVN&UHDWHRUFKRRVHWKH&UHDWHEXWWRQ
2QWKH%DVLFGDWDWDESDJHHQWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPH ,QSXW'DWD
Abbr: z##_chooseag
Method Display_Changes
6DYHWKHVWDQGDUGWDVNV
&KRRVH$GGLWLRQDOGDWD$JHQWDVVLJQPHQW0DLQWDLQ
3RVLWLRQWKHFXUVRURQWKHOLQHZLWK\RXUWDVNQDPHDQGFKRRVH$JHQW
DVVLJQPHQW!&UHDWH
$VVLJQWKHDSSURSULDWHXVHUVLQWKH&KRRVH8VHUGLDORJER[
5HSHDWWKHSURFHVVXQWLODOOWKUHHXVHUVKDYHEHHQDVVLJQHG
7RJHQHUDWHWKHQHZLQGH[SRVLWLRQWKHFXUVRURQWKHWDVNQDPHDQGFKRRVHWKH
5HIUHVKLQGH[LFRQ
:KHQDOOXVHUVKDYHEHHQDVVLJQHGDQGWKHLQGH[KDVEHHQUHIUHVKHGUHWXUQWR
WKH6WDQGDUG7DVN&UHDWHVFUHHQ
&KRRVHWKH6DYHEXWWRQ
&KRRVHWKH%DFNEXWWRQWRUHWXUQWRWKH7DVN0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VHWKH*HQHUDWHDQGDFWLYDWHUXQWLPH
YHUVLRQLFRQ
,QWKH:RUNIORZ%XLOGHUEDVLFVFUHHQVHOHFWWKHHYHQW:RUNIORZVWDUWHG
&KRRVHWKH&UHDWHLFRQ
'RXEOHFOLFNWRFKRRVH$FWLYLW\DQGHQWHUWKHWDVN76LQWKHZRUNIORZ
VWHSGLVSOD\HG
,QWKH$JHQWVVHFWLRQVHOHFW:RUNIORZLQLWLDWRU
,QWKH:RUNIORZ%XLOGHUEDVLFVFUHHQFKRRVHWKH*HQHUDWHDQGDFWLYDWHUXQWLPH
YHUVLRQLFRQ
&KRRVHWKH7HVWLFRQ
7KHZRUNIORZLQLWLDWRUFDQQRZVHOHFWWKHGHVLUHGDJHQWVIRUWKHWDVNVZLWKDGKRF
DJHQWDVVLJQPHQWDWWKHVWDUW
1-17 Change the possible agents for your dialog tasks for material display. These tasks
should now be redefined as general tasks .
'RXEOHFOLFNHDFKGLDORJVWHSLQWKH:RUNIORZ%XLOGHU
<RXFDQJRGLUHFWO\WRWKHDJHQWDVVLJQPHQWRIWKHWDVN
,QWKH7DVNSURSHUWLHVER[FKRRVHWKHLFRQ$JHQWDVVLJQPHQW
6HOHFWWKHWDVNWLWOH
&KRRVHWKH$WWULEXWHVEXWWRQDQGVHWWKH*HQHUDOWDVNIODJ
1-18 Test your workflow again after you have refreshed the organizational environment.
Has the runtime procedure changed?
7KHZRUNIORZLQLWLDWRUFDQQRZHQWHURQHRUPRUHDJHQWV
&RQWHQWV
l 'HDGOLQHPRQLWRULQJZLWK
l 6LPSOHGHDGOLQHV
l 0RGHOHGGHDGOLQHV
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l 6HWXSDQGWHVWDVLPSOHGHDGOLQH
l $GGDGHDGOLQHWRDZRUNIORZVWHS
l ,QWHJUDWHDPRGHOHGGHDGOLQHLQWRDZRUNIORZ
GHILQLWLRQ
SAP AG 1999
SAP AG
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l 7KHWRWDOPDWHULDOEXVLQHVVSURFHVVFDQQRW
H[FHHGGD\V
l 7KHGLVSOD\VWHSLVPRVWOLNHO\WREHODWH
l 2SWLRQVIRUODWHDFWLYLWLHVRQWKHFULWLFDOSDWKDUH
VLPSOHGHDGOLQHVRUPRGHOHGGHDGOLQHV
SAP AG 1999
SAP AG
l 'HDGOLQHVDYDLODEOH l (DFKGHDGOLQHKDV
5HTXHVWHGVWDUW $QLQGLYLGXDOUHIHUHQFH
SRLQW
5HTXHVWHGHQG
$QRWLILFDWLRQDJHQWIRU
/DWHVWHQG
GHDGOLQHPRQLWRULQJ
/DWHVWVWDUW H[FHSWLRQ
5HTXHVWHGVWDUW
$QRWLILFDWLRQWH[W
H[FHSWLRQ
5HTXHVWHGVWDUW
SAP AG 1999
n Requested start
Earliest possible time for processing start; Introduced by the system:
The work item is not visible in the Business Workplace until this time.
n Requested end
Latest requested time for completion of processing of a workflow
n Latest start
Latest deadline for workflow processing start
n Latest end
Latest deadline for completion of processing of a workflow
n The deadlines are specified with reference to the start of the workflow or work item or an individual
expression.
n The deadline is defined in the workflow step behind the relevant tab page.
The recipient of the notification is also specified there.
n The definition of the text that is sent is part of the task definition.
It is behind the "Description" tab page.
n The missed deadline is evaluated by the job SWWDHEX.
:ULWHFKDQJHGRFXPHQW
0DWHULDO 0\BSDUW
l 6HQGUHPLQGHUPHVVDJH
2OGPDWHULDO 2ULJLQDOBSDUW (YHQW
1HZBSDUW
:RUNIORZVWHS
'LVSOD\PDWHULDO
2UJDQL]DWLRQDOSODQ 5HFLSLHQWDQG
'HVLJQGHSDUWPHQW GHDGOLQHGHILQHG
'HVLJQHUSRVLWLRQ
5HFLSLHQW
+ROGHU0DU\
0DWHULDO0DQDJHUSRVLWLRQ
+ROGHU)UDQN 'LVSOD\PDWHULDO
5HFLSLHQWZKHQ
GHDGOLQHPLVVHG 7H[WIRUPLVVHG
GHDGOLQHGHILQHG
7LPHRIIVHW
IRUODWHVW
HQG
SAP AG 1999
l 'HDGOLQHVDYDLODEOH l (DFKGHDGOLQHKDV
5HTXHVWHGVWDUW $QLQGLYLGXDOUHIHUHQFH
SRLQW
5HTXHVWHGHQG
$FXVWRPHUVSHFLILF
/DWHVWHQG
DFWLRQZKLFKLVH[HFXWHG
/DWHVWVWDUW ZKHQWKHGHDGOLQHLVUHDFKHG
SAP AG 1999
n The deadline is defined in the workflow step behind the relevant tab page.
n If a modeled deadline in chosen, the system automatically generates an extra branch in the workflow
definition.
n Modeled deadlines can be transferred into the workflow step manually or using a wizard.
n Modeling using a Workflow Wizard:
The monitored work item is set to obsolete when the deadline is reached.
The workflow goes to the branch that is behind the outcome Obsolete.
The customer-specific action was defined in this outcome.
The original work item can no longer be executed with it.
n Modeling manually on the tab page:
The workflow goes to the branch Deadline reached.
The customer-specific action was defined in this outcome.
The original work item is still executable.
Using the workflow step Process control, the status of the monitored work item can be
changed.
n The missed deadline is evaluated by the job SWWDHEX.
User
decision
SAP AG 1999
n Modeled deadlines
If a set deadline is missed, modeled subsequent actions are executed, rendering further
processing of the monitored work item superfluous.
When defining the monitored step, the exception processing "obsolete" must be selected and any
appropriate subsequent steps implemented. The data on deadline setting must be maintained. An
event description must be entered for the deadline to be monitored.
n The wizard Model deadline monitoring helps you to integrate the necessary steps.
This wizard can be found by choosing the "Wizards" menu option in the Workflow Builder.
n 5HOHDVH:
You insert a task in the definition by selecting an event and choosing Wizards -> Model deadline
monitoring in the Workflow Builder. The wizard queries the task and the data on deadline
monitoring.
n $VRI5HOHDVH:
You model deadline monitoring for an existing task by selecting an existing task in the Workflow
Builder and choosing Wizards -> Model deadline monitoring.
The wizard queries the data on deadline monitoring.
If you have not selected a task when you call the wizard, the wizard proceeds as in Release 4.5 and
earlier.
l 7HUPLQDWHROGZRUNLWHPDQGVWDUWDQHZZRUNLWHP
0DWHULDO 0\BSDUW &KDQJHGRFXPHQWV
:RUNIORZ
2UJDQL]DWLRQDOSODQ
'HVLJQGHSDUWPHQW
'HVLJQHUSRVLWLRQ 5HFLSLHQW
+ROGHU0DU\
0DWHULDO0DQDJHUSRVLWLRQ 6WHS
+ROGHU)UDQN 'LVSOD\PDWHULDO
7RRODWH
5HFLSLHQW $Q\
HVFDODWLRQVWHS
SAP AG 1999
l 'HDGOLQHIXQFWLRQDOLW\
LVLQWHJUDWHGLQ
6$3%XVLQHVV:RUNIORZ
l 7KHUHDUHWZRRSWLRQV
n VLPSOHGHDGOLQHV
n PRGHOHGGHDGOLQHV
SAP AG 1999
8QLW'HDGOLQHV
7RSLF0RGHOHG'HDGOLQHV
1-1 Call the workflow definition you created on the first day and start the Workflow
Builder.
1-2 The task "Display material" after the result "Changes displayed" is to be subject to
deadline monitoring. If the deadline has been reached, the work item is to be set to
obsolete and a new branch in the processing is included.
This "modeled deadline monitoring" is created using a wizard.
1-2-1 Add a deadline to control the latest end allowed for the completion of the
work item.
1-2-2 Give the agent 5 minutes once the work item has entered their Business
Workplace to complete processing.
1-3 If the deadline is missed, an alternative processing step is needed. For example, you
could use the user decision "My first test" from the exercise in unit 2. Activate the
workflow and exit the screen.
1-4 Start the workflow using the explicit start function. Make sure that you use the user
WF-BC-MGR.
1-5 A list of material changes is displayed. Process this work item by exiting the list
and then choosing the button for "Complete processing of step". Then switch to the
workflow inbox of your manager and employee. Do NOT, however, process the
"Display material" work item. Instead, switch back to the initiator s session and
choose "Workflow log" to monitor the workflow. Wait a couple of minutes, refresh
the workflow log and see what happens.
8QLW'HDGOLQHVDGGLWLRQDOH[HUFLVH
7RSLF0DNLQJ&XVWRPHU6SHFLILF&KDQJHVWRD:RUNIORZ
7HPSODWH6LPSOH'HDGOLQH0RQLWRULQJ
At the conclusion of these exercises, you will be able to:
Copy a workflow template
Set up and test a simple deadline
Create and test an express work item
List options for recipient routing
Forward a message to a distribution list
1-1 Copy the workflow template for "Notification of absence" (WS30000015) into a
separate workflow template: Z_##_process.
1-1-1 Note the new workflow task number:
___________________________________________________________
1-2 A deadline is to be set for the manager s approval. We will give the manager an
aggressive deadline of 5 minutes to check the notification of absence. The
employee is notified if the deadline is missed. Modify your workflow now to add
this deadline and the recipient for missed deadline.
1-2-5 Enter the notification text for the task "Approve notification of absence".
The recipient receives this notification text if the deadline is missed.
1-3 Test the workflow with the new simple deadline. Each group is to start their new
workflow manually using the HPSOR\HH user ID %&. You can resubmit one
of the forms you created in the Business Workplace exercise for approval.
1-3-4 Execute this work item to check the notification text that was added and
remove the deadline notification from your worklist.
1-4 Managers often forget to check their workflow inboxes for notifications of absence
and, as a result, miss the deadline. You decide to define the approval step as an
express work item. Change your workflow accordingly.
1-4-3 Change the priority of the step to make it an express work item.
___________________________________________________________
___________________________________________________________
___________________________________________________________
8QLW'HDGOLQHV
7RSLF0RGHOHG'HDGOLQHV
1-1 Change the workflow definition you created on the first day and go to the
Workflow Builder.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
'RXEOHFOLFN:RUNIORZ%XLOGHU
,I\RXUZRUNIORZLVQRWGLVSOD\HGFKRRVHWKH2WKHUZRUNIORZYHUVLRQLFRQ
(QWHU:6DQG\RXUZRUNIORZWDVNQXPEHU
1-2 The task "Display material" after the event "Changes displayed" is to be subject to
deadline monitoring. Use the wizard to create modeled deadline monitoring.
3RVLWLRQ\RXUFXUVRURQWKHWDVN'LVSOD\PDWHULDOPDVWHUDQGFOLFNRQFHWR
VHOHFWWKHWDVN
&KRRVH:L]DUGV0RGHOGHDGOLQHPRQLWRULQJ
&KRRVHWKH&RQWLQXHEXWWRQWRVWDUWWKHZL]DUG
1-2-1 Add a deadline to control the latest end allowed for the completion of the
work item.
6HOHFWWKH/DWHVWHQGUDGLREXWWRQDVWKHGHDGOLQHW\SHWREHPRQLWRUHG
&KRRVHWKH&RQWLQXHEXWWRQ
1-2-2 Give the agent 5 minutes once the work item has entered their Business
Workplace to complete processing.
(QWHULQWKH7LPHLQWILHOGDQGVHOHFW0LQXWHVQH[WWRWKLVILHOG
6HOHFWWKH:RUNLWHPFUHDWLRQUDGLREXWWRQWRDFWLYDWHPRQLWRULQJIURP
WKHWLPHWKHZRUNLWHPLVFUHDWHG
&KRRVHWKH&RQWLQXHEXWWRQ
&KRRVHWKH&RPSOHWHEXWWRQVRWKHZL]DUGFDQFRPSOHWHWKHSURFHVV
You could, for example, use the user decision "My first test" from the exercise in
the Workflow Definition unit. Activate the workflow and exit the screen.
0DNHVXUHWKDW\RXDUHRQWKH:RUNIORZ%XLOGHU&KDQJH
]ZIBWHVW
VFUHHQ
6HOHFWWKHXVHUGHFLVLRQ0\ILUVWWHVWDQGFKRRVH
(GLW%ORFN&XW
6HOHFWWKHHYHQW2EVROHWHDQGFKRRVH
(GLW%ORFN3DVWH
,QWKH:RUNIORZ%XLOGHUFKRRVHWKH*HQHUDWHDQGDFWLYDWHUXQWLPHYHUVLRQ
EXWWRQ
1-4 Start the workflow using the explicit start function. Start the workflow as WF-BC-
MGR.
6$3($6<$&&(66!7RROV!%XVLQHVV:RUNIORZ!'HYHORSPHQW!5XQWLPH
7RROV!6WDUW:RUNIORZ7HVW(QYLURQPHQW
(QWHU:6;;;;;;;;ZKHUH;;;;;;;;LVWKHQXPEHURI\RXUZRUNIORZ
1-5 A list of material changes is displayed. Process this work item by exiting the list
and then choosing the button for "Complete processing of step". Then switch to the
workflow inbox of your manager and employee. Do NOT, however, process the
"Display material" work item. Instead, switch back to the workflow initiator s
session and choose "Workflow log" to monitor the workflow. Wait a couple of
minutes, refresh the workflow log and see what happens.
$IWHURUPLQXWHVFKRRVHWKH5HIUHVKEXWWRQDQGFKHFNLQWKHZRUNIORZORJ
WKDWWKHPLVVHGODWHVWHQGKDVDFWXDOO\EHHQUHDFKHG
,IVRWKHHQWU\'($'/,1(VKRXOGDSSHDULQWKH6WDWXVFROXPQDQG/DWHVW
HQGUHDFKHGLQWKH5HVXOWFROXPQ
8QLW'HDGOLQHVDGGLWLRQDOH[HUFLVH
7RSLF0DNLQJ&XVWRPHU6SHFLILF&KDQJHVWRD:RUNIORZ
7HPSODWH6LPSOH'HDGOLQH0RQLWRULQJ
1-1 Copy the workflow template for "Notification of absence" (WS30000015) into your
own workflow template.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV7DVN7DVN
*URXSV
'RXEOHFOLFN&RS\
2QWKH7DVN&RS\VFUHHQHQWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPH ,QSXW'DWD
Task 30000015
&KRRVHWKH&RS\WDVNEXWWRQ
,QWKH&RS\7DVNGLDORJER[:RUNIORZWHPSODWHVKRXOGEHGLVSOD\HGLQWKH
7DUJHWWDVNW\SHILHOG$)BSURFHVVVKRXOGEHGLVSOD\HGLQWKH
$EEUHYLDWLRQILHOGDQG3URFHVVQRWLILFDWLRQRIDEVHQFHLQWKH1DPHILHOG
Note: Start the abbreviation and name with Z and your group number
so that you can identify your workflow.
2YHUZULWHWKH$EEUHYLDWLRQDQG1DPHDVIROORZV
)LHOG1DPH ,QSXW'DWD
Abbreviation Z##_process
&KRRVHWKH&RS\WDVN(QWHUEXWWRQDWWKHERWWRPRIWKH&RS\7DVNGLDORJ
ER[
1XPEHUJHQHUDWHGE\WKHV\VWHP
1-2 A deadline is to be set for the manager s approval. We will give the manager an
aggressive deadline of 5 minutes to check the notification of absence. The
employee is notified if the latest end was missed. Modify your workflow now to
add this deadline and the recipient for missed deadline.
1-2-1 Call your workflow in change mode in the Workflow Builder.
,QWKH6$3(DV\$FFHVVPHQXXQGHU'HILQLWLRQ7RROVGRXEOHFOLFN
:RUNIORZ%XLOGHU
,I\RXUZRUNI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UFKDQJHV
5HWXUQWRWKH6$3(DV\$FFHVVPHQXE\FKRRVLQJWKH%DFNEXWWRQ
JUHHQDUURZ
1-3 Test the workflow with the new simple deadline. Each group is to start their new
workflow manually using the HPSOR\HH user ID %&. You can resubmit one
of the forms you created in the Business Workplace exercise for approval.
,QWKH6$3(DV\$FFHVVPHQXRSHQWKH5XQWLPH7RROVIROGHU
'RXEOHFOLFN6WDUW:RUNIORZ7HVW(QYLURQPHQW
(QWHU\RXUQHZZRUNIORZQXPEHULQWKH7DVNILHOG
&KRRVHWKH,QSXWGDWDEXWWRQ
&KRRVHWKHPDWFKFRGHV\PEROIRUWKH1RWLIRIDEVHQFHILHOG
(QWHUWKHQXPEHURIRQHRIWKHIRUPV\RXFUHDWHGLQDQHDUOLHUH[HUFLVH
DQGFKRRVHWKH%DFNEXWWRQJUHHQWLFNWRFRQWLQXH
&KRRVHWKH([HFXWHEXWWRQ
1-3-4 Execute this work item to check the notification text that was added and
remove the deadline notification from your worklist.
'RXEOHFOLFNRQWKH([FROXPQ
<RXUGHDGOLQHQRWLILFDWLRQWH[WLVGLVSOD\HGLQWKH'HVFULSWLRQILHOG
7RUHPRYHWKHZRUNLWHPFKRRVHWKH6HWWR'RQHEXWWRQDWWKHWRSRI
WKHVFUHHQ
,QWKH6$3(DV\$FFHVVPHQXXQGHU'HILQLWLRQ7RROVGRXEOHFOLFN
:RUNIORZ%XLOGHU
,I\RXUZRUNIORZLVQRWGLVSOD\HGFKRRVHWKH2WKHUZRUNIORZYHUVLRQ
LFRQ(QWHU:6DQG\RXUZRUNIORZWDVNQXPEHUIURPWKHSUHYLRXVVWHS
&KRRVHWKH,QVHUWEXWWRQ
'RXEOHFOLFNRQWKH$SSURYHQRWLILFDWLRQRIDEVHQFHVWHS
1-4-3 Change the priority of the step to make it an express work item.
2QWKH:RUNIORZ%XLOGHU&KDQJH6WHS$FWLYLW\VFUHHQFKRRVHWKH
2WKHUWDESDJH7KLVWDESDJHLVWRWKHIDUULJKW\RXPD\KDYHWRXVH
WKHVFUROONH\WRVHOHFWLW
&KDQJHWKHSULRULW\IURP0HGLXPWR+LJKHVW([SUHVV
&KRRVHWKH%DFNEXWWRQJUHHQDUURZ
&KRRVHWKH*HQHUDWHDQGDFWLYDWHUXQWLPHYHUVLRQEXWWRQPDWFKLFRQ
WRDFWLYDWHWKHZRUNIORZDQGVDYH\RXUFKDQJHV
1-5 Test your workflow with the express work item. Each group is to start their
workflow manually using the employee user ID. Use a different absence form from
the Business Workplace exercise.
2QWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQFKRRVH:RUNIORZ7HVWRU
WKH7HVWEXWWRQ
2QWKH6WDUW:RUNIORZ7HVW(QYLURQPHQWVFUHHQ\RXUZRUNIORZQXPEHU
VKRXOGEHGLVSOD\HGLQWKH7DVNILHOG
&KRRVHWKH,QSXWGDWDEXWWRQ
&KRRVHWKHPDWFKFRGHV\PEROIRUWKH1RWLIRIDEVHQFHILHOG
(QWHUWKHQXPEHURIDIRUP\RXFUHDWHGLQDQHDUOLHU%XVLQHVV:RUNSODFH
H[HUFLVHDQGFKRRVHWKH%DFNEXWWRQJUHHQWLFNWRFRQWLQXH
&KRRVHWKH([HFXWHEXWWRQ
*REDFNWRWKHPDQDJHU
VVHVVLRQDQGFKRRVH(QWHU$GLDORJER[LV
LPPHGLDWHO\GLVSOD\HGLQIRUPLQJWKHPDQDJHUWKDWWKH\KDYHUHFHLYHGD
ZRUNLWHPZLWKSULRULW\7KHPDQDJHUFDQDFFHVVWKH%XVLQHVV
:RUNSODFHGLUHFWO\IURPWKLVGLDORJER[
&RQWHQWV
l &UHDWLQJZRUNIORZHYHQWOLQNDJH
DQGELQGLQJ
l +RZHYHQWVDUHFUHDWHGLQWKH
V\VWHP
l :L]DUGIRUFUHDWLQJHYHQWV
l 7HUPLQDWLQJHYHQWV
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l &UHDWHDQHYHQWGULYHQZRUNIORZ
l 7ULJ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AP AG 1999
3DUNHGGRFXPHQWSRVWHG
5HFUXLWPHQWIUHH]H
%XGJHWOLPLWUHDFKHG 2EMHFWW\SH
HYHQW
2UGHUFDQFHOHG
3URMHFWPLOHVWRQHUHDFKHG
&XVWRPHUPDVWHUGDWDFKDQJHG
SAP AG 1999
l 3URFHGXUHIRUHQWHULQJHYHQWOLQNDJHIRUWULJJHULQJHYHQWVLQWKH
ZRUNIORZ
0DNHVXUHWKDWDYDULDEOHH[LVWVLQWKHZRUNIORZFRQWDLQHU
WKDWFDQWDNHXSWKHREMHFWUHIHUHQFHIURPWKHHYHQW
!6WDUWWKH:RUNIORZ%XLOGHU,QWKHH[LVWLQJYDULDEOHLQWKH
ZRUNIORZFRQWDLQHUVHOHFWWKHIODJVLPSRUWDQGREOLJDWRU\
6SHFLI\WKHHYHQWDVDWULJJHULQJHYHQWLQWKHZRUNIORZ
WHPSODWH
SAP AG 1999
l 3URFHGXUH
2QWKH7ULJJHULQJHYHQWWDESDJHFKHFNWKH
ELQGLQJ
B:)B,QLWLDWRUB(97B&5($725
2EMHFWYDULDEOH!B(97B2%-(&7
$FWLYDWHWKHHYHQWOLQNDJH
&KHFNWKHELQGLQJLQWKH:RUNIORZ%XLOGHU
:RUNIORZFRQWDLQHU!7DVNFRQWDLQHU
SAP AG 1999
n The system automatically generates a binding between the event container and the workflow
container.
This binding must correspond to the entry on the slide.
To check, use the green button "Binding defined", or D... next to the object type entry.
n The event is now correctly bound to the workflow.
The linkage is, however, not yet active. This means when the event is created in the system, the
workflow doesnt start.
n The event linkage must be activated explicitly.
You have several options for activating the event linkage.
1. Tab page "Triggering event" - Double click the red button "Active/inactive, or A...
next to the entry for the object type
2. SAP EASY ACCESS -> Tools - Business Workflow -> Development -> Utilities ->
Events -> Simulate event
Enter object type and event, button "Execute"
3. Workflow Builder: Goto - Basic data - Tab page "Start".
n Caution:
The event linkage deactivates automatically after runtime errors, and must be reactivated after the
error is repaired
n A workflow can have more than one triggering event.
l 7KHDSSOLFDWLRQWULJJHUVWKHHYHQWE\GHIDXOW
l ,IWKHDSSOLFDWLRQGRHVQRWWULJJHUWKHGHVLUHGHYHQWE\
GHIDXOW
l /LQNWRZULWLQJRIFKDQJHGRFXPHQWVZL]DUG
l /LQNWRVWDWXVPDQDJHPHQW
l /LQNWRPHVVDJHFRQWURO
l +57DEOHV7:6$37;FXVWRPHU
l 5HOHDVHRQZDUGVFRQQHFWLRQWRWKHRSHQ),LQWHUIDFH
ZL]DUG
l 5HOHDVHRQZDUGVFRQQHFWLRQWR/,6H[FHSWLRQVZL]DUG
l ,IQRFRQQHFWLRQLVSRVVLEOHXVLQJFXVWRPL]LQJ
l 7ULJJHUXVLQJWKHIXQFWLRQPRGXOH6:(B(9(17B&5($7(
LQWKHDSSOLFDWLRQXVLQJ8VHU([LWV
SAP AG 1999
n You can see whether the application triggers an event by default by looking at the event trace.
Switch on the event trace and execute the desired function in R/3.
View the created events by choosing SAP EASY ACCESS - Tools - Business Workflow -
Development - Utilities - Events - Event Trace
n Exception: Starting the workflow from a system error message:
At runtime, a user can start a particular workflow after a particular error has occurred. Use the
Workflow Wizard to create the workflow, then start the workflow SAP EASY ACCESS - Tools
- Business Workflow - Development - Definition Tools - Wizards - Create "Call Workflow From
Message"
Follow the wizard:
- Table entry T100W: Application area, error number, and workflow to be started
- Create the workflow. It can be freely processed
- Enter a new icon in the technical help text, which can be called when the error message
appears in the system.
- Procedure when error occurs: Call the technical error display and click the "Start workflow"
icon.
n ([FHSWLRQ: Starting the workflow by a change of status in the DMS.
The workflow template is specified directly in the definition of the document type.
SAP Reference IMG - Cross-Application Components - Document Management System -
Control Data - Define Document Types - Define Document Status - Double-click Document
Status.
l +57DEOHV
l /,6H[FHSWLRQV
$ZL]DUGPRGHOVWKHUHODWLRQVKLSEHWZHHQDQ/,6H[FHSWLRQ
DQGWKHHYHQWRIDEXVLQHVVREMHFWW\SH
l 2SHQ),LQWHUIDFH
$ZL]DUGPRGHOVWKHUHODWLRQVKLSEHWZHHQDQRSHQ),HYHQWDQG
WKHHYHQWRIDEXVLQHVVREMHFWW\SH
SAP AG 1999
n An LIS exception can be, for example, "Orders with unscheduled scrap". Whilst using the wizard,
you can view the exceptions using the input help.
n To find the wizard, see
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools - Events -
Event Creation - Set up with Wizard - Logistics Information System.
n The open FI interface covers the events:
Creditor master data
Debitor master data
Post document
Reset cleared items
Credit management
Change document
n To find the wizard, see
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools - Events -
Event Creation - Set up with Wizard - Business Transaction Events.
3HUVRQUHVSRQVLEOH
IRUPDWHULDO
&KDQJH /RJJLQJ
in master data of a particular the change using a change
material document
To be implemented as (YHQW
customer-defined event (YHQWFUHDWLRQ
creation by writing a change document
3URGPDQDJHU
,QIRUPDWLRQ /LQNDJH
from the employee responsible of the event as the triggering
in the engineering office event for task
SAP AG 1999
n Changing a field in the master data of a particular material should, in the simplest of cases, mean that
an agent from materials management is "informed" of the change using a work item.
n The event changed is defined for the object type ZBUS1001 ( Material ).
n This event is established as a triggering event for the workflow Display Material Master .
n The logging of changes to the material master data by creating change documents for a particular
change document object (in this case the change document object MATERIAL), is already
implemented and therefore available in the application (in this case the application component MM).
n Creating an event when writing change documents is implemented as a customer-defined extension.
n Workflow and creation of change documents are independent tools.
If you want to trigger a workflow event, you need to know the objects for the creation of change
documents.
n From Release 4.6 onwards, the system provides an overview of the change document objects and
when a document from the application is written:
SAP EASY ACCESS -> Tools -> Business Workflow -> Development -> Definition Tools ->
Events -> Event Creation -> Change Documents -> Overview/Workflow Properties
DVDUHVXOWRIOLQNDJHWR
WKHFKDQJHGRFXPHQWV 7KH0$5$:5.67WDEOH
ILHOGLVFKDQJHG
7 8
9 :; <!
"! =
>
? A@ 3 8? BCD%E
F
3 8,? > GH
8
? =
> ? JIK4LMON ? P8Q N
? P?
<
5 .6 /
#
$%'&)( *,+.-,/ 20 11%0
%3 4 5 . 6 / 4
F > %F 3
E$)F
;
WKHQWKH:5.67&KDQJHGHYHQWRI
WKH=%86REMHFWW\SHLVFUHDWHG
$UHIHUHQFHWRWKHFKDQJHGREMHFWRI
W\SH=%86FDQEHIRXQGLQWKH
HYHQWFRQWDLQHU
SAP AG 1999
2EMHFWOLIHF\FOHGHVFULEHGE\
6WDWXVFKDQJHVIRUWKHSURGXFWLRQRUGHU
&5($7('
5(/($6(' 5(/,
7(&+1,&$//<&203/(7('
3XEOLVKHG
HYHQWV
RISURGXFWLRQRUGHU
SAP AG 1999
n Another option for triggering events is status management. Check the SAP application. If it offers
status management, for example, in the case of production order handling, follow the procedure
below to activate events:
n Find the status object family that is connected to the SAP application, in this case ORH.
n Check the status family for all statuses involved, for example, Released. Each status has an
internal SAP unique identifier. For example, the status "Released" has the identifier REL or I0002.
(Use transaction BS22)
n Map out the status life cycle of your object. Describe the different stages using the statuses delivered
by SAP.
n Next to each status, write the SAP name, number and the name of this status as it is used in your
business language. This chart becomes an important de-coding tool.
n Each status on this diagram can become an event in a workflow.
n The events are first described in the business object type.
l &UHDWHFKDQJHWUDQVDFWLRQ&&
7\SH&KDQJHUHTXHVW
R
&KDQJHW\SH&XVWRPHUFRPSODLQWZLWKZRUNIORZ
R
(QWHU
R
(QWHUWLWOH
R
6SHFLI\UHDVRQIRUFKDQJH
R
6WDWXVFKDQJHQXPEHU
R
6DYH
R
l &KDQJHFKDQJHQXPEHUWUDQVDFWLRQ&&
6HWVWDWXV
R
&KDQJHIURPFKHFNUHTXHVWWRUHTXHVWFKHFNHG
6DYH
R
SAP AG 1999
l (YHQWWUDFHWUDQVDFWLRQ6:(/
7KHHYHQWV23(1('&5($7('DQG
R
$//B2%-(&76B&+(&.('
KDYHEHHQFUHDWHGIRUWKHEXVLQHVVREMHFWW\SH(&0
l 6WDWXVPDQDJHPHQWWUDQVDFWLRQ%69:
6\VWHPVHWWLQJV
R
6WDWXVUHVWULFWLRQVIRU
R
&'0(&0$//B2%-(&76B&+(&.('
,IWKHLQWHUQDOVWDWXV,DEEUHYLDWLRQ2*(3
R
RFFXUVLQWKHVWDWXVREMHFWW\SH&'0WKHQWKHHYHQW
(&0$//B2%-(&76B&+(&.('LVWULJJHUHG
SAP AG 1999
n The events OPENED and CREATED of the object type ECM are triggered directly by the
application from the ABAP code.
n The event ALL_OBJECTS_CHECKED is created using the Customizing settings in transaction
BSVW.
This setting is under "System settings", because it is delivered by SAP.
n The customer-specific settings are carried out in the transaction BSVW, under "Customer settings".
The first step in a typical entry may contain:
- Status object, for example, ORH
- Business object, for example, BUS2005
- Event, for example, released
In the second step, enter the status restrictions:
- Select "status restrictions"
- System status, for example I0002 (released)
n You can find the system status using transactions BS22, BS12 and BS02.
Selecting the appropriate status requires knowledge of the application.
l &UHDWHDVHSDUDWHRXWSXWW\SHDQGGHFODUHZRUNIORZ
HYHQWDVWKHWUDQVPLVVLRQPHGLXP
l &UHDWHDFRQGLWLRQWDEOH
l &UHDWHDQDFFHVVVHTXHQFH
l $VVLJQWKHDFFHVVVHTXHQFHWRWKHGHILQHGRXWSXWW\SHIRU
DZRUNIORZHYHQW
l 'HILQHFRQGLWLRQUHFRUGVDQGGHFODUHWKHHYHQW
l $VVLJQWKHRXWSXWW\SHWRDSURFHGXUH
SAP AG 1999
SAP
SAP transaction,
transaction, for
for example,
example, "Release
"Release order"
order"
Order (YHQWFRQWDLQHU
released
&UHDWRU
2EMHFW
:RUNIORZ
5ROHFRQWDLQHU :)LQLWLDWRU
7HFKQLFDOO\ (YHQWFRQWDLQHU
FRPSOHWHG REMHFW
SAP AG 1999
l 8VHWKLVIXQFWLRQLI\RXZDQWWRGHILQHVLPSOHLQGLYLGXDO
FRQGLWLRQVIRUWKHVWDUWRIDZRUNIORZ
l <RXFDQRQO\GHILQHVWDUWFRQGLWLRQVLIWKHZRUNIORZLV
VWDUWHGE\DQHYHQW
l 6HOHFWLRQFULWHULD
2EMHFWW\SH
R
(YHQW
R
:RUNIORZ
R
l 7KHFRQGLWLRQHGLWRURIWKH:RUNIORZ%XLOGHULVXVHGWR
GHWHUPLQHWKHVWDUWFRQGLWLRQV
SAP AG 1999
n The start of a workflow no longer only depends on whether a specific event is generated, but also on
the occurrence of additional conditions.
n ([DPSOHV:
A workflow should always be started if a notification of absence has been created, AND the creator
of the notification of absence belongs to a specific employee group.
A workflow should be started if a material master has been changed, and the material belongs to
industry "C".
n To display the start conditions for a workflow, choose the following menu path:
Tools - Business Workflow - Development - Definition Tools - Events - Event Linkages - Workflow
Start Conditions.
&UHDWLQJDQHZVWDUWFRQGLWLRQ
)LQGLQJDQG
VHOHFWLQJWKH
REMHFWW\SHV
SAP AG 1999
'RXEOHFOLFNWRVHOHFWWKHILUVWH[SUHVVLRQ
'RXEOHFOLFNWRVHOHFWWKHRSHUDWRU
(QWHUWKHVHFRQGH[SUHVVLRQZLWKRXW
SAP AG 1999
&KDQJHPRGH
&OLFNWRFKDQJHWRILHOGHQWU\PRGH
(QWHUQDPH
&OLFN
UHWXUQ
WRVDYH
SAP AG 1999
l (QWHUHYHQWDVWKH
WHUPLQDWLQJHYHQWRIDWDVN
l 7HUPLQDWLQJHYHQWVGHVFULEHSURFHVVLQJUHVXOWVRIWKH
DSSOLFDWLRQVWDUWHGE\WKHWDVN
l %LQGLQJ7KHHYHQWSDUDPHWHUFDQUHWXUQLQIRUPDWLRQLQWR
WKHWDVNFRQWDLQHU
l $WDVNFDQKDYHPRUHWKDQRQHWHUPLQDWLQJHYHQW
SAP AG 1999
7KLVFKHFNIXQFWLRQ
PRGXOHHYDOXDWHVWKH
VWDUWFRQGLWLRQDW
UXQWLPH
$JUHHQOLJKWLQWKHVWDUW
FRQGLWLRQRU
WKHWULJJHULQJHYHQWLQWKH
ZRUNIORZ
VHWVWKHW\SHOLQNDJHWR
DFWLYH
SAP AG 1999
l 2EMHFW7\SH(YHQWV
FDQEHXVHGWRWULJJHURU
WHUPLQDWHWDVNVRUZRUNIORZV
l &UHDWLRQRIDQHYHQW
FKDQJHGRFXPHQWV
R
VWDWXVPDQDJHPHQW
R
PHVVDJHFRQWURO
R
FHUWDLQ+5WDEOHV
R
,PSOHPHQWDWLRQLQSURJUDPFRGLQJ
R
XVLQJ86(5(;,76
l (YHQW:L]DUGFDQEHXVHGIRUHYHQW
FUHDWLRQ
SAP AG 1999
8QLW(YHQWV
7RSLF&KDQJH'RFXPHQWV
Using flexible event creation , you can activate events in the SAP R/3
system without having to write ABAP code.
The following procedure will show you how to use the SAP Change
documents to activate an event for your object type Y##MARA . In
this case, the event '
Old_Material_Changed'will be used as a triggering
event for your workflow.
1-1 You want to support the business process for Material Masters with your workflow.
The first activity in your workflow is started whenever the material master is
changed. Before you actually build this workflow, familiarize yourself with the
change log of a material master.
1-2 Now link an event of your object type with the workflow system, and arrange for an
event to be triggered whenever a material master is changed
1-2-1 In the first step, ensure the event is triggered by writing a change document.
This only includes the change documents that are created when a material is
changed. Use a wizard for this.
1-2-3 The event should be activated if the value is changed from anything to G##.
Do not specify more than one field, because changes to all listed fields
have to occur within one logical unit of work . At runtime, the user has
to change all listed fields before saving this event.
If every group uses their own group number for the New Value field,
all groups will be independent of one another.
1-3 In the second step, ensure that your workflow recognizes the event
'old_material_changed'as a triggering event, and that the event manager can
transfer the object reference into your workflow as an import variable.
In the example, the triggering event will "tell" the workflow which material master
has been changed. The object reference must be saved in a workflow container
element.
When inserting tasks into the workflow definition, task container elements that
were not contained in the workflow container were automatically created.
Therefore, the workflow already contains a container element that stands for the
object type Y##MARA. The element is, however, not yet in a position to receive
data from outside the workflow.
1-3-1 Call your workflow in the change mode. Flag the workflow container
element that refers to Y##MARA as Import and Mandatory .
1-4-1 Enter a triggering event into the workflow. The object is Y##MARA and
the event Old_Material_Changed.
Check the binding from the event to the workflow.
1-4-2 Once you have defined a triggering event, you must activate it. Activate
the event linkage for this triggering event. Return to the Workflow Builder
to check. Activate the workflow.
1-5 Another way to activate the linkage of a workflow is to directly modify the Event
Linkage Table. The table contains a record for each triggering event and each
workflow that it may start. Check this table for your new triggering event.
1-5-1 Find the entry for your event and display the details.
______________________________________________
1-6-1 Change your material master (Transaction=MM02). This time enter your
group ID '
##'in the Old Material field.
1-6-2 Check your Business Workplace. Do you see your work item?
Are the change documents displayed?
8QLW(YHQWV
7RSLF&KDQJH'RFXPHQWV
1-1 You want to support the business process for Material Masters with your workflow.
The first activity in your workflow is started whenever the material master is
changed. Before you actually build this workflow, familiarize yourself with the
change log of a material master.
1-1-1 Change the material master.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
/RJLVWLFV0DWHULDOV0DQDJHPHQW0DWHULDO0DVWHU0DWHULDO
&KDQJH
'RXEOHFOLFN,PPHGLDWHO\
(QWHU\RXUPDWHULDO7%%'LQWKH0DWHULDOILHOGDQGFKRRVHWKH
(QWHUEXWWRQ
2QWKH6HOHFW9LHZVVFUHHQVHOHFW%DVLF'DWDDQGFOLFNWKH
&RQWLQXH(QWHUEXWWRQ
2QWKH&KDQJH0DWHULDOVFUHHQHQWHU\RXUXVHU,'LQWKH2OGPDWHULDO
QXPEHUILHOG7KHQVDYH\RXUHQWULHVDQGUHWXUQWRWKH6$3(DV\$FFHVV
PHQXE\VHOHFWLQJWKH%DFNEXWWRQJUHHQDUURZ
,QWKH6$3(DV\$FFHVVPHQXFKRRVH/RJLVWLFV!3URGXFWLRQ!0DVWHU
'DWD!0DWHULDO0DVWHU!0DWHULDO!'LVSOD\&KDQJHV
'RXEOHFOLFNWKH$FWLYH&KDQJHVLFRQ(QWHU\RXUPDWHULDOLQWKH
0DWHULDOILHOG
&KRRVHWKH([HFXWHEXWWRQ
'RXEOHFOLFNWKHPRVWUHFHQWHQWU\DQGFKHFN\RXUFKDQJH
1-2-1 In the first step, ensure the event is triggered by writing a change document.
This only involves the change documents that are created when a material is
changed.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV %XVLQHVV:RUNIORZ 'HYHORSPHQW'HILQLWLRQ7RROV
(YHQWV(YHQW&UHDWLRQ6HWXSZLWK:L]DUG
'RXEOHFOLFN&KDQJH'RFXPHQWVDQGFKRRVH&RQWLQXH
1-2-3 Use the field MARA-BISMT as the field restriction. The event should be
activated if the value is changed from anything to G##.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH7RROV%XVLQHVV:RUNIORZ
'HYHORSPHQW'HILQLWLRQ7RROV(YHQWV(YHQW&UHDWLRQ&KDQJH
'RFXPHQWV
'RXEOHFOLFN/LQNDJH
6HDUFKIRU\RXUQHZHQWU\XVLQJWKH&KDQJH9LHZ(YHQWVIRU&KDQJH
'RFXPHQW2YHUYLHZVFUHHQ
6HOHFWWKLVQHZHQWU\DQGFOLFN)LHOGUHVWULFWLRQVRQWKHOHIWKDQGVLGHRI
WKHVFUHHQ
+HUH\RXFDQVSHFLI\ZKLFKFKDQJHVLQZKLFKILHOGZLOODFWLYDWHWKLVHYHQW
Do not specify more than one field, because changes to all listed fields
have to occur within one logical unit of work . At runtime, the user has
to change all listed fields before saving this event.
&KRRVH(GLW1HZHQWULHVRUWKH1HZHQWULHVEXWWRQ
(QWHUWKHIROORZLQJLQIRUPDWLRQ
)LHOG1DPHV
3UHVVWKH(QWHUNH\DQGFKDQJHWKH1HZYDOXHWR*ZKHUH*
UHIHUVWR\RXUXVHUJURXSQXPEHU
If every group uses their own group number for the New Value field,
all groups will be independent of one another.
&KRRVHWKH6DYHEXWWRQDQGOHDYHWKHVFUHHQ
1-3-1 Call your workflow in the change mode. Flag the workflow container
element that refers to Y##MARA as Import and Mandatory .
,QWKH6$3(DV\$FFHVVPHQXFKRRVH7RROV!%XVLQHVV:RUNIORZ!
'HYHORSPHQW!'HILQLWLRQ7RROV!:RUNIORZ%XLOGHU
<RXUZRUNIORZWHPSODWHLVGLVSOD\HG
,QWKHQDYLJDWLRQDUHDFOLFNWKH:RUNIORZFRQWDLQHUEDU
7KHYDULDEOHVRIWKHZRUNIORZFRQWDLQHUDUHGLVSOD\HG
'RXEOHFOLFNWKHFRQWDLQHUHOHPHQWWKDWUHIHUVWR\RXUREMHFWW\SH
<0$5$PD\EHGLVSOD\HGDV%86B*URXSBRU
0DWHULDOB*URXSB
,QWKH$WWULEXWHVVHFWLRQVHOHFWWKHUDGLREXWWRQVIRU,PSRUWDQG
0DQGDWRU\
,IQHFHVVDU\FRS\WKHQDPHRIWKHFRQWDLQHUHOHPHQWLQWRWKH
'HVFULSWLRQILHOG
$FWLYDWHDQGVDYH\RXUZRUNIORZGHILQLWLRQ
<RXQRZKDYHDYDULDEOHWKDWFDQUHFHLYHWKHREMHFWUHIHUHQFHIURPWKH
HYHQWPDQDJHU
1-4 The next step is to create the event old_material_changed in your workflow.You
need to ensure that this event transfers the material object and the name of the user
modifying the material into the workflow container.
1-4-1 Enter a triggering event into the workflow. The object is Y##MARA and the
event Old_Material_Changed.
*RWRWKH:RUNIORZ%XLOGHUEDVLFVFUHHQE\FKRRVLQJWKHPHQXRSWLRQ
*RWR%DVLFGDWD
&KRRVHWKH6WDUWWDESDJH
(QWHUWKHIROORZLQJLQIRUPDWLRQ
Event Old_Material_Changed
3UHVVWKH(QWHUNH\
&OLFN%LQGLQJ'HILQLWLRQ
7KH7DVN&RQWDLQHUHOHPHQW
,QLWLDWRU
VKRXOGUHFHLYHLQIRUPDWLRQIURP
WKH(YHQW&RQWDLQHUHOHPHQW B(97B&5($725
7KH7DVN&RQWDLQHUHOHPHQW
0DWHULDOBUHIHUHQFH
VKRXOGUHFHLYH
LQIRUPDWLRQIURPWKH(YHQW&RQWDLQHUHOHPHQW B(97B2%-(&7
=0$5$
&RUUHFWWKHELQGLQJLIQHFHVVDU\
1-4-2 Once you have defined a triggering event, you must activate it. Activate the
event linkage for this triggering event. Return to the Workflow Builder to
check. Activate the workflow.
7DESDJH6WDUW
&OLFNWKHUHGUKRPEXVLQWKHOLQHFRQWDLQLQJWKHWULJJHULQJHYHQW
(QWU\ILHOGWRWKHIDUOHIW$FWLYHQRW$FWLYH
5HWXUQWRWKH:RUNIORZ%XLOGHUEDVLFVFUHHQDQGDFWLYDWHWKHZRUNIORZ
1-5-1 Find the entry for your event and display the details.
______________________________________________
7RROV!%XVLQHVV:RUNIORZ!'HYHORSPHQW!'HILQLWLRQ7RROV!
(YHQWV!(YHQW/LQNDJHV
'RXEOHFOLFN7\SH/LQNDJHV
8VHWKH3RVLWLRQEXWWRQWRVHOHFW\RXUREMHFWW\SH)LQDOO\FKRRVH
*RWR'HWDLOV
7KH7\SHOLQNDJHDFWLYHIODJLQGLFDWHVWKDWWKHHYHQWOLQNDJHLV
DFWLYDWHG7KLVFKHFNER[PXVWEHVHOHFWHGLQWKHSURGXFWLYHV\VWHP
1-6-1 Change your material master (Transaction=MM02). This time enter your
group ID '
G##'in the Old Material field.
1-6-2 Check your Business Workplace. Do you see your work item?
&RQWHQWV
l :RUNIORZ:L]DUGV
l 8VLQJZL]DUGVWRVLPSOLI\WKHZRUNIORZ
HGLWRU
SAP AG 1999
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l )LQGRXWZKHWKHUDZL]DUGPDWFKHV\RXUEXVLQHVV
VFHQDULR
l 8VHWKH:RUNIORZ:L]DUGWRFUHDWHDFRPSOHWH
ZRUNIORZGHILQLWLRQ
l 8VHWKH:RUNIORZ%XLOGHUZL]DUGV
SAP AG 1999
&RXUVH2YHUYLHZ &RQWDLQHUV
,QWURGXFWLRQ 5RXWLQJ
&XVWRPL]LQJ 'HDGOLQHV
:RUNIORZ'HILQLWLRQ (YHQWV
%XVLQHVV2EMHFW%XLOGHU :RUNIORZ:L]DUGV
7DVNV :RUNIORZDQGWKH,QWHUQHW
0RQLWRULQJDQG$QDO\VLV $SSHQGL[
SAP AG 1999
l $EXVLQHVVSURFHVVLVUHDG\WREHLPSOHPHQWHG
l :L]DUGVFDQVXSSRUW\RXZKHQVSHFLI\LQJD
ZRUNIORZGHILQLWLRQ
l )LQGRXWLIDQGKRZZL]DUGVFDQKHOS
l )LQGRXWZKLFKZL]DUGVDUHSURYLGHG
SAP AG 1999
l :L]DUGVEULQJWRJHWKHUGRFXPHQWDWLRQDQGIXQFWLRQVE\
n $VNLQJRQO\DIHZTXHVWLRQVRQHDFKVFUHHQ
n 3URYLGLQJDOOLQIRUPDWLRQUHTXLUHGWRDQVZHUWKHTXHVWLRQV
l :L]DUGVHQVXUHDOOGDWDLVPDLQWDLQHGFRQVLVWHQWO\
l :L]DUGVGRQRWRYHUORDGWKHXVHUZLWKLQIRUPDWLRQ
SAP AG 1999
,I\RXUEXVLQHVVSURFHVVLVUHDG\WREHLPSOHPHQWHG
V
RXU
<RXFDQXVHWKH:RUNIORZ%XLOGHUDQGLPSOHPHQW
WKHSURFHVVIURPVFUDWFK +
<RXFDQILQGFRS\DQGDGMXVWDZRUNIORZ RX UV
WHPSODWH +
<RXFDQILQGD:RUNIORZ:L]DUGWKDWGRHVWKLV
X WHV
0LQ
ZRUNIRU\RX
SAP AG 1999
n The implementation of workflow definitions takes some time. You have to define container
elements, insert steps, create bindings, assign agents, and, most importantly, define the flow logic.
n The flow logic for approval procedures (notification of absence, and so on.), circulars, and other
typical processes is always quite similar.
n If an experienced workflow developer has already implemented a workflow definition, such as the
approval of a notification of absence, they can use their experience or even the existing process
definition (as a template).
n But what if you are not an experienced workflow developer? Do you always have to start from the
beginning again, making all the mistakes that have been made by so many others? No! If you can use
the knowledge of a very experienced developer, you can save time and money.
n Therefore, we have integrated the knowledge and experience of our developers into the workflow
system and generated typical workflow definitions for you.
n Obviously, we cannot cover every occasion, but you can always change the generated workflow
definition.
6$3:RUNIORZ7HPSODWHV
:RUNZLWKDVSHFLILF
REMHFWW\SH
+ DYHWREHFRSLHGDQG
DGMXVWHGFRQWDLQHUHOHPHQWV
ELQGLQJDQGVRRQ
:RUNIORZ:L]DUGV
*HQHUDWHZRUNIORZGHILQLWLRQV
IRUDQ\REMHFWW\SH
3URFHVVORJLFFDQEHDGMXVWHG
VLPSO\E\DQVZHULQJTXHVWLRQV
3URYLGHVLPSOHGLDORJDQGJXLGH
\RXWKURXJKSURFHVVHV
SAP AG 1999
n Workflow Wizards generate workflow definitions, but they can be changed with the Workflow
Builder like any workflow definition.
n Important:The Workflow Wizards themselves are workflow definitions. If you execute a wizard, a
workflow is executed. This allows you to leave a Workflow Wizard without losing data (except the
current screen) and to restart the Workflow Wizard. Whenever you call the Workflow Wizard
Explorer, it checks if there are any incomplete Workflow Wizards and allows you to finish them.
n Background: We started to develop the concept of Workflow Wizards in 3.0C. We began by thinking
about the book Design Patterns - Elements of Reusable Object-Oriented Software' by the Gang of
Four' (Gamma, Helm, Johnson and Vlissides) and tried to adopt the main concept for process
definitions.
The main aim of these authors is to publish the knowledge of experienced software developers in
order to help other programmers. They call this knowledge "Design Patterns". We call our
knowledge "Workflow Wizards" and do not only propose a solution that can be implemented.
We also provide a component that generates workflow definitions according to your
requirements.
/RRNLQWKH:RUNIORZ:L]DUG
([SORUHULI\RXZDQWWR
LPSOHPHQW
$SSURYDOSURFHGXUHV
&XVWRPL]LQJ:L]DUGV
&LUFXODUVIRUIRUZDUGLQJREMHFWV
6LPSOHVHTXHQWLDORU
SDUDOOHOZRUNIORZGHILQLWLRQV
5HDGWKHGRFXPHQWDWLRQFDUHIXOO\DQG
GHFLGHLIRQHRIWKHZL]DUGVPHHWV\RXU
UHTXLUHPHQWV
SAP AG 1999
n There is now an improved user interface for accessing the Workflow Wizards. Each wizard has a
short description, which is displayed in the lower part of the screen when the user clicks on the
wizard text. The HTML documentation is accessed using a pushbutton in the tree.
n The documentation is no longer divided up into four documentation sections. This enables users to
access the whole documentation more quickly.
l )LQGWKHULJKW:RUNIORZ:L]DUG
l 5HDGWKHGRFXPHQWDWLRQ
l 6WDUWWKHZL]DUGE\FKRRVLQJ&UHDWHZRUNIORZ
GHILQLWLRQ
l 5HOHDVH'HFLGHZKHWKHUWR
n 'LVSOD\ZRUNIORZGHILQLWLRQGXULQJJHQHUDWLRQ
GRQRWFKRRVHWKLVRSWLRQ
n $FWLYDWHZRUNIORZGHILQLWLRQFKRRVHWKLVRSWLRQ
n &ODVVLI\WDVNDVJHQHUDOWDVNFKRRVHWKLVRSWLRQ
l $QVZHUDOOTXHVWLRQV
SAP AG 1999
n You have found the Workflow Wizard closest to your requirements - what do you do now?
n Start the Workflow Wizard by choosing Create workflow definition'and answer the prompts that
follow.
&DQZHXVHDZL]DUGWRLPSOHPHQWWKHEXVLQHVV
VFHQDULRRIDSSURYLQJDQRWLILFDWLRQRIDEVHQFH"
l 6WDUWWKH:RUNIORZ:L]DUG([SORUHU
l )LQGWKHGLIIHUHQWDSSURYDOSURFHGXUHV
n &DUHIXOO\UHDGWKHSUREOHPGHVFULSWLRQRIHDFKZL]DUG
w <RXRQO\QHHGWRGRWKLVRQFH
n )LQGWKHZL]DUGFDOOHG+ LHUDUFKLFDO
n 6WDUWWKLVZL]DUG
SAP AG 1999
,QLWLDOL]H$SSURYDO&RXQWHU
:RUNIORZFRQWDLQHU
ZLWK
$SSURYDO&RXQWHU
([FOXGHLQLWLDWRUIURPGHFLVLRQ
([FOXGHG$JHQWV
$SSURYDO([FOXGHDSSURYHUIURP
IXUWKHUGHFLVLRQVDGGWR
H[FOXGHGDJHQWV
1R <HV
6XEWUDFWIURP$SSURYDO&RXQWHU
QRZLWLV
$GGDSSURYLQJDJHQWWR
([FOXGHG$JHQWV
3DUW,,
SAP AG 1999
n First, the process initializes the ApprovalCounter with 1'(there is only one approval step).
n Then, the _WF_Initiator is added to the container element ExcludedAgents to exclude the creator of
the object from the approval decision.
n The next action is to find the valid agent(s) for the approval. The ExcludedAgents table is used to
exclude the agents that are not to be involved in the approval decision (again).
n If the notification of absence is approved, '
1'is subtracted from ApprovalCounter (current value: '
0')
and the approving agent is entered in the ExcludedAgents table so that they are no longer involved in
this approval process.
n In the event of rejection, the process is finished anyway. No further action is required for the
ApprovalCounter. If the ApprovalCounter is not 0' , the notification of absence is rejected.
3DUW,
:RUNIORZFRQWDLQHU (YDOXDWHDSSURYDOVWDWXV
$SSURYDO&RXQWHU $SSURYDO&RXQWHU "1RWLILFDWLRQRI
DEVHQFHDSSURYHG"
([FOXGHG$JHQWV
$SSURYDO5HVXOW
Yes No
$VNFUHDWRULIWKH\ZDQWWRFKDQJH
6HW$SSURYDO5HVXOWWR$
RUGHOHWHWKHQRWLILFDWLRQRIDEVHQFH
$SSURYHG
Flag set
Delete Change
6HQGHPDLOWRFUHDWRURI
6HW$SSURYDO5HVXOWWR'
QRWLILFDWLRQRIDEVHQFH
'HOHWHGRU&&KDQJH
Mail sent Flag Flag set
set
SAP AG 1999
n After the real'approval process has been finished, the results are evaluated.
n First, we check if all agents (in this case only one) have approved the request. The value of the
container element ApprovalCounter must be 0'so that the approval is recognized. All other values
are interpreted as rejection.
n If the notification of absence was approved, the value A'is assigned to the container element
ApprovalResult to show that the result was positive. An e-mail is then sent to the _WF_Initiator.
n If the notification of absence was rejected (ApprovalCounter <> 0' ), we ask the _WF_Initiator,
using a User Decision, if they want to change or delete the request. In each case, we set the
ApprovalResult to D'or C'in order to have the option of adding flow logic.
n Ensure that the following notes exist in your system:
0097933 '
WF Wizards: Wizards are not executable
0097188 '
WF Wizards: DYNAMICCIRCULAR creates incor. WF def.
0093507 '
WF Wizards: CIRCULAR generates incor. WF definit.'
0097180 '
WF Wizards: Modelled date monitoring
0082308 '
WF Wizards: CIRCULAR terminates'
n Report any problems with wizards. Wizards should be self-explanatory.
,QFOXGH([HFXWHIRUP
,QFOXGH&DOOWHVWSURFHGXUH&$77
0RGHOGHDGOLQHPRQLWRULQJ
,QFOXGH&UHDWHREMHFWUHIHUHQFH
,QFOXGH([HFXWHUHSRUWMRE
,QFOXGH&KRRVHDJHQW
SAP AG 1999
n Execute report
Integration of a step in the workflow definition that calls any report in the R/3 System. You can
specify the variant that is to be used. (The report can be executed by a user, or the system can
execute the report and place the result as an ALI list in any Business Workplace folder.)
n Model deadline monitoring
Integration of a step that is monitored by the system and executed when the deadline is reached.
n Call test procedure (CATT)
Integration of a step that calls any test procedure. You can start the test procedure and transfer data
(test procedure with import parameters) and call the data after the test procedure is completed (test
procedure with export parameters).
n Execute form
Integration of a step that is used to call a SAPforms form.
n Choose agent
Integration of a step in order to dynamically choose agents from a number of possible agents at
runtime.
:KDWLQSXWLVUHTXLUHG"
Report
Optional: Variant
Operation mode: Dialog processing (with or without selection
screen) or background processing (create ALI = ABAP list
and store in Business Workplace folder)
:KDWGRHVWKHZL]DUGGR"
Creates task with reference to report Execute_2
Classifies task as background task
or general task
Integrates task into the workflow definition and creates binding
SAP AG 1999
n Reports can be called in SAP Business Workflow without creating a separate object type. The
selection criteria obtain their values from the workflow container using the binding.
n A task is created using the wizard, the container definition of which corresponds to the input data of
the report. Therefore, the selection values from the workflow container can be transferred to the
wizard.
n A report can only have input parameters.
n ,PSRUWDQW QRWH
If additional parameters are inserted into the selection screen of the report or existing parameters are
deleted, the task including the report must be changed manually. You can, of course, always use the
wizard to create a new task.
:KDWLQSXWLVUHTXLUHG"
CATT procedure (test procedure, created using SCAT)
Naming of parameters (optional)
:KDWGRHVWKHZL]DUGGR"
SAP AG 1999
n Unfortunately, SAP cannot anticipate and implement all object types required during a workflow
project. Either you implement the required object types yourself or you use one of the following
options for calling functions in the R/3 System without implementing an object type:
Integration of CATT procedures
Integration of reports
n The CATT task reflects the parameters of the test procedure exactly in its task container. A CATT
procedure can have input and output parameters.
n ,PSRUWDQWQRWH: If the CATT procedure included in a task is extended by the addition of parameters
(import or export) or if parameters are deleted, the task must be adapted manually or a new task
generated with the wizard.
n You generate CATT procedures with transaction SCAT by executing the following steps:
You record the required transaction and enter the basic data for the CATT procedure.
You designate fields on the various screens as input or output parameters.
n A CATT procedure can automate any transaction in the R/3 System (parameters can be transferred
and called again). Transactions can also be controlled in an R/2 System using CATT with SAP
Business Workflow.
7KHREMHFWW\SH&$77FDQVWDUWDQ\WHVW
SURFHGXUHLQWKH6$36\VWHP
<RXFDQLQWHJUDWHWKHWHVWSURFHGXUHLQDQ\
H[LVWLQJZRUNIORZLQDPDWWHURIPLQXWHV
<RXQRORQJHUQHHGWRGHILQH\RXURZQ
REMHFWW\SHVWRFDOOWUDQVDFWLRQV
<RXFDQFKDQJHWKHJHQHUDWHGSDUWRI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
3URYLGHWKHSDUDPHWHUYDOXHVDQGFKRRVH&$77VHWWLQJV
6WDUWWKH&$77FOLFNWKH([HFXWHEXWWRQDJDLQ
&KRRVH(QWHU!RQHYHU\VFUHHQWRQDYLJDWHWKURXJKWKHWUDQVDFWLRQ
l &KHFNWKH&$77ORJILOHDQG\RXUQHZGDWD
SAP AG 1999
l &DOOWKH:RUNIORZ%XLOGHU
:RUNIORZQDPH=68B:)
&KRRVHWKH:RUNIORZVWDUWHGHYHQW
&KRRVH:L]DUGV!,QFOXGH&DOOWHVWSURFHGXUH&$77
([HFXWHWKHIROORZLQJVWHSV
w 6WDUWVWHS &RQWLQXH!
w 7HVWSURFHGXUH (QWHU\RXU&$77IRUH[DPSOH=68
w 3DUDPHWHUV 7KH&$77LPSRUWSDUDPHWHUVDUH
SURSRVHGDQGFUHDWHGDVZRUNIORZ
FRQWDLQHU
w %DVLFGDWD
$EEUHYLDWLRQ =68
1DPH &$77SURFHGXUHJURXS
w &RPSOHWLRQVWHS 'RQH!
SAP AG 1999
l &DOOWKH&$77ZRUNIORZVWHS
l &KHFNWKHELQGLQJ
l $VWKHDJHQWFKRRVH
([SUHVVLRQDQGWKHZRUNIORZLQLWLDWRU B:)B,1,7,$725
l 'HILQHWKHXQGHUO\LQJWDVNDVDJHQHUDOWDVNDQGUHIUHVK
WKHLQGH[
l 6DYH\RXUZRUNIORZDQGUHWXUQWRWKH:RUNIORZ%XLOGHU
l 6HWWKHQHZZRUNIORZFRQWDLQHUHOHPHQWVWR,PSRUWDQG
0DQGDWRU\
l &KHFNDQGDFWLYDWHWKHZRUNIORZ
SAP AG 1999
l ,QVHUWXVHUGHFLVLRQDWWKHVWDUWRIWKHZRUNIORZ
'R\RXZDQWWRVWDUWWKH&$77SURFHGXUH"
'HFLVLRQ<HV1R
As the agent, choose Expression and the workflow initiator
(The system will use this user later to start the CATT)
l 0RYHWKH&$77ZRUNIORZVWHSWRWKH<HVEUDQFKRIWKHXVHU
GHFLVLRQ
6HOHFWWKH&$77VWHS
5LJKWPRXVHEXWWRQ&XW
6HOHFWWKH<HVEUDQFK
5LJKWPRXVHEXWWRQ3DVWH
l &KHFNDQGDFWLYDWHWKHZRUNIORZ
SAP AG 1999
l :L]DUGVDUHWKHUHWRKHOS\RX
l :RUNIORZ:L]DUGVDUHIRXQGLQWKH
:RUNIORZ:L]DUG([SORUHU
l /RRNLQWKH:RUNIORZ%XLOGHUIRU
ZL]DUGVWKDWFDQKHOS\RXIRUVKRUW
VHFWLRQVLQWKHZRUNIORZGHILQLWLRQ
SAP AG 1999
8QLW:L]DUGV
7RSLF:RUNIORZ:L]DUGV
The first steps have been completed. The business process has been
designed and is ready for implementation. Wizards can support you when
specifying a workflow definition. You must learn how and when wizards
can help you. You need to know what type of wizards are available to
simplify the procedure for workflow definition.
$SSURYDOSURFHGXUH
1-1 You have already learned how an approval procedure is created for a notification of
absence. The Workflow Builder played a key role in this procedure. The
implementation time can now be reduced by using a Workflow Wizard.
First, you have to find the Workflow Wizard that matches your business scenario in
the :RUNIORZ:L]DUG([SORUHU.
The Workflow Wizards have to be activated before you can use them.
The instructor has already activated these wizards in the training system.
You do NOT, therefore, have to activate them now.
7KHH[DPSOHLQWKHSUHVHQWDWLRQVOLGHVXVHVWKHVDPHZL]DUG
As you already know, Workflow Wizards are also workflows. Workflows
can be interrupted and continued later. The Workflow Wizard Explorer
contains all started and unfinished Workflow Wizards. These wizards can
be continued at any time from the Explorer. You can also delete an active
wizard. During this exercise, you should press the "Return" key if a
dialog box indicating an unfinished Workflow Wizard appears.
1-1-1 To find the appropriate Workflow Wizard, expand all folders under
$SSURYDOSURFHGXUH in the tree structure and display the documentation for
each wizard.
1-1-2 Start the Workflow Wizard that meets your requirements by choosing the
"&UHDWHZRUNIORZGHILQLWLRQ" button
1-1-3 The wizard begins and various questions are displayed. Answer using the
following parameters:
Number of approval levels = 1
Use the object FORMABSENC
1-1-4 When the Workflow Wizard has completed processing, you are still in the
Wizard Explorer.
Choose (QYLURQPHQW-> 7DVNV to go to the Workflow Builder for the
generated workflow.
1-1-6 While in the Workflow Builder, open the workflow container and define the
element )250$%6(1&as a mandatory import parameter. Activate your
workflow.
1-1-7 As the user BC601-##, fill out a new notification of absence and then start
the generated workflow manually. Specify the number of this notification of
absence as an input parameter. Afterwards, check your manager s worklist.
SAP AG BC601 12-25
&LUFXODU2EMHFW)RUZDUGLQJ
2-1 You have now completed your first wizard. Wizards can, however, do more.
Circulars are often used within an enterprise in the form of folders that are passed to
teams or departments.
Never design processes like this from scratch! Wizards for generating
workflow definitions for circulars are also provided by SAP.
Open the Workflow Wizard Explorer and look in the &LUFXODU folder.
This section contains the following wizard types:
Circular
This wizard creates a workflow definition that routes an object
through a number of organizational units or positions. In the
workflow wizard definition, you define this number and specify the
recipients.
Ad hoc: Dynamic circular
This wizard creates a workflow definition as above, except the
number of recipients is assigned at runtime.
Both wizards have the same disadvantage: They forward objects
sequentially.
The following two wizards have the same features as the above wizards
but they route the object in parallel to all the recipients who have been
assigned.
Ad hoc: Dynamic parallel circular
Parallel circular
2-1-1 To find the appropriate Workflow Wizard, open the &LUFXODU folder in the tree
structure and read the documentation.
For this exercise, you should use the Workflow Wizard &LUFXODU. This
wizard is ideal for beginners as it contains few options and all the
information you need about circulars.
2-1-2 Start the Workflow Wizard by positioning the cursor on the wizard in the tree
structure and choosing the "&UHDWHZRUNIORZGHILQLWLRQ" button.
1RWHWKDWWKLVH[HUFLVHZRUNVZLWKGHDGOLQHPRQLWRULQJ
On the third screen, 'HDGOLQHPRQLWRULQJIRUFLUFXODU, you have to
activate deadline monitoring for the display steps.
&DXWLRQ Modeled deadlines usually contain a task that sends an e-mail.
This is only a suggestion - modify your deadline handling to suit your
needs.
8QLW:L]DUGV
7RSLF:RUNIORZ:L]DUGV
$SSURYDOSURFHGXUH
1-1 You have already learned how an approval procedure is created for a notification of
absence. The Workflow Builder played a key role in this procedure. The
implementation time can now be reduced by using a Workflow Wizard.
First, you have to find the Workflow Wizard that matches your business scenario in
the :RUNIORZ:L]DUG([SORUHU.
,QWKH6$3(DV\$FFHVVPHQXFKRRVH
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW 'HILQLWLRQ7RROV:L]DUGV
'RXEOHFOLFN:RUNIORZ:L]DUG([SORUHU
The Workflow Wizards have to be activated before you can use them.
The instructor has already activated these wizards in the training system.
You do NOT, therefore, have to activate them now.
7KHH[DPSOHLQWKHSUHVHQWDWLRQVOLGHVXVHVWKHVDPHZL]DUG
As you already know, Workflow Wizards are also workflows. Workflows
can be interrupted and continued later. The Workflow Wizard Explorer
contains all started and unfinished Workflow Wizards. These wizards can
be continued at any time from the Explorer. You can also delete an active
wizard. During this exercise, you should press the "Return" key if a
dialog box indicating an unfinished Workflow Wizard appears.
'LVSOD\WKHGRFXPHQWDWLRQIRUHDFKZL]DUGE\FOLFNLQJRQWKHZL]DUG
QDPH,I\RXFKRRVHWKHTXHVWLRQPDUNEXWWRQDGMDFHQWWRWKHZL]DUG
QDPHWKHFRPSOHWHGRFXPHQWDWLRQLVGLVSOD\HG
$IWHUKDYLQJFDUHIXOO\UHDGWKHGRFXPHQWDWLRQ\RXGHFLGHWKDWWKH
:RUNIORZ:L]DUG+LHUDUFKLFDODSSURYDOZRUNIORZPHHWVWKH
UHTXLUHPHQWVIRU\RXUEXVLQHVVVFHQDULR
1-1-2 Start the Workflow Wizard that meets your requirements by choosing the
"&UHDWHZRUNIORZGHILQLWLRQ" button.
6WDUWWKH:RUNIORZ:L]DUG+LHUDUFKLFDODSSURYDOZRUNIORZE\FOLFNLQJ
RQWKHZL]DUGQDPHDQGFKRRVLQJWKH&UHDWHZRUNIORZGHILQLWLRQ
EXWWRQ
1-1-3 The wizard begins and various questions are displayed. Answer using the
following parameters:
- Use the approval object type FORMABSENC
- Number of approval levels = 1
- Select your manager as the agent for approval
&KRRVHWKH&RQWLQXHEXWWRQ
7KH+LHUDUFKLFDODSSURYDOSURFHGXUHVFUHHQWKDWDSSHDUVQH[W
UHIHUVWRWKHREMHFWW\SH
5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DIRU\RXUZRUNIORZGHILQLWLRQ
(QWHUDQDEEUHYLDWLRQDQGDQDPHIRU\RXUZRUNIORZ
&KRRVHWKH&RQWLQXHEXWWRQ
1-1-4 Choose (QYLURQPHQW -> 7DVNV to go to the Workflow Builder after the
Workflow Wizard has completed processing.
7KHJHQHUDWHGZRUNIORZGHILQLWLRQLVGLVSOD\HG
,QSDUWLFXODUFKHFNWKHDJHQWDVVLJQPHQWERWKRQWKHZRUNIORZOHYHODQG
WKHWDVNOHYHO
'RXEOHFOLFNRQWKHHOHPHQWIRU)250$%6(1&,QWKH$WWULEXWHV
VHFWLRQVHOHFWWKH0DQGDWRU\DQG,PSRUWSDUDPHWHUV
&KRRVHWKH&RQWLQXH(QWHUEXWWRQ
([LWWKH:RUNIORZ%XLOGHU&KDQJHVFUHHQDQGDFWLYDWH\RXUZRUNIORZ
5HWXUQWRWKH:RUNIORZ:L]DUG([SORUHUVFUHHQE\FKRRVLQJWKH
%DFNEXWWRQ
1-1-7 As the user BC601-##, fill out a new notification of absence and then start
this workflow manually. Specify the number of this notification of absence
as an input parameter. Afterwards, check your manager s worklist.
2-1 You have now completed your first wizard. Wizards can, however, do more.
Circulars are often used within an enterprise in the form of folders that are passed to
teams or departments.
$QREMHFWLVWREHIRUZDUGHGIURPRQHDJHQWWRDQRWKHUDQGDWWKHVDPHWLPHLW
KDVWREHHQVXUHGWKDWDOODJHQWVKDYHVHHQWKHREMHFW,WVKRXOGEHSRVVLEOHIRUDQ
5XVHUWRVHQGDSDUWLFXODUREMHFW0LFURVRIW:RUGGRFXPHQWEXVLQHVV
GRFXPHQWDQGVRRQVHTXHQWLDOO\WRVHYHUDOGHILQHGRUJDQL]DWLRQDOXQLWVLQWKH
56\VWHPVRWKDWWKH\FDQFKHFNWKHREMHFWDQGPDNHFRPPHQWV,IWKHREMHFW
UHPDLQVLQDZRUNOLVWIRUWRRORQJZLWKRXWEHLQJYLHZHGWKHLQLWLDWRURIWKH
FLUFXODULVLQIRUPHG
Never design processes like this from scratch! Wizards for generating
workflow definitions for circulars are also provided by SAP.
Open the Workflow Wizard Explorer and look in the &LUFXODU folder.
This section contains the following wizard types:
Circular
This wizard creates a workflow definition that routes an object
through a number of organizational units or positions. In the
workflow wizard definition, you define this number and specify the
recipients.
Ad hoc: Dynamic circular
This wizard creates a workflow definition as above, except the
number of recipients is assigned at runtime.
Both wizards have the same disadvantage: They forward objects
sequentially.
The following two wizards have the same features as the above wizards
but they route the object in parallel to all the recipients who have been
assigned.
Ad hoc: Dynamic parallel circular
Parallel circular
8QGHU&LUFXODULQWKHWUHHVWUXFWXUHYLHZWKHGRFXPHQWDWLRQIRU
HDFKZL]DUGE\FOLFNLQJRQWKHZL]DUGQDPH,I\RXFKRRVHWKH
TXHVWLRQPDUNEXWWRQDGMDFHQWWRWKHZL]DUGQDPHWKHFRPSOHWH
GRFXPHQWDWLRQLVGLVSOD\HG
$IWHUKDYLQJFDUHIXOO\UHDGWKHGRFXPHQWDWLRQ\RXGHFLGHWKDWWKH
:RUNIORZ:L]DUG&LUFXODUPHHWVWKHUHTXLUHPHQWVIRUWKHEXVLQHVV
VFHQDULR
For this exercise, you should use the Workflow Wizard &LUFXODU. This
wizard is ideal for beginners as it contains few options and all the
information you need about circulars.
2-1-2 Start the Workflow Wizard by positioning the cursor on the wizard in
the tree structure and choosing the "&UHDWHZRUNIORZGHILQLWLRQ" button.
6WDUWWKH:RUNIORZ:L]DUG&LUFXODUE\FOLFNLQJRQWKHZL]DUGQDPH
DQGFKRRVLQJWKH&UHDWHZRUNIORZGHILQLWLRQEXWWRQ
2-1-3 The wizard starts and various questions are displayed. For this exercise,
use object type 62)0 (RIILFHGRFXPHQW). This object type provides a
'LVSOD\method (DISPLAY) (Important: The method has to be executed
synchronously and in dialog mode).
&KRRVHWKH&RQWLQXHEXWWRQ
2QWKH2EMHFWW\SHIRUFLUFXODUVFUHHQHQWHUWKHREMHFWW\SH62)0
2IILFHGRFXPHQW
&KRRVHWKH&RQWLQXHEXWWRQ
2QWKH7DVNIRUFLUFXODUVFUHHQHQWHUWKHWDVNIRUWKHFLUFXODU8VH
DWDVNWKDWUHIHUVWRWKH',63/$<PHWKRGRI62)08VH76
\RXKDYHWRHGLWWKLVWDVNVHSDUDWHO\DQGFODVVLI\LWDVDJHQHUDOWDVNVR
HYHU\6$3XVHULVDSRVVLEOHDJHQW
&KRRVHWKH&RQWLQXHEXWWRQ
1RWHWKDWWKLVH[HUFLVHZRUNVZLWKGHDGOLQHPRQLWRULQJ
On the third screen, 'HDGOLQHPRQLWRULQJIRUFLUFXODU, you have to
activate deadline monitoring for the display steps.
&DXWLRQ Modeled deadlines usually contain a task that sends an e-mail.
This is only a suggestion - modify your deadline handling to suit your
needs.
&KRRVHWKH&RQWLQXHEXWWRQ
2QWKH:RUNIORZ:L]DUG([SORUHU&LUFXODUVFUHHQ\RXFDQDVVLJQ
WKHDJHQWVZKRDUHWRUHFHLYHWKHFLUFXODU6HOHFWWKHDJHQWUHTXLUHG
IURPWKHOLVWXQGHU$OODJHQWVDQGFKRRVHWKH$GGVHOHFWHGDJHQW
EXWWRQ
&KRRVHWKH&RQWLQXHEXWWRQ
2QWKH&UHDWHZRUNIORZWHPSODWHVFUHHQWKDWDSSHDUVQH[W\RXFDQ
HQWHUWKHEDVLFGDWDIRU\RXUZRUNIORZGHILQLWLRQ
(QWHUDQDEEUHYLDWLRQDQGDQDPHIRU\RXUZRUNIORZ
&KRRVHWKH&RQWLQXHEXWWRQ
2QWKH&RPSOHWHZRUNIORZGHILQLWLRQVFUHHQFKRRVHWKH
&RPSOHWHEXWWRQ
2-1-4 Choose (QYLURQPHQW -> 7DVNV to go to the Workflow Builder after the
Workflow Wizard has completed processing.
Check the workflow.
&RQWHQWV
l (OHFWURQLF)RUPV6$3)RUPV
l (DV\:HE7UDQVDFWLRQV
l :HEIORZ;0/EDVHG
l (PDLOQRWLILFDWLRQ
SAP AG 1999
SAP AG
$WWKHFRQFOXVLRQRIWKLVXQLW\RXZLOOEHDEOHWR
l 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UYHU
$SSOLFDWLRQ
'DWDEDVH
SAP AG 1999
n The ,QWHUQHW7UDQVDFWLRQ6HUYHU,76extends the three-stage Client/Server structure of the SAP
System into the Internet.
n For the SAP System, the ITS and the Web server form an intermediate level between the application
level and the presentation level.
n For the Internet user, the ITS provides interactive HTML pages (generated at runtime).
n Simultaneous use of an SAP System with a SAPGUI and an Internet Transaction Server is easily
possible.
SAP AG 1999
7KLVJHQHUDWHG(DV\
+C
-,/.1032
4D
45
76A
698E
:,@
<;>=D
3?>
?@?A;
,
,B4D
4
:(%7UDQVDFWLRQ
LVXVHGIRU
HQWHULQJDQHZ
FXVWRPHU
+C
-,/
B.1
F069
>8K
G8H2@I@J 0B
=
B5J 6AI:?<=B5
=
7KHWUDQVDFWLRQ
VWDUWVDZRUNIORZ
+C,/.F
16O
A;L<
@=@
<I@J M)=B
5J 6AID=<
@N/
)=B4
D4@JPLAI3
<8:
E,<I
D5 LQVWDQFH
H[HFXWHVD
ZRUNLWHP
SAP AG 1999
n You can use WEB forms to start workflows or to execute work items.
n When you start a workflow with a WEB form, no event is published. The form data is transferred
directly to the workflow container and the internal event Workflow started occurs.
n WEB forms can start workflow templates (WS).
Standard tasks (TS) can be used for processing forms.
Customer SAP
Sales Sales Sales
in the BAPI
support manager rep.
Internet CATT
Workflow container
SAP AG 1999
n The logical information flow in SAP Business Workflow is controlled by the workflow container.
n At runtime, the data enters the workflow container, and is transferred to the individual steps of the
workflow.
3URFHVV
SAP AG 1999
n %LQGLQJDWWKHVWDUWRIDZRUNIORZ
When you start a workflow with a WEB form, no event is published.
The data is transferred directly from the form into the workflow container, and the workflow
starts with the first processing step.
Import elements are displayed on the form as "ready for input", and are then exported into the
workflow container.
Workflow templates and tasks can be started in this way
Recommendation: Only start workflow templates
n %LQGLQJZKHQDWDVNLVH[HFXWHG
The WEB form is a copy of the workflow container
Import elements are transported from the SAP System into the task container, and are displayed
on the form
Export elements are displayed as "changeable", and are then transferred from the form into the
workflow container
The underlying task must refer to the method FORM.HTMLprocess
0HWKRG+70/3URFHVV FDOOHG
=B4D4@J LAI38G,<I5
$WWULEXWHV Y%Z[,<ID,<;=<N\5$=49]/^[6A;
=D0/5J _9J 5a`GLA;6A29b
R@,SD5
4
SAP AG 1999
n Use the method HTMLProcess of the object type FORM for WEB forms.
n As with every task, you must maintain an agent assignment.
n As with every task, you must maintain notification texts.
n The flag Executable in the Internet is not applicable in Release 4.6C,
since all tasks can now be executed in the Internet.
Task
Task container:
Transaction
One element for each screen field
YABTS98700009H
Approve
form Screen 100 Screen 200
t)u>vxwBy z
System help
{ || { |~{ } { }}
,B`3,<;
Name of customer:
t)u>vxwBy z
System Help
{ || { |~{ } { }}
150
,QWHUQHW :HE
,76
Customer Meyer created
%URZVHU VHUYHU
200
VFUHHQ 5
WHPSODWH
+70/SDJH 6HUYLFH
+70/
%XVLQHVV
ILOHV WHPSODWHV
SAP AG 1999
Where? What?
SAP AG 1999
n Step 3 can be skipped if you want to execute a workflow without using a form.
n If the workflow contains more than one form, you must repeat the process for every step.
n Exception:
The site definition must only be created once.
n From Release 4.6C onwards, sap@web Studio activities can be carried out within transaction SE80
of the R/3 System.
2 characters
1DPHVSDFHWHPSODWH $%
:RUNIORZWHPSODWH :6
Service
name =
6HUYLFH <$%:6+ Trans-
action
0RGXOHSRROZLWKVFUHHQ
6$30<$%:6+ name
+70/WHPSODWHV 6$30<$%:6+B+70/
6$30<$%:6+B+70/
6$30<$%:6+B+70/
6$30<$%:6+B+70/
SAP AG 1999
n To reserve namespaces for WEB transactions and the associated module pools, you need to define a
namespace template.
You can enter any 2 characters.
n You are recommended to use a general development class for the namespace template and the
generated WEB transactions.
l Project-oriented approach
l Enables creation, management, maintenance, and
publishing of
3URMHFWV
6HUYLFHVWUDQVDFWLRQV
+70/ WHPSODWHVVFUHHQV
>B
6WXGLR
named files
l Can be installed on NT-based PCs
l You can download the ,76
and the 6$3#:HE6WXGLRfrom the Internet
homepage of SAPlabs in Palo Alto
l From Release 4.6C onwards, you can use
the Workbench for SAP@WEB Studio tasks
SAP AG 1999
n You use the 6$3#:HE6WXGLR to maintain all the components of a WEB transaction outside the
R/3 SAP System. This includes the following components:
Service files
HTMLBusiness templates
MIME objects for pictures, sound, videos, ...
Files with language-dependent place holders
n The SAP@Web Studio is a project-oriented tool. This means that developers create a local directory
for their project, where they store the different components of the WEB transaction. A project can
have more than one WEB transaction.
n There are wizards to help create new objects (services, templates).
n Objects are transferred to the ITS by publishing them.
n All objects maintained with the SAP@Web studio can be transferred to the R/3 SAP System
Workbench Organizer, and the R/3 transport system. They are then fully embedded in the R/3
development environment.
n The SAP@Web studio is installed using the IST, and runs on NT4.0 and above.
p 69=D?
,<;
_>J 0B,K<JPN ,
-4,<;CT-,DO2D,B45
=9NPN e Z[=B5
, ,<I? TjaEfPI@b9259
T-,A2D,B45G
e ,<og4D,@;$_,<; e L<=57,
d Z=B5,
p 6<=?
R
- p 5
,8b9N =B5
,
N =@ILA2D=3 L<,?<,@bD,<I<?<,<I5>
SAP AG 1999
1. A user requests information from a WEB server (by clicking on a link or input URL)
2. The WEB server sends the request to the Wgate (Wgate is a part of the URL
(for example, http://myserver/scripts/wgate.dll/pzm1/! )
3. WGate converts the request to a form suitable for R/3, and sends it to the Agate. The AGate starts a
new transaction, or forwards the request to an already existing session. (In this case, step 4 is
skipped)
4. If a new session is started, the AGate loads the Service File to get the connection parameters (R/3
system, user, client,) and logs on to a new SAP System.
5. The data in the request is transferred to the input fields in the input screen. (Similar to a batch input
session)
6. The screen is processed in the R/3 SAP System, and a new screen is transferred to the Agate (the
screen is identified by the program name and the screen number).
7. Agate loads the relevant HTML template and replaces the place holders with the data from the R/3
SAP System.
8. The resulting HTML page is transferred to the Wgate.
9. WGate forwards the HTML page to the WEB server. It sends the page to the client (browser), from
which the request has come.
l &KDQJHZRUNIORZWHPSODWH
&DOO\RXU&$77ZRUNIORZ
&KDQJHLWWRDJHQHUDOWDVN
&KRRVHWKHPHQXRSWLRQ*RWR:HEWUDQVDFWLRQDQGH[HFXWH
WKHZRUNIORZ
l 6WDUWWKHQHZWUDQVDFWLRQIRUH[DPSOHQ<$%:6+
&RQWLQXHRQVFUHHQ
5HIUHVKWKH2UJ%XIIHU
(QWHUQHZGDWDIRUWKHURRP
7UDQVIHUDQGYHULI\WKHVWDUWHGZRUNIORZ
l &KRRVH<(6LQWKHXVHUGHFLVLRQ
l :DLWIRUD&$77VWDWXVPHVVDJH
l &KHFNWKHUHVXOWRIWKH&$77
SAP AG 1999
Order
Company
Company Computer
Computer
"1999"
"1999" Status query manufacturer
6WDUW
SXUFKDVH
Company
Company RUGHU Computer
Computer
"200x"
"200x" manufacturer
manufacturer
(QG
QRWLILFDWLRQ
n 2SWLRQ:
Customer gives an order directly to a supplier in an external system.
The business processes are started as "subroutines".
n 2SWLRQ:
In a workflow-controlled business process, an XML-based task is called, which in turn starts a
workflow in an external system (receiver).
The data for the called workflow is transferred at the same time.
n The following combinations of calling and receving system are possible:
SAP non-SAP
non-SAP SAP
SAP SAP
n The SAP Business Connector is not needed for this scenario.
The workflow WEB activity generates the XML code independently.
n Customers who would like to become pilot customers should send an e-mail to the following
address: bpt@sap.com.
End
ProcessInstanceStateChanged
(State = completed)
End
SAP AG 1999
n "6HQG": Web activity step (new step type in the Workflow Builder) with parameters:
URL of the external process
Reference workflow, whose container is used to generate XML messages
Format (Wf-XML or "without envelope")
Flag "Wait for end confirmation"
(Similar to the terminating event for an asynchronous method)
n "5HFHLYHU": Handling incoming XML documents
n Format for query and response is described in XML
n Queries and responses can be sent using the HTTP protocol
6\VWHPV
$SSUR[PHPEHUV:)06PDQXIDFWXUHUVXVHUV
FRQVXOWDQWVDQDO\VWV
SAP AG 1999
"[POYHUVLRQ "!
:I0HVVDJH9HUVLRQ !
:I7UDQVSRUW!
:I0HVVDJH+HDGHU!
5HTXHVW!
5HVSRQVH5HTXLUHG!<HV5HVSRQVH5HTXLUHG!
5HTXHVW! 5HFHLYHU85/ 5HFHLYHU:)WHPSODWH
.H\!KWWSZZZ[\]FRP:IHQJLQH"LG .H\!
2SHUDWLRQ!&UHDWH3URFHVV,QVWDQFH2SHUDWLRQ!
:I0HVVDJH+HDGHU!
:I0HVVDJH%RG\!
:I0HVVDJH%RG\!
:I0HVVDJH!
SAP AG 1999
SAP AG 1999
l $LP
(YHU\WLPHDZRUNLWHPLVVWRUHGLQWKH6$36\VWHP
%XVLQHVV:RUNSODFHWKHUHOHYDQWXVHUVKRXOGUHFHLYHD
PDLO
l 3URFHGXUH
7KH6$31HWQRWHFRQWDLQVDQ$%$3SURJUDPDQGD
SURFHVVGHVFULSWLRQ
(YHU\6$3XVHUPXVWPDLQWDLQWKHLURZQHPDLODGGUHVVLQWKH
:RUNSODFHXQGHU6HWWLQJV2IILFHVHWWLQJV$XWRPDWLF
IRUZDUGLQJ
7KHXVHUIRUZKRPWKHUHSRUWLVVFKHGXOHGPXVWKDYH
PDLQWDLQHGDQ,QWHUQHWDGGUHVVLQWKHXVHUGDWDXQGHUIXUWKHU
FRPPXQLFDWLRQ7KLVEHFRPHVWKHVHQGHURIWKHPDLO
$6HQG0DLOSURFHVVPXVWEHDFWLYH
$Q,QWHUQHW*DWHZD\PXVWEHDFWLYHLQWKH6$36\VWHP
SAP AG 1999
n The e-mail text is formed from the description text for the underlying task of the work item.
n The program also offers the option to attach the URL address for the R/3 system WEB Inbox to your
email.
n Using transaction SCOT, you can determine whether the necessary processes are running in the
system.
You also can trigger sending specifically from this transaction.
n The send process is called RSCONN01.
n For sending missed deadline work items, read Note 200996.
l 7KHUHDUHYDULRXVIRUPVRI
LQWHJUDWLRQZLWKWKH,QWHUQHW
6$3)RUPV
(DV\:HE7UDQVDFWLRQV
;0/IORZ
l &RPPXQLFDWLRQZLWK5V\VWHPV
LVE\5)&0DLODQG,76
SAP AG 1999
SAP AG
l ,QWKH%25ILQGDVXLWDEOHREMHFWW\SHIRUWKH6$3
2UJ2EMHFWZLWKNH\DWWULEXWH
'HVFULSWLRQ
DQG
PHWKRG
([LVWHQFH&KHFN
l &KHFNWDEOH7IRU6$32UJ2EMHFWV7KLVWDEOH
GLVSOD\VZKLFKRUJDQL]DWLRQDOREMHFWVWKH6$3
RUJDQL]DWLRQDOREMHFWW\SHFDQEHOLQNHGWR
l /LQNWKH6$3RUJDQL]DWLRQDOREMHFWWR\RXU
RUJDQL]DWLRQDOVWUXFWXUH
l ,IQRW\HWDYDLODEOH,QWKHREMHFWW\SHWKDWLVEHLQJ
SURFHVVHGFUHDWHDQDWWULEXWHWKDWUHIHUVWRWKH
6$3RUJDQL]DWLRQDOREMHFWW\SH
l &UHDWHDUROHRIW\SHRUJDQL]DWLRQDOGDWD
SAP AG 1999
n In table T7791 you will find the SAP organizational object type T024L, which stands for a design
office. This can be linked to organizational units.
n Creating a link to customer-specific organizational structure:
SAP EASY ACCESS - Tools - Business Workflow - Development - Definition Tools -
Organizational Management - SAP Organizational Objects - Create Assignments
Enter the object type T024L and your desired organizational unit, and choose the "Change"
button.
Select your organizational unit and choose Assignment - Create.
The system displays a popup and asks for the value for the laboratory that is to be linked to the
organizational unit specified.
Enter the required value.
The members of the organizational unit named are then responsible for all material masters that
refer to the value entered in the laboratory field.
n In the object type that you want to process in the workflow, ensure that an attribute refers to the SAP
organizational type. In the material master, the attribute laboratory refers to T024L.
n Define a role with role type organizational data, and enter T024L as an SAP organizational object
type.
n Enter this role in the workflow step and secure the binding.
7
2'HVLJQ8QLW
')(+*,'.-
/+0132 ')-/40132 627/.%
3RVLWLRQB860HLHU
7/
23URGXFW0DQDJHPHQW8QLW 3'25*
627/30
3RVLWLRQB86+LQ]
SAP AG 1999
n Runtime:
a) Because the role input parameter was BUS1001.Laboratory, the role resolution scans the whole
organizational plan for units that are linked to this object of type T024L.
b) If they are also possible agents of the task, the holders of positions in these units are the recipients.
7XWRULDO&UHDWLQJD1RWLILFDWLRQRI$EVHQFH:RUNIORZ
You will learn which steps you need to carry out to define the
standard task Create notification of absence. Because this is your
first standard task, the individual steps are described in detail. Any
subsequent definitions of standard tasks are not described in such
detail. A standard task is always a single-step task with reference to an
object method.
7DVNVDQGZRUNIORZVPXVWEHDVVLJQHGWRHDFKSRVVLEOHDJHQW7RFDUU\
RXWWKLVDVVLJQPHQWPDNHWKHIROORZLQJHQWULHV
1-1-3 6HOHFW$GGLWLRQDOGDWD$JHQWDVVLJQPHQW0DLQWDLQ
The screen Workflow template: Maintain Agent Assignment is displayed.
Position the cursor on the name of your workflow template.
Choose the Attributes button. This displays the dialog box Task: ....
Select General task and choose Transfer (green check). Refresh the
index (red and white ball).
Return to the previous screen and save your entries.
,QWKHILUVWVWHSRIWKHH[HUFLVH\RXFUHDWHGWKHZRUNIORZWHPSODWHWKDWLV
WKHSUHUHTXLVLWHIRUEXLOGLQJDQGH[WHQGLQJWKH1RWLILFDWLRQRI$EVHQFH
ZRUNIORZGHILQLWLRQ&DUU\RXWWKHIROORZLQJVWHSVWREXLOGWKH
1RWLILFDWLRQRI$EVHQFHZRUNIORZ
'HILQLQJ\RXUWDVNDVD*HQHUDOWDVNPHDQVWKDWHYHU\HPSOR\HHKDV
DXWKRUL]DWLRQWRFUHDWHDQRWLILFDWLRQRIDEVHQFH)XUWKHUHQWULHVIRU
SRVVLEOHDJHQWVDQGRWKHUDGGLWLRQDOGDWDDUHQRWUHTXLUHGDWWKLVSRLQW
<RXKDYHQRZIXOO\GHILQHG\RXUILUVWVWDQGDUGWDVN6DYH\RXUZRUNDQG
WKHQUHWXUQWRWKH6$3(DV\$FFHVVPHQX
The workflow definition is created using the Workflow Builder. You have already
created your workflow template. You will now start to create the associated
workflow definition.
3-1-1 Start from the SAP Easy Access menu. Select "Change" under folder
Task/Task Groups and then select the workflow template you have
already created.
Use the following steps to select the workflow template:
'RXEOHFOLFN&KDQJHXQGHUIROGHU7DVN7DVN*URXSV
This displays the screen "Task: Maintain".
Position the cursor in the input field Task type, and use F4 to call the
possible entries.
Select the object type Workflow template (WS) from the object types
displayed.
Position your cursor in the input field Task and use F4 to call the
possible entries.
This displays the dialog box Choose Workflow template.
,QWKHILHOG6HDUFKWHUPHQWHUHLWKHUWKHHQWLUHDEEUHYLDWLRQRI\RXU
ZRUNIORZWHPSODWHRU\RXUJURXSQXPEHUWRUHVWULFWWKHVHOHFWLRQRIWDVNV
IRUH[DPSOH
DQGFRQILUP\RXUHQWU\
If there are several workflow templates which match the search term
entered, a list is displayed from which you can select your workflow
template. If only one task is found, its unique identification number is
entered automatically in the Task input field in the screen Task:
Maintain.
The screen "Task: Maintain" is displayed. The input fields should now
contain the task type and identification number of your workflow
template.
6HOHFW7DVN&KDQJHRUFKRRVHWKH&KDQJHEXWWRQ
The screen Workflow Template: Change is displayed.
You have already entered the basic data of the workflow template in the
second unit ( Step 2: Creating the workflow template) You can now go
directly to the Workflow Builder without making any further entries.
Start the Workflow Builder.
&KRRVH*RWR:RUNIORZ%XLOGHU&XUUHQWYHUVLRQRUFKRRVHWKH
:RUNIORZ%XLOGHUEXWWRQ
7KH:RUNIORZ%XLOGHUKDVDQRGHDUHDIRUREMHFWVWKDWFDQEHLQVHUWHG
LQWR\RXUZRUNIORZGHILQLWLRQ<RXFDQDGGQHZVWHSVIURPWKLVDUHDWR
\RXUZRUNIORZGHILQLWLRQE\XVLQJ'UDJ 'URS
,I\RXQRORQJHUNQRZWKH,'XVHWKH)KHOSWRVHDUFKXVLQJWKHWDVN
DEEUHYLDWLRQ7KHGLDORJER[6HDUFKDQG)LQG7DVNVLVGLVSOD\HG
6HOHFWWKH7DVNWDE
(QWHU\RXUFKRVHQDEEUHYLDWLRQRUJURXSQXPEHUDVWKHVHDUFKFULWHULD
IRU\RXUVWDQGDUGWDVN&UHDWHQRWLILFDWLRQRIDEVHQFH,I\RXRQO\HQWHU
WKHILUVWIHZFKDUDFWHUVRI\RXUDEEUHYLDWLRQ\RXJHWDOLVWRIWDVNVIURP
ZKLFK\RXFDQFKRRVHWKHWDVNUHTXLUHG6HOHFW\RXUWDVNLQWKHOLVWDQG
FOLFNWKH7UDQVIHUEXWWRQ
(YHU\DFWLYLW\DVDVWHSLQDZRUNIORZGHILQLWLRQUHIHUVWRDWDVN
7KH&5($7(PHWKRGUHIHUUHGWRLQ\RXU&UHDWHQRWLILFDWLRQRI
DEVHQFHWDVNFUHDWHVDIRUPWKDWZLOOEHVXEPLWWHGWRWKHVXSHUYLVRUIRU
DSSURYDOODWHULQWKHZRUNIORZ7KHUHIHUHQFHWRWKHQRWLILFDWLRQRI
DEVHQFHFUHDWHGPXVWEHNQRZQLQWKHZRUNIORZFRQWDLQHU7RDFKLHYH
WKLVDELQGLQJPXVWEHGHILQHGIURPWKHWDVNFRQWDLQHUWRWKHZRUNIORZ
FRQWDLQHU
7KLVKDSSHQVE\WKHDVVLJQPHQW1RWLILFDWLRQRIDEVHQFH !
$EVHQFH)RUP WKDWLVDXWRPDWLFDOO\FUHDWHG7KHRWKHUELQGLQJ
GLUHFWLRQLVQRWUHOHYDQWIRUWKLVVWHS
4-1 )LUVW7HVWRIWKH1RWLILFDWLRQRI$EVHQFH:RUNIORZ
You can now perform the first test on the workflow template you have created.
Starting workflows and filling out forms.
Remain in the screen Workflow Builder: Change.
To start the workflow, choose:RUNIORZ7HVWor choose the Test
buttonThis displays the screen Start Workflow (Test Environment).
Click on the Refresh organizational environment button.
Your workflow template ID is displayed in the Task field.
Start your workflow template.
This displays the screen Create Notification of Absence and the form
for the notification of absence.
Fill out and save the form.
The screen Start Workflow (Test Environment) is displayed again.
Return to the SAP Easy Access menu
5-1 'HILQLQJWKH6WDQGDUGWDVN&KHFN1RWLILFDWLRQRI$EVHQFH
In the SAP Easy Access menu, choose Task/Task Groups, -> "Create" to
start this exercise.
Re-open the folders
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
7DVNV7DVN*URXSV
'RXEOHFOLFN&UHDWH
This displays the screen "Task: Maintain".
Select the task type Standard task, and enter task T2_Create_##.
&KRRVHWKH&UHDWHEXWWRQ
This displays the screen "Standard Task: Add".
<RXKDYHWKHRSWLRQWRLQFOXGHSDUDPHWHUVLQWKHZRUNLWHPWH[W$W
UXQWLPHWKHVHSDUDPHWHUVZLOOEHILOOHGZLWKYDOXHV
<RXZDQWWRLQFOXGHWKHQDPHRIWKHDXWKRURIWKHQRWLILFDWLRQRIDEVHQFH
LQWKHZRUNLWHPWH[W$VVRRQDVWKHZRUNLWHPDSSHDUVLQWKH
VXSHUYLVRUVLQWHJUDWHGLQER[WKHQDPHRIWKHDXWKRUZLOODSSHDULQWKH
ZRUNLWHPLQIRUPDWLRQWH[W
Choose Continue to
to return to the Standard Task: Change screen.
The parameter &_WI_OBJECT_ID.CREATOR.ID& has been added to
the work item text automatically.
The & symbol marks the position in the text where the parameter will be
inserted.
<RXKDYHDVVLJQHGWKHVWDQGDUGWDVNWRDGHSDUWPHQWKHDGMRE<RXXVH
WKLVMRELQWKHRUJDQL]DWLRQDOSODQWRGHVFULEHDSRVLWLRQ7KHKROGHURI
WKHSRVLWLRQLVDOVRGLVSOD\HG&RPSDUH\RXUDVVLJQPHQWVZLWKWKRVH
GHILQHGLQ\RXURUJDQL]DWLRQDOSODQ
6-1 ,QWHJUDWLQJ&KHFN1RWLILFDWLRQRI$EVHQFHLQWKH:RUNIORZ'HILQLWLRQ
You have already created a workflow template in the preceding exercise Creating
a Workflow template. You then integrated a standard task in the workflow
definition for the step "Create Notification of Absence". You will now continue by
integrating the standard task "Check notification of absence" into the workflow
definition.
6HOHFW(GLW&UHDWH
(OHPHQW: Authorizer
1DPH Authorizer
7KHILUVWHQWU\GHILQHVDELQGLQJIURPWKHZRUNIORZFRQWDLQHUWRWKHWDVN
FRQWDLQHU7KLVHQVXUHVWKDWWKHWDVN&KHFNQRWLILFDWLRQRIDEVHQFH
NQRZVZKLFKREMHFWLVLQYROYHG
7KHVHFRQGHQWU\GHILQHVDELQGLQJIURPWKHWDVNFRQWDLQHUWRWKHZRUNIORZ
FRQWDLQHU7KLVHQVXUHVWKDWDQ\GDWDFUHDWHGDVDUHVXOWRIWKHVWHSWDVNLV
WUDQVIHUUHGWRWKHZRUNIORZFRQWDLQHUIRUWKHVXEVHTXHQWVWHSLQWKH
ZRUNIORZGHILQLWLRQ
$IXUWKHUELQGLQJGHILQLWLRQPXVWEHH[HFXWHGLQZKLFKWKHDFWXDODJHQWRI
WKHZRUNLWHPIRUH[DPSOHWKHVXSHULRULVVWRUHGLQDQHOHPHQWRIWKH
ZRUNIORZFRQWDLQHU
&KRRVHWKH6KRZOLQHVEXWWRQ
All elements of the task container are now displayed on the left. You
can use these elements for other definitions. The name of the agent
for the work item is available in the element $FWXDODJHQWHOHPHQW
QDPH:,B$FWXDOB$JHQW of the task container after the work item
has been executed. Note: Choose the Technical view on/off button
to see the technical name for the element WI_Actual_Agent.
To define the binding from the task container to the workflow
container, position the cursor in the bottom part of the binding editor
display, in the empty input field opposite $FWXDO$JHQW. Use F4 to
call the possible entries.
The dialog box: Please Choose an Expression for Element Actual
Agent is displayed.
Select $XWKRUL]HU from the list by double-clicking.
In addition to the bindings that already exist, the following binding
has now been defined:
Actual Agent==> &Authorizer&
Exit the screen.
The assignment Notif. of absence. ==> &AbsenceForm& is not
actually necessary for this step.
5HVSRQVLELOLW\PXVWEHGHILQHGIRUHDFKVWHS7KDWPHDQVWKDWZKHQ
WKHVWHSLVH[HFXWHGLQWKHZRUNIORZSURFHVVWKLVVWHSLVRIIHUHGIRU
SURFHVVLQJWRDOOHPSOR\HHVGHILQHGDVSRVVLEOHDJHQWVRIWKHVLQJOH
VWHSWDVN&KHFNQRWLILFDWLRQRIDEVHQFH7KLVPHDQVDOOHPSOR\HHV
ZKRVHSRVLWLRQLVGHVFULEHGE\WKHMRE+HDGRIGHSDUWPHQW
5HPLQGHU
You maintained the organizational plan with jobs, positions and staffing
assignments in the exercises for the Introduction unit.
You defined the single-step task "Check notification of absence" with the
assignment of the possible agents when defining the standard task "Check
notification of absence".
<RXPXVWHQVXUHWKDWWKHXVHUZKRLVDVVLJQHGWRWKHSRVLWLRQRIPDQDJHU
LQWKHRUJDQL]DWLRQDOVWUXFWXUHFUHDWHGLQWKHSUHYLRXVXQLWVLVWKHVDPH
DVVLJQHGKROGHUIRUWKHDSSURYDOVWHS7BFKHFNB
7-1-1 6WDUWLQJWKH:RUNIORZWHPSODWHDQG)LOOLQJ2XWWKH)RUP
From the SAP Easy Access menu, choose 7RROV%XVLQHVV:RUNIORZ
'HYHORSPHQW5XQWLPH7RROV. Double-click "Start Workflow (Test
Environment)". Click the Refresh organizational environment button.
As in the previous exercises, start your workflow template by choosing the
Execute button.
Alternatively, you can branch directly from the Workflow Builder to
starting a workflow by choosing :RUNIORZ7HVWor the7HVW button. The
task number is already determined.
)URPWKHDSSOLFDQWVSHUVSHFWLYH8VHU,'%&
When the workflow is started, the work item for creating the notification
of absence is displayed immediately. This is because subsequent work
items can be started immediately. You were introduced to this in the first
test. The screen Create Notification of Absence is displayed. Fill out
and save the form.
)URPWKH+HDGRI'HSDUWPHQW
VSHUVSHFWLYH8VHU,'%&
0*5
You have defined the step Check notification of absence in your
workflow definition so that all possible agents for the single-step task
are considered as agents for this step. Since you occupy the position of
both applicant and head of department, you are automatically
immediately presented with the work item Approve notification of
absence. This is again due to the fact that follow-up work items are
started immediately.
As the superior, you have several options. You can
- $SSURYHWKHDSSOLFDWLRQ,
5HMHFWWKHDSSOLFDWLRQ
- &DQFHOSURFHVVLQJRIWKHDSSOLFDWLRQ.
Choose the Cancel option.
$WWKLVSRLQWLQWKHILUVWWHVWRI\RXUZRUNIORZWHPSODWH\RXZHUH
LQWURGXFHGWRZRUNLWHPDQDO\VLV<RXDUHQRZJRLQJWRZRUNZLWKWKH
ZRUNIORZRXWER[
7KHZRUNLWHPVWKDW\RXVWDUWHGLQWKHGLDORJZLWKGDWHWLPHDQGFXUUHQW
VWDWXVDUHGLVSOD\HGLQWKHZRUNIORZRXWER[
If the department head rejects the request for leave, the employee
should have the chance to revise and resubmit the request. In this
situation, a user decision can be integrated as a step in the workflow
definition.
8-1 8VHUGHFLVLRQ
Start the SAP Easy Access Menu, and choose
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV7DVNV7DVN
*URXSV&KDQJH
8-1-1 Choose the workflow template that has already been created, then go to the
Workflow Builder.
8-1-2 Creating a user decision as a step in the workflow definition
Click in the node area on the icon for User decision. The cursor
changes.
Position the cursor on the Undefined step after the outcome 5HMHFWHG,
and click. This inserts a step of the desired type 8VHUGHFLVLRQ into the
workflow definition.
The screen for defining a user decision in the standard mode is
displayed.
'HFLVLRQWH[WV 2XWFRPHQDPH
Revise application? Application revised
Withdraw application? Application withdrawn
7KH'HFLVLRQWH[WV\RXFDQHQWHUKHUHZLOODSSHDUDVSRVVLEOHGHFLVLRQVLQ
WKHZRUNLWHPWKDWWKHDSSOLFDQWFDQSURFHVVDIWHUKLVKHUUHTXHVWIRU
OHDYHKDVEHHQUHMHFWHG
7KH2XWFRPHQDPHVDUHWKHWHUPVWKDWGHVFULEH\RXURXWFRPHVLQWKH
ZRUNIORZGHILQLWLRQ
5HPHPEHUWKDW\RXPXVWEHORJJHGRQWRWKH56\VWHPDVERWKWKH
$SSOLFDQWDQGWKH0DQDJHUWRH[HFXWH\RXUWHVWDQGWRVZLWFK
EHWZHHQVHVVLRQVIRUWKHDSSURSULDWHVWHSVGXULQJWKHH[HFXWLRQRIWKH
ZRUNIORZ
)URPWKH$SSOLFDQWV3HUVSHFWLYH
To start the workflow, choose
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW5XQWLPH7RROV6WDUW
:RUNIORZ7HVW(QYLURQPHQW
Select your workflow template. (Refresh organizational environment)
Start your workflow template. The form is displayed for processing. Fill
out and save the form.
When you have saved the form, switching logon sessions to the
applicants manager allows you to directly approve or reject the
application (because subsequent work items are started immediately).
)URPWKH6XSHULRUV3HUVSHFWLYH
Reject the application.
Exit the screen.
You integrated the user decision as a subsequent step in the workflow
definition in case the application is not approved. The applicant was
entered as the agent for this step. You therefore immediately have the
option to execute the user decision as an applicant (because subsequent
work items are started immediately).
)URPWKH$SSOLFDQWV3HUVSHFWLYH
You have three options:
- 5HYLVHDSSOLFDWLRQ
:LWKGUDZDSSOLFDWLRQ
&DQFHO
It is irrelevant whether you choose change or withdraw, because
you have not defined any follow-up steps.
If you choose &DQFHO, this work item stays in your inbox. Start your
workflow several times and test the different options.
The processing can be checked each time in the workflow log, through
work item analysis or the workflow outbox.
This unit describes the steps that you need to carry out to define the
standard task "Revise notification of absence". You have already
learned that a standard task is always a single-step task that refers to
an object method.
10-1 'HILQLQJWKH6WDQGDUGWDVN5HYLVH1RWLILFDWLRQRI$EVHQFH
10-1-1 In the SAP Easy Access menu, choose Task/Task Groups -> "Create".
Re-open the folders
7RROV%XVLQHVV:RUNIORZ'HYHORSPHQW'HILQLWLRQ7RROV
7DVNV7DVN*URXSV
'RXEOHFOLFN&UHDWH
This displays the screen "Task: Maintain".
Select the task type Standard task in the Task type field.
&KRRVHWKH&UHDWHEXWWRQ
This displays the screen "Standard Task: Add".
Entries for Basic data:
Describe the standard task to be created in the fields Abbr. and
Name.
$EEU <T3_Revise_## >
1DPH <Revise notif. of absence (T3_Revise_##)>
Entries for Object method:
Enter FORMABSENC in the Object type field.
Enter UPDATE in the Method field.
Choose F4 for possible entries.
Defining an agent:
First save all entries made so far.
&KRRVH$GGLWLRQDOGDWD!$JHQWDVVLJQPHQW!0DLQWDLQ
The screen Standard task: Maintain Agent Assignment is displayed.
Position the cursor on the name of your standard task.
Select the function Attributes.
This displays the dialog box Task:...
Select General task and then Transfer.
Do not forget to update the index.
To do this, click on the red and white ball.
Choose Back and then save.
The standard task for revising the notification of absence has been fully
defined.
11-1 ,QWHJUDWLQJ5HYLVH1RWLILFDWLRQRI$EVHQFHLQWKH:RUNIORZ'HILQLWLRQ
You have already created a workflow template and integrated several steps into the
workflow definition. You will now continue by integrating the standard task
"Revise notification of absence" into the workflow definition.
11-1-1 Start from the SAP Easy Access menu. Choose "Change" under folder
Tasks/Task Groups, and then choose the workflow template you have
already created.
Use the following steps to select the workflow template:
'RXEOHFOLFN&KDQJHXQGHUWKHIROGHU7DVNV7DVN*URXSV
This displays the screen "Task: Maintain".
Use F4 to show the possible entries if necessary, and enter the type
(WF) and the ID of the workflow template you created, into the relevant
input fields.
&KRRVH6HOHFW7DVN&KDQJHRUFKRRVHWKH&KDQJHEXWWRQ
The screen Workflow Template: Change is displayed.
&KRRVH*RWR:RUNIORZ%XLOGHU&XUUHQWYHUVLRQRUFKRRVHWKH
:RUNIORZ%XLOGHUEXWWRQ
This displays the Workflow Builder. Adjust the navigation area so that
the entire workflow can be seen in the display area.
In this exercise, you will extend the processing logic of the Notification
of absence workflow by incorporating an until loop. The until loop
introduces procedures that were not needed in the definition of previous
steps in the workflow definition.
12-1 ,QWHJUDWLQJWKH817,//RRSIRU5HDSSURYDO
First, you need to create another element in the workflow container. It is used to
define the condition in the UNTIL loop. To assign values to the container element,
you need to carry out container operations with the workflow container.
12-1-1 Start at the SAP Easy Access menu and open folders Tasks/Task Groups .
Double-click "Change". Then choose the workflow template that is already
created.
Selecting a workflow template / Calling the Workflow Builder
As in previous units of this exercise, access your workflow template and
activate the Workflow Builder to start the required activities for this
exercise. If you require additional information to perform these tasks,
refer to earlier units for more detailed instructions.
From within the Workflow Builder, set the navigation area so the entire
workflow can be seen in the display area.
&KRRVH(GLW&UHDWH
- (OHPHQW: Flag
- 1DPH Flag
7KHZRUNIORZFRQWDLQHUHOHPHQW)ODJZKLFKUHIHUVWRDQ$%$3
'LFWLRQDU\ILHOGKDVWKHW\SH&+$5DQGOHQJWK7KHHOHPHQW)ODJKDV
QRW\HWEHHQDVVLJQHGDYDOXH,QWKHQH[WVHFWLRQ\RXZLOOWKHUHIRUH
LQVHUWFRQWDLQHURSHUDWLRQVLQWRWKHZRUNIORZGHILQLWLRQ7KHFRPSDULVRQ
EHWZHHQWKHFRQWDLQHUHOHPHQW)ODJDQGWKHFRQVWDQWH[SUHVVLRQ;
UHWXUQVHLWKHUWKHUHVXOWWUXHRUIDOVH7ZRVXEVHTXHQWRXWFRPHVDUH
WKHUHIRUHSRVVLEOH
7KHZRUNIOR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PHQW
IODJ7KHFRPSDULVRQLQWKH817,/ORRSWKHQUHWXUQVWKHUHVXOWWUXH
7KHORRSLVH[LWHG
7KHRSHUDWLRQHQWULHVDUHH[HFXWHGDWUXQWLPH:KHQ\RXVWDUWWKH
ZRUNIORZDQGWKH6HWIODJWR=VWHSLVH[HFXWHGWKLVPHDQVWKDWWKH
HOHPHQW)ODJLQWKHZRUNIORZFRQWDLQHULVJLYHQWKHYDOXH=7KHYDOXHRI
)ODJLVUHWDLQHGXQOHVVLWLVFKDQJHGH[SOLFLWO\
0DQDJHUVSHUVSHFWLYH
The employees application is resubmitted to the superior. He/she can carry out
the steps described above to approve or reject the application.
This workflow definition does not provide for a situation where employee
and superior do not reach an agreement. However, it would not be
difficult to integrate additional steps in the workflow definition (for
example, automatic notification of another person if the application is
exchanged repeatedly between the employee and head of department).
14-1 5HSRUWLQJDQG$QDO\VLV
You should start the workflow several times and test the alternatives. They can then
be analyzed using work item analysis or the workflow outbox. The step log
provides information on all stages of the processing. This includes the following
information:
Which steps were executed
Who the agent was
When processing was carried out?
The result of the processing
,WLVRIWHQQHFHVVDU\WRDXWRPDWLFDOO\VHQGQRWLILFDWLRQVDERXWVLWXDWLRQV
WKDWDULVHQWRSDUWLFXODUUHFLSLHQWV7RGRWKLV\RXFDQGHILQHDVLQJOH
VWHSWDVNWKDWVHQGVDQRWLILFDWLRQZKHQH[HFXWHG<RXWKHUHIRUHH[WHQG
WKHZRUNIORZGHILQLWLRQVRWKDWWKHSHUVRQUHTXHVWLQJYDFDWLRQLV
LQIRUPHGDXWRPDWLFDOO\RQFHWKHUHTXHVWKDVEHHQDSSURYHG
7KHVWHS6HQGPDLOQRZKDVLWVRZQZRUNIORZDFWLYLW\
&DOOWKH:RUNIORZ%XLOGHULQWKHFKDQJHPRGHIRU\RXUZRUNIORZ
=:)B12$B
1RWH
7KHUHPXVWEHDWOHDVWRQHVSDFHEHIRUHDQGDIWHUHDFKDWWULEXWH
)RUHDFK6HQGPDLOVWHSWKHZRUNIORZV\VWHP
DXWRPDWLFDOO\FUHDWHVDVLQJOHVWHSWDVN
&UHDWHWDVN
Enter the abbreviation of your mail task: T_MAIL_##,
then enter the /RQJQDPH for your mail task: Mail ##
Click Continue Enter and save your mail task.
The number of your task now appears in the Control tab page.
1RZHQWHUDVWHSGHVFULSWLRQIRUH[DPSOHVacation request.
This name is displayed in the Workflow Builder next to the activity.
)LQDOO\FKHFNWKHELQGLQJ
15-1-5$FWLYDWHDQGWHVW\RXUZRUNIORZ
In this test run, the superior approves the vacation request.
15-1-65HDGYDFDWLRQPDLO
This workflow sends the initiator a mail. This mail is not a work item. You
can read the mail in your Business Workplace.
In the Business Workplace, click on the unread documents in the inbox.
Double-click the subject line to display the mail in detail
7KH6$36\VWHPGRHVQRWDXWRPDWLFDOO\GHOHWHWKLVPDLO
DIWHU\RXKDYHUHDGLW
'HOHWHWKHPDLO\RXUVHOI
15-1-7 View once more the single-step task generated for you by the SAP System.
End of tutorial.
6XSSOLHGZLWK5HOHDVHDQGEHORZ
&$&URVV$SSOLFDWLRQ&RPSRQHQWV
Processing Document Info Records (CA-DMS)
Message Control (CA-GTF-BS)
EDI Status Record Processing (CA-EDI)
ALE Error handling on incoming Idocs
),)LQDQFH
Workflow Scenarios in Finance (FI)
Parked Documents
Payment Release
Financial Calendar
Workflow Scenarios in Asset Management (FI-AA)
Bulk Changes to Master Data
Mass Retirement
Processing Incomplete Assets
Triggering a Workflow From a Validation (FI-SL)
/2/RJLVWLFV
Changes with Reference to an Engineering Change Request or Engineering Change Order (LO-ECH)
Logistics Information System: Trigger Workflow from an Exception in the Early Warning System (LO-
LIS)
000DWHULDOV0DQDJHPHQW
Releasing a Purchase Requisition (MM-PUR-REQ)
404XDOLW\0DQDJHPHQW
Quality Notification (QM-QN)
Quality Inspection (QM-IM)
303ODQW0DLQWHQDQFH
Maintenance Order Management (PM-WOC-MN)
Purchase Order Change (PM-WOC-MO)
Service Management (PM-SMA)
363URMHFW6\VWHP
SAP AG BC601 14-61
Workflow in the Project System (PS-EXE-WFL)
3$3HUVRQQHO$GPLQLVWUDWLRQ
Recruitment (PA-APP)
Personnel Administration (PA-PAD)
Process Absence Approval (PA-TIM-REC)
Automatic Generation of Documents for HR Applications Using SAP Business Workflow
%&%DVLV
Demo Example: Processing a Notification of Absence (BC-BEW-WFM)
Example: Processing a Notification of Absence using SAPforms (BC-BEW-WFM Form)
1HZZLWK5HOHDVH
0RGLILFDWLRQVRIH[LVWLQJWHPSODWHVDUHQRWPHQWLRQHGKHUH
),)LQDQFLDO7UDYHO([SHQVHV
Trip request approval (FI-TV)
Trip Reimbursement approval (FI-TV)
000DWHULDOV0DQDJHPHQW
Releasing a whole Purchase Requisition
Releasing a Purchase Order
Releasing a Quotation
Releasing a Contract
Releasing a Scheduling Agreement
Settlement of Agreements in Purchasing
Release of locked Vendor Data
3$3HUVRQQHO$GPLQLVWUDWLRQ
Process Absence Approval (using SAPforms)
Raise of Salary (using SAPforms)
5HWDLO
Currency Conversion (LO-MD)
1HZZLWK5HOHDVH
0RGLILFDWLRQVRIH[LVWLQJWHPSODWHVDUHQRWPHQWLRQHGKHUH
3'3HUVRQQHO'HYHORSPHQW7UDLQLQJDQG(YHQWV
Business Event Lifecycle (PE)
+5+XPDQ5HVRXUFH(666FHQDULRV
+5+XPDQ5HVRXUFH0DQDJHUV:RUNEHQFK
Notification/Approval for New Positions (HR-CA)
Approval of Organizational Change (HR-CA)
6'6DOHV
Dealing with Credits (SD-SLS-OA)
Change of Group Contracts (SD-SLS-OA)
7UHDVXU\
Approval of Investments
5HWDLO
Release of Locked Deliverer Data (LO-MD-BP)
5HDOHVWDWH
Management of Rental Units
%DVLV
Customer Record approval via WEB
1HZZLWK5HOHDVH
0RGLILFDWLRQVRIH[LVWLQJWHPSODWHVDUHQRWPHQWLRQHGKHUH
3$3HUVRQQHO$GPLQLVWUDWLRQ
Salary & Bonus Approval (PA-CN)
3'3HUVRQQHO'HYHORSPHQW7UDLQLQJDQG(YHQWV
Qualification Planning (PE)