You are on page 1of 129

AB2002 - Business Workflow - v1.

0
AB2002 - Business Workflow - v1.0
Business Workflow
Business Workflow
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
Business Workflow
Business Workflow
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
Workflow Definition
Workflow Definition

SAP Business Workflow is a cross-application tool that


makes it possible to interate business tasks/processes
between appli!ations.

"his tool was intro#u!e# in $%& $elease &.0A' an#


re!eive# a substantial fa!elift in the (n)o* $elease' +.,A'
whi!h warrante# the new name Workflow Buil#er.
Need for Workflow
Need for Workflow
A business pro!ess !an !onsist of several steps. -istori!all*' the
tasks have been !oor#inate# manuall* or b* some informal means
of !ommuni!ation .sti!k* note' e-mail' shoutin' an# so on/.
"he !ommon problem in these approa!hes is 0
1 2neffi!ien!*
1 (a!h la!ks a wa* to tra!e where a task is
1 Who e3e!ute# .or is e3e!utin it/'
1 -ow mu!h time it re4uire#.
2n !ontrast' the workflow ensures that the right work is sent to
right person at the right time in the right sequence with the
right information.
Why SAP Workflow
Why SAP Workflow

"ool for the automi5ation of !usiness processes

6ot tie# up to an* parti!ular appli!ation

7perates uniforml* across applications

8oor#inate all parti!ipatin tasks

Provi#e users with acti"e support


Workflow Boundaries
Workflow Boundaries
"he !omponent uses the e#isting transactions 9 function
modules. "he fun!tionalit* an# operabilit* of the e3istin transa!tions
an# fun!tion mo#ules are neither !hane# nor restri!te# b* the
workflow !ontrol.
SAP Business Workflow #oes not intervene in the proramme#
pro!esses within a transa!tion
"he !omponent makes the $%& S*stem easier to operate' whi!h is
parti!ularl* useful for inexperienced or occasional users.
Business Workflow
Business Workflow
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
Workflow
Workflow

A workflow !onsists of a se4uen!e of steps'


whi!h are pro!esse# either b* people or
automati!all* b* the s*stem.
Workflow Builder
Workflow Builder

:o#elin tool for !reatin a workflow


#efinition.
1
8reatin an# pro!ess workflow #efinition
1
"est an# a!tivate a workflow #efinition
Workflow Definition

"e!hni!al #es!ription of a workflow

Workflow #efinition is ma#e up of in#ivi#ual


steps an# events with one step an# one or
more events makin up one unit. "hese units
!an be arrane# in se4uen!e or in parallel.

"he workflow #efinition is the set of rules that


#etermine the path that the pro!ess takes. ;or
e3ample' how a pur!hase re4uisition is
pro!esse#' from the initial re4uest to the
!reation of the pur!hase or#er
Workflow $nstance
Workflow $nstance

A Workflow 2nstan!e' whi!h is often simpl*


referre# to as the workflow' is a sinle
workflow run. ;or e3ample' the pro!essin
of a sinle pur!hase re4uisition for
!omputers.
%ask
%ask

"he "asks are the steps in the pro!ess' whi!h have to


be performe# either b* people or automati!all* b* the
software. ;or e3ample' to !he!k for the availabilit* of
the spare !omputers in the !ompan*.

<urin runtime a tasks is represent as a Workitem.

;ollowin tasks e3ist in the workflow !onte3t0


1 Sinle-step task
A!tivit* in whi!h an ob)e!t metho# is e3e!ute# on a spe!ifi! ob)e!t
1 :ulti-step task .Workflow/
A!tivit* whose #es!ription in!lu#es referen!e to a workflow
#efinition
Work $tem
Work $tem

A Work item is the task instan!e that is


performe# as a sinle workflow step. ;or
e3ample' !he!k that there are no spare
!omputers available in the !ompan*.
Agent
Agent

Aents are the people who pro!ess the tasks .via the work
items/. ;or e3ample' re4uisitioner an# a member of the
pur!hasin #epartment.
A s*stem user who parti!ipates a!tivel* in SAP Business
Workflow an# e3e!utes work items
"*pes of aents available
1 Possible aent
=ser who is orani5ationall* authori5e# to start a task an# e3e!ute the
asso!iate# work item
1 $esponsible aent
=ser assine# lo!all* to a step in the workflow #efinition
1 (3!lu#e# aent
=ser who is e3!lu#e# from pro!essin a work item
&ontainer
&ontainer
8ontainer is the pla!e where all the #ata use# in the workflow is !olle!te#.
Basi! !ommon #ata stru!ture of the various #efinition.
8ontainers have !ontainer elements for hol#in the followin0
1 >alues .8onstants/
1 Stru!ture
1 7b)e!t referen!es
1 8omple3 t*pes
"he !ontainer elements !an be use# to !ontrol the e3e!ution of work items an#
workflows.
"*pes of !ontainer0
1 Workflow !ontainer
1 "ask 8ontainer
1 (vent 8ontainer
1 :etho# 8ontainer
1 $ule 8ontainer
Binding
Binding

Bin#in is the set of rules that #efine whi!h #ata is


passe# to whi!h part of the pro!ess.

Assinment of values to a !ontainer element at


runtime.

Bin#in #efinition0
1
Spe!ifi!ation of assinment rules #es!ribin the
assinment of #ata to a !ontainer element or the
e3!hane of #ata between two !ontainer element.
Business '!(ect Builder
Business '!(ect Builder

"ool for !reatin an# pro!essin business ob)e!t


t*pes.

8an be use# to a!!ess the #efinition of an ob)e!t


t*pe

Subt*pes !an be !reate# for e3istin Business


ob)e!t t*pe
'!(ect %ype
'!(ect %ype

Business ob)e!ts interate the #ata an# fun!tions of business


appli!ations into *our workflows.

"he* enable workflow enine to !ommuni!ate with business


appli!ations with all the fle3ibilit* an# robustness re4uire# for
a pro#u!tion environment
'!(ect %ype
<es!ription of #ata .ob)e!ts/ in the s*stem !reate# at #efinition time
in the Business 7b)e!t Buil#er
7b)e!t t*pes are #es!ribe# an# implemente# b* spe!if*in the
followin !omponents0
1 Basi! #ata
1 ?e* fiel#s
1 Attributes
1 :etho#s with parameters' result an# e3!eptions
1 (vents with parameters
1 2mplementation proram
"he 7b)e!t t*pe must be #efine# before its #ata .7b)e!ts/ !an be
use# in the s*stem.
Workflow pro(ect Approach
Workflow pro(ect Approach
2#entif* the Business Pro!esses
Does an SAP
workflow already
e#ist in the standard
system
=se the SAP workflow
8reate the workflow
2mplement the workflow
"est the workflow
)*
+*
,*
-es
No
Business Workflow '"er"iew
Business Workflow '"er"iew
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
W'./01'W A.&2$%3&%4.3
W'./01'W A.&2$%3&%4.3
Workflow Architecture
Workflow Architecture
Position
Position%)ob 7r. unit
$ole
"ask
W; #efinition
step
Attribute (vents :etho#s
7b)e!t
7rani5ation
Pro!esses
Business
7b)e!ts
Who is e3e!utin
the pro!essin
steps@
Whi!h steps #oes
the pro!ess !ontain
All services are
provided in the form
of execta!le methods
W'./01'W &4S%'5$6$N7
W'./01'W &4S%'5$6$N7
What Auto-&ustomi8ing Does
What Auto-&ustomi8ing Does
%he automatic workflow customi8ing sets up the system using defaults so
that you ready to use the system as quickly as possi!le*
%he most important acti"ities are as follows9
1 5aintain Acti"e Plan :ersion
Plan "ersion ;with its contents< is seen !y the workflow system as
the only "alid plan "ersion*
All SAP Workflows supplied automatically !ecome part of the plan
"ersion that has !een selected as the acti"e plan "ersion
'nly one of the plan "ersions created in the system can !e acti"e*
1 &onfigure .0& Destination
%he runtime system always e#ecutes its t.0& calls "ia the logical
destination W'./01'W=1'&A1=>>> ;>>> stands for client
num!er<
%he workflow runtime system is client dependent i*e* a single
workflow instance normally e#ecutes within one client
1 5aintain Workflow System Administrator
1 Schedule Background ?o! for 5issed Deadlines
1 5aintain Prefi# Num!ers
Automatic Workflow &ustomi8ing9 SW4,
Automatic Workflow &ustomi8ing9 SW4,
8ustomi5in is
2na!tive
8ustomi5in is
A!tive
=se this button to
perform automati!
!ustomi5ation
&ustomi8ing the system is the "ery first step that you will take when &ustomi8ing the system is the "ery first step that you will take when
you plan to use workflow you plan to use workflow
'.7AN$6A%$'NA1
'.7AN$6A%$'NA1
S%.4&%4.3
S%.4&%4.3
&reating an 'rgani8ational Plan
&reating an 'rgani8ational Plan
SAP AA 1BBB
Tas"s# $ord processin%& schedlin%
meetin%s& phone calls
;ebruar )* 0e!ruar )@@A
2* Bo! Simmons
7eneral %ech $ncorporated
1os AngelesB &ACA)AD
Sehr geehrter 2* Simmons9
We ha"e recently scheduled a training
meeting to de"elop course material for ne#t
year* Pl ease compile alist of possi!le topics
!y0e!ruary )Cth* $ will !e creating a priorit y
listing for these
Step )9
&reate root
organi8ational unit
Step ,9 &reate
(o!s
Administrative
assistant
Administrative
assistant
Step E9 ?o!s
Positions Administrative
assistant&
Sales Mexico
Administrative
assistant&
Sales Mexico
Step A9 Assign
holders
Step C9 Assign
holders
Prodction
Prodction Sales Mexico
Sales Mexico
'xective (oard 'xective (oard
Step +9 Additional
organi8ational units
Lisa Thompson Lisa Thompson
&reating an 'rgani8ational Plan ;Simple
5aintenance<
%he a!o"e diagram illustrates that the first step in Simple 5aintenance is to create
a root organi8ational unit* 'nce one organi8ational unit has !een createdB the
organi8ational units !elow it ha"e to !e created*
'rgani8ational units and (o!s may !e created in any order !ut must e#ist !efore the
associated positions are created*
?o!s may e#ist in the (o! inde# or may !e created once the model contains an
organi8ational unit*
Positions are created once the rele"ant (o!s ha"e !een created in the (o! inde#*
%asks are assigned using (o!s and positions*
2olders are assigned to positionsB not to (o!s*
Assignment Workflow %asks9
Assignment Workflow %asks9
'rgani8ational '!(ects
'rgani8ational '!(ects
%he rele"ant users recei"e a work item at runtime*
1 %ask )9 4ser ) ;"ia manager (o!<
1 %ask +9 4ser )B user + ;"ia manager (o!/(o! for secretary<
1 %ask ,9 4ser )B user +B user ,B user E ;"ia organi8ational unit<
1 %ask E9 4ser )B user ,B user E ;"ia position for head of 0$
department/(o! for 0$ employee<
1 %ask C9 4ser + ;"ia secretary (o!<
1 %ask A9 4ser ,B user E ;"ia (o! for 0$ employee<
SAP AA 1BBB
=ser 1
=ser 1
=ser &
=ser &
=ser 2
=ser 2
'rgani8ational unit9 0$ department
'rgani8ational unit9 0$ department
5anager (o!
5anager (o!
Position9 2ead of 0$
department
Position9 0$ administrator )
Position9 0$ administrator )
Position9 Secretary
Position9 Secretary
=ser +
=ser +
Position9 0$ administrator +
Position9 0$ administrator +
?o! for 0$
employee
?o! for 0$
employee
%ask9 E
%asks9
EB A
%asks9
+B C
%ask9 ,
%asks9
)B +
Assignment
Workflow %asks - 'rgani8ational '!(ects
?o! for secretary
?o! for secretary
&reate ?o!9 PP'5
&reate ?o!9 PP'5
Positions
Positions
SAP AA 1BBB
Positions
Positions are specific to your
organi8ation*
5ultiple positions may
perform similar (o! tasks*
3ach position typically
represents one employeeB !ut
may !e partially filled !y more
than one*
?o!9 &hief
Position9
&hief - West .egion
Position9
&hief - 3ast .egion
Position9
&hief - 3urope
%ask9 Appro"e
"acation request
&reate Position9 P'),
&reate Position9 P'),
Basic 2. Definition for Workflow
Basic 2. Definition for Workflow
SAP AA 1BBB
=ser
Position
7rani5ational unit
Basic 2. Definition for Workflow
-ou can create your organi8ational plan quickly using the function FSimple 5aintenanceG
in 2. 'rgani8ational 5anagement* -ou only cater for the !asic o!(ects
and their relationships*
-ou can create your organi8ational plan quickly using the function FSimple 5aintenanceG
in 2. 'rgani8ational 5anagement* -ou only cater for the !asic o!(ects
and their relationships*
8reation of Workflow or "asks
throuh "-8o#e0 P;"8
&lient $ndependent
Stan#ar# task 0 %S
Workflow "emplate 0 WS
"ask Aroup 0 %7
&lient Dependent
8ustomer tasks 0 %
Workflow "ask 0 W0
6o loner use#'
supporte# in
previous versions
0i"e Huestions for each part of a Business
Process and how to map them in Steps/%asks
$n What 'rder9 Workflow Definition
Workflow definition controls the calling
sequence of each step* Steps like workflowB
can also !e triggered !y e"ents*
$n What 'rder9 Workflow Builder ;SWDD<
I2ow it looks
SAP AA 1BBB
Workflow Definition9 Workflow Builder
Workflow
definition
Workflow
definition
%riggering
e"ent
Step
Sym!ol for
workflow start
and end
Workflow Builder9
6aviation an# #ispla* area
Print0 Co!al % $%& spool % file
8he!k an# a!tivate
With What '!(ect What9
%-code9 P0%&B &alling 5ethods within a %ask
Atta!h 7b)e!t :etho# here'
ive 7b)e!t 8ateor*'
7b)e!t "*pe an# :etho#
6ame
<efine bin#in between
"ask 8ontainer an# :etho#
here.
<efine
S*n!h % As*n!h
<ialo % Without <ialo
With What '!(ect9
Business '!(ect and its 5ethod
Business 7b)e!t
(.. B=S20DB
What9 5ethod &onfigurations
What9 5ethod Parameters
W2'9 Agents
$esponsible Aents
(3!lu#e# Aents
Possible Aents
Possible Aents
assinment
Button turns reen if
aent assinment is
!onfiure#
When %-code9 P0%&
3"ents can !e used to trigger9

Workflow instantiation

8ommen!ement of a step

8ompletion of a step' normall* for


as*n!hronous tasks
When
SWDD Dou!le &lick on StepI
A 8on#ition' :ultiple 8on#ition an# =ser <e!ision
step have more than one out!ome an# #epen#in
on the !on#itions onl* one of them is e3e!ute#.
7ut!omes !an be labele# for eas* un#erstan#in.
S%3P %-P3S
S%3P %-P3S
Step %ypes in Workflow
Step %ypes in Workflow
=ser <e!ision

- "he aent is aske# a 4uestion an# iven a pre-#efine#
list of answers
- All the options are available in the work item.
- (a!h answer is a separate bran!h in workflow
Step %ypes in Workflow
Step %ypes in Workflow
Coop .=ntil/

$untime use0
- for the purpose of iterative pro!essin of a few
steps base# on !ertain !on#ition.

Step %ypes in Workflow
Step %ypes in Workflow
Sen# :ail0
- "he te3t entere# in this step t*pe is sent as an
e-mail
- Both e3ternal .on the outlook i#/ an# internal
mails .SAP mails/ !an be sent

Step %ypes in Workflow
Step %ypes in Workflow

Sen# :ail0
"he sub)e!t
line of the
mail - E0
!hara!ters
at the ma3.
"o insert
8ontaine
r
(lements
"o enter
te3t in
mail
Step %ypes in Workflow
Step %ypes in Workflow

Sen# mail0

Within the "ask
.un#er the
876"$7C tab/
"he sub)e!t line of
mail shown in
Work item "e3t
"he :ail "e3t is
present un#er the
#es!ription "ab within
the "ask
Step %ypes in Workflow
Step %ypes in Workflow
8on#ition
$un time use0
- 8an be use# in a s!enario where further
!ourse of a!tion #epen#s on the !on#ition bein
true or false
8on#ition
Step %ypes in Workflow
Step %ypes in Workflow
Pro!ess 8ontrol
- "his !an be use# to !an!el the e3e!ution of a
work item or workflow or set a work item to
obsolete
- 2t fa!ilitates the alternate steps to be taken in the
pro!ess obsolete bran!h

Step %ypes in Workflow
Step %ypes in Workflow
Pro!ess 8ontrol0
"he options
available with
Pro!ess
!ontrol
"he workflow step is
to be mentione#
#epen#in on the
;un!tion !hosen
Step %ypes in Workflow
Step %ypes in Workflow
:ultiple 8on#ition0


Base# on the value of a workflow !ontainer
element one of the several bran!hes in
workflow is pro!esse#

:ultiple 8on#ition
Step %ypes in Workflow
Step %ypes in Workflow
(vent 8reator 0
- "o raise an event in the workflow

- <ata moves from workflow to event
Step %ypes in Workflow
Step %ypes in Workflow
Wait0
- "he s*stem waits for a spe!ifi! event to be
triere#
- "he work item is onl* !omplete# if the e3pe!te#
event o!!urs
Step %ypes in Workflow
Step %ypes in Workflow
;ork0
- =se# for the purpose of parallel pro!essin
- "he user !an #efine the number of parallel pro!esses an# how man*
shoul# be !omplete# for the ;ork to terminate an# workflow to
!ontinue
- "he fork !an be terminate# b* #efinin a !on#ition too

Step %ypes in Workflow
Step %ypes in Workflow
8ontainer operation0
-
;or the purpose of performin arithmeti!
operations or value assinments to workflow
!ontainer
-
8onstants an# #ata within workflow !an be use#
-
:ultiline operations are allowe#
Step %ypes in Workflow
Step %ypes in Workflow
A# ho! an!hor
- Aives user the option to sele!t between various
workflows at runtime
- "he steps of the sele!te# Workflow shall repla!e this
one
Step %ypes in Workflow
Step %ypes in Workflow
Web A!tivit*
- "he sele!te# !ontainer elements are poste#
usin the http proto!ol in an F:C or S7AP
messae
Step %ypes in Workflow
Step %ypes in Workflow

Subworkflow0
- An a!tivit* that refers to another workflow rather than a
task

=n#efine# Step0

-"hese !an be use# as pla!ehol#ers #urin #evelopment

- "he* are inore# at run time

&'N%A$N3. J B$ND$N7
&'N%A$N3. J B$ND$N7
What is a &ontainer
What is a &ontainer

8ontainers are a !ommon wa* of hol#in #ata


throuhout the workflow instan!eGs lifespan.

8ontainers are use# in interfa!e between


#ifferent parts of the workflow an# between the
workflow an# business appli!ations.
%ype of &ontainers
%ype of &ontainers
A workflow !ontainer for ea!h workflow an# subworkflow
1 'nly container elements classified as import can !e filled
when the workflow is started*
A task !ontainer for ea!h task
1 $mport container elements are filled from the workflow
container and e#port container elements are transferred
!ack*
A metho# !ontainer for ea!h metho#
1 $mport container elements are filled from task container
and e#port container elements are transferred !ack*
An event !ontainer for ea!h event
1 All e"ent containers are e#port container elements only*
A rule !ontainer for ea!h rule
1 %he import container elements are filled from the workflow
container ;or task container<* %he =.413=.3S41%
elements is the only e#port parameter and this is optional*
Binding
Binding

<ata !an be passe# from one t*pe to another usin


bin#in.

At runtime' the bin#ins are e3e!ute# at the


appropriate point in the workflow.
1
;or instan!e' for a s*n!hronous task' the workflow-
to-task bin#in is e3e!ute# as part of work item
!reation an# the task-to-workflow bin#in is
e3e!ute# as part of work item !ompletion.
&ontainers and Bindings
&ontainers and Bindings
SAP AA 1BBB
Workflow
Container
Work Item
Container
Methods
Container
event
Container
Roles
Container
%riggering
e"ent
Sync*
%ask
Sync*
5ethod
Async*
%ask
Async*
5ethod
%erminating
e"ent
.ole
.ole
) )
+ +
, ,
E E C C
D D A A
K K
@ @ )L )L
), ),
)) ))
)+ )+
&ontainers and Binding
W'./$%35
W'./$%35
Work $tem
Work $tem

7b)e!t that represents a task or a!tion in the workflow


s*stem at runtime.

Work items are sub#ivi#e# into a spe!ifi! work item t*pe


a!!or#in to their assinments. "he internal pro!essin
pro!e#ures are !ontrolle# via this work item t*pe. "he
work item t*pe #etermines whi!h statuses an# transitions
are vali#.

<epen#in on the work item t*pe' some of these work


items are #ispla*e# in a userHs work list. 7ther work items'
on the other han#' are onl* use# an# pro!esse# internall*.
Work item %ypes
Work item %ypes

A Work item that represents a Work Hueue

B Work item for Background step

8 Work item that represents a container linkage

< Deadline work itemM Notification upon 5issed Deadline

( Workitem that waits for an 3"ent ;Wait step<

; Workflow ;Also su!workflow<

6 Notification $tem ;'!solete<

P Work item that .epresents a .emote Work item ;Pro#y


W$<

$ Work item that .epresents a .emote Work item ;http<

W Dialog work itemM .epresents a Single-step %ask

F Work item that .epresents a Block


Work item Status
Work item Status
WA2"26A9 Waiting ;Also9 Work items in .esu!mission<
$(A<I
S(C(8"(<9 .eser"ed
S"A$"(<9 $n Process
($$7$
87::2"(<9 3#ecuted ;'nly $f 3#pl* 3nd &onfirmation $s 3#pected<
87:PC("(<


8A68(CC(<9 1ogically Deleted
8-(8?(<9 $n Preparation
(F8P8A=A-"9 3#ception caught
(F8P-A6<C$9 3#ception Being 2andled
Deadline 5onitoring
Deadline 5onitoring
Deadlines for Workflow Steps
Deadlines for Workflow Steps
SAP AA 1BBB
S4
5' %4 W3 %2 0. SA
) + , E C A D
K @ )L )) )+ ), )E
)C )A )D )K )@ +L +)
++ +, +E +C +A +D +K
+@ ,L ,)
Deadlines ha"e indi"idual time references
and agents
Possi!le deadlines
.equested start
.equested end
1atest start
1atest end
Simple deadlines "ersus modeled deadlines
Deadlines for Workflow Steps
Deadlines for Workflow Steps
Deadlines for Workflow Steps
$e4ueste# start
1 3arliest possi!le point in time for the commencement of processing
1 %he requested start is not a monitored deadline in the strict sense* $t
is when a work item first appears in an agentNs in!o#*
$e4ueste# en#
1 .equested end deadline for processing a step
Catest start
1 1atest start deadline for processing a step
Catest en#
1 Deadline !y which the processing of a step must !e completed*
6ote0
All #ea#lines are monitore# usin the ba!kroun# )ob SWW<-(F with
)ob !lass A. "he )ob !alls the report $SWW<-(F.
Business '!(ects
Business '!(ects
&reation of '!(ect type
&reation of '!(ect type

6ew 7b)e!t t*pe

Sub-t*pe of an e3istin 7b)e!t t*pe

A#v of sub-t*pe0 2t automati!all* inherits


all the !omponents .metho#s' attributes'
an# events/ of the oriinal ob)e!t t*pe
in!lu#in its implementation.
Su!-type
Su!-type

"ools-JBusiness Workflow -J <evelopment -J


<efinition "ools -J Business 7b)e!t Buil#er

2n the fiel# ob)e!t t*pe enter the ob)e!t t*pe


*ou want to e3ten#.

8hoose subt*pe.

(nter a uni4ue name' ob)e!t name' name'


short #es!ription an# name of the proram.

Save it.
'!(ect %ype Definition
'!(ect %ype Definition

"ransa!tion 8o#e 0 SW')

Basi! #ata
1
Aeneral0 Super "*pe ' $elease ' Aeneration
1
8hane 9 "ransport
1
<efault 0 :etho# 9 Attribute
K 8ont#.
'!(ect %ype Definition
'!(ect %ype Definition ;contd**< ;contd**<
?e* ;iel#s
1 <etermines whi!h appli!ation table .s/ the #ata is save#
1 7ne or more ke* fiel#s !an be use#
1 8ombine# ke* fiel# values provi#e uni4ue i#entifi!ation for an
ob)e!t instan!e.
1 8an refer to a #atabase table or a view.

&ontdI

&reation of /ey fields
&reation of /ey fields

Position the !ursor on the entr* ?e* fiel#s an# !hoose


the L!reateM button.

2f *ou want to !reate the ke* fiel# with a #atabase table


then enter N*esG.

(nter the table name e..0 >BA?

"he list of ke* fiel#s will be #ispla*e#' sele!t the


respe!tive ones' e..0 >BC(6.
'!(ect %ype Definition
'!(ect %ype Definition ;contdI<

Attributes
1
Propert* of an 7b)e!t
1
Sour!e of 2nformation
<atabase ;iel#
>irtual
7b)e!t
1
:ulti Cine0
A multiple-line attribute !orrespon#s to an internal table use#
in ABAP
K 8ont#.
A data!ase attri!ute is A data!ase attri!ute is
defined with reference to a defined with reference to a
column ;not a key column< column ;not a key column<
of the related application of the related application
ta!le* ta!le*
A "irtual attri!ute is A "irtual attri!ute is
calculated with ABAP calculated with ABAP
code* code*
&reation of Attri!ute
&reation of Attri!ute
'!(ect %ype Definition
'!(ect %ype Definition !ont#.

:etho#s
1
<ialo%Ba!kroun#
1
S*n!hronous%As*n!hronous
1
;un!tion :o#ule
1
BAP2
1
"ransa!tion 8o#e
1
$eport
1
7ther
K 8ont#.
%ypes of methods
%ypes of methods
S*n!hronous metho#s0

(3port parameters are returne# #ire!tl* to the !allin proram.

(3!eptions ma* be triere#.


As*n!hronous metho#s0

:etho# e3e!ution !onsists of a s*n!hronous part an# subse4uent


up#ate.

(3port parameters are not authori5e#.

(3!eptions are onl* possible in the s*n!hronous part.


A!tive !he!k bo3 represents a
S*n!hronous metho#. 2na!tive
represents an As*n!hronous
metho#.
Parameter calls from methods
Parameter calls from methods

2mport parameters

(3port parameters

$esult .spe!ial e3port parameter/

(3!eptions0
1
"emporar* error
1
Appli!ation error
1
S*stem error
'!(ect %ype Definition
'!(ect %ype Definition 8ont#...

(vents
1
S*stem wi#e messae about a !hane in
state of an 7b)e!t

(vents shoul# be use# onl* in !on)un!tion with


SAP 7b)e!t

"he SAP appli!ation must raise the event an#


not the 7b)e!t t*pe.
.elease Status
.elease Status

:o#ele# 0
Not accessi!le at runtime*

2mplemente#0
'nly in test or internal useB possi!ly unsta!le*

$elease#0
.eleased for use !y the customer*

7bsolete0
%he functionality has !een replaced* %he old
functionality is still supported for two releases*
5acros used during SAP
5acros used during SAP
'!(ect Programming
'!(ect Programming

2n!lu#e O!ntn01J 7$ 2n!lu#e Oob)e!tJ

8ontainer <e!laration 0
SW8P876"A26($ O!ontainerJ

8ontainer 2nitiali5ation 0
SW8P8$(A"(P876"A26($
O!ontainerJ
K 8ont#.
5acros used during SAP
5acros used during SAP
'!(ect Programming
'!(ect Programming !ont#.

Writin a ;iel# value 0


SW8PS("P(C(:(6" O!ontainerJ
OelementJ OvalueJ

$ea#in a ;iel# value 0


SW8PA("P(C(:(6" O!ontainerJ
OelementJ OvalueJ

Writin a :ulti Cine fiel# value0


SW8PS("P"ABC( O!ontainerJ
OelementJ OvalueJ

$ea#in a :ulti Cine fiel# >alue0


SW8PA("P"ABC( O!ontainerJ
OelementJ OvalueJ
D3137A%$'N
D3137A%$'N
Delegation
Delegation
SAP AA 1BBB
%SLLL)
B4S)LL)*
3dit
%S@LL)
6B4S)LL)*
3dit
%S@LL+
6B4S)LL)*
Display
%SLLL)
B4S)LL)*
3dit
%SLLL+
B4S)LL)*
Display
%S@LL,
6B4S)LL)*
.elease
%SLLL+
B4S)LL)*
Display
%S@LLE
B4S)LL)*
.elease
SAP
Standard
$nheritance
Delegation
Process definition B'B
3dit
Display
B4S)LL)
B4S)LL)
3dit
Display
6B4S)LL)
.elease
3dit
Display
B4S)LL)
3dit
Display
6B4S)LL)
.elease
B4S)LL)
Delegation
3dit
Display
Delegation
Delegation
2f *ou !reate a subt*pe of an ob)e!t t*pe' *ou !an !hoose to
#eleate the superior t*pe to the subt*pe. <eleation means that
wherever the super t*pe is referen!e# throuhout workflow' the
subt*pe will a!tuall* be use# instea#.
<eleation lets *ou use all the e3istin tasks an# workflows base#
on the SAP ob)e!t t*pe as if the* were usin *our own subt*pe.
8ustomers use their own ob)e!t e3tensions with the tasks' events'
et!. supplie# b* SAP
Without havin to re#efine e3istin tasks' *ou !an use stan#ar#
ob)e!ts with !ustomer e3tensions
3:3N%
3:3N%
3"ents
3"ents

(vents are part of business ob)e!t' are triere# for


!hanes in the state of the ob)e!t' whi!h !an !ause
other pro!esses to bein.

=se# for "rierin the Workflow

6e!essar* information nee#s to be entere# on


L"rierin (ventsM tab of the Workflow Buil#er.

Workflow (nine will automati!all* enerate the


bin#in. Iou !an !hane it afterwar#s.

(vents !an also be #efine# in 8lasses. "heir behavior


is similar to the events #e!lare# in 7b)e!ts.
3"ent &reators J .ecei"ers
3"ent &reators J .ecei"ers
3"ent &reation and %riggering
3"ent &reation and %riggering

<efine 7b)e!t in Business 7b)e!t Buil#er

"rier (vent0
1
2mpli!itl* via eneri! tools' for e3ample
!hane #o!uments' status manaement'
messae !ontrol et!
1
(3pli!itl* via fun!tion mo#ule

SW(P8$(A"(P(>(6"
3"ent %riggering9 Status &hange
3"ent %riggering9 Status &hange
3"ent %riggering9 5essage control
3"ent %riggering9 5essage control
8reate a separate output t*pe an# #e!lare B .workflow event/ as
transmission me#ium
8reate a !on#ition table
8reate a a!!ess se4uen!e
Assin the a!!ess se4uen!e to the #efine# output t*pe for a workflow
event
<efine !on#ition re!or#s an# #e!lare the event
Assin the output t*pe to a pro!e#ure
3"ent %riggering9 &hange Documents
3"ent %riggering9 &hange Documents
3"ent %riggering9 ABAP &ode
3"ent %riggering9 ABAP &ode

;ill event !ontainer with event


parameters

8ompose ob)e!t ke* for


trierin ob)e!t

8all SW(P(>(6"P8$(A"(

;: 8all error han#lin

"rier event with e3pli!it


!ommit work
Business Workplace
Business Workplace
Worklist as $nterface for 3nd 4ser
Worklist as $nterface for 3nd 4ser
"he Business Workpla!e is part of the SAP Business Workflow runtime
environment. "he emplo*ees responsible re!eive the #o!uments an# work items
for pro!essin in the Business Workpla!e. 7n!e a task .Q a work item/ has been
e3e!ute# an# !omplete#' the pro!ess !an be !ontinue#.
"he worklist !ontains all the work items .all the a!tivities to be pro!esse#/
assine# to this user. "he Business Workpla!e is therefore the most important
interfa!e for an emplo*ee in their #a*-to-#a* work.
Business Workplace in SAP ./,
Business Workplace in SAP ./,
"he Business Workpla!e has three s!reen
areas0
1 7verview tree
1 Worklist
1 Work item preview
SAP AA 1BBB
Automatic
grouping
-our logo and te#t
%ips/%ricks
.elated
o!(ects
%ask description
'"er"iew
tree
Worklist
Work item
pre"iew
Work item te#t
Special
work items
Business Workplace in ./,
Business Workflow
Business Workflow
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
Demo9 Notification of A!sence
Demo9 Notification of A!sence
Business Workflow
Business Workflow
1 PrepareMe
2
TellMe
3
ShowMe
4
LetMe
5
HelpMe
5'N$%'.$N7 J ANA1-S$S
5'N$%'.$N7 J ANA1-S$S
5onitoring J Analysis
5onitoring J Analysis

$eportin
1
Work 2tem :onitorin
1
Work 2tem Anal*sis
1
Work loa# Anal*sis

Workflow <ianosti! "ool


.eporting
.eporting

$eportin on Workflow Proress

Work 2tems b* Pro!essin <uration

Work 2tems with :onitore# <ea#lines

Work 2tems per "ask

$eportin on Aent Behavior


.eporting on Workflow Progress
.eporting on Workflow Progress
"ransa!tion !o#e0 SW21
1 "his report shows all the work items of the parti!ular task in a
parti!ular time perio#.
1 "his report is also use# for monitorin the Workitem
.eporting on Workflow Progress
.eporting on Workflow Progress

Workflows for 7b)e!t


1 "ransa!tion !o#e0 SW2,.
"his report shows all workflow instan!es linke# to a parti!ular
ob)e!t instan!e.
(3ample0 Parti!ular Pur!hase 7r#er
.eporting on Workflow Progress
.eporting on Workflow Progress

Workflows for 7b)e!t t*pe


1 "ransa!tion !o#e SW21+
"his report shows all the work items an# workflow instan!es for all
ob)e!t instan!es of a business ob)e!t t*pe.
(3ample0 Workflows relate# to all Pur!hase 7r#ers
Work $tems !y Processing Duration
Work $tems !y Processing Duration

"ransa!tion !o#e0 SW22P<=$A


1 "his report ives list of work items base# on their pro!essin #uration
for spe!ifie# t*pe or for a spe!ifie# tasks.
1 "his report is also use# to anal*5e a Work item.
Work $tems with 5onitored Deadlines
Work $tems with 5onitored Deadlines
"ransa!tion 8o#e0 SW22P<(A<
1 "his report #ispla*s work items with their #ea#line information' if the*
are set.
1 ;or ea!h misse# #ea#line' the !urrent status of the work item is
shown.
1 "his report is also use# to anal*5e a Work item.
Work $tems per %ask
Work $tems per %ask

"ransa!tion !o#e0 SW22P;$(R


1 "his report shows the number of work items !reate# in the
spe!ifie# perio#.
1 "his report is also use# to anal*5e a Work item.
.eporting on Agent Beha"ior
.eporting on Agent Beha"ior
"ransa!tion 8o#e0 SW2E
1 With the help of this report ' *ou !an monitor how 4ui!kl* aent a!t on
their work items
1 "his report is useful for assessin workloa# over parti!ular time
perio#.
1 "his report is useful for reportin on the t*pe an# fre4uen!* of tasks
bein sent to an aent.
1 "his report is also use# to anal*5e a Work loa#.
Workflow Diagnostic %ool
Workflow Diagnostic %ool

"ransa!tion 8o#e0 SW=<


1 A primar* #ianosti! tool.
1 Anal*5e workflow #efinition.
1 ;ollowin are the options available0
>erif* workflow !ustomi5in
1 Perform Workflow 8ustomi5in
Problem0 "ask #oes not start
1 "o tra!k #own the e3a!t !ause of an error
Problem0 Workflow is hanin
1 8hoose this option when workflow starts but stops before
!ompletion' #ue to some error.
"est (nvironment
1 8hoose this option when *ou want to a!!ess the !omplete suite of
test tools from one pla!e.
1 "his option will also #ispla* all the !omponents .subworkflow' tasks'
business ob)e!ts' #eleate# business ob)e!ts/
Workflow Diagnosis
Workflow Diagnosis
Se!tion 10 "he !urrent
workflow #efinition to be
anal*5e#.
Se!tion 20
"he list of
test
options
Se!tion &0 A list of last tem
workflow #efinitions.
Working with the Workflow 1og
Working with the Workflow 1og

At runtime' a workflow has its own work item


.t*pe ;/ that represents the workflow instan!e.

"he workflow lo formats all the information


!reate# #urin the e3e!ution of the business
pro!ess
1
Stan#ar# view
2nten#e# for aents an# pro!ess owners who want to et an
overview of the steps pro!esse#.
1
"e!hni!al view
2nten#e# for #evelopers an# workflow a#ministrator
Standard :iew
Standard :iew

Workflow 8hroni!le .What pro!esse# when@

Workflow Aents .Who Pro!esse# what@/

Workflow 7b)e!ts .What was pro!esse#@/


Workflow &hronicle
Workflow &hronicle
%he ta! page Workflow &hronicle shows a
hierarchical display of all the steps in the workflow* $f
workflow has a su!workflow structureB the su!workflow are
also displayed*
Workflow Agents
Workflow Agents
%he %a! page Workflow Agents shows the agents in"ol"ed in the
workflow*
0ollowing options are displayed for each agent9
What action was carried out in what step
When this action was carried out
%he o!(ects in"ol"ed
Workflow '!(ects
Workflow '!(ects
%he ta! page Workflow '!(ects lists the o!(ects related to
the workflow* %his "iew shows what o!(ects were created and
processed*
%echnical :iew
%echnical :iew
"he te!hni!al view shows te!hni!al no#es an# !ontrol stru!tures'
!ontainer elements' aent #ata an# workflow #ata.
Workflow Status
Workflow Status
$ea#*
"he work item has
been release# for
e3e!ution an#
appears in the
workflow inbo3 of all
re!ipients.
2n Proress
"he work item is
!urrentl* bein
pro!esse# b* a
#ifferent re!ipient or in
a #ifferent mo#e.
(3e!ute#
"he work item is
waitin e3pli!it
!onfirmation of its
!ompletion.
8omplete#
"he e3e!ution of the
work item is
!omplete#.
Coi!all* <elete#
(3e!ution of the work
item is no loner
meaninful or re4uire#
b* the workflow loi!.
(rror
(3e!ution of the
work item was
terminate# with an
error.
Workflow 1og
Workflow 1og
Araphi!al
workflow
Workflow lo
<etails
se!tion
8hronoloi!al view
of the pro!ess
<etails for ea!h step
Areen line shows
pro!ess proress
Shows all re!ipients'
possible an# e3!lu#e#
aents
1ist of %ransaction &ode
1ist of %ransaction &ode

SW')0 Business 7b)e!t Buil#er

SWDD0 Workflow Buil#er

SW4D0 Workflow <ianosis

SBWP0 Business Workpla!e

SW4,0 Automati! Workflow 8ustomi5in

P0%&0 :aintain "ask

SW',0 Business 7b)e!t $epositor* Browser

SW3+0 (vent Cinkae

SW$)9 $eport for Work items

SW$+=0.3H0 Work 2tems per "ask

SW$+=D3AD0 Work 2tems with monitore# <ea#lines

You might also like