User assignment in workflow

How can i give username dynamically in workflow?

Hi MsKumar,
Probable answer for your question woud be making use of the Rule based assignment.
The users are mapped to a rule adn then to the container,
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5023ddbd-de8d-2a10-d7a2-c9910d1ed6ad
http://help.sap.com/saphelp_nwpi71/helpdata/en/c5/e4b535453d11d189430000e829fbbd/content.htm
Revert for further clarification,
Thanks and Regards
Srikanth.P

Similar Messages

  • "Approval workflow fragment has no user assignment" while adding approver

    Hi all,
    We are on SRM 5.0 ECS.
    We are facing an issue in our quality system while this issue doesnt come up in dev system!
    if I try change a PO and then click on the ADD APPROVER button and then on the link "ADD HERE".,I get the foll pop up msg :
    "Approval workflow fragment has no user assignment".

    Hi experts,
    Any advice?

  • Workflow comes to the creator of the invoice instead of user assigned

    Hi ,
           I am facing some problem in my workflow. This workflo triggered from t code FV60 to Cost center owner creator of the invoice.  Vendor master is Blank and XREF3 field is assigned with user id, then any invoice rejected by the cost center responsible, should trigger a mail to the user assigned in XREF3 field.
    when Cost center owner  rejects the invoice and workflow comes to the creator of the invoice instead of user assigned in XREF3 field. please help me.

    Hi,
    Correct me if am wrong :- Creator of the invoice is the initator of the workflow rite...
    so check in the binding whether anywhere WF_INITIATOR is binded or not?
    Regards
    Narin

  • Error "Approval workflow fragment has no user assignment"

    Hi all,
    We are implementing the workflow for  n level approval of SC WS14000133.Now when we try to add adhoc approvers by clicking on the ADD APPROVER button,we get the foll error:
    "Approval workflow fragment has no user assignment".
    I have already referred similar threads on SDN and also the corresponding notes including this one,Error "Approval workflow fragment has no user assignment".The latest note for this error applies for SP08 while we are on SRM server 5.5(SP11).
    Has anybody faced a similar issue before?Any inputs will be appreciated.
    regards,
    SRM Tech.

    Hi SRM_TECH,
       I am facing the issue. i am also in SRM5.5 and SP11. since i you are in the same SP level can you please help me out how did you fix this issue..
    Thanks,
    John.

  • SRM 5.0 Approval WF fragment has no user assignment

    Hi,
    While changing approvers in the approval preview the system displays message 'Approval Workflow fragment has no user assignment'. In our case WS10000271 and TS10407972 are both set as general tasks. Any idea why the system would be generating this message?
    Thanks,
    Jerry

    Hello,
    If all your task are classified as general, this is a bug in a FM (SRM5, SP4). No idea if a note exist for this but check source of function BBP_PDH_WFL_APP_ASSIGNTYPE_GET, the task type (WF, TS) is hard coded, you may want to change it )
    FUNCTION bbp_pdh_wfl_app_assigntype_get.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(IV_TASK) TYPE  SWD_STEP_T OPTIONAL
    *"  EXPORTING
    *"     VALUE(EV_ASSIGNMENT) TYPE  CHAR1
    *"  TABLES
    *"      ET_POSSIBLE_AGENTS STRUCTURE  SWHACTOR OPTIONAL
      DATA:
      lv_general_task    LIKE p1217-general,
      lt_related_agents  TYPE swhactor OCCURS 0 WITH HEADER LINE,
      lv_task            TYPE swd_step_t.
    *{   INSERT         DE2K901025                                        1
    *PVA correction
      data: lv_otype type OTYPE.
      lv_otype = iv_task(2).
    *}   INSERT
      lv_task = iv_task+2.
    evaluate the agent assignment of the whole workflow fragment
      CALL FUNCTION 'RH_TASK_AGENTS_INDEX'
        EXPORTING
    *{   REPLACE        DE2K901025                                        2
    *\      task_otype              = 'WS'
    *PVA correction
          task_otype              = lv_otype
    *}   REPLACE
          task_objid              = lv_task  "workflow fragment
        IMPORTING
          act_general             = lv_general_task
        TABLES
          related_agents          = et_possible_agents
        EXCEPTIONS
          no_active_plvar         = 1
          no_agents_of_task_found = 2
          no_task_otype           = 3
          OTHERS                  = 4.
    Rgds,
    Pierre

  • User assignment to purchasing organisation and purchasing groups

    Dear Experts,
    My issue is related to user assignment to purchasing organisation and purchasing groups.
    According to the project requirement, we are using central purchasing organisation and we should create the purchasing organisations and purchasing groups locally. it is not reflected from the back end systems through RFC.
    Also we have one more team working with indirect materials and they also use SRM. They have already created the organisation model. Two projects are inter-related and belongs to same department in the company, but main different is one uses direct and the other in-direct materials.
    Now we should create our purchasing organisation and purchasing groups and assign the users to it.
    If we create it separately means not uder the main root and assign the users, we are able to create shopping cart till the contract. But when i create the new purchasing organisation and purchasing groups under the main root which is created for other project which deals with in-direct materails, i am not able to create shopping cart with the user. I am getting the error
    ' Process scheme could not be found
    Please let me know how to deal with this scenario. here i need to add the purchasing organisation and purchasing groups under main root because of the reason that in the other project, purchasing organisation and purchasing groups defined needs to be accessed by our users as well. I mean the users should be able to access all the purchasing organisation and purchasing groups created under root node which gets the purchasing organisation and purchasing groups from the back end systems and the purchasing organisation and purchasing groups we created manually since we cant get it from back end system since it is central purchasing organisation.
    Please asvise
    Best regards,
    Srinath
    Edited by: srinath_Vijaya on May 27, 2010 4:21 PM

    Hello Masa,
    Thanks very much for your time and solution.
    Actually the problem was something else and was fixed.
    The reason for getting error 'Process schema was not yet defined' is because of missing definition of process schedma for the workflow since the process based workflow setting has been activated.
    So this has been resolved by copying the sap standard customizing BC set for SRM workflow using transaction SAPR20 and then process schema for workflow got configured or copied automatically from SAP BC set and the error was removed.
    Also the reason for error with user was that no purchaser assignment was done to the purchasing organisation and now it has been done and the users can access the SRM and create shopping cart and the contract.
    Regards,
    Srinath

  • How to send a Workitem to User Group through WorkFlow

    Hi,
    I am developing a WorkFlow, in this i have an issue that i have to send a WorkItem to User Group on Certain condition. On Agent Assignment I want to assign User Group not a single or multiple Users.
    Could anyone resolve this issue. How can i resolve in WorkFlow.
    Harkesh Dang

    hi Harkesh,
    During agent assignment use Organizational unit -> All users in that organizational unit will receive workitem.
    Use Role -> All users having that role will receive workitem.
    Use Job/Position -> All users assigned to job/position ca receive workitem.
    Or else use expression -> Pass the user name through some selection criteria using a background method. Loop it. Create a task and workflow container and make sure that in properties tab multiline is checked.
    Hope it works.
    Regards,
    Raj

  • OIM 9.1.0.2: Remove user assigned to a task in Provisioning Process

    I have read Note: Ability to Have Multiple Approvers Per Resource Object in OIM [ID 429999.1], and executed each steps described in it. But when grant these resource object to some user. First the request was not sended directly to a approval process, as had been expected that I would. The request was send to a provisioning process, specifically to user has been assigned a task, when the user approves the request until the request is then sent to approval process.
    I need to send directly to a approval process, because that's where I have defined my levels of approval.
    I'm using oim 9.1.0.2 BP18 running on OC4J 10.1.3.5 on AIX 6.1 64-bit clustered install with two nodes, Oracle Database 10.2.0.4 on AIX 6.1 64-bit on RAC.

    Hello Everyone,
    Thanks for your response. Actually i have a Approval Process, where i have defined my levels of approvals. In Resume I have this Env. :
    1.- A Resource: ResourceA
    2.- A Provisioning Process in relation with ResourceA.
    3.- A Approval Process in relation with ResourceA.
    The request was send to a provisioning process, specifically to user has been assigned a task, when the user approves the request until the request is then sent to approval process.
    I need to send directly to a approval process, because that's where I have defined my levels of approval. In other words i need to bypass the user assigned a task in provisioning process.

  • How to get the list of IDM users in a workflow.

    Hi,
    I wanted to get the list of IDM users in a workflow into a list.Now I tried to use getObjects Method,I do not have the display session here,I passed the workflow context or WF_Context.But it is giving exception like context null .
    I used the same method in a form and it worked.How can I get the list of users in a workflow.It is for customizing reports.
    Thanks and Regards,
    Pandu
    Any Idea on how to customize reports including attributes from resources and auditing attributes etc.Any help would be really great.
    Thank you.

    Hi John,
    I get this exception WorkItemForm: no id.
    This comes when I click on the other column.I generate the data needed in a report and display it as a sorting table when I get the data.
    I want to give the user ability to sort data by different columns.But when I click any column I get the exception
    WorkItemForm: no id
    How can I save a workitem on a manual form before invoking it from a manual action.
    Here is the code snippet
    <Field name='tblUsers'>
            <Display class='SortingTable'>
              <Property name='selectEnable' value='false'/>
              <Property name='align' value='left'/>
              <Property name='linkEnable' value='false'/>
              <Property name='sortEnable' value='true'/>
              <Property name='width' value='400'/>
              <Property name='columns'>
                <List>
                  <String>Account id</String>
                  <String>First Name</String>                      
                </List>
              </Property>
            </Display>      
            <FieldLoop for='row' in='_searchList[*]'>
              <Field name='enduserId'>
                <Display class='Label'>
                  <Property name='value'>
                    <block trace='true'>
                      <invoke name='getAccountId'>
                        <ref>row</ref>
                      </invoke>
                    </block>
                  </Property>
                </Display>
              </Field>
              <Field name='lblfirstname'>
                <Display class='Label'>
                  <Property name='value'>
                    <invoke name='getAttribute'>
                      <ref>row</ref>
                      <s>firstname</s>
                    </invoke>
                  </Property>
                </Display>
              </Field>
         <FieldLoop>      I think I may need to save some workItem,That is why this may be giving the error.How can I correct this.
    Thanks,
    pandu

  • Hide Top level navigation if user assigned only one role

    Hi,
    I would like to hide the top level navigation if user assigned with only one role.
    I can create role based rule to show desktop using Master rule collection, but is it possible by doing to with role count.
    If user has multiple roles show desktop1 else show desktop2

    not sure if this possible ,you may check feasibility of creating  a application which checks user role count and if role count is = 1 load the Portal url (URL alais) which had TLN iview invisible in the same window else do nothing and load the portal with the desktop which has tln.
    Put the application in framewrk page which has TLN visible.
    create a URL alias and create a desktop -framework page which dont have TLN ,assign this desktop to this URL alias in rule collection set its priority before user conditions check in rule collection so that it has high priority before user or group check in rule collection.
    you can create a poc in sandbox and check if it wiorks?

  • Delete User assigned to a task

    Hi experts,
    I would like to delete a user assigned to a task using the Administration area in guided procedures tab of the portal.
    So I go to : Guided procedures TAB --> Administration --> Maintain Processes --> Running process list --> Change Authorization --> New User Assignments
    But unlike this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/173dceea-0c01-0010-0698-819d627fed79
    on page 7,
    the "Remove User" button is not present.
    Can someone explain why?
    Is this an error of the document or is it possible to remove a user assigned to a task?
    Thanks,
    Luca

    Thank you very much for your answer Sudhir.
    Now I know why the button is not present in my portal. 
    Luca

  • Problems in creation of a new user in the workflow

    Hello everybody,
    I created a task "create new user" in the workflow. When I chose the "password" attribute, the entry couldn't be created. Without that attribute, I am able to create a user and see him in the monitoring, but can't log into the workflow because of a password error. Could anybody tell me what went wrong here? Did I forget a setting?
    Thank you in advance...

    Hi All,
    We suddenly started getting this error:
    Access denied.
    You may not have access to perform this task on the chosen person
    or your session has timed out. (Try to log into the system again.)
    As told above we already have extension=php_mcrypt.dll enabled in php.ini file like this.
    ; Local Variables:
    ; tab-width: 4
    ; End:
    [PHP_LDAP]
    extension=php_ldap.dll
    [PHP_MCRYPT]
    extension=php_mcrypt.dll
    [PHP_MSSQL]
    extension=php_mssql.dll
    [PHP_XSL]
    extension=php_xsl.dll
    We are also having file libmcrypt.dll in the php.ini folder.
    This error is only coming for one queue when we try open a transaction and not any other queue. we are having same access to all the queues. this is only happening from today and till yesterday we never had this issue.

  • Guided Procedure: Dynamical User Assignment at Runtime with WD API

    Hallo out there,
    I'm trying to assign a user to a process role.
    I set up my process in that way:
    Process as root,
    sequential block,
    First action with callable Object,
    Second action with callable Object,
    It looks quite easy.
    The callable Objects are embedded WD4J UI's and the data transfer GP Context, etc works fine
    I'm still starting the process with the GP Designtime center, not via Webdynpro method (startProcess).
    The following codesd snippets are placed in the execute method of the first callable object.
    I guess a have to use the runtime methods.. not the designtime methods to assign the users
    For example:
    In Step 1 - execute Method: 
    discovering the user for processing step2!
    assigning the to the processrole depending for step2!
    My Coding in step 1 looks like this:
    First step: Getting the user infos:
    //  Retrieve an IUser instance by a logon ID specified dynamically at runtime.
              IUser userStep1;
              IUser userStep2;
                  userStep1 = UMFactory.getUserFactory().getUserByLogonID("user1");
                  userStep2 = UMFactory.getUserFactory().getUserByLogonID("user2");
                  IGPUserContext userContext;
                  IGPUserContext userContext2;
                     userContext = GPContextFactory.getContextManager().createUserContext(userStep1);
                  userContext = GPContextFactory.getContextManager().createUserContext(userStep2);
                  IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
    Now, i want to assign user2 to step2 :
       IGPProcess process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                          // by specifying its ID
                          processId,
                          // and the user accessing it
                          userContext);
                 // create an empty role assignment list
                 IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                 // get the process role number
                 int rolenum = process.getRoleInfoCount();
                 // iterate over the required roles
                 for (int i = 0; i < rolenum; i++) {
               msgmr.reportSuccess("Anzahl der gefunden Prozessrollen: " + rolenum);
                    // create a new role instance by specifying the role's unique name
                    IGPProcessRoleInstance roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
       // add a user to the role instance
                    roleInstance.addUser(userStep2);
                    // add the new role to the assignment list
                    roles.addProcessRoleInstance(roleInstance);   
    I guess the problem is, that i call the wrong method to assign the user. I need to assign the user with following code snippet...
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    Thank you for any hint.

    Hi,
    Refer this
    Re: Adding users to a process role at runtime   method :- addRuntimeDefinedUser

  • Report to see list of roles with no user assignment

    Hi Gurus,
    I need to know the transaction/Report where i can see list of roles which doesnt have any user assignment.
    Pls help me

    HII,
    To search for  roles with no users assignment u can run a report RSUSR070 AFTER EXECUTING TCODE SA38 in the progran field enter the name of the report and click execute button u get roles by complex selection criteria    then scroll down and in the selection according to user assignments  select  without user assignment then cli ck execute button u will get the roles with no user assigments............
                          Thanks and regards

  • Emailing external user using a workflow in Sharepoint 2013

    I am currently trying to create a list where the user can upload a document, input an email address (external) and an expiration date. I then have a workflow that will send an email on the expiration date. The problem I am getting is that Sharepoint 2013
    doesn't like emailling externally.
    22/01/14: I have since found that this isn't a problem with exchange, as Sharepoint is trimming the addresses out of the original workflow. Does anyone know how to stop this.
    Please help.
    Evil Genius at Work. DO NOT DISTURB!!!

    you need to allow their IP address to relay anonymously in Exchange.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c55a6a68-c6e3-4f4d-b5ed-d4e2892fe490/sharepoint-2010-email-external-users-in-a-workflow?forum=sharepointcustomizationprevious
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

Maybe you are looking for