Workitem and Agent assignment

Hello,
Well, I have critical requirement.
My requirement is, there is an activity USER DECISION in a workflow. Now, that activity has a standard task automatically assigned to it. That standard is of type general task. The activity has a role assigned to it, which executes at runtime.
Now, whenever the step is being executed, a work item is being generated.
So, in this way there are a number of workitem are generated. I want the tables that would join the workitem number with the Role number or the User assigend to that activity.
Please help.
Warm Regards.
Abhijit.

Hi Arghadip,
Thanks for your continuous input.
Well, I am not able to find the item TOP_WI_ID in table SWWWIHEAD. Well, I have found out all the dialog work items by setting the value of WI_TYPE as W.
This gives me the work item and the task related to that.
Now, how can I relate the workitem and the task to the Rule assigend to the activity as I have to run the report and I cannot go manually to find that.
Please help....
Warm regards.
Abhijit.

Similar Messages

  • Held PO triggering workflow and agent assignment to myself

    Hi experts,
    Is there a way where I can prevent held documents from triggering my workflow?
    How can I achieve the following 2 scenarios for agent assignment:
    1) Create PO and workitem route back to myself
    2) Release PO and workitem route back to myself

    Lester,
    If you are a User01, then You started the process like if you are creating the PO, then the workflow is getting triggered. So now you are the initiator of the process, and in WF_inititor will be hold your user name user01.
    Thanks,
    Vijay.

  • Multiline Processing and Agent Assignment

    I have a multiline container element that I am using in a subflow.  I want the subflow to execute for each line in the multiline container.
    The objects in the multiline element are, in fact, the agent ids.  I am not sure of how to identify a single entry in the container in the sub flow to set the agent.
    I am using this basic syntax for the expression in the agent assignment:
    multilineContainerElement(index).
    Is there a way to bind a single line of the mutliline element to a single instance in the activity ---> subworkflow binding?
    Thanks in advance!

    hi
    you can achieve ur purpose by inserting Loop(until) into the workflow
    till the execution take place for each and every id loop will continue ,more over for binding the multiline element you can bind the same with comaptible container in the workflow.
    can u provide some details what is the nature of that multiline container that you have created ,i mean what u have given for the data structure.
    and whats the purpose of using that multilione element thats a local or a global container and as fara as i think u r trying to send some mail or notification to the agent id u r retrieveing from ur container,is it or else.
    its pretty simple probs if u give some details it will be sorted out easily
    best regards
    ashish

  • Orphaned Workitem - Workitem without agent -Recycle /treatment method.

    Hello All,
    Some times in my system there are some unwanted workitems without agent were created.How to treat them in general for all the Business objects like sc,po...I could see them in SWI2_admin .
    Is it problem of work flow?
    any experiece you encountered..As per process how to treat them.
    regards
    Muthu

    most of the times , problem is not with the workitem generation.
    it is generated correctly , but the agents for the workitem are not found...
    problem of agent not found is because of workflow only , some times if the task were to be classified as general and if it is not.
    then the system will generate workitem and agent will not be found.....

  • Netweaver - agent assignment to the workitem in UWL

    Hi ,
    1.How is the Standard task of sap r/3 bound to the workitem(which shows the web dynpro java screens) in Universal Worklist?
    2.How the agent of this workitem is decided/assigned? 
    Thanks and Regards,
    Hemalata

    Hello,
    Good, Extended Notifications should always be used (where available) instead of RSWUWFML2.
    You say:
    "I am sending my workitems into outlook using the extended notification. I can aopprove and reject the workitems from the mail."
    Could you say how you did that - approve and reject from the mail? Are there buttons in the email?
    Other people have been asking this in the forum.
    You also say:
    "However, i need a functionality where user can click on the logon link and approve/ reject from workitem."
    Why would anyone want to go to the workitem if they can approve/reject from the mail?
    In the link to the UWL, does it include the workitem number?
    regards
    Rick Bakker
    Hanabi Technology

  • Agent Assignment Missing

    Hi Experts,
    I have created a custom workflow which has a user decision step. We have used a rule for agent assignment and we have also maintained General task: can be edited by all users. We have implemented deadline monitoring for this step.
    When we moved this workflow to QA, agent assignment (General task: can be edited by all users) was not transported.
    Now when we executed the workflow, agent was not determined, but still deadline emails were triggered.
    Is this correct ? Shouldnt the workflow go into an Error state as no agent was determined ?
    Note: I know that we can transport agent assignment using RE_RHMOVE30.
    Thanks.

    Requested start states , when the workitem must be  sent to user's inbox, In Simple, it mentions after how much interval of time the workitem will in the user's inbox
    In your case after 3 Mins of.... (check it)  the workitem will be in the user's inbox,
    and coming to Latest End  , it is a grace period to user to act on the workitems, if user does not act on the workitem then this deadline is reached, in your case teh suer has give one day , if he does not act on the workitem with in one day the deadline is reached.

  • How to route the workitem to Agent, when no agent found

    1.when agent is not found, i was able to see the workitem in swi2_freq.
       If this is case, how do i send workitem to an agent?
    2. As this is a general task, but i didn't see this workitem in all user's inbox. is it true that if agent not found for a workitem,will be sent to all agents?
    3. I set my userid as workflow administrator, but still am not able to forward workitems to any user in sap.(lack of authorizations). What kind of authorizations required to forward a workitem.
    Any inputs on this...

    1. Either you can set default agents for the task (or) modify the container elements in transaction SWIA (or) complete it manually without agent.
    2. Its true that, for a task specified as general task, all users become possible agents. Remember that they dont become responsible agents. SAP agent assignment always take the intersection of possible and responsible agents. If you donts specify responsible agents, you cannot see workitem in anyone's inbox.
    3. As told earlier, if you dont have authorization, check for the auth object in SU53 and get that added to your profile. Anyways, you can also check for the SAP provided standard authorizations for the workflow users in sap.com
    regards,
    Sandeep Josyula
    *Mark if helpful

  • 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

  • Workflow agent assignment in Production system

    Hello Sap Gurus,
      Is there a way to maintain harcoded agents(not a general task..but putting in a user's name) on the tasks in the SAP production system without going to Change mode.
    I know we can do it for the Workflow templates in Dispaly mode but for the tasks, it wouldn't let us do without being in Change mode.
    Any suggestions is appreciated
    Thanks

    Hi Rachana,
    The agent assignment of a task is a PD infotype and therefore the question is do you have the authorisation do maintain in production?
    From what you have described, the short answer appears to be no.  But a longer answer is that, with sufficient access, you can open a workitem in change mode and forward to a new agent after using the Replace Manually option.
    Another option would be to go in throught the diagnosis tolls (SWUD) and use the option test environment.  You will see the steps of your workflow at the bottom of the page.  If there is a red football shaped object - this is agent assignment - you can click to maintain the assignments.
    A better question is why maintain by user ID here as it is a pain to maintain.
    Regards
    Gareth

  • 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 problem for activity in workflow

    Hi Experts,
    I have created an activity task for calling MM02 transaction in my workflow. I need to send this workitem to multiple people. I am using an expression in the place of agent assignment available in Control tab of the task. Now this assignment is not recognized by workflow, it shows error "Task TS90000070 has no agent assignment. Please suggest how to fix it, or if there is any other method available to send workitem to multiple people. Note: I am not using standard organizational management feature here.
    Thanks,
    Ashok

    Hi Ashok,
    It seems you have not assigned possible agent for this task. Please follow these steps.
    Execute PFTC transaction and take 90000070 in change mode.
    Now goto Additional Data -> Agent Assignment -> Maintain.
    This will take you to another screen where you can find the task 90000070. Click on the first button (Create Agent Assignment) on the application toolbar. This way you can assign an agent if you are using organizational management.
    If not, then make it as a general task. For this click on the 'Attributes' button and select the 'General task'.
    Hope this is helpful.
    Thanks
    Vinod

  • 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

  • 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

  • Workitem to temporary assignment

    Dears,
    Our workflow agent determination is designed to fetch positions as the agent. for some duration a temporary assignment will be assigned to the position. In this case, the permanent assignment will be not be removed. Hence we get two agents during this time. My requirement is to fetch the temporary assignment only during that period. is there any standard way to achieve this? if not, any exits can solve the problem? let me know if you have come across the same situation.
    Thanks & regards,
    Sudhahar R.

    Hi-
    Hence we get two agents during this time. My requirement is to fetch the temporary assignment only during that period. is there any standard way to achieve this?
    If i understand correctly, only for certain period of time, temporary assignment (for a position) will be active and the workitem needs to be processed only by this temporary assignment- approver and not by the actual approver
    Means actual approver should not have the workitems in their inbox for the certain period and after that, he/she should have the workitem and not the temporary assigned -approver
    You could check this BAdI- WF_BWP_SELECT_FILTER. Basically this BAdI will filter the workitems based on the implementation. I am not sure, this BAdI will work if you use UWL. You can try and update us
    Vinoth

  • Changes in Customizing for agent assignment do not transport well

    Hi,
    We have made changes in some tasks regarding agent assignment (we select the option 'General Task' in the Attributes button). This generates a Customizing request.
    After releasing these 2 requests (Customizing and Workbench), we transport them from Development to Test. But when checking the new workflow in Test, the Customizing modifications regarding agent assignment do not occur.
    We have tried the two possible sequences of transporting the requests: first Customizing and then Workbench, then the other way, with same results.
    Is there any specific order that should be followed to correctly transport Customizing and Workbench requests?
    I appreciate your help!
    Regards,
    Ivson

    Thanks a lot,
    Our wf doesn´t use organizational structure, but checking the transport logs as you suggested (that´s what I should've done first!), has shown an error of type 12 in the last Customizing requests we have sent.
    The log error's header says
    'Method execution 08.09.2006 16:01:39   (12) Canceled',
    Going to the details,
    'Execution of programs after import (XPRA)'
    'Ended with return code:  ===> 12 <==='
    There is also one Workbench request with the same type of error.
    All clues are welcome,
    Best regards,
    Ivson

Maybe you are looking for