Workflow Mail to have information outside....
Jody Chassereau
drcakes at hotmail.com
Tue Sep 18 06:39:43 EDT 2001
No, I don't know what the value would be in this field while you are
actually in the Approve step - in other words, I expect that value to be
there correctly only AFTER that step has been executed. Because of the
reasons I mentioned earlier, I had to capture that by using the binding from
task to workflow. Then the values were correct. Because of our setup, I
have the person that we are sending the Approve step to in a different
container element (which I use as the agent). But because of substitution,
I could not be assured that the actual executing agent was the same person.
And that is why we check those values.
I would tend to believe that 'workflow' is probably the name assigned to
your userid WF-BATCH. You might want to verify this by going into SWO1 for
object USR01 and creating an instance for WF-BATCH. Check some of the
attribute values and see if the name field contains 'workflow'. Ours has
'wf-batch', but that could be just some arbitrary name that we used.
I don't claim to be any expert on this, but it certainly sounds similar to
what I experienced when we did T&E. Try storing that _Workitem field into a
container element and see if it gives you what you need after the step is
done.
Jody Chassereau
drcakes at hotmail.com
>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: Re: Workflow Mail to have information outside....
>Date: Tue, 18 Sep 2001 14:00:23 +1000
>
>Hello Jody,
>
> Thanks for the quick response - my problem is in the
>same step, the value is not consistent.
> At the Approve/Reject step (when work item ID 552090 was executed)
>where I tried to display the
> &_WORKITEM.EXECUTEDBYUSER.NAME& (as in the parameter and in the
>message content), both were
> coming out as 'workflow' instead of the approver's name. Yet
>when
>we tried to view the details of the
> WORKITEM through the drill down (in SWI1), that field is holding
>the
>correct name of the approver I
> want to display. This was included in the document I enclosed
>last.
>
> You suggested to move the value into another new
>field and my question is if you cannot pick
> up the correct value, no matter where you display, the outcome is
>incorrect. Have you actually viewed
> the content of the field in the ApproveReject step ?
>
>
> Regards,
> Roland Chan.
>
>
>
>
> > -----Original Message-----
> > From: Jody Chassereau [SMTP:drcakes at hotmail.com]
> > Sent: 18 September, 2001 12:48 PM
> > To: SAP-WUG at MITVMA.MIT.EDU
> > Subject: Re: Workflow Mail to have information outside....
> >
> > Roland,
> >
> > I reviewed your document on the problem you are having with capturing
>the
> > 'executed by' information for your use in a mail message. I have also
> > developed a workflow for T&E and had run into similar issues when trying
> > to
> > capture the userid of the actual approver.
> >
> > The problem I had was that I wanted to have a background step after the
> > Approve/Reject that checked the actual approver to make sure they were
> > valid
> > (in case someone had performed substitution in the Business Workplace).
> > When I kept checking the 'executed by' data, the userid was WF-BATCH.
> > Apparently once the background step had begun, the userid in the
>previous
> > step was no longer available in that system field.
> >
> > So, here is what I recommend: In the binding of the Approve step, move
> > _Workitem (Standard work item) into a new container element (let's say
> > &WorkItemSave&). Define this container element in the workflow with
>obj.
> > type WORKINGWI. This way, the work item data is stored in a separate
>area
> > and will not be changed unless you overwrite it. Then when you have a
> > later
> > step that needs to use the data, you can pass in
> > &WorkItemSave.EXECUTEDBYUSER.NAME& and it should have the actual
>approver
> > info.
> >
> > I didn't quite follow your question on how the name formats, but maybe
> > this
> > will give you something to work with. I hope this helps you out.
> >
> > Jody Chassereau
> > drcakes at hotmail.com
> >
> >
> > >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: Re: Workflow Mail to have information outside....
> > >Date: Tue, 18 Sep 2001 11:12:38 +1000
> > >
> > >Hi Mark,
> > >
> > > Please find the details of the analysis of the workflow
> > using
> > >SWI1 as attached. The container information was displayed when work
> > item
> > >ID 552090 was executed. You can see that the _Decision_parameter 3
>was
> > >holding the value 'workflow' instead of 'Donna Lee Light' being the
> > >approver. Yet when you looked into the workitem details by drilling
> > >down,
> > >&_WORKITEM.EXECUTEDBYUSER.NAME& is actually holding 'Donna Lee Light'
>who
> > >is
> > >the approver of the travel. And when you looked into the container
> > >information when work it ID 552091 was executed (this time is a
> > background
> > >step (to change the status of travel record), the field is now holding
> > >'workflow'. This doesn't make sense.
> > >
> > > Also in the workflow analysis, the approver name is
> > displayed
> > >correctly in the analysis. Where does such information is coming from
> > >('Donna light' instead of Donna Lee Light). Please advise.
> > >
> > >Regards,
> > >Roland Chan.
> > >
> > > <<wfswi1.doc>>
> > >
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Mark Pyc Workflow [SMTP:pyc_workflow at hotmail.com]
> > > > Sent: 18 September, 2001 12:08 AM
> > > > To: SAP-WUG at MITVMA.MIT.EDU
> > > > Subject: Re: Workflow Mail to have information outside....
> > > >
> > > > Hi Roland,
> > > >
> > > > The step where you have used &_WORKITME.EXECUTEDBYUSER.NAME& is not
>a
> > > > background step is it? If so it would get executed by WF-BATCH and
> > > > therefore
> > > > may have a name like 'workflow'.
> > > >
> > > > Just checking,
> > > > 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: Re: Workflow Mail to have information outside....
> > > > >Date: Mon, 17 Sep 2001 16:50:11 +1000
> > > > >
> > > > >Hello Mark,
> > > > >
> > > > > Thanks for this - we are using 4.5B and in the field
> > > > >selection
> > > > >we can actually select this &_WORKITME.EXECUTEDBYUSER.NAME& field
>but
> > >the
> > > > >result coming out from the selection is the word 'workflow' instead
> > of
> > > > the
> > > > >agent's name. Has any other come across this and is there any
> > > > >suggestion
> > > > >? Please advise.
> > > > >
> > > > >
> > > > > Regards,
> > > > > Roland Chan
> > > > > > 03 9301 3523
> > > > > > Ericsson Business Applications Team
> > > > > > Level 38.29, 360 Elizabeth St
> > > > > > Melbourne 3000
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Mark Pyc Workflow [SMTP:pyc_workflow at hotmail.com]
> > > > > > Sent: 13 September, 2001 6:57 PM
> > > > > > To: SAP-WUG at MITVMA.MIT.EDU
> > > > > > Subject: Re: Workflow Mail to have information outside....
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > Further to that last reply I've just done a bit more testing. It
> > >seems
> > > > >in
> > > > > > 4.6 you can simply use &_WORKITEM.EXECUTEDBYUSER.NAME& in
> > >Notification
> > > > > > text
> > > > > > or binding if necessary. In 4.0 though I can't see that it is so
> > > > easily
> > > > > > available.
> > > > > >
> > > > > > A bit quick on the reply...
> > > > > > Have fun,
> > > > > > Mark
> > > > > >
> > > > > >
>_________________________________________________________________
> > > > > > Get your FREE download of MSN Explorer at
> > > > >http://explorer.msn.com/intl.asp
> > > >
> > > >
> > > > _________________________________________________________________
> > > > Get your FREE download of MSN Explorer at
> > >http://explorer.msn.com/intl.asp
> > ><< wfswi1.doc >>
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
More information about the SAP-WUG
mailing list