Workflow Mail to have information outside the selection fields

Mark Pyc Workflow pyc_workflow at hotmail.com
Thu Sep 13 04:34:49 EDT 2001


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
 


More information about the SAP-WUG mailing list