Dynamic roles in Agent Assignment

Dear All
I have a requirement of assigning dynamic roles which is stored in container element. When i select the role in the agent assignment of the task all the system roles come in the drop down. How to assign the role stored in the container element in agent assignment.
Thanx in advance

You can use a simple rule that returns the agents having that role FM PRGN_READ_USERS_FOR_ONE_AGR will do the trick.
Or else I think you can just use a role as an expression (haven't done this myself). Just as you would pass in USUSERNAME, prefix it with AG. You may have an issue with data types though if the role name is longer than the standard HR object name, I haven't tried it for this very reason.

Similar Messages

  • Role based agent assignment in n step badi

    Hi Guys
    Please provide your inputs on determining agent based on a role in the N step approval badi.
    Regards
    Rajeev

    Hello Rajeev,
    what do you expect as input?
    Develop such a BADI is possible. Do you want someone who develop this coding for you?
    Best REgards,
    SZD

  • SAP MII 14.0 SP5 Patch 11 - Error has occurred while processing data stream Dynamic Query role is not assigned to the Data Server

    Hello All,
    We are using a two tier architecture.
    Our Corp server calls the refinery server.
    Our CORP MII server uses user id abc_user to connect to the refinery data server.
    The user id abc_user has the SAP_xMII_Dynamic_Query role.
    The data server also has the checkbox for allow dynamic query enabled.
    But we are still getting the following error
    Error has occurred while processing data stream
    Dynamic Query role is not assigned to the Data Server; Use query template
    Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
    Thanks,
    Kiran

    Thanks Anushree !!
    I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
    But we even needed to add the role to the data server.
    Thanks,
    Kiran

  • Workflow - Dynamic agent assignment

    Hello!
    I am doing Workflow development. I have a question about Workflow Agent Assignment.
    I want to assign multiple agents ( 1 or 2 or more agents and It's not static. Each agents have task that processing independent. and next task is started after end of all multiple tasks.).
    But I can't dynamic assignment('Adhoc agent assignment' is not that.)
    Can you help me?(Is this possible?)
    Best Regards,
    Juhyun

    Hi
    If I have understood you correctly, you have a multiline container element with a number of agents (type wfsyst-agent) - and now you would like to send a workitem to each agent - and not just one workitem to all of your agent.
    To achieve this you need to define the task (or sub workflow) as a multiline element. T
    his is done in task implementation in the workflow builder. Switch to the tab <b>Other</b>, in here you add your multiline container element containing.
    When you now go back to agent assignment, you will find two container elements for your multiline element, use the one with [&_WF_PARFOREACH_INDEX&].
    The result will be that exactly one workitem is created for each entry in your multiline container element.
    Regards
    Morten Nielsen

  • Dynamic role Assignment in Portal using Web dynpro Java?

    Hi All,
    We have following requirement for dynamic role assignment.
    1) User Login to Portal.
    2) User Clicks on Home Tab in Portal, through RFC/BAPI, get Role from Backend(ECC) and compare the role ID with Portal Object ID through UME.
    Role gets assigned in Portal after comparison, if it exists in Portal.
    Can you please let me know what all steps I need to do to complete the above assignment.
    Thank you
    Ravi

    Thanks Tobias.
    To be precise I will explian my requirement.
    1) User Login ( User ID will be input to RFC)
    2) RFC will get Role for that user ID from Backend(ECC) and return that role ID to Portal.
    3) Now With the help of UME API, need to search role ID in Portal, If it exists, no action.
    If Role ID does not exists, then it shuld assign that role in Portal.
    Sorry for tedious comment.
    I am a bit new to webdyn pro.
    Can you please tell me each step i need to follow to complete the above requirement.
    Many Thanks,
    Ravi

  • BPM Dynamic Roles

    Hi All,
    I am trying to figure out how I can dynamically assign roles within BPM. So I want to be able to route the BPM process to the manager of the user that the process was assigned. I am just not sure how to dynamically do this within BPM.
    Any thoughts? Any documentation on dynamic roles would be greatly appreciated.
    We are using BPM 11g.
    --S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    So is it the call CreateResourceList that lets you actually set the user / approle for a flow?
    It looks like that might be on the right track.
    --S                                                                                                                                                                                                                                                                                                               

  • Dynamic Role -- Group Mapping not working in WebLogic 10

    I have an installation I am migrating from 9.2 to 10. It uses Dynamic Role Mapping:
    From my Weblogic.xml within the deployment:
        <security-role-assignment>
            <role-name>EELSSystemAdministrator</role-name>
            <externally-defined/>
        </security-role-assignment>I am using SPNEGO SSO, and it is working fine, it retrieves the principles from LDAP and adds them to the subject, so everything is fine there. I have defined the deployment constraint "EELSSystemAdministrator" as a Global Role, and then Added a condition "group" and set it to the LDAP Group (SMS EELSSystemAdministrator) which is one of the three principles being returned from LDAP.
    When the Role mapper runs, it returns the following in the logs:
    <SecurityRoleMap> <Accessed Subject: Id=urn:oasis:names:tc:xacml:2.0:subject:group, Value=[everyone,users, SMS EELSSystemAdministrator,SMS EELSReportAnalyst]>
    <SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:string-is-in(SMS EELSSystemAdministrator ,[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]) -> false>
    <SecurityRoleMap> <primary-rule evaluates to NotApplicable because of Condition>
    <SecurityRoleMap> <urn:bea:xacml:2.0:entitlement:role:EELSSystemAdministrator:top, 1.0 evaluates to Deny>
    <SecurityRoleMap> <XACML RoleMapper: accessing role EELSSystemAdministrator: DENIEDIn my 9.2 Installation that is working I get the following in the logs:
    <SecurityRoleMap> <Accessed Subject: Id=urn:oasis:names:tc:xacml:2.0:subject:group, Value=[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]>
    <SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:string-is-in(SMS EELSSystemAdministrator,[everyone,users,SMS EELSSystemAdministrator,SMS EELSReportAnalyst]) -> true>
    <SecurityRoleMap> <Evaluate urn:oasis:names:tc:xacml:1.0:function:or(true) -> true>
    <SecurityRoleMap> <primary-rule evaluates to Permit>
    <SecurityRoleMap> <urn:bea:xacml:2.0:entitlement:role:EELSSystemAdministrator:type@E@Furl@G@M@Oapplication@EEELSWeb@[email protected]@O$@S@VDSTAMP@S@W@M@OcontextPath@E@UEELS@M@Ouri@E@U, 1.0 evaluates to Permit>
    <SecurityRoleMap> <XACML RoleMapper: accessing role EELSSystemAdministrator: GRANTED> I am not sure why my 9.2 deployment lists the role type as a "url" (which points to the right deployment, and 10 lists it as the word "top". Either way, it is not authenticating to my global role based on the Group returned from LDAP.
    I'm pretty much out of troubleshooting idea's, having compared every config file/log file etc to find descrepancies in my setup. Anyone have any suggestions, perhaps something that has to be setup differently in 10 then in 9.2?
    Thanks in Advance,
    John

    Update:
    I checked a bunch of settings, and it seems to be working now, very odd.

  • WorfFlow Agent Assignment at Task Level...

    Hi,
    I have problem in Workflow agent assignment...
    In agent assignment at Task (MM Invoices Parked/Posted) level, I have assigned a position(Account Payable)to AC Role...
    Under this position, there are 8 users....
    In the Workflow process,At this task level the work item is going to only one person inbox not all these 8 users...
    Can you please advise me, where I was wrong...
    Warm Regards,
    Thirupathi....

    Hi Thirupathi,
    There are a couple of things you can try:
    - Agent assignment gets buffered in HR, normally refreshed at midnight. Use txn SWU_OBUF to refresh them manually.
    - Are all agents also possible agents of the task or is the task defined as a general task?
    - (just adding the obvious) make sure your task is in status READY, else it would have been reserved by someone.
    Cheers
    Mike

  • Agent Assignment - if no agent found

    Hi,
      I have created a dialog work item. i have done agent assignment with position id.
      My problem is  if  position id is not having users( in some cases)  then the workitem will go to whom? ,  how  can i resolve this .
    Thanks & Regards
    Sankar.

    Hi Sankar,
    The work item is sent to the position, so If the position is empty then it will go to no one (well... that's what happens on 4.6C - unfortunately, no warnings or errors are produced to indicate this work item is without an agent).
    Note: If the "Position" doesn't Exist on the runtime environment - then your Workflow Will go into Error when "establishing the agent".
    However... run tx. SWI2_ADM1 to get a list of "Work Items Without Agents" and... Your Work item is there... And you can reserve the work item and forward it to an agent
    To resolve this:
    Check your "Agent Assignment" on that dialog task...
    You can specify the "Possible Agents", so that the work item will be sent to the "Position" and all "Possible Agents" (not 100% ideal - but will ensure that an Agent is found). Make sure it's Not a General Task to do this.
    Alternatives:
    You might want to reconsider applying a "position" directly to a task in the workflow. Instead, try using "Roles" - it gives you more flexibility in runtime.
    Hope it helps.
    Tom

  • Agent Assignment in Sent mail step

    Hi to all,
        I am having two doubts.I am new to workflow.Thai is my first development.
    1. In one activity i am using one method inside that FM that convert the report to PDF and sent it to  user for approval using FM SO_NEW_DOCUMENT_ATT_SEND_API1 .For every level i am using this activity to sent the file to user in that level,my doubt is how to assign the agent to RECEIVER_list in FM SO_NEW_DOCUMENT_ATT_SEND_API1 Dynamically for every level.
    Give me some idea ,.
    2.In sent mail step i want to sent a mail to 5 person ,i dont know how to sent.
    Urgent help me out .Give me some idea ,
    give me some related document  or line for agent assignment
    Points i will put for use full document.
    Thankx in Adv,
    Ram.

    Hi Raja Ram,
    I have faced the same problem in my previous project. Let me explain how i did.
    If a employee creates "SALARY ADVANCE" it has to go to 7(MAX) levels of approval based upon the amount that the employee is asking for and based upon the employee subgroup.
    I have created a FM in which i am checking this condition and i have created table (to hold the approvers). When i call this FM inside the method, it will create a multi-line container and the import parameter is the employees SAP user id and the Amount what he is asking for.
    Get the approvers from HRP1001 based upon the selection crietria.
    You can use this too.
    Regards
    Balaji E.

  • Agent Assignment in Workflow

    If anyone had worked on customizing the WF for Changed Sub profile, WS1200124, please tell me how to configure the role for the standard task: 1200191, Abbreviation: PDVDispProfi .
    I need to use this task for two purposes, one to show to the owner of the profile and second to the manager of the owner of the profile.
    I tried giving the rules 01200025 for Employee and 01200024 for the manager in agent assignment for the tasks, but the workflow hangs at these tasks.
    If I hardcode the agent to some user, it works fine.
    Any suggestion on what would have gone wrong?
    Is something to be activated at the rule level?
    Thanks in Advance.
    Suryakiran

    Hi Mikko,
    I work on ECC5 system.
    Your answer solves half of my issue.
    I assign an Expression with &EMPLOYEE& as the agent to task and this sends the mail to the employee.
    the Work Item Subject says "Your Dev. Profile has been change".
    Now, I also need to send the same mail to the supervisor of the employee.
    Here, The workitem text should be "Dev. Profile has been changed for the Employee<b> XYZ</b>".
    So, I cloned the task TS01200191 to TS900001,
    changed the text accordingly and
    created a container element "PERSON"
    inserted this element as a variable in the text.
    I need to pass this PERSON to the task in the binding from workflow.
    This PERSON should be created in the workflow container and filled.
    Please confirm if this procedure works or if there is a better one.
    Thanks.

  • Agent assignment to release code

    Hi All,
    please tell me where can i assign agent to release code so that the position of approver is maintained under processor.
    we use pr release strategy process.
    thanks

    Hi
    thanks for answering. ac tually the problem i am facing is related workflow error for agent assignment.
    error: agent determination for step "0000000004" failed
              workflow WS20000077 no. 0000057057045 activity 0000000004 role AC20000026. no agents found.
    please help.
    there are 5 release strategy levels for PR in clients system.
    5 release codes C1 c2 c3 c4 c5
    c1 c2 c3 c4 are assigned as 9
    c5 as 1
    please help
    thanks
    Tarun

  • Authorizations: Dynamic roles

    Hello everybody,
    We are going to migrate our authorizations from 3.x concept to BI-7.
    With the new concept we are compelled to respect certain requirements like to include into the single user profile every InfoObject “AuthorizationRelevant” (that are also built-in into the InfoProvider, indented for the future analysis).
    -     Certain users had only one dynamic role. In such a case we are able to restrict for instance:
    o     0CO_AREA = a value;
    o     every other InfoObject “AuthorizationRelevant” = “*” (every single values)
    -     Certain users had two or more dynamic roles; in such a case we are supposed to:
    o     ROLE 1: 0CO_AREA = a value; every other InfoObject “AuthorizationRelevant”, for instance 0COMANY_CODE  = “*” (every single values)
    o     ROLE 2: 0COMANY_CODE = a value; every other InfoObject “AuthorizationRelevant”, for instance 0CO_AREA = “*” (every single values)
    In this particular case though we expect that the system will ignore our restrictions because it is adding the two roles in fact:
    ROLE 1 is set: 0CO_AREA = a value;
    ROLE 2 is set: 0CO_AREA = “*”.
    Base on what we just described above, here they are our questions:
    1.     Does exist a symbol (for instance “:”   “>”) that we can assigned to every InfoObject “AuthorizationRelevant” in order to cheat the system making it understand that it is there but not relevant for the authorizations (instead using “*”)?
    2.     If not can you please suggest us another way to cope with the problem of having for a user more dynamic roles assigned.
    Thank you very much
    Matteo Mariniello

    Hello,
    I don't have a solution but I think I understood Matteo's goal which is not at all to authorized users to do anything they want to.
    He wants to restrict certain tasks but when it comes for a user to have two or more dynamic roles the addition of them make the restriction useless.
    As he said
    Dynamic Role 1)
    0CO_AREA = a value
    0COMP_CODE= *
    Dynamic Role 2)
    0CO_AREA = *
    0COMP_CODE= A VALUE
    Therefore; the addition of them for ONE user is going to make the restrictions
    0CO_AREA = a value
    0COMP_CODE= a value
    USELESS!!
    Take Care
    Domenico

  • How dynamically get an agent f a level-by-level workflow after PO changed

    Hi  all:
         I'm trying to create a level-by-level workflow after PO  changed, but how dynamically get an agent and how assign it to
    task dynamically?
        Thank you very much!!!

    Hi Sony,
    There are diffrent ways to get agent level by level....it depends from where you are getting the agents.
    1>Suppose you have 2 level PO worklfow and my agents are stored in some custom table:-
        level1 -- agent1
        level2 --agent2
    2> You can create two attributes in your BO i;e zgent1& zagent2.
    3> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
       i.e select agent1 into zagent1 from zcus_tab where level = 1.
    4> Inside the attributes zagent1 u will get the actual agents from custom table by putting code
       i.e select agent1 into zagent1 from zcus_tab where level = 2.        
    5> Now generate the BO...and test it ..u will se the user id of agents in the attributes populated.
    6> Now bind these both attributes to workflow container.
    7> Use attribute ZAGENT1 for level 1 approval task in worlfow.
    8> Use attribute ZAGENT2 for level 2 approval task in worlfow.        
    The values will comes dynamically from custom table...which u will maintain.

  • Agent assigning ?

    Hi experts, i developed a XD01 Workflow in that i want to agent assigning dynamically.
    i want to send a mail to manager , User who created XD01 & SD consultant? how can i send mails with expression ?
    For manager Expression: &WFSYST-AGENT&
    User Expression :&WFSYST-AGENT&
    SD Consultant Expession: &WFSYST-AGENT&
    i created the 3 containers & pass them ? how the Workitem goes to particular persons, how it know ? i gave the 3 members with &WFSYST-AGENT& . how it distinguish. for this purpose is it reqiure code any where , if require where can i write code, how explain plzz?

    DATA : AC_CONTAINER LIKE SWCONT OCCURS 0 WITH HEADER LINE.
    DATA : ACTOR_TAB LIKE SWHACTOR OCCURS 0 WITH HEADER LINE.
    SWC_GET_ELEMENT CONTAINER 'EMPNO' EMPNO.
    SWC_GET_ELEMENT CONTAINER 'LV_INATITATOR_NAME' LV_INATITATOR_NAME.
    SWC_GET_ELEMENT CONTAINER  'LV_TRIPNO' LV_TRIPNO.
    refresh : AC_CONTAINER,ACTOR_TAB.
    AC_CONTAINER-ELEMENT = 'OBJID'.
    AC_CONTAINER-TAB_INDEX = '1'.
    AC_CONTAINER-ELEMLENGTH = '008'.
    AC_CONTAINER-TYPE = 'N'.
    AC_CONTAINER-VALUE = EMPNO.
    APPEND AC_CONTAINER.
    CLEAR AC_CONTAINER.
    AC_CONTAINER-ELEMENT = 'OTYPE'.
    AC_CONTAINER-TAB_INDEX = '1'.
    AC_CONTAINER-ELEMLENGTH = '002'.
    AC_CONTAINER-TYPE = 'C'.
    AC_CONTAINER-VALUE = 'P'.
    APPEND AC_CONTAINER.
    CALL FUNCTION 'SWX_GET_MANAGER'
      TABLES
        ACTOR_TAB          = ACTOR_TAB
        AC_CONTAINER       = AC_CONTAINER
    EXCEPTIONS
      NOBODY_FOUND       = 1
       OTHERS             = 2.
    case SY-SUBRC.
    WHEN 0.
    when 1.
    EXIT_RETURN 1001 SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDCASE.
    READ TABLE ACTOR_TAB WITH KEY OTYPE = 'P'.
    IF SY-SUBRC = 0.
    LV_SOBID = ACTOR_TAB-OBJID.
    ENDIF.
    SELECT SINGLE USRID_LONG FROM PA0105 INTO LV_EMAILID
           WHERE PERNR = LV_SOBID AND SUBTY = '0010'
           AND ENDDA = '99991231'.
    SELECT SINGLE ENAME FROM PA0001 INTO LV_CONAME WHERE
    PERNR = LV_SOBID AND ENDDA = '99991231'.
    Hope it helps.
    Regards,
    Raj

Maybe you are looking for

  • How to create an address code for PO delivery address?

    Hi Guys, How to create an address code for the delivery address in the purchase order? Please explain me with details..... Thanks Raja

  • Drag and Drop fails with JDK 7u6 in Linux

    Hi, I'm face with a strange bug on JavaFX 2.2 (JDK 7u6, Ubuntu 12); I implemented drag & drop feature of labels in a stage; first time, I open the stage, the drag & drop works well; when I close the stage and reopen it, it fails : I can drag the labe

  • What does the UI of CC Cleaner Tool look like

    Trying to uninstall a previous version of PS. Can anyone who has used the CC cleaner tool recently tell me what the interface looks like? I ask because I saw a post from 2012 showing the interace back then and it was a GUI type interface. What I see

  • Calling child node

    Hi All, I am getting a problem when i call child node. I created a nodeA,under that nodeB and attr in both nodes. because i have button in table column that will take some details of current row. How to do it i give single ton false in  nodeB. when i

  • How to migrate BI Server?

    Hello, I have installed BI server on linux server (A server). Also i have installed Dev Repo database on C Server. Now i need to migrate this server with all data (answer, dashboard, report) to other linux server (B server). How can i do it? What is