Agents of a completed workitem.

Hi experts,
If i have to find the agents of workitem I can get it from SAP_WAPI_GET_WI_AGENTS. But when the workitem is completed this fm does give me the resposible agents since its a runtime one.
I want to find who all were the responsible agents of a workitem which has been completed considering passive substitutions also.
Your hep is appreciated.
Regards,
Karthik

Rick Bakker wrote:
Hello,
>
> "Typically, I tend to retrieve my agents and store them in the container prior to delivering the task "
>
> That's what I do too. SAP has enough tables, no need for any more custom ones!
>
> regards
> Rick Bakker
> hanabi technology
As an aside, I have approval steps that are optional and role-based via cost center.  So I must populate an actor-tab container element prior to the step to know whether to actually deliver it or move on.
...not to mention how helpful this container table can be when debugging recipient problems after the fact

Similar Messages

  • UWL: No automatic refresh after completing workitem in iView

    Hi,
    our system is EP 6 SP2 P4 HF 7 with CM HF 6.
    We have configured a workitem launched by an individual iview - this works fine.
    For execution of this workitem we call SAP_WAPI_CREATE_EVENT and save values in simple_container. After this SWW_WI_ADMIN_COMPLETE is called to complete the workitem to be cleared from UWL inbox.
    If I refresh the tab manual all works fine - the completed workitem is not more there. But with automatic refresh this executed workitem is still listed.
    Do you have any idea what we are doing wrong?
    Configuration in uwl.standard:
      <Views>
        <View name="myWorkItemView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.DE9_TS99500153" columnOrder="detailIcon, subject, priority, creatorId, createdDate, dueDate" sortby="createDate:descend, priority:descend" tableDesign="STANDARD" visibleRowCount="20" headerVisible="yes" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="60" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" displayOnlyDefinedAttributes="yes" actionPosition="top">
    I appreciate your help,
    thanks in advance,
    Thorsten Bingmann

    Hi Ross,
    concerning our problem (no WI completion by auto refreshing UWL) we have yet no solution. SAP Support told us to configure the cache lifetime of UWL to smaller size, but alas this does not solve the problem.
    As you mentioned the blank webgui screen: I think this behaviour is by design. Calling an ITS transaction there's no other way to end the ITS session as of using the back or return button and get an end of session. The given status (WI new status: completed) indicates that UWL and ITS process the WI correct.
    A smarter way to execute the concerning WI ID is to configure it in the xml file as generic decision task. Then you'll get an inline rendered java iview with decision "accept" or "decline" and the new status will be shown in UWL. This will take place of (standard) ITS configuration. Please have a look at the HowTo Guide of UWL.
    Hope it helps,
    regards,
    Thorsten Bingmann

  • How to delete a completed workitem logically or completely

    Hi buddys,
    Any one kindly help me how to delete a completed leave request work item completely or logically.
    For example: An employee has allpied for leave and that has been apoproved by his/her manager and the same has been updated in the backend.  Now the workitem status is completed. Now I need to delete the completed workitem either completely or logically.
    I went to SWia and gave the workitem number and followed the procudere, but it is not happening.
    Any one tell me how to delete this workitem
    Regards
    Siri

    Try through T.code SBWP.

  • Complete workitem and proceed further.

    Hi All,
    My Scenarion is:
    I have an Activity->Task, in which i am using a standard BOR 'FORM' to open approval screen, but in this BOR we do not have any events.
    Now i want to use terminating event within this task.
    I tried to use my custom BOR for this purpose but it is not allowing me to select the custom BOR, instead by default it is selecting BOR FORM when i am selecting WIOBJECT_ID as element within terminating event tab.
    I tried to achieve this in another way also:
    In my Approval Activity, i am using certain conditions within Conditions Tab-> Complete Workitem ( i am cecking REQ_Status = 'A').
    That means if this condition satisfy my workitem should get complete.
    Now after raising my requisition, initially value for container element REQ_Status is blank (initial), now with the help of function SAP_WAPI_WRITE_CONTAINER i am setting the container element REQ_Status = 'A'.
    And then i am executing report RSWWCOND (Job for condition evaluation).
    Then according to my knowledge my workitem should get completed, but nothing is happening and my workitem is still in ready status only.
    Can you please help me to solve this problem.
    I want to complete this workitem, and my workflow should proceed further.
    Any other suggestions are also welcome.
    Regards,
    Amar

    Hi,
    So is there any way to solve my problem?
    I want to forcefully complete approval activity, depending upon input from some other system.
    Earlier i thought of using terminating event at this task level.
    But as the standard  BO used in this task do not have any key fields so i can not use terminating event too.
    I tried to use conditions also within this Activity to complete workitem, but it also didn't worked for me, as after reaching condition also my approval activity was not completed.
    I forcefully ran the report RSWWCOND (For Condition evaluation), but with no luck.
    Amar
    One more thing, now i checked table SWW_CONTOB, in this table for every WI we have 2 entries, one with element WORKITEM and another with element _WORKITEM, having different values in OBJKEY.
    For WORKITEM element entry we have parent WI ID in OBJKEY field, and for _WORKITEM element entry we have WI ID as objkey.
    So can i use these OBJKEY for my purpose?
    If yes then which OBJKEY entry?
    We have one BO as WORKITEM, where key field is WI ID, so can i use this BO to terminate my Approval activity using WI ID as OBJKEY.
    Is this the right way, or it has any other impacts?
    Amar
    Edited by: amarjyotisingh on Sep 2, 2011 6:35 AM

  • Disable Complete Workitem Popup

    Hi,
    PO Release WF has been developed in the Dev server. A custom decision step is being created from the std one. The Confirm End Processing Checkbox is unticked.
    In the Dev server when the task appears in the SBWP, on clicking any action TAB for eg.. display PO the corresponding PO gets displayed, etc. Now in this case d Complete Workitem Popup does not appears.
    When transported the workflow to QAS along with the characteristic, on clicking the action tab like Display PO; first the Complete Workitem Popup Appears  which shld not. Also in QAS all d tasks are checked, none has the Confirm End Processing Checkbox ticked.
    Need to disable this Complete Workitem Popup.
    Appreciate ur reply.
    Regards,
    Punit

    Hi,
    Check that the changes are in QAS. Maybe you transported the workflow but not the task (that includes the "Confirm end of processing" checkbox). Also, create new test cases - the existing workflow instances might still work in the old way. (I am assuming that you made changes recently.)
    Regards,
    Karri

  • WF: Problem in raising event of a class in ABAP code to complete workitem.

    Hi All,
    I'm developing a workflow of Hiring Eform.
    In this workflow we have created a step for some data processing and also set termination event for the task inorder to complete the task.
    Now problem is that how to trigger the event of this class in the abap code so that the workitem will be completed.
    As far as i know i have used following function module to raise a event for BOR. but is there any way to raise/trigger the event of Class.
    For BOR: SAP_WAPI_CREATE_EVENT

    [Note 1322202|https://service.sap.com/sap/support/notes/1322202] provides SAP_WAPI_CREATE_EVENT_EXTENDED which can do classes.

  • 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

  • Maximize window in executable attachment + complete workitem automatically

    Hi!
    Workflow for purchase requisition release is created as copy of standard workflow WS00000038 and everything works OK.
    We are using program RSWUWFML2 to send work tasks to users.
    In step considering Release Requisition TS00007986 we are sending executable work item to managers. That shortcut have windows size Normal Window.
    How we can set that executable item has windows size Maximized through RSWUWFML2?
    Steps TS00008014 and TS00008018 that informs users that requisition is approved or rejected are send to users also. (Step send mail is not option as we don't want to forward all items to users). Problem is that sometimes users don't execute that info workitem so they are not closed.
    Is there any job we can schedule to automatically complete that tasks or we can setup in task something to do that? (Let say if task is not executed 24h we can close it).
    I know that with SWIA we can execute tasks but that requires manual work every time.
    Best Regards,
    Nenad

    Hi Nanad,
    You can set the deadline monitoring for your Task.
    Set the latest end - 1 day for the task. Then in the latest end outcome you can use the process control step to kill the work item.
    So if the manager didnt take action for a day, the deadline is triggered and the work item will be completed automatically.
    Thanks,
    Viji.

  • Complete workitem in a step

    Hi,
    Team.
    Customized workflow .
    I have a module pool form, where click of a button the workflow is triggered, and approval is sent to the user R3 inbox.
    for approval the user clicks on the work item in R3 and the module pool form pops up.
    My issue is  On click of Approve & Reject Button. the status of approval or rejection has to be captured and next approval process is started.
    As it is under R/3 process, so I have used a FM "SAP_WAPI_WORKITEM_COMPLETE" to capture the status
    and i am sending the status from the form to container in the workflow -and then the approval process continues.
    while using the FM "  SAP_WAPI_WORKITEM_COMPLETE " i have to pass the workitem id to the function module.
    Can any one tell me where should i capture the work item id from and how do we pass the value to the workflow container. so that the status is used in the workflow.
    please tell me how should i get the work item ....!
    thanks in advance.
    shankar

    Hi,
    Follow the below steps,
    1. As you have mentioned that you are trying to trigger the workflow on click event of a button or in PAI modules. I hope you might be using a SAP_WAPI_START_WORKFLOW Function module to trigger the workflow. This function module will retun the top workitem ID.
    2. Based on the parent worktiem ID you have to fetch the dependent workitems  now to get the dependent workitems  of the top workitem make use of the function mocdule SAP_WAPI_GET_DEPENDENT_WIS and read the result table for dialog workitem  with key workitem type for W .
    Once you have the workitem ID pass the same to the SAP_WAPI_WORKITEM_COMPLETE, but here a small suggestion that if you are using a copy of the standard decision task TS00008267 then instead of  SAP_WAPI_WORKITEM_COMPLETE make use of SAP_WAPI_DECISION_COMPLETE, but the above two steps remain same even in the case of SAP_WAPI_DECISION_COMPLETE.
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on May 30, 2011 2:38 PM

  • 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

  • WorkItem Not Getting Executed Completely

    Hi All,
      In my SAP Business Wokplace Iam sending a workitem to the appropriate agent. Now when the agent  will execute the Workitem it will open a BSP application  and as soon as he finishes the work with BSP application he clicks on a CLOSE button and at that point the BSP application will be closed.
    But when he completes the execution of the work item then it should not appear in the SBWP , but here in my case it is still available even after exectuing the workitem , do i need to use any FM 's suggest me.
    Can anybody help me regarding this issue.
    Thnaks In Adavnce
    Thanks
    Pavan

    Hello Pavan,
    Does your workitem have a terminating event? In this case you should raise this even in your BSP application (when clicking on close) by using the FM SAP_WAPI_CREATE_EVENT or the method cl_swf_evt_event=>raise.
    Hope it helps
    Olivier

  • How to get the 'Locked By' agent of a workitem - Urgent !!!

    Hi,
    I have a requirement where I need to identify the agent who 'LOCKED' a specific workitem. Let me explain the scenario..
    I have a task which is delivered to multiple agents and any one of them can execute the witem first and there by locking that particular workitem. The workitem is given the status 'InProcess' and should disappear from the inbox of other agents. I have a deadline monitoring 'Latest End' on this particular task with a modeled deadline. This modeled deadline should use a SendMail step to send an e-mail only to that particular agent who has put this workitem in 'Inprocess' status. How can we do this..i.e identify this agent who locked this workitem. I have seen that the cont. elem WIActual_agent is filled with only when the task is completed(in our case its still INPROCESS and missed its deadline).
    I looked into the table SWWWIHEAD(Witem header table) but it doesn't have a field that can give 'Locked by' ...
    Pl..let me know how to do this asap...
    Thanks in advance...
    venu

    Hi Kjetil,
    How quick you are, and your memory serves you well.  You search by workitem id where NO_SEL is not equal to 'X'.
    Congrats
    Gareth

  • How to restart WorkItem if the status is completed

    Hello,
    Due to my mistake in PRD not in DEV i changed the WI status from started to completed.
    Now i have 110 WI affected and i dont know how to restart them, or make them finish normaly the right path.
    In the LOG i can see: Execution was ignored (work item has final status)
    Area: SWF_RUN
    Msg: 568
    Regards
    Laurynas Prikockis
    Edited by: Laurynas Prikockis on Apr 15, 2009 7:59 AM

    Resetting the status of a completed workitem? I think it is not possible , because you can reset the status of a workitem which is in in process state to ready state or the workitem which is in error state( May be not sure) but the status of completed workitem , not possible, because the workitem will not be in any of the users inbox.
    But will let you  know , if there is any possiblity
    Check this error when I tried to reset the status of workitem which is completed by using the FM
    SAP_WAPI_SET_WORKITEM_STATUS
    Status change from COMPLETED to READY is not allowed/possible

  • Rule returns no agent and workitem sent to all users

    Hi,
    In my workflow I have defined a rule fot a workitem. The task is general task. When this rule does not return a possible agent system is sending workitem to all the users in the system.
    I tried to make the task general forwarding not allowed, then the workitem is not triggered saying no agent assigned though my rule results in an agent.
    I can give a user of workflow administrator or dummy user in rule - function module. But what is the standard way of solving this issue. I was expecting the workflow to go into error mode when my rule - function module returns no agent instead its going to the inbox of all users in the system.
    Please advise.
    Best Regards,
    Aleem Mohiuddin.

    In PFAC ubder Rule definition tab...
    You have a chck box for  "Terminate if rule resolution without result"
    Please cheeck this and try.

  • Not to reserver workitem under a user, when mulitple agent are assigned

    Hai All,
    We have a workitem, which has 5 agents assigned. This workitem is shown in 5 users iuniversal worklist . When one of the user opens the workitem and just closes without doing any action. The workitem is reserved in that users universal worklist  and the workitem is removed from the other 4 users universal worklist.
    My user is asking that if a workitem is opened by one of the user and does not do any action, the workitem should not be reserved under his name. In other words, the workitem should be shown in 5 users universal worklist.
    Please let me know how to resolve this issue.
    Thanks & Regards,
    H.K.Hayath Basha.

    Check the below link
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e92543b11d1898e0000e8322d00/frameset.htm
    we can wait and see other suggetions
    Koti Reddy

Maybe you are looking for

  • Java Partner Application

    Hi Friends, I'm experiencing some problems with the Partner Application that comes in Java version of PDK. Debugging the code in JDeveloper 3.2 all process stop when I try to create a new SSOEnablerBean.. the application just freeze out.. and return

  • Is this the application I need?

    I want to keep information of all the members in a club. I'd like to be able to quickly add and delete members and look up members from the list that fit certain criteria that i specify. I was thinking of something like microsoft access. Is AppleWork

  • USB in/out?

    Does it do anything to have the USB plugged in all the time without having an IOS device connected?

  • PO spool request

    hi experts, We faced PO printout problem during our Go Live. We have implemented SAP with new Plant/Company. For all PO forms in existing company are printing fine, but for this new company, we are trying to print PO but it only goes with the spool r

  • Unspecified error 2001? HELP!

    HELP!!!! has anyone encountered this little gem. While trying to restore to original settings after extracting software it says it cannot restore. Gives error message 2001! Tried reboot and always says that this Touch Ipod in recovery mode. But won't