How to Send Non Key Data to Workflow

Chenna Kiran Kumar chenna.kiran at wipro.com
Tue Aug 31 00:01:31 EDT 2004


Hi,
    Thanks for the solution .Its working fine.
 
Regards,
Chenna Kiran Kumar,
Associate Consultant,
Wipro Technologies,
Bangalore.
Phone: 91-80-25502001 Extn 1852
=0D
 
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On=0D
Behalf Of Flavio Oliveira
Sent: Tuesday, August 31, 2004 12:25 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: How to Send Non Key Data to Workflow
 
 
The email has to be passed to Workflow via container. On the=0D
exit, populate a container element  that will receive the email=0D
Address (this element has to be defined on the event on the BO).
 
On the workflow you create a container element to receive the=0D
email and do a binding from the event container and the=0D
workflow container.
 
Flavio.
 
 
>From: "Griffiths, Mark" <mark.griffiths at sap.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: How to Send Non Key Data to Workflow
>Date: Fri, 27 Aug 2004 14:39:56 +0200
>
>You could store the address in a Z table keyed against the=0D
trip number.=0D
>When the workflow starts you could then read the value.
>
>Otherwise, on your event in SWO1 create an import parameter.  Then,=0D
>when you trigger your event you add the mail address to the event=0D
>container table using the same name as the import parameter on the=0D
>event.  Use the swc_set_element macro for this.
>
>Couple of general comments about your approach:
>- Best practice is to use delegated subtypes in your workflows so you=0D
>can carry on using the original SAP object with your=0D
enahancements like=0D
>a user exit
>- for explicit event triggering in user exits use=0D
>SWE_EVENT_CREATE_FOR_UPD_TASK as this doesn't need an explicit commit=0D
>work but uses the commit of the application
>- why trigger the event yourself when the event BUS2089.CREATED gets=0D
>triggered as standard?
>- Entering e-mail addresses in a pop-up is not that robust - you would=0D
>be better to get the user to select a user id and and then get=0D
the mail=0D
>address later from the user master or infotype 105
>
>Hope this helps,
>
>Mark
>
>SAP UK
>
>-----Original Message-----
>From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of=0D
>Chenna Kiran Kumar
>Sent: 27 August 2004 13:27
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: How to Send Non Key Data to Workflow
>
>
>Hi,
>
>
>     We have set up a workflow for Travel Expense Using Z_BUS2089=0D
>(Subtype of BUS2089).In the user Exit of txn TRIP the workflow gets=0D
>triggerred using FM 'SWE_EVENT_CREATE'  by passing PERNR and REINR=0D
>which are Key Fields of BO. Just before triggerring workflow a Pop Up=0D
>dialog box appears where the user enters the EMail ID of the=0D
manager to=0D
>whom the Workitem is to be sent.
>How do i pass this Email Id to Workflow? I have tried EXPORT-IMPORT but
>doesnt work.
>
>
>regards,
>Chenna Kiran Kumar
>
>
>
>
>
>
>Confidentiality Notice
>
>
>The information contained in this electronic message and any=0D
>attachments to this message are intended for the exclusive use of the=0D
>addressee(s) and may contain confidential or privileged information. If
>you are not the intended recipient, please notify the sender=0D
at Wipro or
>Mailadmin at wipro.com immediately
>and destroy all copies of this message and any attachments.
 
_________________________________________________________________
MSN Messenger: instale gratis e converse com seus amigos.=0D
http://messenger.msn.com.br
 
 
 
Confidentiality Notice=0D
 
The information contained in this electronic message and any attachments to=
 this message are intended
for the exclusive use of the addressee(s) and may contain confidential or=
 privileged information. If
you are not the intended recipient, please notify the sender at Wipro or=
 Mailadmin at wipro.com immediately
and destroy all copies of this message and any attachments.
 


More information about the SAP-WUG mailing list