Workflow Mail to have information outside the selection field s

Roland Chan (EPA) Roland.Chan at ericsson.com.au
Sun Sep 16 20:30:30 EDT 2001


Hello Mark,
 
           Thanks for the advise - I understand what you're trying to
achieve but I have concerns about sequence of event before the value of
approver's name is returned.   The way we determine  the approver is to
build a custom routine of responsible person in the Approval Step which is a
decision process to either accept or reject the travel.   The routine
returns the approver ID and is stored in the Table ACTOR_TAB which is used
by the Approval Step to continue the workflow.    My question is how the
value stored in the Table ACTOR_TAB would be able to pass to the next step
which is executing the new method you suggested to create as below and
populate the correct value in the container.
 
           This goes back to the fundamental question you asked.   Can
anybody also advise if you have any idea.   Thank you in advance.
 
Regards,
Roland Chan.
 
 
 
 
> -----Original Message-----
>> From: Mark Pyc Workflow [SMTP:pyc_workflow at hotmail.com]
> Sent: 13 September, 2001 6:35 PM
> To:   SAP-WUG at MITVMA.MIT.EDU
> Subject:      Re: Workflow Mail to have information outside the selection
> fields
>
> G'day Roland,
>
> I'm sure there will be a more elegant solution, but I did just get this to
> work.
>
> Firstly create a WF container element based on WFSYST-ACT_AGENT and in the
> binding of the approval step include this to hold the actual agent.
>
> I then created a subtype of USR01 and created an instance independant
> method
> that has an import parameter based on WFSYST-ACT_AGENT and an export
> parameter based on object USR01. The code for this method is as follows:
>
> BEGIN_METHOD RETURNUSEROBECT CHANGING CONTAINER.
> DATA:
>       ACTUALLYPROCBY LIKE WFSYST-ACT_AGENT,
>       USER TYPE SWC_OBJECT,
>       bname like usr01-bname.
>
>   SWC_GET_ELEMENT CONTAINER 'ActuallyProcBy' ACTUALLYPROCBY.
>   bname = ACTUALLYPROCBY+2(12).
>
>   SWC_CREATE_OBJECT user 'USR01' bname.
>
>   SWC_SET_ELEMENT CONTAINER 'User' USER.
> END_METHOD.
>
> After the approval step create a new step including a task which calls
> this
> method. You will obviously also need a WF container element based on
> object
> USR01 to store the return value.
>
> With this object in the container you can then create a send mail step and
> include the &ACTUALUSER.NAME&
>
> As I say I'm sure there will be a better solution, but I hope this helps.
>
> My question:
> Along these lines I have a more fundamental question. Is it possible to
> include the actual agent in the Notification text message. My testing
> seems
> to indicate that this standard container element is not resolved until
> after
> the notification is sent. Is this correct??
>
> Thanks,
> Mark
>
>
> >From: "Roland Chan (EPA)" <Roland.Chan at ericsson.com.au>
> >Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
> >To: SAP-WUG at MITVMA.MIT.EDU
> >Subject: Workflow Mail to have information outside the selection fields
> >Date: Thu, 13 Sep 2001 16:07:38 +1000
> >
> >Hi,
> >
> >              We have developed a workflow application for Travel
> >Accounting
> >Approval and we have special routine built to base on the travel nature
> to
> >determine who the approver for this travel.   Everything is working and
> the
> >correct approver is receiving the workflow mail to conduct the approval
> and
> >if the travel is rejected, the traveler is being advised.
> >
> >                Yet the business wants an additional mail to go back to
> the
> >traveler on the progress of that travel claim AND in the mail content, we
> >want the actual approver's name.   Since such information is outside all
> >the
> >selection fields available,  how can I pass back the name of the approver
> >into the workflow so that I can display the name in the mail content ?
> >Has anybody come across such request ?  Please advise.
> >
> >
> >
> >         Regards,
> >         Roland Chan
> > > 03 9301 3523
> > > Ericsson Business Applications Team
> > > Level 38.29, 360 Elizabeth St
> > > Melbourne 3000
> > >
> > >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20010917/f8daa042/attachment.htm


More information about the SAP-WUG mailing list