Can a background task be executed with the WF initiator's user id?

Alon Raskin araskin at 3i-consulting.com
Tue Apr 20 14:59:50 EDT 2004


Mark, you are drinking red wine at work? If so, then is there a position
available for me?
 
 
Alon Raskin
e: araskin at 3i-consulting.com
w: http://www.3i-consulting.com
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of 'Mark
Pyc'
Sent: Tuesday, April 20, 2004 3:45 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Can a background task be executed with the WF initiator's user
id?
 
Oh well, as long as you've looked for other options.
 
If you make a Method non-dialog but don't mark the task as background then
when executed it will happen under the ID of the executing agent without
them seeing any reaction. This is useful where you've got advance with
dialog, after a decision for example. However I'm pretty sure (although this
hangover is making everything a little blurry) that you won't convince the
runtime system to autoexecute the first step if it's declared as such. If
you test in some of the test tools it will work, but not when triggered by
the event.
 
Again I blame the red wine for my lack of confidence, but I'm pretty sure
you might if your lucky although I wouldn't bet on it be able to use a
receiver function module to achieve what you want. Take whatever code is in
the method and wack it in a receiver function module which you then put in
the event linkage table via SWETYPV.
 
Have fun!
Mark
 
 
 
 
 
Workflow99 at aol.com
Sent by: SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
20/04/2004 14:55
Please respond to SAP Workflow Users' Group
 
 
        To:     SAP-WUG at MITVMA.MIT.EDU
        cc:
        Subject:        Re: Can a background task be executed with the WF
initiator's user id?
 
 
Hi Mark,
 
It is actually for an enhancement in the Funds Management module of the
Public Sector solution. The current functionality does not provide what the
client needs. I am exploring various options at this time and was wondering
if I could leverage WF. Business Object BUS0050 and associated methods are
what I need.
By Leveraging these I can use standard SAP and avoid maintenance of custom
code. Triggering the task directly from an event will always execute with
WF-BATCH as the user.
 
Regards,
Ramki Maley
Workflow Developer, USCBP.
248-613-1287 (C)
 
 
In a message dated 4/20/2004 9:01:49 AM Eastern Standard Time,
Mark.Pyc at bhint.com writes:
A 1 step non-dialog workflow??
 
Should this really be a workflow or is there an enhancement technique that
can be used more sensibly?
 
 
 
 
 
 
Workflow99 at aol.com
Sent by: SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
20/04/2004 12:53
Please respond to SAP Workflow Users' Group
 
 
        To:     SAP-WUG at MITVMA.MIT.EDU
        cc:
        Subject:        Can a background task be executed with the WF
initiator's user id?
 
 
Hello Everone,
 
Is there a way to execute a background task with WF initiator as the user
(not WF-BATCH)? The task is the very first & only step in the workflow.
TIA
 
Regards,
Ramki Maley
Workflow Developer, USCBP.
248-613-1287 (C)
 


More information about the SAP-WUG mailing list