Reacting Collectively
Robin Sahasranam
Rsahasranam at worldbank.org
Thu Aug 29 08:37:26 EDT 2002
Hi Alon,
You don't necessarily need an event-triggered workflow with a background step
to send the email. You can create a function module and link it to the event by
maintaing event linkage via SWE2. We send out emails to requisitioners when a
purchase requistion is approved. Out event linkage entry is as follows:
Object type: BUS2105
Event: Released
Receiver type: EMAIL_NOTICE (can be anything you like, it is only a name)
Receiver FM : Z_REQ_EM_APPROVED (your actual function name)
Enabled: Checked
The function interface is standard and must be as follows:
IMPORTING
VALUE(EVENT) LIKE SWETYPECOU-EVENT
VALUE(RECTYPE) LIKE SWETYPECOU-RECTYPE
VALUE(OBJTYPE) LIKE SWETYPECOU-OBJTYPE
VALUE(OBJKEY) LIKE SWEINSTCOU-OBJKEY
TABLES
EVENT_CONTAINER STRUCTURE SWCONT
Regards,
Robin Sahasranam
Alon Raskin
<araskin at 3i-consulti To: Sap-Wug at Mitvma.Mit.Edu
ng.com> cc:
Sent by: SAP Subject: Re: Reacting Collectively
Workflow
<Owner-SAP-WUG at MITVM
A.MIT.EDU>
08/29/2002 03:01 AM
Please respond to
SAP Workflow Users'
Group
I thought about that but then I would need to have this 'master' workflow
that sat around and listened. If we ever have a system crash it would need
to be manually restarted as nothing actually kicks it off. Its not really a
'Workflow' as such but rather just a little monitor.
Don't get me wrong Tomasz, that approach will work its just that I wanted to
see if anyone else had any other ideas.
Regards,
Alon Raskin
3i Consulting Group
e: araskin at 3i-consulting.com
w: http://www.3i-consulting.com
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Zmudzin,Tomasz,VEVEY,GL-DS/DM
Sent: Thursday, August 29, 2002 7:55 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Reacting Collectively
And if you defined another workflow process that would subscribe to that
event and send the notification?
Tomasz
-----Original Message-----
From: Alon Raskin [mailto:araskin at 3i-consulting.com]
Sent: Thursday,29. August 2002 08:47
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Reacting Collectively
Hi All,
I just wanted your thoughts and experiences on the following.
Say I have 5000 instances of a Workflow running in my system. When a
particular event occurs (which all the Workflow instances are listening for)
I want a mail sent to the User. The hard part is that I want only one mail
sent and not 5000 as I do not want to flood the users inbox with 5000
similar messages.
I am sure that others have come across a similar scenario and I hope to hear
your ideas.
Regards,
Alon Raskin
3i Consulting Group
e: araskin at 3i-consulting.com
w: http://www.3i-consulting.com
More information about the SAP-WUG
mailing list