Agents of the workflow

We need to sending email reminder for new work items and overdue work items.
We select the work items from table SWWWIHEAD.
Now I have 2 questions:
1. We need to select the work items related to PO release only. How should we do in the where condition when we select the data?
2. We need to send mail to the agent, now we use field WI_AAGENT. But it's possible to have more than 1 agents for 1 task,right? If more than 1 agents exist, how should I get the agents? In table SWWWIHEAD, only WI_ID is the key field.
Thanks in advance!

You can make use of the FM SAP_WAPI_WORKITEMS_TO_OBJECT as to this Fm you have to pass the name of object to the paramater OBJTYPE and if you have the PO number as object key the pass the PO number to the parameter OBJKEY and selection variant as 0000 this will give you the workitem ID.

Similar Messages

  • How to change the workflow agent manually ?

    Hi,
    We encountered a situation where the workflow was received in error by a person. We are unable to determine the root cause of the problem as it was the first and last time we encountered this situation and we are unable to replicate the same error again.
    I want to remove this workflow from that person's inbox manually and assign it to the intended recipient, how do I do this ? Could someone help me out with this situation, thanks.

    Yes i agree with rick,
    Dont think that WF log can be deactivated also if this is the case then how can you see workitem, may be the case that you dont have auth to view wf log (or if are using latest ECC versions then when u execute transaction SWi1 and open any workitem then type ctrl+p this will lead you to workfow log).
    Try using SWI1, as workaroung you can use transaction SWIA to forward workitem to desired agent.
    -Swapnil

  • SSL Error while opening the workflow process

    Hi,
    While opening any workflow status monitor, we are getting below error. One of the hit says that have SSL setup recently, it need few steps to be performed and a patch to prevent below error.
    *javax.net.ssl.SSLException: SSL handshake failed: X509CertChainIncompleteErr When Trying To View The Workflow Status Diagram [ID 1375766.1]*
    STEPS to reproduce
    The issue can be reproduced at will with the following steps:
    1. In the Administrator Workflow console
    2. Press the Status Diagram button
    3. The error is received
    Changes
    Recently Enabled SSL
    Solution
    A) Add the wrapper bin parameter for SSL to the jserv.properties file:
    1. In Jserv.properties:
    Change the following line from:
    wrapper.bin.parameters=-Djava.protocol.handler.pkgs=HTTPClient
    To:
    wrapper.bin.parameters=-Djava.protocol.handler.pkgs=HTTPSClient
    2. Bounce the apache server and retest the issue.
    3. Migrate the solution as appropriate to other environments.
    Note:
    To retain the changes permanently when autoconfig runs, please follow Note 270519.1, Section: "Customizing an AutoConfig template file delivered by Oracle".
    1. Create a custom directory if not already present:
    mkdir $FND_TOP/admin/template/custom
    2. Copy the jserv.properties file to this custom directory:
    Change the Following line from:
    wrapper.bin.parameters=-Djava.proto .handler.pkgs=HTTPClient
    To:
    wrapper.bin.parameters=-Djava.protocol.handler.pkgs=HTTPSClient
    3. Run Autoconfig and retest the issue.
    B) Retest the Workflow Status Monitor.
    C) If the issue still exists, pursue the application of Patch 8802559 is titled:
    1OFF:8618975:11.5.10.6:WF STATUS DIAGRAM SHOULD OPTIONALLY USE WF: Workflow Mailer Framework Web Agent.
    That patch supplies:
    fnd java/wf/monitor/webui GraphMonitorCO.java 115.12
    ========================================================================
    After I implemented above steps and applied the patch, now i am getting below error.
    javax.net.ssl.SSLProtocolException: java.io.IOException: subject key, Unknown Key spec: Invalid RSA modulus size.
    can you please help me in resolving above problem.
    Regards,
    Kishore.

    Hi;
    Please review:
         Master Note for SSL Configuration in Fusion Middleware 11g [ID 1218695.1]
    I can not find any similar issue at metalink.If upper note does not help then I suggest Rise SR
    Regard
    Helios

  • Agent Issue in Workflow

    Hi Team ,
    I have created one rule which is returing two agents . But when i am using this rule in decsion step , then workitem is going only to one agent , not to both .
    Please help .
    Regards
    Jagjit Singh

    Hi Jagjit
    "If iam executing workflow using A/B agent login in sap system"
    How are you executing the workflow? Where are you starting the workflow from?
    By "Executing the workflow" do you mean starting the workflow or executing the work item?
    If a work item goes to two users, each one will see it in their inbox. If you open it, it gets reserved by the name of the user who opened it and disappear's from other's inbox (standard behaviour). If you execute the work item, it completes, is no more available in any inbox , and moves to the next step in workflow.
    Looking at your recent description, it seems that the workitem is going to both users and you are executing from one inbox .... so what do we want here and what is not happening here?
    It would be good to see the activeX version log of the workflow (the work item should not be completed or processes), click on the button in AGENTS column and see what is listed.
    Regards,
    Modak

  • How to re-start the workflow for Shopping carts in WAITING status

    Hi
    We are using 1-step approval work flow, and we get some strange issue. We can add approver in the workflow, but after we click order button and back to check status again, sometimes there will be "Ad-hoc agent not found" issue. Do you know how to solve?
    And one workaround for user is to re-add the approval, and sometimes the shopping cart back to normal. But sometimes, after we add the approver, the shopping cart are in waiting status:
    Workflow Item:
    Workitem-ID 000000714642
    Task WS10000276
    Text One-Step Approval: Value limit: Shopping Cart
    1000114698
    Status WAITING
    Statustext Waiting
    Date 13.06.2008
    Time 10:41:22
    So may I ask how to re-trigger the workflow?

    Hi,
    Thx for that. I need to trigger the Approval workflow to go the the approval manager.
    Can u give me the document on this? thx,  kerry.liu [at] ap.effem.com.
    Thx very much
    Kerry

  • Standard Tool / Program to Change the Workflow Status

    Hello,
               I would like to know if there is any standard program to Change Status of the Workflow from IN PROCESS to ERROR. I know that there are Standard SAP tools using which we can restart the Workflows that are in ERROR Status. But for changing the Status of the Workflow from IN PROCESS to ERROR, I've not come across any tools / programs. I would really appreciate your help. Thanks in advance.
    Regards,
    Venkata Phani Prasad K

    sorry correction ..FM SWW_WI_CALLBACK_CHANGE_S can be used to correct the status without any check.
    I came across this issue where a dialogue workitem was logically deleted in order to remove it from the user inbox. Later an incident was created that the work-item is still needed to perform the rest of the workflow action. The solution should have been to complete the work-item by executing the terminating event of work-item or complete the work-item manually(SWIA). But instead some one performed  logical deletion.
    so in order to revive the workflow i needed to change the status form logically deleted to ready status. for this i found this FM which successfully changed the status form logically deleted to ready status. It though lost the agent assignment but i forwarded it manually to respective user.
    Regards
    Dharmendra
    TCS India.

  • Agent determination for workflow

    Hi everyone,
    I have a classic issue: I'm trying to assign a workflow task to an agent. The agent should be determined from the container element "APPROVER". In the task I've entered the expression &APPROVER&; however, I'm receiving error "Agent determintaion for step 4 failed..." "Result of agent determination does not agree with agents of task". And, yes, I've made sure the APPROVER element is of type Import and has a proper value.
    I don't get this; I thought setting the agent to the value of the container element should do the job? After all, the container element "APPROVER" comes up in the F4 search help under the Decision tab of the task... what's wrong here?
    The WF works fine if I set the "WF_Initiator" as the agent, however. But, this is a bit limiting in the long run...
    Regards,
    Trond

    Hi Ravi,
    this is what I actually did... but I found another post, with a reply from Ramki Maley, advising me to make the APPROVER of type SWHACTOR. That helped!
    Thanks anyway,
    Trond

  • Approval status not captured in the workflow...

    Hi,
    In my 4 tier approval workflow, I have a user decision loop , before which a user decision step is there for approve or reject.
    There are two paths under user decision, one says when reject or approve and another says till last layer which then leads to container operation to collect the next level of agent.
    Under when reject or approve step, there is a condition step that checks if user has approved or rejected.
    Now I need to store in a custom table status R if rejected , status A if approved.
    So I have added 2 steps under each path (approve and reject), but it so happens that when the first tier agent rejects it, the status gets recorded in the custom table but when he approves it , A status is not updated.
    If the first agent approves and second one (final) approves only then A is updated.
    I want the status to be recorded like this
    agent1     Submitted for approval
    This should change to agent 1    approved and then another entry should be added in the custom table with submitted for approval for agent 2.
    My code is in a custom class and it looks fine as it wors for submitted for approval as well for reject. But not for Approved. Container objects in both reject and approve are same except that I pass A or R.
    What can be wrong ??
    thnks

    HI
    First let me give a breif explanation about how and where the result of the decision step is captured.
    While creating a decision step in the workflow you would be giving some texts for each outcome, let say in your case you said that For both approve and reject you are using one branch (Assume that id of this branch is 0001) now the other branch is for reading the next level agent (0002)  so now when you click on the first button then the Decision workitem standard  container element WIRESULT will be populated with 0001 and let say if you clcik on the second button to read the next level approver then WIRESULT will be populated with 0002..
        Here your design is conflicting ( Assuming that what I said above is what you have implemented)  Instead what you can try to do is Just have two outcome in the decision step as 1. Approve(0001) 2. Reject (0002) , now two braches will be coming out of decision step ,  now getting the next level agent keep it in a different background task, by creating a separate BOR method. Insert this task in both the branches.....
    The remaining activities what ever you are perfoming to update the table you do it normally... as you did
    Regards
    Pavan
    Edited by: Pavan Bhamidipati on Dec 7, 2010 11:05 AM

  • Agents in the User Decision

    Hi Experts,
    We are implementing the Leave Request WF using WS12300111.
    We have a user decision step. This is for the HR admin to take a decision if a manual posting has been successful or not.
    There is already a rule 60100010 which has the responsibilities defined in it which define the possible agents who can execute this work item.
    Can i use this rule directly in the User Decision step? Is there any specific binding required for the same.
    If the user clicks on NO, then a pop up shud appear where the user enters his comments.This is a dialog step. In this case, can we use the same rule as the agent or is there any necessity to provide an agent.
    Kindlu let me know regarding the same.
    Cheers,
    Belinda Clarke

    Hi,
    You need to create the "LATESTAGENT" container element. But first take a look to the previous step. You can basically bind from task to the workflow the user who executed the step. If I remember correctly this element was "Agent". So, just bind it from the previous step into your new container element in WF container. Then use that as an expression the next step's agent.
    You can also use the rule as I explained in my previous answer. The above method is a bit better since than it forces the work item to the user who completed the previous work item. But if you are using the advance with dialog option, the rule will work as well.
    Regards,
    Karri

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • Workflow step IN PROCESS while the workflow is actually completed.

    Hi All,
    I'm having problem in the terminatuion eform workflow.
    In this workflow we have a activity step say "PROCESS_DATA" with agent determined by a Rule AC93000026.
    The task that is associated with this step has a terminatiopn event "COMPLETED" of a class "ZCL_EFORM"
    Now when user executed the workitem from his inbox the process gets completed successfully.
    Tthe workflow is proceeded further with next steps and also gets completed but the issue is that the step "PROCESS_DATA" have status in *IN PROCESS" while the workflow is completed.
    Can any one help me with this?

    Hi Pavan,
    I have used the COMMIT WORK after raising the event. Still the problem persist.
    Again this issue is not occuring for every workflow instance, as 2 out of 10 faces this issue.
    As there some WF instances which are successfull one so WF-BATCH is not locked.
    Also the other tread that i had posted was for another workflow (Hirirng WF) and the this is with termination WF.
    So any help?
    Thanks.
    - Swapnil

  • No Responsible Agent filled? workflow goes to all

    Hi All,
    I am new to workflow. I am trying to fix a leave workflow issue. Issue is when ever the leave applied it goes to more then one manager. Even thou employee got manager in organisation. When I checked the workflow log, I found no “Responsible Agent” in list, only “Possible Agent” as list with more then one entry (all of them got this workflow). I am not sure what’s wrong, agent determination is done using “Rule resolution” I am unable to link workflow and rule used. Can anyone tell me what should be causing this problem or why responsible agent list empty.
    Thanks in advance.
    Regards,
    Trim

    HI Trim,
    Responsible Agents
               Who should do the work
    Responsible agents are the people who are supposed to execute a particular work item.   
    Responsible agents are assigned at the workflow step level or at the task level via default agent determination rule.
       Assignment of Responsible Agents
        Responsible agents can be assigned by using
    Expressions (Initiator of workflow)
    Organizational Structure (Organizational unit, job, position)
    Rules (Dynamically during Work Item creation)
       The recipient(s) of a work item are established from the  intersection of responsible and possible agents.
    <b>Responsibility Rules</b>
    When role resolution is performed, an assignment table is
    evaluated in which Organizational Management objects (jobs,
    positions, users, organizational units) are assigned to the
    various characteristics of the role parameters.
    <b>Procedure for defining roles using responsibilities</b>
    Creation of container element for each criterion that are selected for the evaluation at runtime.
    Creation of responsibility and definition of criteria (individual values or value ranges) in the responsibility editor for the container elements.
    Assigning users / organizational objects to the responsibility.
    If the values in the role container are compatible at runtime with
    the criteria defined for a responsibility, the organizational
    objects assigned to this responsibility are identified as
    responsible  agents for the work item.
    Thanks and Regards,
    Prabhakar Dharmala

  • Agents in a workflow

    Dear Experts,
    Responsible Agent: Responsible Agent is a user assigned to a step in the step definition. Expressions, organizational objects, or rules can also be used to assign the responsible agents.
    Possible Agent: Possible agent is a user who is authorized organizationally to start a task and execute the relevant work item.
    The SAP System determines the recipient(s) of a work item i.e. Actual Agent from the intersection of responsible and possible agents.
    We normally assign responsible agents using expression, user, org objects, job, position etc.. Where should possible agent be assigned? I have an activity step where I assign an agent for it (US USER1)and make the task as general. Who is the possible agent here?
    KR,
    Bharath

    Dear Saumya,
    Thanks a lot for your reply. Now I am clear about who is a responsible agent. From that thread I found that,
    we will maintain the possible agents in the task definition and responsible agents in the work flow definition.
    I am clear about assigning responsible agent in a workflow. Its done at activity step. Can you please tell me how to maintain possible agent in task definition.
    KR,
    Bharath

  • Agent Assignents in Workflow Customizing

    Hi All,
    I have a doubt regarding agents assignments in workitems.
    In our scenario, When ever a engineering change order is created, it triggers a workflow item to 3 users inbox automatically (in SBWP) for the approval.
    Can anyone tell me where exactly these agents are assigned in customizing of WF.
    Please help.
    Regards,
    Rohit

    Hi,
       Ii is not mandatory that the three agents might be hard coded. It is possible that there is rule that would be determining the three agents dynamically, So I would suggest, that just follow the below steps.
    1. Execute PFTC select Workflow template as task type and mention the workflow id Exculding object type WS.
    2. Open in display mode and clikc on the workflow builder in the new screen. This will inturn will navigate you to the SWDD txn but in display mode.,
    3. Check the standard task or Activity or Decision steps , the one which is sent for the three agents. Check whether any ruleis assigned to itif any rule is assigned then just double click the rule to see what kind of rule it is. You can simulate the rule from PFAC txn.
    4. If there is no rule assigned then on the same screen you might be having a green colured apple shaped icon click on it to see if any of the agents are hard coded. ....
    Note: In general the agents should be determined dynamically.
    Regards
    Pavan

  • Agent assignment to workflow task

    Hi all,
    1) I have assigned a workflow(sub workflow) in a activity step in main workflow and assigned workflow task no ws99900258 in that step.i have tried to assign agents as general task.
    i couldn't do it.its showing that please place the cursor..some thing.
    Kindly let me know how to assign to a workflowid.
    2) in another workflow i am facing the problem is "mandatory import element(workflow container object(z_plm_sbc) is not explicitly provided".
    Kindly let me know how to rectify this error.
    Regards,
    Ramesh.

    Hi Ramesh,
    1. Open the workflow ws99900258 in tcode PFTC,
         Menu options -- > additional data-->agent assignment --> maintain --> select your workflow (this is where you are missing)
         click on "atttributes' buttone..
         Make it as general.
    2. In your workflow some of the elements are mandatory,  pass the required value into that element.
    This is you have to mention in the Binding ..
    Regards,
    Murali Krishna,

Maybe you are looking for

  • Dynamic Filter Display in Report Designer

    Hi All, We have implemented a new BI reporting tool and are using Report Designer for the output format. The problem is that we cannot see any dynamic filters or navigational level when printing as RD takes it back to the original format. To overcome

  • BAPI_CUSTOMER_CHANGEFROMDATA

    i want change KNA1-name3 using this bapi( BAPI_CUSTOMER_CHANGEFROMDATA),but i got this message 'Make an entry in all fields where required' my code is below: REPORT  Z_TEST_ZL                               . data: gs_BAPIKNA101 like BAPIKNA101,      

  • Does OS 10.4 include iLife 6?

    I have searched all morning trying to find out if simply upgrading my OS to 10. 4 will include iLife 6.. . . .or do I need to purchase the new iLife 6? Probably the wrong forum for this question. Thanks!

  • Thread.sleep takes a lot of CPU time!

    Hi, I have the run method like this: public void run() while(true) //some set of operations Thread.sleep(5*1000*60); The above code's performance was measured under stress test. . The sleep operation seems to take a lot of CPU time though ideally sle

  • Report Failure Notification

    In doing some searches here and elsewhere I am seeing that the ability to set a GLOBAL failure notification in BO XI 3.1 is not possible... Someone mentions SDK code.... does anyone have any or know where to find any code like this?? I am not technic