Create event via status management

Michael Pokraka workflow at quirky.me.uk
Mon Jun 7 13:12:57 EDT 2004


Hi Patrick,
Bind _EVT_NAME into a WF element 'TriggeringEvent'.
A slight downside is for manually started flows (e.g. admin restart or
whatever).
Another option is to add an attribute for the status to a ZBUS2032 subtyp=
e
and check that in your flow.
Cheers
Mike
 
de Valensart Schoenmaeckers, Patrick wrote:
> Hi.
>
> I need to trigger a workflow every time a user status is set on a sales
> order. Until here, nothing difficult (I create my event via status
> management - transaction BSVZ - and restrict it to the relevant user
> statuses. Then I use that event as a triggering event of my workflow).
>
> The issue arises when at some stage of my workflow I need to know which
> status triggered it. The only solution I could find until now is to hav=
e one
> event for each possible status. But that doesn't solve the problem beca=
use
> there is no possibility (that I am aware of) to know which one of the
> various triggering events actually started the workflow. Thus I also ne=
ed to
> have one workflow per event. This is definitely not nice as all workflo=
ws
> would be almost identical anyway and it increases the maintenance cost.
>
> Anybody has a better solution to offer? I also thought about defining e=
ach
> of my events with a parameter "Status", and then use a check function m=
odule
> to fill-in the event container, but that seems tricky. Anyone already t=
ried
> to do that?
>
> Thank you all in advance for your replies.
>
> Cheers,
>
> Patrick
>
>
 


More information about the SAP-WUG mailing list