Responsibility Role is working funny

Roehlen, Peter PRoehlen at powercor.com.au
Thu May 23 04:02:30 EDT 2002


Andrew & Dan,
 
Putting aside the issue of why this happens (because I don't know), we have
set up a development standard to avoid this behaviour.
 
Basically, our development standard calls for every standard task to have a
standard role defined and that standard role to have the 'terminate if no
agent found' flag set to True.  This way, the workflow will always error if
the agent cannot be determined rather than going to all possible agents (ie
everyone for a General Task.)
 
Standard roles are a very useful tool anyway, and you can create a generic
one (e.g. you could call it 'NominatedAgent') that recieves an actual user
id and returns it as the agent (you will need a developer to do a small
amount of coding for this.)  This generic standard role is for occasions
where you would normally use the 'expression' option in the agent field.
 
Regards
Peter Roehlen
Powercor Australia Ltd
(03) 9683 4613
040 99 555 60
 
-----Original Message-----
From: Rankin, Andrew AJ [mailto:Andrew.J.Rankin at BHPBilliton.com]
Sent: Thursday, 23 May 2002 17:40
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Responsibility Role is working funny
 
 
Dan
 
I couldn't agree more - although I think calling it 'counter-intuitive' is
an understatement.
 
If the responsible agent in a step is defined using an expression from the
wf container, and that agent cannot be resolved to a user id the resulting
work item always goes to ALL possible agents. If you also have your possible
agents set up as 'general' for the associated task, this means the work item
goes to every single user in the system!
 
This has caused us extreme grief in the past and I reckon the SAP workflow
development team should defnitely think about doing something about it!
 
Andrew rankin.
 
-----Original Message-----
From: Dan Belenky [mailto:danb at pcf.com]
Sent: Wednesday, 22 May 2002 8:37
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Responsibility Role is working funny
 
 
Well, it took some time but I figured it out.
 
The Responsibility Role (Transaction PFAC) is triggered when the previous
work item is completed.   The  user who completes the previous work item is
the ID which is transferred to the security system..  If that user has
insufficient authorizations,  the responsibility role resolution function
will not complete and all possible agents will be selected.
 
 
The specific authorization object you need to have setup for the previous
user is PLOG (Human Resources/Personnel Planning).
 
 
Does anyone know why the system works this way? It seems counter intuitive.
 
 
 
 
"Krishna M.P." wrote:
 
 
I would check the Role container values during runtime by switching on the
container monitor and test the Role in PFAC using those values manually. I
also got a doubt that responsibility may not do a good job with the
alphabets verses number range.
 
Thanks,
Krishna Pottabatula
Tel: 713-353-0023;
Email: Krishna.Pottabatula at exxonmobil.com
ExxonMobil - GIS/GSA/GATS/SAP Programming Services
 
 
                    Dan Belenky
                    <danb at pcf.com>            To:     SAP-WUG at MITVMA.MIT.EDU
 
                    Sent by: SAP              cc:
                    Workflow                  Subject:     Responsibility
Role is working funny
                    <Owner-SAP-WUG at MITVM
                    A.MIT.EDU>
 
 
                    04/30/02 04:54 PM
                    Please respond to
                    "SAP Workflow Users'
                    Group"
 
 
I have a responsibility role which selects the responsible agent based upon
the
material group that is passed through the business object.
 
 
Some responsibilities are simple one value matches  (Material Group of  NP
to
NP).
Other responsibilities are complex and are entered on the responsibility
change
screen with multiple lines:
       example    Material group of  NC to NC
                        Material group of NT to NT
                        Material group of SC to SC
 
 
When I test this function (Simulate role resolution) in PFAC it works
great.
However, when I use it in a workflow, the simple ones work fine, but the
complex
ones do not select (so I get all possible agents).
 
 
Does anyone know where I am going wrong?
 
 
--
Dan Belenky
Sr. Application Analyst
Pacific Coast Feather Company
danb at pcf.com
206-336-2260
 
--
Dan Belenky
Sr. Application Analyst
Pacific Coast Feather Company
danb at pcf.com
206-336-2260
 
 
 
EOM
 
NOTICE - This message and any attached files may contain information that is
confidential and/or subject of legal privilege intended only for use by the
intended recipient. If you are not the intended recipient or the person
responsible for delivering the message to the intended recipient, be advised
that you have received this message in error and that any dissemination,
copying or use of this message or attachment is strictly forbidden, as is
the disclosure of the information therein.  If you have received this
message in error please notify the sender immediately and delete the
message.
 
 
**********************************************************************
Powercor Australia Ltd. This email and any file attachments are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email in
error please tell us immediately by return email and delete the
document.
**********************************************************************
 


More information about the SAP-WUG mailing list