Você está na página 1de 67

Bussiness Workflow

Parte 2

Consultora BC
Regina N.Kiyota
1. Arquitetura
Nvel Person Position Org.unit
Organizacional
Role Task

WF
Nvel Processo Definition
WF
Step

Nvel tipo
de objeto Attribute Event Method

Object
Materials Management Workflow
Material: 100-300 Change documents
Old Material: Original
New_part

Lab: PM1

Check table Import parameter Possible


T024L for role agents Event
ZBUS1001
Old_Material_Changed
Org-Plan
Engineering unit
Product Management unit
SAP org object T024L PM1 Task
Product Manager Position Display Material
Holder: Jones
Role: Find Lab
2. Business Object Type
Servio

Business object Integridade . Mtodo


Data Model . Atributos
Key . Public
. Entidades Fields Events
. Relacionamentos

Object ID - Identificador nico Vide apostila, o exemplo


Key field Number acima funciona como
Object name designao semntica uma cpsula.
Exemplos de tipos de objetos
SAP tipos de objetos
.Invoice (BSEG_MMIV)
.Sales Order (BUS2032)
.Delivery note (LIKP)
.Material (BUS1001)
.Bill of Material (BUS1002)
External
documents .Archive
documents (TOAV0)
.Purchase order Idoc (IDOCORDES)
Tipo de objeto:
Definio de Subtype
Supertype Subtype
BUS1001 ZBUS1001
Material My_Material

Key fields Nro Material Key fields Nro Material

Attributes Tipo Material Attributes Tipo Material


Grupo Material Grupo Materia
Material antigo Material antigo

Methods Edit Methods Edit


Create Create
Display Display

Events Created Events Created


Changed Changed
Tipo de objetos:
Definio de Subtype
Devemos definir um Supertype para o subtype
(Herana).
Subtypes: Adicionar attributes, methods,
events.
Cada tipo de objeto teremos um tipo de status:
.
modeled: No h programa ainda.
.implemented: Programa no finalizado.
Tipo de objetos:
Definio de Subtype
.released: Programa pode ser executado.
.obsolete: No utilizar.
Delegation: Efetuar a delegao entre, por
exemplo, BUS1001 e ZBUS1001, quando
for atribudo um novo tipo de objeto.
Tipo de objeto definio:
Methods
Permite funo (ao) ao objeto.
Propriedades:
.Dialog.
.Synchronous.
.Referncia a uma
funcionalidade SAP.
.Especificar resultado (Synchronous).
.Excees para erros.
.Utilizar paramtros.
Synchronous e Asynchronous
Methods
Single-step tasks pode ter um terminating
events.
Synchronous method.
.Method chamado, assume o
controle do processo e confirma aps
processamento. .Opcional: import
parameter. .Opcional:
Result, export parameter, exceptions.
Synchronous e Asynchronous
Methods
Asynchronous method.
.Method chamado, processa e
no confirma aps o processamento.
.Opcional: import parameter.
3. Monitoramento e Anlise
Reporting System.

Work Item Analysis.

Test Utilities for the Designer.


Reporting System
Step log/ Workflow Work Item
Work item Diagnosis Analysis
history

Task Information
Workflow
Analysis System
Outbox
R/3

Object-specific Workload
evaluation Analysis
Work Item Analysis
Monitoring period Work item type Task filter

Work Items

Frequency

Process duration

Work item for object


type

Missed deadline
Identifying Work Items:
Work Item Selection
Selection report criteria
Work item ID
Work item type
Work item status
Task-ID

Work Item

Display work item Display agent

Display container
Display workflow
step log
Work Item Types
Work item com dialogo : W.
Runtime representation for a task with
user dialog.
Deadline missed: D.
Deadline agent informed.
Workflow item: F.
Runtime representation of a workflow task.
Work Item Types
Batch item: B.
Runtime representation of a single-step
task wich runs in the background.
Event item: E.
Runtime representation of a wait step in
the workflow definition.
Test Utilities for the Designer
Consistency check.
.Workflow diagnosis / Task definition.
Event.
.Simulation.
.Event trigger (provide input data).
.Event log (switch off in
production).
Test Utilities for the Designer
RFC Logs.
Manual start of a task or worklow.
.First refresh the organizational
assignment and then provide input data.
4. Containers
Containers.

Container bindings.
Containers in a Workflow
Edit Material Master transaction (basic view)

Material: My_part Change documents


Old Material: Original_part
New_part

Event
Step
Event Container
Task- Creator
Role-
Container: Object
Container
Wi_object_id
Org-Object
Workflow-
Container:
ZBUS1001
Initiator
Containers

Table-like Used for field values


data structure and object references

Containers

Only contain control Do not contain


information for the application business
workflow system data
Using Containers
Workflow Single-step task

Workflow Work Item container


Container Task container

Event Role Method

Role Method
Event Container Container
Container
Container: Definition/Runtime
. Table-like data struture used for
Runtime: object reference to object
type in accordance with data type
. Field values reference
. Object references
Element | Description | Data type reference | Value
| | Object type | Table field |
Form | Notification of | FORMABSENC | |
| Absence | | WFSYST-AGENT |

Runtime:
Value has data typ
Data type reference to object Data type reference to accordancewith da
type in object repository field in ABAP dictionary type reference
Definition Runtime
Binding
. Design question at definition time:
. Definition of modeling and What data has to be
assignment rules wich are move in order to
implemented at runtime for support the process?
- Transferring data in one container
to another container.
- Assigning(initial) values to some
container elements. Single Step
Workflow
Task
Container
. Runtime Container
. Binding definition is executed at runtime.
- Meaning data is moved from one container
to another.
Possible Binding Directions
Workflow Single-step task

Workflow Work Item container


Container Task container

Role Event Method

Role Event Method


parameter parameter parameter
container container Container
Binding and Containers
Workflow Event Container / _EVT_CREATOR
Container _EVT_OBJECT
Change Task
event _WF_Initiator Container

_WI_Object_Id
Change _WI_Actual_Agent
Material
Material Role parameter
container
Changed_by
ORG_OBJECT
Superior
Display of ... DisplayTask
Material Container

_WI_Object_Id
Z_changed_by
Dataflow Roads within Workflow
Public- Event
Worflow Container
Trigger

Step - Deadline

Cont.Operation Step
Step - Responsibility

Single step task

Object - Attribute
Public-
Object - Method Event
ABAP function Terminator
Application
5.Rounting (Direcionamento)
Regras:
.Restrio dos agentes possveis.
.
Regra Superior de .....
.Regra para o empregado.

Regra soluo e binding.


Selecionando users para
Work Items
Process Organization
Workflow Definition Org.unit.

Job

Step Position
Responsibility

User ID

Role
function
Roles:Restriciton of Possible
Agents
Superior of na organization unit
.Evaluation using organization model.

Material Controller
.Evaluation using master data.

Clerk responsible for release e posting


.Evaluating using customizing data.
Roles:Restriciton of Possible
Agents
SAP org-objects
.Evaluation using a new dimension
in the organization chart.

User on SAPoffice distribution list


.Evaluation using distribution list.
Roles Superior
Role: Restriction of possible agents according
to organization model.
Standard task (definition): Approve notification
of absence .linked
with job:head of department.
Role(agent):
.Superior.... Parameter of role:
employee.
Roles AP Clerk
Role: Restriction
of possible agents according to organization model.
Possible Agents of Task:
.Post document: linked with job:
Role find AP clerk
.2 parameters:
-Customer name
-Amount of invoice
6.Deadlines
Deadline notification.

Modeled deadlines.
Lembrete:
Somente agentes selecionados podem
executar o work item.
Erro comum: A tarefa com dilogo no
possue os agentes possveis.
Temos de associar agentes possveis para
todas as tarefas com dilogos, mesmo para
os workflows templates.
Simple Deadlines
Deadline available
. Requested
start (Data incio solicitada).
. Request end (Data fim desejada).
.Latest start (ltimo incio).
.Latest end (Prazo
desejado).
Simple Deadlines
Each deadline has
.Individual reference
point. .Notification
agent for missed deadlines (not
for request start).
.Notification text (not for request
start).
Simple Deadlines
Deadline uma funcinalidade, disponvel
no workflow.
System-wide setting:
. Em tempo de execuo a
funcionalidade deadline trigado pelo job
SWWDHEX.
Modeling Deadline Monitoring
User
decision

Too late!
Processing
Result 1 Result 2 Deadline
obsolete
missed

Process control
Alternative Terminate
user decision

Work item
terminated
7.Events
Create workflow event linkage and biding.

Terminating events.
Workflow Wizard for Deadlines
Workflow wizard available for modeled
deadlines.
Deadlines available
.Requested and
.Latest start
.Latest end.
After a few wizard steps, complete obsolete
branch to finish deadline.
Triggering Event for a
Single Step Task
Evento pode ser usado para trigar um
single-step task ou workflow.

Usar a transao SWEC para estabelecer a


conexo entre a aplicao SAP e o
workflow.
Triggering Events
Start of multi-step task.
Start of single-step task.
Reactivate waiting workflow.
Active linkage between event and receiver.
Binding: Event parameter container->Task
container/ Event parameter container ->
Workflow container.
Event Creation
Creation of na event (=call event manager)
.Link to writing fo change documents
.Link to status management
.Link to message control
.HR: tables T588V,
T588W
.Implementation in program coding (using
USER-EXITS).
Terminating Single Step Tasks
Entrar com o evento como terminating
event.
Terminating event descreve o resultado do
processamento de uma aplicao startado
por uma single-step task.
Binding: O evento pode retornar somente
algumas informaes para o container da
tarefa.
8.Workflow Wizard
Workflow wizards.

Using wizards to simplify workflow editor.


What makes Wizard
Easier/Better than Normal
Transactions
Wizard unify documentation and
funtionality by
.Asking only a few questions on
each screen.
.Providing all information
required to answer the question.
What makes Wizard
Easier/Better than Normal
Transactions
Wizard ensure all data is maintained
consistently .

Wizard do not overload the user with


information.
Difference between building your
own workflow by using
Templates and Wizard
Workflow wizards
.Generate workflow definitions on any
object type.
.Process logic can be adapted simply by
answering questions
.Provide simple dialog and guide you.
Difference between building your
own workflow by using
Templates and Wizard
Workflow templates
.Work with a specific object type.
.Must be copied and adapted
(container elements, binding, and so on).
Most Important Wizard to
Simplify the Workflow Editor
Include Send mail.
Include Execute report.
Model deadline monitoring.
Include Call test procedure (CATT).
Include Execute form.
Workflow Information System
(WIS)
The WIS connects the workflow to the
Logistics Information System (LIS).

The LIS is uma flexible tool for collecting,


summarizing e evaluating data from
logistical applications.
9.Workflow Information System
Objectives of the Workflow Information
System (WIS).
Terminology.
Information/communication structures.
Architecture.
Standard analyses.
Workflow Information System
Process analysis

Tools for analysis

Data
Warehouse
Database tables separate from
the runtime system
Runtime
MM WORFLOW PP system
SD FI

Transaction level of individual R/3 modules


Objectives of the Workflow-LIS
Connection
Reporting based on summarized data.
.The WIS has its own database tables.
.Original data can be reorganized.

Business process specific analyses


.Analyzing workflows through
scenario-specific reporting at he container
element level.
Objectives of the Workflow-LIS
Connection
Integrated user interfaces.
.Graphical connection and export of data to
Excel.
Communication struture
Communication strutures can be made up of
SAP standard fields and user-defined
columns.
Report RMCADATA , which must run
periodically in the batch, retrieves data for
SAP standard fields.
Customer enhancements via User Exit are
possible.
SAP Fields in the WIS
Information sctructure: General
characteristics:
.Work Item ID (Key)
.End date (Time
base) .Single-step task
(Type of activity)
SAP Fields in the WIS
Information struture: Specific
characteristics:
.Agent and departament (Organiz.
view) .Process and
multistep task (Process
view) .Document type and
number (Object view)
SAP Fields in the WIS
Information struture: General key figures
.Processing
time = wainting + working time
.Average .
.standard deviation.
Responsibilities:SAP
. Communication struture
MCWF_TRANS.
.Data retrieval program.
.LIS inbound interface.
.Text retrieval for workflow standard
characteristics.
.LIS methods for average value and
standard deviation.
Responsibilities:Customer
. Extension of communication
struture.
.User Exit for data retrieval.
.User Exit for text determination
for customer characteristics.
Responsibilities:
SAP and Customer

.Field catalogs.

.Information structures.

.Update rules
Standard analyses
The WIS anables the following standard
analyses for completed work items.
SAP information structures:
.S300(Organization view - analysis
agent/departament)
.S301(Process view - analysis via
process definition)
Standard analyses
SAP information structures:
.S302(Object view - analysis via
leading object of step (_WI_Object_Id))
.S303(Group
view - analysis via user-defined of step
(_WI_Group_Id))
Bussiness Workflow

Final Parte 2