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

Similar Messages

  • 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

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

  • 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

  • Workflow for authorization requests

    Hi
    First of all
    I don't normally work with SAP security and authorizations, so please tell me if my question is in wrong forum.
    My question
    Does any Workflow for authorization requests exist.
    If I search SDN and google, I get lots of hits about authorization for workflow, but what I search is workflow for authorization requests.
    Background
    I often observe time wasting discussions about "who should have authorization for what", and I think this is caused by lack of well defined procedures describing the business rules and process for granting authorizations to a specific user.
    Of course I understand the need for a more overall design and implementation of authorizations, but at the same time I observe, that a very common scenario is, that a new or existing employee is asked to take care of some business task or maybe a system maintenance task like customizing, but the user don't have the correct authorizations to perform this specific task.
    So
    Does any standard workflow exist for handling the process of requesting, approving and implementing authorizations?
    Or is there a better approach to this problem?
    Kind regards

    Hi,
    if you mean a request for new role assignment then there is no standard SAP workflow for this. You could implement. SAP offers other tools that can help you to achieve this. GRC suite has a tool for role approvals and it's super easy to implement approval workflow in SAP IdM. 3rd party IdM solutions have workflow capabilities as well. External tools such as SAP IdM allow you to perform role assignment over multiple SAP and non-SAP systems (there are other benefits as well).
    If you mean request to add missing authorization object to already existing role then I don't  think there is a need for workflow. In stable environment this should not happen very often and you still have to create/modify security role in DEV and then posh it through QA environment to production.
    Cheers

  • 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

  • Standard workflow for downpayment request approval

    Hi,
    Is there any standard workflow for downpayment request approval?
    Please suggest.

    Hi,
    There is no standard flow for the down payment request generally in many projects down payment requests are rarely created process starts with Down payment request F-47 then Down payments F-48
    then clearing of Down Payment f-54
    Down PAyment request is just a template.If you want to use then use then u can skip this step.
    regards
    Deepa

  • 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

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

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for

  • Service Account Management through Request Templates

    Hi, I am trying to implement Service Account lifecycle use cases (Create, Modify, Delete) on 2 resources(AD User, iPlanet User) through Request templates. In this case OOTB tasks - Service Account Alert, Service Account Changed, Service Account Moved

  • Reducing photo size/resolution

    Hello! Trying to print tiny versions of much larger photos on a cv. How can I reduce the image size, dpi, resolution etc, to make the photo file small enough to print without causing problems? Should I try to export it to a web page to create a thumb

  • Probably a bug

    Hi, I'm writing this XML and XSL code and it's running perfectly on "XMLSPY" but when i use it on Oracle portal I receive the error the page could not be displayed plz fine the XML and XSL file hereunder: -----XML----- <?xml version="1.0" encoding="I

  • AVReceive2 in a Web

    Hello. I want to create a web that reproduce the video and the audio that AVReceive2 receives. the video and the audio must be in the same player, like a normal Video in youtube. Thank u in advance.

  • Why is the iPad charging very slowly and not completely

    The iPad recently has stopped holding its charge and is charging very very slowly--even after being plugged in overnight it is only half charged. I did just download the upgrade and am wondering if that could have something to do with it?