How to Send Non Key Data to Workflow

Flavio Oliveira oliveiraflavio at hotmail.com
Mon Aug 30 14:54:40 EDT 2004


The email has to be passed to Workflow via container. On the exit, populate
a container element  that will receive the email Address (this element has
to be defined on the event on the BO).
 
On the workflow you create a container element to receive the email and do a
binding from the event container and the 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 trip number.
>When the workflow starts you could then read the value.
>
>Otherwise, on your event in SWO1 create an import parameter.  Then, when
>you trigger your event you add the mail address to the event container
>table using the same name as the import parameter on the 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 can
>carry on using the original SAP object with your enahancements like a user
>exit
>- for explicit event triggering in user exits use
>SWE_EVENT_CREATE_FOR_UPD_TASK as this doesn't need an explicit commit work
>but uses the commit of the application
>- why trigger the event yourself when the event BUS2089.CREATED gets
>triggered as standard?
>- Entering e-mail addresses in a pop-up is not that robust - you would be
>better to get the user to select a user id and and then get the mail
>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
>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
>(Subtype of BUS2089).In the user Exit of txn TRIP the workflow gets
>triggerred using FM 'SWE_EVENT_CREATE'  by passing PERNR and REINR which
>are Key Fields of BO.
>Just before triggerring workflow a Pop Up dialog box appears where the
>user enters the EMail ID of the manager to 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 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.
 
_________________________________________________________________
MSN Messenger: instale gratis e converse com seus amigos.
http://messenger.msn.com.br
 


More information about the SAP-WUG mailing list