Workflow issue for leave request

Hi All,
we have workflow which apporves the leave rquest created by an employee through MSS.
It's a standard workflow.The workflow number is 01200003.
The problem is workflow sits in waiting position forever to lock the employee.i.e it doesn't lock the employee neither it gives an error.
The workflow log just shows waiting process.
I tried to check the method which the lock employee task calls and it's a standard method to enqueue employee.
The method works perfectly when it's checked independently through business object.
but when executed through workflow it stucks there.
My problem is the same workflow and the same version is working in our development system but not in qulaity system.
Can anybody tell me how can I find that what's going wrong in there and what can i do to correct it and also how can I stop this waiting workflow.
Thanks
Umang

Hi Umang,
The problem is with DEAD LINE MONITORING of the work flows,
In transaction SWU3, CHeck for the scheduled Background job for Missed dead lines is set or not.
If it is not then you have to set that, it will solve your issue.
Reward points if it resolved your issue.
Regards,
Krian I

Similar Messages

  • Workitem Lock  problem in workflow for leave request

    Hi Experts,
    I am facing the strange problem in the workflow of the leave request.
    We have implemented the two  level approval for workflow. For the first level approval we have created custom WebDynpro  application where approver approves the request and selects 2nd approver for the workflow. Here we are calling method initiate_state_transition of class/interface if_pt_req_request to change the status of workflow from sent to approved in custom WebDynpro  application .
    For the second level approval we are using standard approval application.
    When 1st approver approves the request, workflow moves to next task, but this task gives error "Work item 000000605682 locked by user SD21690 (enqueue error)".
    I am not getting why this is happening?
    Could you please help me.
    Thanks
    Sameer

    Hi
    As you have developed a custom application for first level approver where the status of record is being changed from sent to approved.
    please check what is the workitem number that is initiated. If its 605682 and the first approver is SD21690 then please make sure you release that workitem in your webdynpro application.
    You must have customized the workflow to add the first approver step. Where you would be mentioning the name of the custom application in SWFVISU against your custom task.
    The problem is with the workflow so please check the workflow. Your first approer is not releasing the workitem post approval and that is the reason for lock.
    Vivek - this lock is not enque lock its a workitem lock.
    Please revert with further questions if required.
    thank you
    barin

  • Adobe form for leave request

    Dear experts,
    There is no standard leave request form provided by SAP. We are developing an adobe form which lists the employee's quota and leaves taken earlier along with the current leave details. This form should be displayed to the approvers from the leave workflow.
    When the approver clicks on the work item, the leave request form should popup. There are two technical challenges in this requirement -
    1. This requirement is similar to the standard ones for travel request and expense request - In travel request and expense request, SAP has provided standard forms and the workflow container is a standard importing parameter in these adobe forms. This container is helpful in deriving most of the content on the adobe form. However, there is no such link in case of leave request. How does the workflow information be passed to the adobe form? ( i will have to display employee details, quota, current leave, approvers list, approvers comments, etc).
    2. For leave request, the approval task is TS12300097 that has "Java Webdynpro" as visualization type. Whereas for travel and expense workflow approval tasks, the visualization type is "ABAP Webdynpro". I am assuming the "JAVA WD" will make it really tough to call the adobe form from the work item.
    Any thoughts, suggestions on this requirement will be of great help.
    Thanks

    Hi Abdul
    which version u r currently working on?? check in swfvisu t-code where you can find the below task
    I'm not that good at technical level, but still I try to help you with my limited knowledge.Instead of trying from binding rule, try with Function Module via  BOR Object Method.  you can get that function module at the time Adobe form creation. Can't you consider that Adobe form as a attachment in the work item???
    Check this links
    Adobe forms using Workflow with normal SAP | SCN
    Calling the Adobe form in a workflow step for A... | SCN
    Hope this Info will be Helpful
    Cheers
    Pradyp

  • Configuration steps for leave request in ESS/MSS

    Hi
    I want to configure for leave request approval from ESS/MSS (EP 7.0 and ECC 6.0)
    What are the configuration steps if any doc please send.
    Thanks & Regards

    Hi Rao,
    Go through this link for leave request cofiguration steps.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/leave%2brequest%2bconfiguration%2bsteps
    Also visit this link for ESS related issue resolution and hints.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/commonIssuesandHintsin+ESS
    Reagrds,

  • Work flow for Leave request without ESS

    Dear All,
    For one of our client, we have configure workflow for leave request, first is it possible to do tht?
    If so how to do it?, here we dont have ESS/MSS. Is there any standard workflow available?
    Thanx

    There is standard workflow task which give by SAP to approve leave request i.e. 12300111.
    But I am not sure this workflow task will work with out Portal or not.

  • Create Z service for leave request

    Hi All,
    with reference to "ESS in MSS"
    Leave request :
    "In a similar fashion you can create a Z service for leave request and attach the resource of Leave request which is standard one to it
    EMPLOYEE_WORKTIME_LEAVEREQUEST05 to the Sub Area MSS_HCM_SUB_RELATEDACTIVITY_ESS. "
    how do i create a z service for leave request?
    Regards

    I think you wish to use ESS Leave Request in MSS.......
    Tcode SPRO...
    Cross-Application Components -> Homepage Framework -> Services
    Define Services
    Copy existing and create your own....
    EMPLOYEE_WORKTIME_LEAVEREQUEST
    to
    ZXXX_EMPLOYEE_WORKTIME_LEAVEREQUEST
    EMPLOYEE_WORKTIME_LEAVEOVERVIEW
    to
    ZXXX_EMPLOYEE_WORKTIME_LEAVEOVERVIEW
    Associate a Z resource or existing resource with it....
    Then map this Z service with Sub area
    "Assign Services to Subareas"
    Do not forget to give "Position"
    Revert back if you face any issue......
    Edited by: Saurabh Agarwal on Jul 20, 2011 12:32 PM

  • Error message for Leave request (Related to some Old Question)

    Hi Experts,<br />
    <br />
    We are facing an Error when only 1 employee in the company opens his Leave request page, the same page is working for others perfectly.<br />
    <br />
    this Error is the same as the one in the below posts:<br />
    <br />
    1. Link: Re: Error message for Leave request<br />
    <br />
    and I tried going through their solutions such as:<br />
    <br />
    1. Please check if you have the leave config done on ECC side under Personnel Management --&gt; Employee Self services --&gt; Service Specific settings --&gt; Working time --&gt; Leave request .<br />
    2. At the least you should have assign the default rule to your PSG to the standard leave type given. Otherwise create your own rule groups and Specify Processing processes for type of leave set up.<br />
    3. explicitly activate WEBMO Feature although it was activated<br />
    <br />
    But the Error is still coming for this specific Employee, even though his Vacation Quota is created and available for deduction.<br />
    <br />
    Please Help me in solving this issue.<br />
    <br />
    Regards,<br />
    Abdulrahman

    Index: 0, Size: 0:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sap.aii.proxy.framework.core.JcoBaseList.get(JcoBaseList.java:268)
         at com.sap.aii.proxy.framework.core.AbstractList.get(AbstractList.java:230)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCList.get(DynamicRFCList.java:281)
         at com.sap.tc.webdynpro.progmodel.context.Node$ModelElementList.getElement(Node.java:2549)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
         at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
         at com.sap.xss.hr.lea.form.FcForm.setLeadSelectionForSubtype(FcForm.java:700)
         at com.sap.xss.hr.lea.form.FcForm.setVisibility(FcForm.java:943)
         at com.sap.xss.hr.lea.form.FcForm.prepareCommand(FcForm.java:308)
         at com.sap.xss.hr.lea.form.wdp.InternalFcForm.prepareCommand(InternalFcForm.java:2041)
         at com.sap.xss.hr.lea.form.FcFormInterface.prepareCommand(FcFormInterface.java:116)
         at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface.prepareCommand(InternalFcFormInterface.java:1887)
         at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface$External.prepareCommand(InternalFcFormInterface.java:1983)
         at com.sap.xss.hr.lea.form.edit.VcFormEdit.onInit(VcFormEdit.java:299)
         at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onInit(InternalVcFormEdit.java:1084)
         at com.sap.xss.hr.lea.form.edit.VcFormEditInterface.onInit(VcFormEditInterface.java:165)
         at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface.onInit(InternalVcFormEditInterface.java:204)
         at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface$External.onInit(InternalVcFormEditInterface.java:280)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
         at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
         at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

  • Requirement for Leave Request.

    Hi All,
               I have a requirement for leave request in Portal. Basically employee will have two managers. Now my scenario is, if there is no line manager then the Approver field must be defaulted with the next manager.
    Is there any BADI for this?
    Thanks!
    Deepak.

    Hi 
    I am facing the same issues, when you wrote the udpate has been done by"I copied the Iview and used the handler IviewLauncher"
    Can you shre more details , and the steps ,  Many thanks

  • Approve Button not visible in Tasks for Leave request in Tasks- MSS

    Dear gurus,
    Approve Button not visible in Tasks for Leave request in Tasks- MSS, anything missing on config end????
    Any suggestions....
    regards,
    Rajasekar.

    hello Bala,
    there was some config missing in UWL, now it is working and here we have got some button launch dynpro ..this is leading to pop where we can approve or reject....
    Thanks alot Bala..
    In this we are getting more info, Display details in SAP GUI, View History, View all Time Approval and Attachments of Documents which leads to leave request details. These may be too flashy for the Manager who are from the typcial production centers....industries...So is there any way out for Hiding these.
    Regards,
    Raj

  • How to create iView for Leave Request Approval for ESS Tab in Portal

    Hello ,
    I am new to  Enterprise portal. I got a requirement for creating iViews.
    How to create iView for Leave Request Approval for ESS Tab in Portal.??
    Please give me clearly or provide any document.
    Thanks
    Risha

    Hi Risha,
    is it customized application ?
    If so in SWFVISU transaction maintaain the entry .
    Use transaction SWFVISU to prepare standard setting for your Workitem in the UWL. --Parameters for Work Item Visualization in the UWL.
    Have a look at below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/59/d516690e854c7090ae15bf492a869f/content.htm

  • Regarding the exact link for configurate type for leave request

    Hi all:
       I am trying to  Customize Types of Leave/ Absence Types for Leave Requests following the route Personnel Management u2192 Employee Self-Service u2192 Service-Specific Settings u2192 Working Time u2192 Leave Request u2192 Processing Processes u2192 Specify Processing Processes for Types of Leave, but it turns not be there, maybe it is because of the sap version, could you please tell
    me the exact route for  Customize Types of Leave/ Absence Types ?
    thank you very much

    sorry , the above link is correct , I found the above linke missing like personnel management--employee self-servce, because Basis didn't delopy some pakcage , could you please tell me what package missed.
    thank you very much .
    Edited by: jingying Sony on May 7, 2010 7:58 AM

  • Auto Approval Workflow for leave request Management.

    Hi Guru's,
    I am working on leave request Workflow i.e WS12300111.
    Now i have to implement the auto approval of workitem if the approver doesnt take any action in 3days.
    1. i have implemented deadline monitoring i.e in Latest end tab
    refer date/time :- Expression Date : %DATUM% Time : %UZEIT%    3 days Action : Modeled  Display test
    Outcome : Reminder Mail
    In outcome tab i have activated Processing obsolete.
    i have created an activity if the deadline is reached so that it should auto approve the workitem.
    in that activity i have created a copy of class CL_PT_REQ_WF_ATTRIBS created 1 method auto_approve. and used function module PT_ARQ_REQUEST_EXECUTE so that it will change the status from SENT to APPROVE.
    But when i apply leave in portal , workflow starts but it doesnt reach to branch auto approve after the deadline is reached.
    Please suggest is the deadline monitoring implemented correctly or not .
    whether the auto approve method used is correct or not
    or there is another solution to this
    I have checked the SWU3 setting and it is green.
    Please Advise
    Thanks in Advance
    chitis

    Hi Rick ,
    Thanks for the Reply.
    But is there something wrong in deadline monitoring i have maintained for the task.
    could you please share the procedure for implementing deadline monitoring specific to auto approval of the workitem.
    thanks in advance
    chitis

  • Need multi level approval for Leave request workflow in ESS

    Hi All,
    Our requirement is for 5 levels of approvals for the leave request raised in ESS  means After employee raises leave request ,it has to be approved by 5 managers one after the other. In standard system only 1 level of workflow and approval  is available so please anybody suggest the solution . Thanks in advance.

    in addition to the above content your workflow consultatn have to create this ask him to
    refer this document
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    for multiple level of aproving the leave reqest and  and orgstructure have to be well formed
    ravindra

  • Issue with ESS Leave request workflow - Deleting a leave request

    Hi friends,
      This is my scenario: An employee has created a leave request from ESS - Leave Request Workflow(Copy of  WS12300111) gets triggered and work item gets created in manager's UWL. After that the employee realizes he has created a wrong leave request so he deletes that leave request from ESS. In this case the workflow instance which got triggered when he created the leave request is under process and the work item stays in the Manager's UWL( there is no terminating event or wait for event step in the approval step of workflow WS12300111), when the Manger opens that work item it shows a blank column, ideally speaking when the leave request is deleted by the employee the work item in the manger's UWL should be logically deleted and the workflow should complete, but this part is not handled in the standard workflow WS12300111as well. How to handle this case. I can put a wait for event or a condition to complete a work item at the approval step but i would like to know how the standard ESS leave request framework works in this case. Please advice.

    Hi sapient
      This is not handled in std. You have clear the next processor in your in method then only the work item will get vanished from the UWL.  For clearting the next processor either you can create a method in your BOR and get the request id. For the request id get the max version and clear the next processor or in the BADI you have wirte your own logic when the change happens what you have to do. This logic has to be written in you BADI.  I thing BADI will start with PT_ check with that name in se18
       You cannot use wait for event or terminating event since its not R/3 workflow its ESS workflow you cannot use ternminating event or wait step.
    Regards
    vijay

  • Second approval level for leave request needed

    Is there a best practise solution to modify the standard leave request WF12300111, so that a second level of approval is possible?
    It is necessary that first the team leader approves the request.
    After him the department head has to approve the request as well.
    The department head (line manager) can be determinated through the organizational management (OM) in the way it is done in the standard WF12300111.
    But how to determinate the team leader who isn't labled in the OM unitil now?
    Is it necessary to create a new link in om, which links the team lead to his team members and vice versa?
    Or do you suggest a better way to solve teh problem?

    as in all own implementations you should copy the sap workflow to an own one, like Siddharth proposed. I didn't try this, i never needed second level approval so take what i say with a grain of salt.  Copy the task that deals with the approval (the one showed in the UWL of the first manager) for the next approval (second manager). It should be then inserted in the workflow after the first approval. Between the original approval task and the second one you should insert a step where you call your own abap class to set the new processor of the workflow - copy the one used by SAP in the first approver task and remove what you don't need, modify the stuff that you could use.
    You might be able to get the approval in the approval application using the BADI proposed by Siddharth but I am not sure using that BADI will create a UWL entry for the second approver.
    @SAP: a propos the class used for workflow task methods--> stop creating final classes !

Maybe you are looking for

  • Keyboard & trackpad not active when booted!

    Got a white 2.0GHz Intel Core2Duo 13" with 1GB RAM and OS 10.5.8. The keyboard and trackpad are suddenly locked when the the machine is booted. The cursor is in the same place after restart - not movable - but not frozen either. Because when I insert

  • Calculating glyph length

    Hello, I want to know if there is a possiblity to calculate the length of a given String with all Font-parameters given as well without drawing the glyph on a screen device. I need to find out the length of the String in pixels in order to calculate

  • DB installation error

    Hi, During DB installation at Update database statistics Installation error. Error shows that MTU- 03010 Execution of the command "/sapmnt/C11/exe/brconnect   '-u' '/' '-c' '-f' 'crsyn -o 'SAPC11' finished with status TST_ERROR brconnect.log error /u

  • Exchange Failover Cluster Resource

    Hi, Can someone help confirm if amending the Exchange 2010 DAG Cluster Resource to include an empty role with just a shared IP is supported? This is not for any an exchange function but for a backups to target an active member, in the event of a fail

  • InDesign unexpectedly quits when trying to create pdf

    in Design and photoshop unexpectedly quit when i try to create a pdf from within the programs. what can i do to fix this? i can't even creat the pdf from acrobat because it says that the file type is either not supported or the file is damaged, but i