Dynamic user decision outcomes

Dear Experts,
We need to offer a different choice of user decisions according to the actual agent who is processing the decision step. (SAP release ECC 6.0)
i.e., if the agent is a manager, they get  4 options - "approve/reject/view/leave in inbox" - if the agent is an administrator they get 3 options - "forward to manager/view/leave in inbox".
The workflow would be much simpler if this can be achieved using a single user decision.
Is it possible to activate/deactivate the user decision outcomes dynamically like this? (perhaps by defining a method to run before work item execution in the Methods tab of the user decision?)
Many thanks,     Ben

Hi,,
>The workflow would be much simpler if this can be achieved using a single user decision
anything can possible in workflow , if u want single creation UD then
create like this
If you are Manager
Approve
Reject
---View
---Leave in inbox
If you are Administator
---Forward to manager
---View
---Leave to Inbox
ok now you got it, or else
create two UDs if you feel free to create it like this,
check the user manager/admin
and then put the condition if manager then send seperate UD
if Admin then send seperate UD.
Thanks and Regards,
Prabhakar Dharmala

Similar Messages

  • Dynamic User Decision Texts

    1. Is there a way to configure WF for Dynamic user decision texts? Depending on a flag I might want the user to have two decisons like "Accept" or "Reject" or in some cases three decisions like ""Accept" or  "Reject" or "Cancel" or etc etc.
    2. If the above is not possible, can I have maybe 4 fixed User decision texts and dynamically enable or visible them as I need. For example I can have "Accept" or  "Reject" or "Cancel", but I may need on ""Accept" or  "Reject", so make Cancel invisible..Is this possible..
    Thanks a lot in advance..I will award points..
    Amlan

    You need to program the outcomes in the method and handle these in the workflow. The standard user decision step allows you multiple and good thing is you don't need to program anything but just handle it in the workflow.
    Why don't you give it a try and see for yourself?
    Regards
    Ravi

  • User Decision - Outcome link to on a Previous Activity

    Hi all, I'd like to ask to all WF expert about a doubt, is possible to link the outcome of a Activity of USER DECISION to a Previous Activity? In afirmative case, which will be the way?
    Thank you and regards
    Angel

    Yes,
    Use the container operation step in the particular branch of user decision step. Set value of some container say ABCD = 'X'
    Then loop the user decision step. Check if the value in the container is X.
    If true loop or else endloop.
    Let me know if I have understood your requirement properly.
    Let me know if you have any queries.
    Regards,
    Raj

  • Dynamic name for attachment in User Decision

    Hi...
    I have a requirement wherein the name of the attachment in the user decision has to be populated dynamically. I am using the same BO method for user decision but is triggering 2 different objects. Please advice on how to achieve this.
    Scenario - I am using BUS2081 for Invoice and for Credit Memo. If the credit memo is created, the approver has to see the name of the attachment as Credit Memo xxxx and if an invoice is created, he has to see the attachment as Invoice xxxx. As standard, whatever object is created, the attachment name is Incoming Invoice xxxx (name of the BO Object Bus2081).
    Warm Regards,
    Jubish Jacob

    The object name is static but the default attribute can be changed (use a z-subobject and delegate back) so you can do something like this: instead of: incoming invoice(object name) 12345(invoice number - default attribute) you will have document(new object name) incoming invoice/credit memo 12345(document type & number concatenated - a new default attribute)
    Another option - I think credit memos have an object (BUS2094) or you can create one - in the task have both object types in the container, when its a credit memo transfer only the credit object when it's an invoice transfer only the invoice object.

  • Looping a single branch in User Decision Step

    Hi All,
    Can anyone tell me is looping possible for a single branch in user decision step in a workflow?
    If yes, How?
    I want like to loop the step cancel and keep workitem inbox.
    Whenever the user clicks cancel and keep workitem in inbox in a user decision and again executes the WI i would like the workflow to start execution from the step just above the user decision step, i.e; Display PR.
    This is my requirement. Tell me how can i implement it?
    Thanks,
    Raj

    Hi,
    instead of doing so, you could try to enter that method as "secondary method" or "before method" within the tab-strip "Methods".
    If you used your own coding for a decision, you could enable the exception 8015 of the method's result, which is the cancel-button. If you did so, you can enable that outcome in the workflow-activity's definition.
    Best wishes,
    Florin

  • Solutions for User Decision step- Upon reject, auto-popup text for reason

    Execute user Decision workitem, when user click reject button, open text for rejection reason within the workitem.
    Ideally, for the auto-pop text , we need a descriptive header and user can enter reject reason. Text must be added before the workitem can be saved.
    Any thoughts.
    Thanks a lot.

    yes, on the SOFM.Create-Task use a dataflow from the WIOBJECT_ID => (append table) ADHOCOBJECTS
    This will popuplate this rejection to the hyperlink-section of the workflow.
    You may also activate the outcome-even "user-cancelled" in the workflow definition (or by copying the coding to your own method that could do it) and loop around back to the user decision if he cancels the document create (which I found out is sometimes a problem for the users).
    I also have made the experience that it is quite the same effort and more convenient if you design a complete user-driven screen. Then you have full control of that issue. I always use a small dialog box with a textEdit-Control where the users have to enter their rejection reason.
    I then create my own ZWFNOTE-Object and append this to the ADHOCOBJECT. This usually works very fine.
    with kind regards,
       Florin

  • Calling Transaction through User Decision step in workflow

    Hi all,
    Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.
    Can you ppl let me know how can I achieve this?
    Pls reply ASAP...
    Thanks
    Sangharsh

    Hello Sangharsh ,
    Please Check the paramater of of the method which you define.
    e.g. I define CALL_TCODE_CJ03 method
          which have the parameters FLAG,ProjectDefinition,WBSElement2,User
          with export, import checkbox.            
    Pass the paratmeres in programs
    e.g.
    BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.                      
    DATA:                                                          
          FLAG(1),                                                        
          PROJECTDEFINITION TYPE PROJ-PSPID,                              
          WBSELEMENT2 TYPE PRPS-POSID,                                    
          USER TYPE USR21-BNAME.                                                                               
    SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.                
      SWC_GET_ELEMENT CONTAINER 'User' USER.                                                                               
    GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                                                                               
    SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                             
      CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.                                                                               
    SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.    SWC_SET_ELEMENT CONTAINER 'User' USER. 
    END_METHOD.
    I hope it will help you.
    ***Assigning points is the way to say thanks in SDN.***
    Minaxi Shah

  • User decision step

    In approval process i used userdecision step for approving or rejecting. it is working fine in GUI, whenever i executes this task in web-ui (crm2007)  worklist  when i rejects also it is going to approval branch and when i approves it is gng to approval branch.both the cases it is taking approval branch  what might be the problem please anyone suggest me.

    Hi,
    In the User Decision if select
    'USER' - Only for a specific user id only this will go, for testing purpose you can use it
    'Expression' - To pick single user id dynamically this can be used, With Prefix 'US'.
                            eg. User id is JOHAN, expression value should be 'USJOHAN'
    For your requirement use 'Rule', you can send to single users or to multiple users it is possible.
    For creating the Rule see this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d053fe48-6513-2b10-a59f-871923ff99d8].
    Regards,
    Surjith

  • User Decision step in UWL

    Hi,
    I have a 3 user decision steps in my Customised workflow which uses the task TS00008267. Each task has different decison text and outcome. When this is executed through UWl the outcome does not appear as they are in SBWP.
    Does this need and Portal Configuration?
    Thanks & Regards

    Hi,
    There are two thing you need to do.
    First, you need to configure the SWFVISU.
    Run Tcode SWFVISU.
    here, select "Task Visualization' and maintain your standard task ( TS ) with ABAP web dynpro option.
    Now selct your entry and click on Visualization Parameters as mentopn below.
    APPLICATION ( WD application name )
    DYNPARAM
    NAMESPACE
    SYSTEM_ALIAS
    Second, ask Portal team to chagne the XML code for the above standard task and application ( i.e. WD appilcation which will be launced on clicking the task ).
    From the next run of the workflow, WD applcitoon will be lauched from the protal.
    for the old workitem this will not work.
    Note : If u do not configure SWFVISU then WD application will not lauch but user will get SAP gui screen for processing it.
    xlm code must be changed corresponding task for both case.
    Thanks and ragards,
    SNJY

  • Problem in User Decision Step

    Hi,
    I am facing a strange problem where one of the User when he is trying to process a work item (User Decision) he gets a blank screen.
    This work item is a User Decision Step. Only this user is facing the problem. At least the button Cancel and keep Work item
    In Inbox button is also not visible.
    He was earlier able to see the other buttons. Is it any authorization problem? Has anyone faced a similar kind of Issue.
    I tried executing the Txn SWIA to execute the work item and see the problem .But I don’t see the execute button to execute it as an administrator.
    Do I need additional authorizations to be able to execute it? If so what are they? I am able to see the execute button in my QA sys.

    This is an example of a question where you <u>definitely</u> should specify your release, and in your case also the GUI version.
    I remember having some problems with the user decisions some years ago, and as far as I can recall it was in release 4.6C. Anyway, the problems only occured with the HTML version of the decision task, and it was caused by incompatible versions of an OCX file (Windows binary file containing reusable GUI controls as far as I know). SAP GUI had installed one version, and another application had installed a more recent version, which of course should not cause problems - but did.
    So my advice would be to first try and turn off HTML in the decision task (it is an option (checkbox) in the personal workflow settings) and see if that helps. If it does, get a hold of the GUI install checker tool and see if there is a problem with a dynamically loadable module (DLL, OCX, ?).

  • User Decision - Loop in Latest Start

    Hi Experts,
    My requirment is to send reminder emails every day till user responds to workitem. After 6 days, need to forward the workitem to superior. Here for forwarding the workitem, i'm using Latest End for user decision. For sending reminder emails, i'm trying to use Latest Start with the help of loop (for each day). Latest Start is triggering after specified time, but loop is not working. Can you plz tell me, why is it so? and how can we handle this.
    Thanks in Advance,
    Siva Sankar.

    Hi Shiva,
                 Use Requested End of the task as deadline monitoring and action will be "Modeled". Then one outcome will be appeared. in that outcome first use a step to find out agents to whom you want to send the remainder mail using method and function module "RH_GET_ACTORS". Then create a loop according to your requirement and increase a counter to maintain the loop iteration. Inside the loop you can send the remainder mail. Once the loop will be finished use "Process control" to obsolete the particular step which is lying in current agents inbox. So that step will be obsolete after all remainder so one outcome will be appeared in that main task and in that new outcome you can create the same task to send the same workitem to suprior's sap inbox.
    Thanks
    Goutam Saha

  • User Decision in Workflow

    Hi All,
    When I use the User Decision Step in Workflow, then If I mention two Outcome Text, then at runtime it shows three by adding Cancel and keep.
    Now, if I click on Cancel and Keep it in Inbox, then the execution go furthur.
    How to cancel the execution of Workflow there only and not to move furthur...
    Plz give reply...
    Rahul

    hi
    check the link below, it will help you
    http://****************/Tutorials/Workflow/CustomText/CustomText.htm
    <b>reward points for useful ans</b>
    Regards
    Aarti

  • Setting Priority Dynamically in Decision Step

    Hi Experts,
    My requirement is to set priority of the user decision based on a container element value.
    Depending on the container element values, some times the workitem should be created with priority 5 (medium) and some times it should get created with priority 4 (High).
    Please let me know how can we pass priority dynamically to the user decision step.
    Thanks in Advance,
    Siva Sankar.

    I think you can use FM
    SWW_WI_PRIORITY_CHANGE
    Thanks
    Arghadip

  • Email notification - User decision - Deadline monitoring

    Hi Experts,
    My requirement is to forward workitem if there is no response from an approver for 6 days. I did this using deadline monitoring for 6 days in Latest End tab for user decision. But, daily i need to send reminder email notification if the workitem is pending for approver's response. Please suggest me in doing this.
    Thanks in Advance,
    Siva Sankar.

    Hi Gurprit,
    I've created a user decision with 6 days deadline in Latest End tab. When deadline occurs, i'm obsoleting the workitem from approver's inbox and in deadline outcome, i'm just reading next level manager's details. at the end i'm checking whether decision received from approver or not. if not, i'm sending the workoitem to next manager using loop step. This is working fine. But where to implement the logic to send reminder emails.
    Thanks,
    Siva Sankar.

  • Link event on user decision

    Hi fellow workflowers ( ),
    I was just wondering if it is possible to link an event on a user decision ?
    Our system is an ERP 5.0 system.
    thanks in advance !

    Hi Björn,
    Not sure if I understood your question, but if you want to raise an even when a user makes a decision.... simple: On the outcome branch insert a "Create Event" step.
    If you want to use a terminating event, this doesn't work with decisions. Use a fork and a wait step in parallel instead.
    Hope that helps,
    Mike

Maybe you are looking for