Need Chief of Organization as Possible Agent

Hi,
I have a workflow task that that is an approval step of a workflow that only managers should perform. In the agent determination for the workflow I have a rule that I can use to determine the correct responsible agent who needs to approve this step, but I want to make sure that if this work is forwarded to another person, that person is a manager. I would like to set the agent assignment for the task so that it can only be performed by a chief of an organization, but I can not seem to figure out how to do this. We have hundreds of Jobs that are manager jobs so I can't use job. Chief of an organization would be perfect, but how do I assign chief of an organization as an agent assignment for a task?
Thanks,
Gregg

Hi Gregg,
You may have to use a Rule (PFAC) for defining agents to the workflow step.
In the rule you have to write the following logic.
1) Find out PERNR from user ID from TCode PA20 (By giving U..userID in PERNR field)
2)Find User's Position
FORM FIND_POSITION USING    P_REQ_PERNR
                            P_REQ_POSITION.
SELECT      SOBID INTO P_REQ_POSITION FROM  HRP1001
       UP TO 1 ROWS
       WHERE  OTYPE  = C_person
       and objid     = p_req_pernr
       and    PLVAR  =  C_PLVAR
       AND    RSIGN  = C_B
       AND    RELAT  = C_A008
       AND    ISTAT  = C_1
       AND    BEGDA  <= SY-DATUM
       AND    ENDDA  >= SY-DATUM
       AND    SCLAS  = C_POSITION.
ENDSELECT.
ENDFORM. 
3)Find User's Org using Position determined in the above step
FORM FIND_REQ_ORG using P_REQ_POSITION
                        P_REQ_ORG.
SELECT SINGLE SOBID INTO P_REQ_ORG FROM  HRP1001
       WHERE  OTYPE  = 'S'
       AND    OBJID  = P_REQ_POSITION
       AND    PLVAR  = '01'
       AND    RSIGN  = 'A'
       AND    RELAT  = '003'
       AND    ISTAT  = '1'
       AND    BEGDA  <= SY-DATUM
       AND    ENDDA  >= SY-DATUM
       AND    INFTY  = '1001'
       AND    SUBTY  = 'A003'.
ENDFORM.  
4) Find chief of the Org Unit determined in the above step.
FORM FIND_CHIEFUSING p_req_org
                                p_req_chef.
SELECT SOBID INTO P_REQ_CHEF FROM  HRP1001
       WHERE  OTYPE  = 'O'
       AND    OBJID  = P_REQ_ORG
       AND    PLVAR  = '01'
       AND    RSIGN  = 'B'
       AND    RELAT  = '012'
       AND    ISTAT  = '1'
       AND    BEGDA  <= SY-DATUM
       AND    ENDDA  >= SY-DATUM
       AND    INFTY  = '1001'
       AND    SUBTY  = 'B012'
       AND    SCLAS  = 'S'.
ENDSELECT.
ENDFORM. 
5) Assign this Chief ID to the table ACTOR_TAB used in the Rule.
6)Finally make the standatd task used in the workflow step as General task.
Hope this helps. Clarifications are welcome.
Please reward points if the answer is found useful.
Thanks
Venkat

Similar Messages

  • Error: You are not one of the possible agents of task 'WS99900032'

    Hi frnds,
        I have copied the std leave request workflow WS12300111 into WS99900032 and assigned in the SPRO setting. The approvers are determined using the workflow rule (PFAC) and its not determined from Org Management. But when i tried to apply leave, its throwing me the error You are not one of the possible agents of task 'WS99900032'.
    Can anyone give me solution to solve it?
    thanks,
    Suganya.

    You are not one of the possible agents of task 'WS99900032'
    You need to refresh the  organizational environment and then execute the workitem
    1. First make the workflow tempalte as General task and then
    Goto PFTC ---> enter the workflow tempalte number by selecting workflow template  ---> open in display mode and on menu Addtional Data ---> agent assignment  ---> Maintian ---> select General task
    2. Goto SBWP  -
    > Seetings  -
    >workflow settings -
    > refresh ornozational environment and then try to execute the workitem

  • You are not one of the possible agents of task 'WS20000081'

    Hi,
    I need to trigger the workflow WS20000081 using the service. This workflow gets triggered by 'Create Leave Request' service which is in ESS.
    To test the above said workflow, I need to execute the service WS20000081 in R/3. But when I execute this service from Service User log-on, it throws an error as follows.
    <b>You are not one of the possible agents of task 'WS20000081'.</b>
    Even after I changed the task assigment as 'General Task', it keeps giving the same error.
    Please suggest me how to solve this problem.
    Regards,
    jey

    There are agents assigned for a task in the workflow.The same role has been assigned to my user id.But it does not work
    I saw in Debug that it tries to execute the Method 'EXECUTE' in the Class CL_SWF_RUN_WORKFLOW_START..which checks for authorization internally.
    I never know why this is failing.
    I checked in another box which is upgraded to ECC .
    There inside the Method Execute it takes a parameter m_task->properties-general = 'X'
    and TCLASS = 'NO_CLASS'.These r passed to the authorization check which succeds there.
    But in this system m_task->properties-general  = '  ' and Tclass = '  '.
    Can anyone pls suggest how to go abt this.

  • Doubt in possible agent and responsible agent.

    Hi All.
    Can any one please help me in solving difference between possbile agents as responsible agents.
    As per my understanding we will maintain the possible agents in the task definition and responsible agents in the work flow definition.
    For example if a invoice posting needs to be handled,if i define three agents in the task definition as possible agents who will become the responsible agents out of three..
    can any one please help me in understanding the difference between possible agent and responsible agent?
    Thanks in advance.

    Hi ,
    It's very small but interesting doubt :P
    If in activity level  any agent is maintain like we maintain &_wf_initiator& generally. that agent is the responsible agent .. or if any rule is maintained then the agents selected by the rule will be responsible agents but the ..
    There is something which you have missed is recipients .. who actually receives the workitems in their inboxs..  these are the user who are the intersection of possible and responsible agents..
    In short
    Possible agents as you have said..
    Responsible are the agents you maintain at activity level or get selected by the rule.
    and Recipents who actually gets the workitem..
    hope this will help you
    Regards
    Dev

  • Possible agents of task 'WS20000081

    Hi Gurus ,
    I face a problem after upgrade to ECC from 4.6 C.
    When trying to raise a leave request through WS20000081 I see a message as below.
    'You are not one of the possible agents of task 'WS20000081'
    Message no. WZ346.
    Do i need to do any configuration.When we upgraded in my previous box I did not have this message.
    Thanks in advance.

    There are agents assigned for a task in the workflow.The same role has been assigned to my user id.But it does not work
    I saw in Debug that it tries to execute the Method 'EXECUTE' in the Class CL_SWF_RUN_WORKFLOW_START..which checks for authorization internally.
    I never know why this is failing.
    I checked in another box which is upgraded to ECC .
    There inside the Method Execute it takes a parameter m_task->properties-general = 'X'
    and TCLASS = 'NO_CLASS'.These r passed to the authorization check which succeds there.
    But in this system m_task->properties-general  = '  ' and Tclass = '  '.
    Can anyone pls suggest how to go abt this.

  • I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD? If yes, where I find a tutorial about this? Thanks a lot and best regards all.

    Hi people,
    I'm typing from Brasil, sorry my English.
    I have a iMac 21,5" Intel mid 2011 and I need to know if is possible I change the original 500Gb HD for a 512Gb SSD?
    I intend to keep the original DVD driver and install the SSD in the same HD place.
    If yes, where I find a tutorial about this?
    And I will like to know if the 512GB Solid-State Drive Kit for Mac Pro is compatible with iMac.
    http://store.apple.com/us/product/MC731ZM/A/512gb-solid-state-drive-kit-for-mac- pro?fnode=5f
    What brand and model of SSD do you recommend?
    Thanks a lot for now and best regards all.
    Carlos Sgrillo
    Porto Alegre, RS, Brasil

    Tukaine
    Sep 23, 2012 10:59 PM
    Since the late 2009 iMacs came out, replacing the hard drive has caused the internal Hard Drive Fan to start running at around 6000RPM.
    This is due to Apple replacing the external Hard Drive temperature sensor with a proprietary firmware and using the drives internal sensor.
    Replacement drives do not contain the firmware to deliver temperature data on the temperature sensor cable.
    When the iMac does not receive a good signal from the hard drive it puts the fan at full speed to protect the drive.
    If you replace your drive, your iMac will initially seem fine, but soon the fan will begin to speed up to full speed. Resetting the SMC (System Management Controller) will have a temporary effect, but again the fan will speed up.
    Fixes people have used in the past included:
    Using smcFanControl and the terminal to set a MAX speed for the fan and writing scripts to start this after every sleep/restart.
    Shorting the temperature sensor cable (Not a possibility on 2011 iMacs) this tricks the iMac into thinking the drives temperature is very low, hence slow fan speed.
    Both these fixes are less then perfect and leave the drive in a dangerous situation with no protection from overheating.
    Another option people try is other Fan Control software. These programs will not work for this particular issue as they often only control the base speed, and if they do control the fans actual speed they rely on the temperature reported by the sensor which is now incorrect.
    HDD Fan Control
    HDD Fan Control works to fix this issue by reading the drives internal temperature using the S.M.A.R.T protocol and set the fans actual speed to a value good to protect the drive.
    It runs at startup and continually to always control the fan correctly, prevent the loud fan noise and protect the drive from overheating
    Instead of HDDFan Control, get the free SSDFan Control
    http://exirion.net/ssdfanctrl/

  • I need new pc. is it possible to instal Photoshop CC again ? How often can I install?

    I need new pc. is it possible to instal Photoshop CC again ? How often can I install?

    Moineauhh you can install and utilize your Creative Cloud Membership on up to two computers.  You can find more details regarding the installation process at Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html.

  • RSWUWFML2 sending mail to all possible agents

    I have configured RSWUWFML2 and it is sending mail to Notes fine just the wrong agents.  I am wanting to send workflow messages from tasks etc in Quality Notifications and I have created an org structure and just assigned this structure as the agent in the workflow config.  When I assign an individual in the notification to a task only that user is getting the actual workflow in SBWP, which is great,  however notes mails are being sent to all possible agents, i.e. those in the org structure.  Anybody encountered this before? and how to stop it?

    Please check in the workflow log which are the agents it is going to?
    I think it is going to all users and the user you are saying is also receiving at.
    Please make your agent assignment properly in order the workitem not being sent to all users.
    Thanks
    Arghadip

  • Function to get the Agents for the Workitem not the possible agents

    Hi Guys ,
    To get the user for each scienario we saved it in the ztable. Now i want to show in report the list possible agents assigned to workitem. ts should agents asigned to it ... its can be four or five ....

    Try to make use of the FM SAP_WAPI_GET_WI_AGENTS, if at all you want to know the agents with respect to a workitem
    and
    check the below too
    SWL_WI_DISP_ACTUAL_AGENTS     
    SWL_WI_DISP_EXCLUDED_AGENTS   
    SWL_WI_DISP_POSSIBLE_AGENTS   

  • User in possible agent list but no task in user's workplace

    Hello,
    i had a small problem with my workflow. The process works fine but sometimes i can see an interesting situation - in the log of wf I can see that one concrete user is in a list of possible agents - BUT when i log in as this user i see NO tasks in SBWP.
    Any ideas?
    Thx,
    JJ

    Hello,
    Check the agent assignment of the user decision:
    Transaction PFTC_DIS, standard task xxxx and then Additional Data > Agent Assignment > Display
    If a popup says that no agents are assigned, there is your problem, my suggestion is to modify it as a general task: Additional Data > Agent Assignment > Maintain > attributes > general task
    Regards,
    Bárbara

  • How to assign possible agents at security role / CAG level?

    Hi Experts, How to assign possible agents at security role / CAG level?

    Yes, that's exactly what I'm talking about. In your task maintenance, goto additional data -> agent assignment -> Maintain
    Click on th task, click on the assign button. Choose object type 'Role', enter role.
    Cheers,
    Mike

  • Unable send request, you are not one of the possible agents

    Hi,
    I am trying to configure workflow  for leave request, for my requirement i have to do some modifications to stadard workflow(12300111), so i copied it and made configuration settings in spro also, but when i create a leave from PTARQ transaction
    workflow is not getting created.
    when i debugged it, i got amessage saying 1) unable send request 2) you are not one of the possible agents
    Is there any other stting i have to do??
    Thanks,
    Krish.

    Hi Kishore,
    Please check below things.
    1. In the SPRO, have you maintained your workflow Template against the required leave type.
    2.Use CTRL + F2, and check is there any error in your workflow. Also check whether it is active or not.
    3. Check the workflow agent assignment in Basic data. It should be General Task.
    Thanks.

  • Reg possible Agents

    Hi,
    I got two doubts.
    1) If I don't give any agents at step level, and maintained the possible agents at task level, then will work item go to all possible agents?
    2) If I mention the task as generic and maintained the agents at step level, then will work items only go to the steplevel agents?
    I appreciate your help.

    These are basics you can try on your system and get the answer. Anyhow here it is:
    1) If I don't give any agents at step level, and maintained the possible agents at task level, then will work item go to all possible agents? - Yes
    2) If I mention the task as generic and maintained the agents at step level, then will work items only go to the steplevel agents?
    Yes
    Regards,
    IA

  • Not one of the possible agents WS12300111

    This issue is very similar to the one described in following thread, although I already tried all the hints in that one:
    Dynamic Action.
    I have defined the wf as a general task as described in the other thread and I even put me and my entire org. unit in the agent selection screen. Still when I request an absence from the portal view I get the message that I am not one of the possible agents of the workflow.
    Now, I tried to view the workflow log to find errors but to my surprise the worklfow has not even been started at this point?!
    Can anyone help me out here? It does not make sense to me anymore.

    Hi Mike
    The error message corresponds to the workflow I select in PTARQ under customizing so at least I think it does try to start it. Then again - anything is possible at this point
    I read that I could use any user with SAP ALL but should preferrable stick to WF-BATCH. I'll change it back.
    I think this problem is getting weird. I'll take your advice and try again tomorrow and hope for the magic SAP goblin to do some trick overnight
    I'll be back if it does not work. Thanks so far.

  • ESS - ws01000109 - You are not of the possible agents of the task

    Hi
    When I try to cancel leave using workflow ws01000109 it is raising message
    "You are not of the possible agents of the task ".
    Can any body tell wheather we have to maintain data in pa30 transaction for this problem.
    I have seen so many thread regarding this But I have not got any answer please reply for the same
    I have set all tasks as general task only.
    Edited by: balaji ramadas on Jun 8, 2009 4:01 PM

    Hello,
    You would be better off starting your own thread, and I hope that unlike the poster above you will share the result when you find a solution.
    Has your task been set to General Task? If not, try that.
    regards
    Rick Bakker
    Hanabi Technology

Maybe you are looking for

  • Photo stream is not working on 4s.

    Photo stream hasn't worked for over a week now. It seems to only work when I take a pic while connected to wifi but if I'm out somewhere, take pics, come home and connect to wifi it still won't stream my photos.

  • I'm getting faint electric shocks thro my forearms from my mac book pro. Is this normal as its very uncomfortable and tedius?

    I'm getting faint electric shocks thro my forearms from my mac book pro. Is this normal as its very uncomfortable and tedius?

  • Use of OCO and OCDL for Customer Account and Party Merge

    Requirement: Duplicate parties, previously identified by legacy, are being sent as messages which are polled in and processed upon by custom code. Once these duplicate parties are identified by Legacy, the requirement is to merge them both and then g

  • Reporting who could access a system

    Hi I need to be able to generate a report on which users could have accessed a given system in a given timeframe (ie. the last 2 weeks), I have been through the menus and I can't seem to find any report-type that fits this requirement. Is it possible

  • Can not turn off user account

    Hello          I am using a Windows 7 Home Premium computer trying to turn off account settings wishing to download a program.  I am unsuccessful doing the following:            Go to User accounts in control panel -- Choose  Change the account contr