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

Similar Messages

  • Work flow in error when executed with a user decision.

    Hi,
    I am executing a workflow for notification of absence. It has a user decision step to Revise the request or to withdraw it when the absence request is rejected by the approver. When I am executing this the workflow is going into error state. User decision step is not starting at all. The first two steps create notification of absence and check notification are getting completed successfully.
    Please let me know where I am going wrong.
    Thanks & Regards,
    Soumya.

    Hi,
    I believe the orginal poster is following the workflow tutorial in the sap help.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/fb/135962457311d189440000e829fbbd/frameset.htm
    I'm following the instructions and pretty sure it's been followed exactly on each step but am hitting the same issue - see 'Unit 10 - third step'.
    The log is reporting two errors
    Work item 000000014093: Object FLOWITEM method EXECUTE cannot be executed
    and
    Error when processing node '0000000039' (ParForEach index 000000)
    You reject the notification and then the work flow errors.
    Can anyone help?

  • 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

  • Terminate loop in user decision step

    Dear Experts,
                         I have a user decision step in my workflow; which has two buttons e.g; approve and reject buttons. this step is in the loop. I want to terminate the loop when user click on Approve button. How I should capture the ID of approve button. OR there is some other idea to terminate the loop; as I don't have any other condition to stop the loop.
    Regards,
    Sohail

    Hi Sohail,
    Create one workflow container (e.g. APPR_FLAG) of type CHAR1. Then just after APPROVE branch of user decision step create one 'container operation'  step and set the APPR_FLAG to X. finally in you loop end condition put terminating condition as APPR_FLAG = X. So this your loop will terminate once qgent clicks on APPTOVE button.
    Regards,
    Ibrahm

  • How to integrate outlook with notification in user decision

    Hi experts,
       there are notification/latest end/requested start... tabs in step type 'user decision' of workflow.
       But these messages are sent to workflow inbox and now i want to sent these messages to outlook.
       For notification i could use function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to achieve this.
       But how could i achieve latest end/requested start with 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
      After some research i find that 'extented notification' seems could reach this.
    Any advice on this requirement and is  'extented notification' ok for this requirement  ?

    Hi Gang LI,
    Using 'SO_NEW_DOCUMENT_ATT_SEND_API1' you can send notification amisl to a user. But user decisions are used to send workitems to user to take action on. These have deadline monitoring activated to take care of missed deadlines for the task.
    Please explain if you need to send workitems to the users.
    Regards,
    Saumya

  • Custom User Decision for Class Method in Task

    Hi Expert,
    I have a screen for user decision(Approve/Reject with some comments field). When i execute the process it works fine for all cases, but when i don't click any decision and come back from the screen, then also this task gets completed and workflow starts executing next step. Here in this case, i want workitem to remain in inbox same as what happen in case of user decision step.
    Do i need to put this task in loop till i get a decision or some other way i can solve it? I have tried putting this method as Synchronous and non-Synchronous method. I am not sure if this issue is, because i am using Class method. Please help.
    Regards,
    Pritam
    Edited by: Pritam Kunal on Feb 11, 2011 4:28 PM

    Hi Mike,
    I have got a solution for this. If we make the task as Asynchronous task with a terminating event. Till the time event is not triggered process workitem will remain in inbox. This event can we triggered at any user decision only.
    Is there any flow in this logic? I have tried it for few cases and it worked, but not sure if there will be any case where it will not work? any suggestion?
    Regards,
    Pritam

  • 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.

  • User decision activity not going to the agents(Position Maintained).

    Hi All,
    I assigned a specific Position in the agent field of  the user decision activity. But after assigning, the decisiion step is not going to the expected agent but it getting executed by the WF-BATCH user.
    I have checked the same in the Tcode : PO13 and the corresponding user is the only one maintained for that position.
    Kindly guide what can be the possible reasons. Is there any thing i am missing.
    Thanks,
    Neslin.

    Thanks.Yes.Latest start and latest end are already maintained and there is a Rule when the latest start missed also.  kindly let me know how i can avoid this also..
    How to check whether the position is maintained to the SAP user id?.I have seen the user maintained under the position in Tcode PO13..
    The deadline is calculated 4 days after sydatum.
    One more thing the Workitem got reserved by the WF-batch and executed by WF-batch.
    Edited by: neslin on Jul 28, 2009 7:49 AM

  • SOFM in user decision step - provide reason in UWL

    Hello Everyone,
    I'm working with a customer who wants to use a user decision step and add a reason for the rejection only.  This step will be executed in UWL - since UWL doesn't support syncrhonous dialog chains, it can't be implemented by adding another step with SOFM.  I have seen the 'template with attachment' in the user decision step, and have tried binding SOFM to the Reference in the container, but the user doesn't have the option.
    Perhaps this could be implemented with a secondard amodal method - which checks the user decision code and only implements if the decision was rejected.  I'd like to be able to put a condition on the secondary methods.
    If you've done something like this, please let me know!
    Regards
    Ginger

    Hi Ginger,
    Unfortunately it is not only synchronous dialog chains, but also secondary methods that are not supported in the UWL, so you're stuck both ways.
    Though, I have been told that the latest SP does support some kind of advance with dialog functionality (SP15 I think?).
    At one customer we used a custom ABAP-based decision step which executed in a wingui session - thus synchronous dialog chains worked as long as every subsequent step was wingui based (which SOFM.CREATE obviously is) - worked quite well.
    Let me know if you need more info.
    Cheers,
    Mike

  • Create Condtition with Step User Decision

    Hello All,
    I create a workflow for the approval of Purchase Order using the step user decision which works fine. But in my configuration, i have 2 release strategies, one is for approval of Purchase Order with sum lesser than 250,000 while the other strategy is for approval of Purchase Order with sum greater than 250,000. Due to this release strategy, i created a condition step (Using container of net price)  before the user decision step, which has a false and a true branch. But for every time i create a Purchase Order, only the false branch gets triggered.
    How do i create this condition and where should it fall, bearing in mind that my start event is the creation of release step of BUS2012
    Thanks for anticipated help.

    Hi,
    I think along with the condition check on Net price ,you should also do a condition check on the release code triggered from T16FS and place this combined check correctly before the user decision step.I think it should work.
    SELECT SINGLE FRGGR FRGSX FRGZU FROM EKKO INTO WA_EKKO WHERE EBELN EQ PONUMBER.
      IF SY-SUBRC = 0.
    *Get the Release code FRGC1 and FRGC2 as maintained in T16FS
        SELECT SINGLE FRGC1
                      FRGC2
               FROM   T16FS
               INTO   WA_T16FS
               WHERE  FRGGR = WA_EKKO-FRGGR
               AND    FRGSX = WA_EKKO-FRGSX.
        IF SY-SUBRC = 0.
          CASE WA_EKKO-FRGZU.
            WHEN ' '.
              RELCODE = WA_T16FS-FRGC1.
            WHEN 'X'.
              RELCODE = WA_T16FS-FRGC2.
          ENDCASE.
        ENDIF.
      ENDIF.

  • Programatically pprove/Disapprove user decision step in a waiting workflow.

    Hi Experts,
    If I have the approval step work item ID,can I programetically resume the waiting workflow by providing the input (approve disapprove).
    The use case is that the workflow is started. The workflow has a approval step and it is now waiting for user decision.
    When the workitem is created,I get the workitem id thru an exit.
    Now assume the user decision is got thru another means and now I want to resume the waiting workflow by providing the decison into the waiting workflow.The workflow should now continue with the subsequent steps.
    Is there any WAPI to do that.
    Thanks in advance.
    Bikram

    Ad Hoc Approval should be done with transaction SWIA.
    If this occurs a lot then a redesign of the flow is in order. One where with deadline monitoring you can take certain actions when workitems are idle for an amount of time.
    Also setting up substitution is advisavle for this scenario.
    Programmatically doing stuff is done with the SAP_WAPI function modules, check out if sap_wapi_decision_complete works for you.
    Kind regards, Rob Dielemans

  • 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

  • Need Help on User decision step in BPM

    Hi All,
    I have a requirement to design the user to to system interaction in a partiular scenario.  I am trying to use the User decision step in BPM available in PI 7.1 server. I have used the User decision step and filled all the parametes as given in the sap documentation. When I am trying to execute the scenario, The outbound process is succesful but stops at the BPM workflow at the User decision step with the message (No Agent ready) .
    Can anybody help me in solving this issue.
    Thanks in advance,
    Kalpana

    Hi Shabarish and Swarup,
    I have defined the relevant user in  the Integration directory , also made sure that the user entered is defined on the integration server and there are not restrictions on the defined user. The workflow log is as follows:
    Workflow              File2File_BPM1
    Workflow instance     File2File_BPM1 http://File2File_BPMdemo
    Instance number       000000001046
    Start date            30.12.2008     Started by            WF-BATCH
    Start time            11:33:36       Current status        In Process
    View: Workflow chronicle
    Error       St Task                                          Result                                   Date       Time     Processing time
    Error Agent                     Executed Action                          Date       Time     Object               Object Name                    Object 2             Object name 2                  User Context
    File2File_BPM1 http://File2File_BPMdemo       Workflow started                         30.12.2008 11:33:36               -1s
    WF-BATCH                  Start message received                   30.12.2008 11:33:36 MIAB_BPM_OB2 / http: C532A7AB4D284B9011C0B0C7F8AFB                                                      WF-BATCH
    WF-BATCH                  Workflow started                         30.12.2008 11:33:36                                                                                WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:36 MIAB_BPM_OB2 / http: 597B946347C148AD03988B5D8BE2C                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 11:45:37 MIAB_BPM_OB1 / http: 6E0E09EE977E4F333D02DDDAE9A52                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB2 / http: 9F5491FD9BC642E50486A6FED89DA                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 30.12.2008 13:48:07 MIAB_BPM_OB1 / http: 1AE5BB06D72341AD01F8C45E6AA7E                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:58 MIAB_BPM_OB2 / http: CD698CDE5606436811BAB330011AF                                                      WF-BATCH
    WF-BATCH                  Events Dispatcher Active                 02.01.2009 05:34:59 MIAB_BPM_OB1 / http: 2D82C00C16E0447F1DF3B133470AD                                                      WF-BATCH
    'Good'{TYPE=SWFXST_STRING}'BAD'{TYPE=SWFXST                                           30.12.2008 11:33:37                0s         1046
    WF-BATCH                  Dialog work item created                 30.12.2008 11:33:37                                                                                WF-BATCH
    WF-BATCH                    EVALUATE_AGENT_VIA_EXPESSION           30.12.2008 11:33:37                                                                                WF-BATCH
    I hope this can help you in identifying the error.
    Thank you,
    Kalpana

  • Url link in User Decision workflow step

    Hi Experts,
    I had created a workflow for "Employee transfer" process using SWDD tcode.
    I had a created a workflow step with type as "User Decision".I had included "Approve" & "Reject" decision options.
    Now i want to include URL link along with "Approve" & "Reject" in the user decision workflow step (i.e) The manager needs to see the URL link along with "Approve" & "Reject" in his SAP workflow inbox.
    Can anyone guide me...
    Regards,
    Krishna Balaji T

    Hi Krishna,
    I understand your issue. I have faced a similar issue in my project.
    Here is the solution!
    To add link of a URL you need to have the binding with the BO of the transaction your are refering to. To do this, you need to bind your BO event (triggering event) to the workflow container and then the workflow container to task container. This BO value should flow from event-> workflow -> task container to get the link in the User Decision.
    To do the binding you need to follow the following steps:
    1. Go to t-code SWDD and open your workflow template.
    2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8
    3. Go to Start Events tab.
    4. In the Object type enter your BO name (BO for the transaction you need to add as link), in Event of object enter the BO event. This would serve as the triggering event for your workflow.
    5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement. This binding would ensure that the URL comes under 'objects and attachments' section.
    6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).
    6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.
    7. Save the changes made and activate your workflow.
    8. Do the binding between the workflow and the user decision step. Select automatic binding (recommended).
    You can also refer to the similar thread that I had provided solution to. This would help you resolve the issue!
    Re: URL of site has to be attached along with the mail
    Hope this helps!
    Regards,
    Saumya

  • User decision step prob

    Hi,
    In my workflow user decision step have 2 approvers.
    if one of the approver opening the work item ,remaining approvers relevent work item(User decision) deleted from sap inbox.
    i want to keep all approvers work items  alive upto getting decision from any one.
    Please suggest me in  this
    Thanks and Regards,
    Ragavendran K.

    Hi,
    It is  possible by doing the following
    create a multiline element for the approvers.
    you use this element in a simple subflow where you pass on the mutliine element in the Miscellaneous  tab.
    Now for every record in the container 1 workflow is started.
    Your workflow should have a fork 1:2
    in one branche the user decision and after the user decision a create event step.
    And in the other branch a wait for event step.
    Now only when a UD is executed an event gets triggered,m which should terminate all of the workflows.
    Kind regards, Rob Dielemans

Maybe you are looking for

  • Looking for game center games to play ipad vs. ipod touch

    After trying a number of games that simply do not work as advertised via gamecenter, I am looking for suggestions for some games that can be played between an iPad (me) and and iPod touch (4th gen) used by a kid. Anyone have any that work well?

  • ITunes 9 will not download podcasts

    Tried to get my latest podcasts, but the download progress bar remains at 0 and I get no data transfer. I thought it might be a bug in version 9 so I downgraded to 8 but podcasts won't download on that version either. I tried again on my windows mach

  • ABAP code used in transaction SU01

    Hi all, Can anyone tell me that whether is there any method by which I can pass the user id and can know whether that user has the SAP_ALL profile or not. The above is done by using the transaction SU01,but I need the ABAP code that is being used in

  • How can we handle multiple applications in session method

    how can we handle multiple applications in .. session method. can any body reply me. thanks

  • Non-English fonts problems.

    Hello guys, I have a problem with non-English (well Cyrillic) font. I faced this problem 3 days ago when was working in iDVD trying to type text there. The problem is if I type in Russian with chosen font it does no appear as its english counterpart.