Send a message within workflow with no user action!

Griffiths, Mark mark.griffiths at sap.com
Tue Aug 21 07:44:06 EDT 2001


There are a number of approaches you could use here:
 
Rather than SENDTASKDESPRIPTN you could use DISPLAYTASKDESCRPTN - this sends
a work item rather than an office mail.
 
Or you could use a similar approach to something like the Purchase
Requisition workflow - in this process notifications are sent using a Task
which calls an object method with no code in it, so when it is executed it
dissappears, in the meanwhile you can use the Task Long Texts and work item
text to supply the information which your user requires. If you tick the box
'Confirm end of processing' on the task this will stop the work item leaving
the inbox before the user has finished with it, and in 4.6 also gives you a
nice display of your long texts before you complete processing.
 
Hope this helps,
 
Mark
 
SAP UK
 
-----Original Message-----
From: Kevin Yu [mailto:Kevin.Yu at its.monash.edu.au]
Sent: 21 August 2001 12:02
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Send a message within workflow with no user action!
 
 
Patrick,
 
Thanks for all the help.  If I find a solution, surely you will be the
first person informed.
 
Cheers,
 
Kevin.
 
"de Valensart Schoenmaeckers, Patrick" wrote:
>
> Kevin,
>
> I've checked in my system, and we have the same (little) problem. I don't
> know for the moment how to solve that.
> I'll let you know when I'll have found a solution (if there is any...). I
> would appreciate very much if you could do the same for me.
>
> Thanks,
>
> Patrick.
>
> -----Original Message-----
>> From: Kevin Yu [mailto:Kevin.Yu at its.monash.edu.au]
> Sent: Monday, August 20, 2001 12:26 PM
> To: SAP-WUG at MITVMA.MIT.EDU
> Subject: Re: Send a message within workflow with no user action!
>
> Patrick,
>
> The notification worked at the background step after the release step.
> I have one more question is the subject line of the notification
> contains "Notification item" then followed by the workitem text, is
> there a way to suppress the "Notification Item" and only have the
> workitem text on the subject line?
>
> Thanks,
>
> Kevin.
>
> "de Valensart Schoenmaeckers, Patrick" wrote:
> >
> > Kevin,
> >
> > You are right, there is no way to know the status of the document at
that
> > point of time. I see then two solutions :
> >
> > 1. Create a task with method 'SENDTASKDESCRIPTION' from object
'SELFITEM'.
> > This is a background task that just sends the task description long text
> as
> > an email. You can then use that task as a step in your workflow.
> >
> > or
> >
> > 2. If you have a background step in your workflow that occurs only after
> > release of the document, you can also use that step to send a
> notification.
> >
> > Kind regards,
> >
> > Patrick
> >
> > -----Original Message-----
> > From: Kevin Yu [mailto:Kevin.Yu at its.monash.edu.au]
> > Sent: Monday, August 20, 2001 11:34 AM
> > To: SAP-WUG at MITVMA.MIT.EDU
> > Subject: Re: Send a message within workflow with no user action!
> >
> > Patrick,
> >
> > Thank you for the promptly reply, very much appreciated!
> >
> > The reason that the "notification agent" was not used is because I would
> > like to make sure that the document was released rather than rejected to
> > send this message! Or, is there any way to know at this point of time
> > that the document is released or is rejected?
> >
> > Thanks,
> >
> > Kevin.
> >
> > "de Valensart Schoenmaeckers, Patrick" wrote:
> > >
> > > Kevin,
> > >
> > > In the task that does the release, you can specify a "notification
> agent"
> > > who will receive the email.
> > > Go then to the task definition of the release task, and change the
> > > notification long text (in 40B : TA PFTC, choose change mode, menu
path
> :
> > > goto - long text - notification.)
> > >
> > > If for any reason you can't use this, you can also create a task using
> > > method 'SENDTASKDESCRIPTION' from object 'SELFITEM'.
> > >
> > > Hope this helps,
> > >
> > > Patrick de Valensart
> > > Associate IS Analyst
> > > NV Philip Morris Belgium SA
> > >
> > > -----Original Message-----
> > > From: Kevin Yu [mailto:Kevin.Yu at its.monash.edu.au]
> > > Sent: Monday, August 20, 2001 10:48 AM
> > > To: SAP-WUG at MITVMA.MIT.EDU
> > > Subject: Send a message within workflow with no user action!
> > >
> > > Hi,
> > >
> > > I have been trying to create a step after a document was released to
> > > send an message to notify the creator that the document was released.
> > > The step should not required any user action to complete the workitem.
> > > All I want is to send a message and keep going to next step.
> > >
> > > I have tried to create a customised method to use function
> > > 'SO_NEW_DOCUMENT_SEND_API1' to send an express mail.  The Method
worked
> > > fine if test by its own.  However, if use the method to create a task
as
> > > the step (a background process) in the workflow, it seems the workflow
> > > will stuck at this workitem and going nowhere.
> > >
> > > I am just wondering is there any better way to achieve what I intend
to
> > > do?
> > >
> > > Thanks,
> > >
> > > Kevin.
 


More information about the SAP-WUG mailing list