AW: Workflow shouldn't start when directly posting an invoice

Schmidinger, Heinz (Unaxis IT BZ) heinz.schmidinger at unaxis.com
Fri Apr 4 06:34:27 EST 2003


I think, the missrunning of your WF is based on that the EVENT posted =
is
received before the waiting-event for the new created WF-instance is in =
the
instance-table.
 
I'm not sure if it is a workaround for you; I have done such for a =
similar
situation a few weeks ago:
 
In the BTE of BKPF (see mentioned note, BTE 00001060 for MIRO) fire an
ending event to BUS2081 based on a f.m.
I have defined the f.m. with delayed start so it is processed in =
V2-posting.
This makes sure in this case, that the CREATE-EVENT is fired before and =
the
instance-binding for the started WF is already done and so the =
waiting-event
is in the instance-binding-table too.
 
-----Urspr=FCngliche Nachricht-----
Von: Loeffen Robert [mailto:robert.loeffen at pinkroccade.com]
Gesendet am: Freitag, 4. April 2003 13:19
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Workflow shouldn't start when directly posting an invoice
 
I am using business object BUS2081.
And I don't want to start my workflow (starting event bus2081.created) =
when
i directly post an invoice with=20
transaction MIRO.
 
Gr. Robert
 
 
-----Original Message-----
From: Schmidinger, Heinz (Unaxis IT BZ)
[mailto:heinz.schmidinger at unaxis.com]
Sent: vrijdag 4 april 2003 12:55
To: SAP-WUG at MITVMA.MIT.EDU
Subject: AW: Workflow shouldn't start when directly posting an invoice
 
 
Hi Robert,
 
see Note 336305. Maybe this gives an idee.
 
Have you checked the event if it is fired really in the event-log ?
 
regards
 
Heinz
 
-----Urspr=FCngliche Nachricht-----
Von: Loeffen Robert [mailto:robert.loeffen at pinkroccade.com]
Gesendet am: Freitag, 4. April 2003 12:49
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Workflow shouldn't start when directly posting an invoice
 
Hi Workflowers,
 
I have the following problem:
 
I build a workflow for incoming invoice processing. The starting event =
is
Invoice.CREATED.
But when i directly post an invoice with transaction MIRO. I don't want =
the
workflow to be started but
it starts. (the event Invoice.CREATED is raised when posting the =
invoice)
 
I have a wait for event step in my workflow, waiting for the event
Invoice.POSTED connected to the end of the workflow.
But still the workflow continues in another branch of the workflow.
 
Does anybody have any idea how to solve this.
 
Gr. Robert
 


More information about the SAP-WUG mailing list