2 Step Deadline Monitoring

Hi Workflow Gurus,
I am working on T&E module workflow WS20000040 for expense approval. Here i need to create the 2 step escalations. When expense report is submitted it should go to Accounts Person . If he dont approve the expenses then it should go to Manager B. If manager B dot approve then it should got to Manager C. Can you please help me guys. I am stuck with 1st level escalation itself. I did modeled monitoring,  added process control, forced it to go to process obsolete. But now I dont know what to add on Obsolete outcome to send the work item to managers SAP inbox. Your help is highly appreciated. Thanks in Advance.
Thanks,
Manish.

Go to SE37 and play around with this FM.  You can use it to create your rule.
Get leading position one level up in Org
  CALL FUNCTION 'RH_GET_LEADING_POSITION'                                         
    EXPORTING                                                                     
      plvar             = '01'                                                    
      otype             = 'S'                                                     
      sobid             = lv_sobid   <--- position in current org unit                
      date              = sy-datum                                                
      auth              = ' '                                                     
      consider_vac_pos  = space                                                   
    TABLES                                                                               
leading_pos       = lt_leadpos        <--- returns chief position up one level                                       
    EXCEPTIONS                                                                    
      no_lead_pos_found = 1                                                       
      OTHERS            = 2.                                                                               
EndIf.

Similar Messages

  • Requested End Deadline monitoring for Background Activity Step

    Hi All,
    Workflow for MSS Position change has been implemented in the system.
    When a request was created thru Portal the Workflow was triggered but it got stuck.
    I found that in a background activity step there is a requested end deadline monitoring which was reached.
    Since it is a background activity there is no agent assigned, then what could be the reason that the deadline was reached ?
    Can anyone tell me when is the Requested End deadline triggered ?
    Regards,
    Radhika.

    Hello,
    Yes, if it's workitem creation time + 1 minute then it means the deadline (any deadline - Latest End, Requested End, Requested Start etc, they're all the same, they just have different names) gets triggered.
    What happens next depends on how that deadline has been defined - it may just send a message to someone and do nothing else (ie it leaves the background process running). Or it may be a modeled deadline set up to end the process. Have a look in the Requested End tab to see what it does.
    regards
    Rick Bakker
    Hanabi Technology

  • Error in Schedule Background Job for Deadline Monitoring of swu3

    While Auto Customization swu3 i am getting error message 'Output device "" not known' in 'Schedule Background Job for Deadline Monitoring'
    Please advice what could be cause of it

    the earlier problem of background job was solved by changing the  output device assigned to user wf-batch .
    regarding the transport request :
    when i was trying to execute the step : "Schedule bakgrd for missed deadlines " MANUEL it was giving me an option of SAVE AND SCHEDULE . which was creating the transport request . but when i executed it automatically it worked fine without asking a request to me ... i don't know why )-: ... probablly we can specify a different interval then the standard of three minutes and which will be transported (it's just a guess) . i have  executed it  automatically ...
    well thanks all for u r help

  • Deadline monitoring & extended email without customizing a new workflow?

    Hi,
    I have a Position setup in Partner Profile - Post Processing:Permitted agent, to be notify if processing errors occur on the inbound idoc interface.
    My questions are:
    1. Besides receiving work item in SAP inbox for the idoc fallout, is there any way to send extended notification Outlook email to the users in that position when processing error occured?
    2. How can i setup a deadline monitoring for the work item triggered only by these specific idoc message variant? In SWWA, it does not narrow down by workitem, permitted agent,partner profile etc.
    3. If #2 can be fulfill, is it possible for me to trigger a new work item to another user/position? An escalation to next level after due date.
    I know this can be done through customizing a workflow, but in my situation, i need to search for a solution in a standard existing SAP way without creating any new workflow, program or object.
    Any suggestions?
    Thanks.
    Regards
    Eunice
    Edited by: Huwi Yin Puah on Oct 1, 2009 1:08 PM
    Edited by: Huwi Yin Puah on Oct 1, 2009 1:10 PM

    Huwi,
    1# You can send the external notification using Send mail step in the standard workflow it self. I suppose, You can add new steps in Standard Workflow also. Use Send mail step and chose recipient type as "Email Address'. Pass the email Address and it will sent out to MS outlook inbox if all the SCOt Configurations are done.
    2# You can activate the deadline monitoring on any activity by
    double click on the activity
    goto tab Latest End
    Select the relevent options
    3# For excalation you can set the deadline out come as a "Modeled" outcome. It would provide you an extra wing in your approval task and in that extra wing you can create your own task putting agent as manager's manager.
    Hope it helps!
    Cheers,
    Vikash

  • Workflow WAIT FOR EVENT STEP deadline not working

    Hi,
    Need some inputs for the experienced people;
    I have a wait for event step in a workflow with deadline monitoring (Latest End) but it doesn't seem to work.
    Ofcourse, all the required setting are in place and deadline works fine for other Activity steps.
    The problem is specific to Wait for event step.
    The alternative is having a fork but I just want to know why the wait step with deadline doesn't work.
    Thanks,
    Roopesh

    Hello Ajay,
    Can you share with us what did you do to solve your problem?
    I'm facing the same thing in my project now, I'm wandering if you could help me with this one.
    I have this wait for an event step wich is configured to wait 4 minutes since the work item creation. I've also selected 'Modeled' on the Action field, and a display text for the outcome.
    But in one of my tests, the event hasn't occurred and the workflow stuck in this task forever.
    Thanks in advance.
    Regards.
    Actually, I think I got this handled. This thread was really helpful to me: http://scn.sap.com/thread/47482
    Message was edited by: Leandro Farias dos Santos Abreu

  • Date Profile with Actions and Deadline Monitoring

    Hi Folks ,
    I have met an requirement of Actions with Deadline Monitoring of Date Profile . I could able to see Date profile with Day Rules in the standard , But i have met an requirement for very high imp - 2 hrs , High - 4 hrs .... etc. Where in Standard Date Profile i checked all the Date Rules which were in the XML format which describes about Day only.
    I m looking for an XML code for Date - DDMMYY & Time Format - HHMMSS and which supports my requirement.
    Would be very thankful if any could forward any step for Actions with Date profile with Time depandant.
    Thank you
    Regards,
    Amrita

    Hi Amrita,
    You take the standard XML code for the date time and copy as per your requirement and give the duration and time unit. Then assign to the action profile and see the action is appearing in transaction.Then go to tcode CRMC_ACTION_JOB and execute that transaction from their. Then the date you want to trigger the mail it will trigger in that time.
    Thanx
    Chinmaya

  • How to send recursive deadline monitoring mails?

    Hi all,
    I have to send a deadline monitoring mails to the approver for every 3 days till the approver takes some action. I am able to send the deadline monitoring mail once by using 'LATEST END' tab.
    even tried using loop, but i am getting mails continuously.
    Please help me..
    Regards,
    Gautham P

    Hi Gautham,
    <b>Activation</b>
    Deadline Monitoring is activated by selecting a reference date /time for the relevant deadline (on the relevant tab page of step).
    <b>Reference date/time options</b>
    Creation date/time of the work item
    Creation data/time of the workflow
    A date in the form of an expression (derived from application
      context)
      E.g. 2 days for document type CMR, 3 days for CMR
    <b>Recipient and Text</b>
    Deadline Text and Recipient of deadline has to be mentioned on tab page Display text.
    NOTE:
    The deadline work item is completed when the deadline recipient processes it or the original work item is completed.
    In the task itself trigger to receive mails but only thing you have to maintain <b>Fork</b>.
    <b>Information on monitored workitem</b>
    Workitem Type: Dialog step
    Status: In Process
    Current Agent: xyz
    Thanks and Regards,
    Prabhakar Dharmala

  • Multiple levels escalation for deadline monitoring

    Hi all,
    We have a business requirement to perform multiple levels escalation in one of the workflow steps. If the approver does not approve the work item(WI) after one day,  a mail notification will be sent to the approver.  A second mail will be sent again if approver still doesn't approve WI after 48 hours.  Then the third/fourth mail will be sent to approver and approver's boss if approver still doesn't approve WI after 72 / 96 hours.  The fifth mail will be sent to approver's boss's boss if WI is not approved still after 5 days.
    I know how to do simple and modeled deadline monitoring in workflow builder. But I don't know whether our business requirement can be achieved in workflow builder( and this is a step in dynamic parallel processing).  Other option I have is to create an ABAP report to go through the table stores workflow run time data and make this report run several times a day in the batch to send mail notification reminder.
    Did anybody have a similar business requirement like ours? What's the best way to handle it - build it in workflow builder or write an ABAP report?
    Thank you in advance,
    Merta

    Hi Merta,
    We had a similar requirement and this is how I achieved it:
    1.  Pleace your approval task into a loop (while not approved) and create a container element as the approval flag.  This allows you to get out of the loop when the item has been correctly actioned.  Also create a DL element to hold your calculated deadline value;
    2.  Create a method and task to determine the next escalation point based on how many loop passes the instance has had, ie:
         Pass 1 - DL = sy-datum + 1 day;
         Pass 2 - DL = DL1 + 1 day, and so on.
    3.  Create a method to determine who should get what.  Link this to a condition so you know whether to send a mail or escalate the entire workitem.  Create the notification as a send mail within the condition;
    4.  Change the Deadline parameters in your step to "Refer.date/tim" = Expression and bind the DL element;
    5.  Set the processing obsolete property to ensure the workitem is killed when a new pass (and therefore and new deadline/agent etc) is started.
    See the following:
    This one handles the loop/obsolete concept.
    http://help.sap.com/saphelp_47x200/helpdata/en/c5/e4b97e453d11d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/bc/ecdd5ad24e11d2b494006094b9ea0d/frameset.htm
    Regards
    Gareth

  • Deadline monitoring/Escalation - Purchase Requisition Workflow WS20000077

    Dear Friends,
    I have read some stuff on SDN but still couldnt figure out the soultion.
    Its a common problem. We have set a release strategy in Purchase Requisition and are using std workflow WS20000077.
    Now the requirement is that if an approver doesnt approve in 2 days time then the PR will automatically go to the next approver for release.
    I have set the deadline monitoring using the workflow wizard for model deadline monitoring. With this, The work item gets deleted from the approvers inbox. Next in the obsolete path I have set a process control which specifies the worklow step as the step in which deadline monitoring was specified.
    When I check in SWI1, the work item is set as obsolete but it doesnt go to the next approver for approval.
    Your replies will be highly apprecialted.
    Thanks & Regards,
    Fawaz

    Hi
    For your Requirment :
    "the requirement is that if an approver doesnt approve in 2 days time then the PR will automatically go to the next approver for release."
    Please follow the below steps.in copy of  WS20000077.
    1.For taskTS20000159:Overall release of requisition , go to
    Latest END tab:  put ACtion as :Modeled ,  Refer.date/time:Workitem creation , below time : choses: DAY,  and on left add 2.
    Outcome :Deadline Montoring.
    2.Then come to OUTcomes tab of the same task:  see  there are 3 lines 1.Step executed, 2.Latest end:Deadline Montoring, 3.Processing obsolete:Processing obsolete ,, all are ACTIVE or not , if not, Activate .then  all should be Green.
    4.next in the OUtcome :Deadline Montoring , use a process control step. to Set missed workitem to obsolete,  in Function: chose : set Work item   to Obsolute. and Workflow Step : chose then step no for the above task(TS20000159:Overall release of requisition).
    5.In "Processing obsolete" path, again call the same task TS20000159. in different activity . and see to the agent assignment.
    I think this will slove your problem.
    How it works:
    1st the PR is send in a WI to the perticular agent by the 1st activity . if the agent do not execute for 2 days. then that WI will set to obsolute . and process flow to" Processing obsolete" path, then agian PR is send to the next agent using the same task but activity created in  step 5.
    thanks
    Kakoli.

  • Modeled Deadline monitoring is not working

    In workflow i have used modeled Deadline monitoring  for the task, in modeled branch i put a send mail step
    in that branch that is working fine.  once the deadline is reached that workitem is not disappearing from users inbox and modeled branch is working fine , what could be the problem  please suggest me.

    Hi,
    Refer below link  and fix it
    [Link1|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/303617cf-73dd-2a10-c993-cc6303585176] [Link2|https://wiki.sdn.sap.com/wiki/x/EwEqB] [Link3|https://wiki.sdn.sap.com/wiki/x/fQDDAw].
    Regards,
    Surjith

  • Deadline monitoring is not working

    HI,
    i had requirement to change the text displayed in the decision step type. I copied that task using pftc and changed the description and i replaced the new task number with old one. the deadline monitoring is not working for the new task .
    Please anybody have idea about why deadline is not working for the new task ?
    advance thanks
    regards
    paveee

    Hi Praveen,
    Deadline is failing only for this workflow? Or is it failing completely in the whole system. Just create a small dummy WF with a standard decision step (or some acitvity) with deadline monitoring activated and see if it fails there also.
    <b>If deadline monitoring is failing in all workflows</b>
    Can you just check whether the scheduled report RSWWDHEX are executing properly. You can check it in SM37 for user WF-BATCH. Also check in ST22 if there are any dumps for report RSWWDHEX (for user WF-BATCH).
    <b>If deadline monitoring is not failing in other workflows</b>
    In your activity where you have put your cutom task goto the "Outcomes" tab an check if the outcome for your deadline monitoring is "Active" (This may not change but just have a check)
    Also can you let us know what are the steps that you are using in your modelled outcome? Just suspecting if the first step in your modelled outcome is going to error (which is not displayed in log).
    Thanks,
    Prasath N

  • Possible loop deadline monitoring for a period of time?

    Hi All,
    Here is our scenario.. We have a task sent to the managers inbox with deadline monitoring on it.  If the manager does not action this task, we set this task to obsolete and then we want to send a reminder email every day until the manager performs the required action.
    So the problem.. originally this email was to be a task but the loop would not work with the task as it's waiting on action from the user.  We changed this task to an email and it looped as expected however the only way I could think to put a wait for a period of time before another email is sent is by actually counting down the time in a method.
    However, the problem with this is that wf-batch is locking the worklfow so it can never complete, even if the event to complete the workflow is triggered.  wf-batch has it locked so the workflow can never complete, so it loops infinitely.
    So my question.. is it possible to repeatedly send notifications to a manager at specifically defined time intervals without locking the workflow?
    Below is how the workflow currently looks:
    Any guidance on this would be most gratefully received!
    Thanks in advance,
    Liz.

    Hi Liz
    in your wait step, do not count down the time.
    Instead keep the method as a dummy method with no code.
    In the wait step, use the deadline monitoring - Requested Start - set it to current date + 1 day
    The step will start 1 day after 'today' , execute nothing in Dummy method and then go on to the mail step
    I am sure that the deadline monitoring job is running because "Latest End" of the first task is executed in your system. So the same job will take care of Requested Start of the wait step.
    regards,
    Modak

  • Doubt in deadline monitoring

    Hi,
    I have a user decision where deadline monitoring is active. To be specific "Latest Start" is activated. In the "Conditions" tab "Complete Work Item" tab has a condition set. The condition is Dflag = 'X'. This means when this condition "Dflag = X", is true, the status of the workitem is set to Completed. This condition is set in the deadline branch.
    Question 1) Does this mean that the workitem will disappear from the inbox once deadline has reached and this condition has been set?
    Question 2) If it doesnt disappear, then is it possible to execute the workitem after deadline is reached and this condition has been set?
    The reason is when I see the techncal log I am observing the following.
    1) Deadline has reached and Dflag has been set to X in the deadline branch.
    2) Though the deadline has reached on "01.04.2007 - 11:31:05" the workitem has been processed on "02.04.2007 - 04:10:22 "
    3) What should have happened is this workitem should be completed and the branch "Condition for 'Complete Work Item' is true" (bcoz conditions tab is set )should be executed.
    Please help.
    Thanks
    Abhishek

    Question 1) Does this mean that the workitem will disappear from the inbox once deadline has reached and this condition has been set?
    -> The workitem will not disappear, it will be set to complete in ur case.
    Question 2) If it doesnt disappear, then is it possible to execute the workitem after deadline is reached and this condition has been set?
    If the condition has been set DFLG=X the workitem is already set to complete and it should go to the next processing step.
    So as soon as you have the condition DFLAG=X WI should be set to complete and your path should get executed.
    now - The fulfillment of the condition is checked by the background job for condition evaluation which is run periodical - i am not aware of which job does this but checking could be delayed cause of the periodic job.
    What happened to the workitem after completion did ur path get executed at a later stage ?

  • Select the approval Agent for Modeled Deadline Monitoring for WF WS14000133

    I have setup a deadline monitoring for WF WS14000133 using the modeled approach and added the "Send Mail" Test along with a Loop so that the the appover will get an email every day after three days of not approving a shopping cart.
    I noticed in task "109 Subworkflow n-step over Value" there is a task container element "&APPROVALAGENTS.ACT_AGENT&" which contains the approver. I am tring to put it in a Workflow container element that I created referencing "WFSYST-AGENT". When I try to setup a binding to import the value from the task container to the workflow container I get the following error:
    "Data object 'APPROVALAGENTS' is elementary )component 'ACT_AGENT' does not exist)
    Does anyone know how to fix this or does anyone know another way I can get the approval agent to the WF container so that I can send the email to them in the "send email" step?
    According to SAP this can be done....this is what they say on help.sap.com:
    "Actual agent: Element WIActual_Agent in the task container
    If you want to transfer the actual agent of a work item (available under the element ID WIActual_Agent in the task container) to the workflow container for further use, you define an appropriate element in the workflow container to contain this information.
    You create this element with a reference to the ABAP Dictionary field WFSYST-AGENT."
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4b06d453d11d189430000e829fbbd/frameset.htm

    hi ,
    the field actual agent gets will filled once the responsible agent completes / performs an action on it. Hence it is suggested to use some method / rule to get the responsible agent and create one local workflow container variable (table) to fill up the agents instead of manipulating the workflow variables directly.
    In this way, you can check if the table of agents and then send accordingly the deadline messages.
    Hope this helps.
    Best Regards,
    Saujanya

  • Workflow Deadline monitoring

    Hi,
    Is it possible to re-trigger deadline monitoring more than once, so that if a PO approver has not released a PO within 24 hours, they will receive a reminder every 12 hours until this task

    hi..
    I hope that you are using an activity step to send workitem to PO approver to approve the PO..
    After that step you do as below,
    1. Create a loop which loops until your condition (PO approver approves the PO) is met..
    2. Insite loop place an activity step with BOR as selfitem and method as sendtaskdescription (This is used to send mail remainders to approver)
    3. In that activity step add a requested start deadline of 12 hrs so that mail is sent every 12 hrs..
    4. Note that here you are not inserting you actual activity step that you send to PO approver inside loop. So you need not worry that workitem is send repeatedly to him. Only activity step to send remainder mails is inside loop.
    Hope this helps..
    Cheers,
    Bharath
    Edited by: bharath padmanabhan on Jul 11, 2011 6:20 PM

Maybe you are looking for

  • Why new Spacer Item cretaed through personalization does not appear in SSHR

    SR # 6987444.993 Customer : VIRGIN ATLANTIC LIMITED RELEASE : 11.5.10 CU 2 Patchset: FP K RUP 2 A Space Item created through Self Service Personalization Does Not Appear in Self Service HRMS Page. Responsibility : Employee Self-Service Click on "Pers

  • Read Out Loud Not working in Adobe Reader XI

    Read Out Loud is not working.  I have selected the the Microsoft Anna voice in preferences. I have selected the recommended "infer order from doc".  I am at a loss to know why it does not work.  I am using MS Office Professional 2013.  Please help if

  • Quality Inspection with Intervals

    Dear All, We have a requirement where in our client wants that during GRN of bought out material, every alternate GRN should go for Quality Inspection setup. THis frequency can be variable though. How can this be achieved in system. Please note that

  • Receicing Point on Inbound Delivery

    Hello Experts ! SAP has config to automatically determine Receiving Point on a Inbound Delivery based on Plant and SLoc. I have two questions: 1. Receiving Point is not a field on PO... and, on the Inbound Delivery it is greyed out. Is there a way to

  • Time Passage Calculation excluding Weekends and Non-work hours

    Good Afternoon Everyone! I am currently using the expression below to determine the amount of time that has passed since a Task has been created. TIMESTAMPDIFF(SQL_TSI_MINUTE, Activity."Created Date", NOW()) We have a completion goal for a specific t