Workitem ID of Leave Workflow

Hai,
I am using a custom workflow for ESS leave application. How can I get the Workitem ID of the Workitem when a Workflow is triggered from ESS Leave Application.
I have to get the Workitem ID to a program wherein, it will show the trace of the workflow like who all have approved the workitem, with whom the workitem is pending right now etc.
Please do help.
Regards,
Jubish

It this is ECC 5.0 and above then you can check this in
SPRO--> Employee Self Service -> Application Specific settings -> WorkTime -> Leave -> processing of leave -> Select type of leave you are applying
and then open details, it should list workflow template used for New leave, Cancel and delete leaves.
Please let us know if otherwise.
Hope this helps.
Rgds

Similar Messages

  • Leave Workflow Not triggered

    Hi All,
             We configured the Leaves through ESS and it was working fine, but abruptly, the Leave Workflow stopped executing. I have maintained the following settings:
    1. In the leave settings in SPRO, "Process Request Using Workflow" option is checked and the WF Id is 12300111 for all the three entries.
    2. Display field for next Agent is checked. In ESS, the manager's name is displayed in the leave app.
    3. Request has to be approved option is checked.
    4. In SWFVISU, TS1230097 is maintained as 
         APPLICATION        LeaveRequestApprover
         DYNPARAM          wi_id=${item.externalId}
         PACKAGE            sap.com/ess~lea
    5. The task TS1230097 is maintained as a General task .
    I tested the application through PTARQ & through ESS, the leave is applied, but the Workflow is not triggered. I checked the WF Tasks in SWIA, but No Workitem exist there. There's no entry in SWEL.
    Can you please suggest, where are we missing to trigger the workflow.
    Cheers!!!
    Umang

    Hi Umang,
    I do not see any problem with your workflow configuration.
    Most probably the problem is with your rule group configuration.
    As advised before, using WEBMO feature, find out what is the right rule group for the test employee (for whom you are applying leave). Then ensure that in the SPRO "Personnel Management -> Employee Self-Service->Service specific settings -> Working Time -> Leave Request -> Processing Processes--> define Absences/Processing Processes" there is an entry for the Rule group and the leave type you are applying for.
    View that entry and ensure that you have all the WF settings as told before.
    Thanks
    Krishna

  • ESS, Leave Workflow

    Hi All,
         We are on ECC6.0, implementing leave workflow with multi level approver (WS12300111). We are using two custom rules to find out the 1st and 2nd level approver.  The workitem is going to the UWLs of the correct agents, no problem.
         There is one “Approver” field on the Leave request form. SAP is pre-populating the field (I think using the standard rule AC00000157, not sure where exactly). Only that agent can see the leave request, whose name is coming to that field. Any other agent is unable to see the leave request even though he receives the workitem.
         I think some configuration needs to be changed, so that any approver can see the leave request and approve. Can anybody please help?
    Thanks and Regards,
    Abir Kundu

    Hi Sagar,
    Thanks for your reply. Yes I've noticed that you can disable the Approver field and even you can change way how the next processor would be selected by customizing.
    I'll test it today and let you know.
    Regards,
    Abir.

  • Leave Workflow item from Personnel no. of an employee

    Dear All,
    I just wanted to know that is there any transaction or report which displays leave workflow items for particular employee.
    Thanks in Advance
    Regards,
    Bharat

    Hello,
    You can use tx SWI6
    as input use the businessobject and the key. This will give you an overview of all workitems which worked whith this object instance.
    Kind regards,
    Peter

  • Leave Workflow not getting Completed

    Hi,
    I have a custom leave workflow which is a copy of the standard one. I added two more levels for the workflow and that's the change that I made to this. Now the issue which I am facing is that even after the Final approver approves, the leave, the workflow is not getting completed . The workitem is getting completed and the data is saved in the infotype. What could be the reason for workflow still in Started status? Please do help.
    Regards,
    Jubish

    Hi AK,
    But, what is the terminating event for Leave? Could you please tell that? The thing is that, if the terminating event is not working fine, then the same issue will be there in for standard leave workflow also right?
    Regards,
    Jubish

  • Issue with muliti level custom Leave Workflow

    Hi,
       our Leave Workflow is multi level Approvals based on Absence codes.
       Say for Example : Case 1: For casual leave 2 Level Approval,
                                  Case 2: For Sick Leave 1 Level Approval,
                                  Case 3: For Maternity leave 3 Level Approval.
      The Workflow is working fine for Case 1 and Case 2. Workflow is Getting Completed. No issues at all here.
      The Issue is with Maternity Leave there are 3 level of approvals Manager 1, Manager 2, Manager 3.
       First 2 Managers are able to approve it from portal and for third level approval the work item is going to Manager 3's UWL.
       But when we click on work item it is showing the message like your Work list is Empty.
       Even we have forwarded the work item to Manager 2 and Manager 1 using SWIA. From their UWL also we are getting this same message
       your Work list is Empty.
       Observations:
          Request status is in SENT status.
           Visualization parameters are fine.
           Agent is Ready.
           In R3 Level we are not able to see the worklist details in Approval mode in PTARQ tcode for Manager 3,
          For Manager 1 & Manager 2 it is fine there we had approved in PTARQ.
    Here are the Screen shots.
         What Could be the issues? Are we missing something?
         Ideas and Suggestions are welcome
         Regards,
         Arun

    Hi Arun
    Can you please give a screen shot of the technical workflow log with the step history selected for this step? (ensure that you have tried executing it once from UWL and rcd the same message), then get to the backend WF log).
    Also, is the same Workflow task sent to all three levels in a loop or is it a different task at level 3?
    Is there any deadline monitoring assigned to the task (for third level)?
    Regards,
    Modak

  • Problem in the Leave workflow

    Hi All,
    We have a leave workflow attached to a portal. In that one step where if the employee applies for leave the mail notifivation will go to the employees manager. We have coupied the standeard task and we are using. Suddenly this step is not working. The mails are not going to the managers. In this task the class and the mathod we are using are
    Object Type          CL_PT_REQ_WF_ATTRIBS
    Method               DUMMY.
    Can anybody tell me what is the problem and what to do for solving this.
    Thanks & Regards,
    Sreelatha Gullapalli.

    Hello,
    Perhaps this thread will help:
    [Question] Leave Request Cannot be Open in SAP Business Workplace
    regards
    Paultje Bakker
    Hanabi Technology

  • Leave workflow in ECC 6.0 using  business object ABSENCE

    Hi Friends,
    I want to develop leave workflow in ECC 6.0. The BO event which is getting triggered when a leave request is created from PA30(Leave request will be locked when it is created) is ABSENCE.REQUESTED.But If i check the BO ABSENCE all the methods in that BO are  obsolete. Even there is  a SAP note(731260) which says that ABSENCE should not be used and use BUS7007 should be used, but BUS7007 does not have any event. In this case how should I proceed. Please advice.
    Regards,

    Hi Sapient,
    Below are my thoughts.
    Per Information I collected methods of BO ABSENCE are marked as Obsolate because the underlying BAPIs are discourged by SAP as they may create data Inconsistancies. and have suggested new BAPIs
    bapi_ptmgrattabs_mngdelete
    bapi_ptmgrattabs_mngcreation
    bapi_ptmgrattabs_mngchange
    instead of one used in BO ABSENCE.
    bapi_absence_delete
    bapi_absence_create
    bapi_absence_approve
    bapi_absence_request
    bapi_absence_change
    See the BO Documentation for more information. Methods of BUS7007 are doing exactly the same.
    So I think we you can keep using the Events of ABSENCE and Methods of BUS7007.
    Regards
    Shital

  • Wait step in leave workflow wait for 20 min

    hi friends
      I have designed a multilevel ESS leave workflow. After 1st approver the status need to change from approved to sent after that i am using a wait step with condition REQ.STATUS = SENT. This condition is met immediately but it still waits there nearly 15 to 20 min after that only it goes to the next approver. I dont no y its happening even after the condition is met. There is background job SWWCOND is directly related to this wait step. I have scheduled this job for every 3 min. But its long time to execute. If i remove the wait step its shows dump. How to minimize the time of execution of the wait step.
    Regards
    vijay

    Hello,
    Let me know if I've understood the problem correctly.
    You have a workflow with two wait steps.
    These wait steps rely on the running of SWWCOND
    to check if the conditions have been satisfied.
    The workflow takes 15-20 mins to pass the first condition, even
    when already true, but takes little or no time to pass the second
    condition.
    SWWCOND is scheduled to run every 3 mins and doesn't run for more
    than a couple of minutes.
    My questions:
    - Are you absolutely certain SWWCOND runs every 3 minutes?
      Do you see that happening in SM37 while your workflow is waiting?
    - You've said that the first condition is REQ.STATUS = SENT,
      what is the second condition?
    - Is REQ.STATUS a virtual attribute?
    - Where is REQ.STATUS set to SENT? Outside of the workflow?
      Does it do so without an error? Is a commit work done?
    regards
    Rick Bakker
    Hanabi Technology

  • Issue in customize leave workflow

    Hi Guru,
    i have developed a customize workflow which  have 2 approvers and one initiator. when initiator create a leave workflow then he sends to the first approver  . once the first approver  approve the the leave request and sends it  to the second approver .when second approver recieves a mail , and click the link in uwl, system open the webdynpro application but did not contain any leave request due to which second approver can not find approve / reject button .
    As it is an urgent please help me out ASAP.
    Edited by: Sadia Kamal on Nov 25, 2011 12:48 AM

    Are you using the standard approval task TS12300097? If yes, then you need to take care that in the first approval step, the leave status is not getting changed to 'APPROVED'. If the document status gets changed to APPROVED after the first approval step, the posting report will post the leave document and hence the workflow will get completed. In such a case, the second approver will not get any item in his approval list.
    Hope this helps

  • Ess/Leave Workflow Still In Process(In a specific snario when Escalated )

    Hi Guru's,
    I have a problem with Ess/Leave workflow.
    when the leave is applied from the portal which is triggering workflow and reching to the right agent and when the leave is withdrawn , then which is completing the workflow which is fine.
    Recently i have added Escalation functionality using deadline monitoring which is working fine.
    But when the leave request is escalated and withdrawn from the initiator is not changing the status of the workflow to be completed and still continuing in the Still In Process.
    To complete the workflow ,there is an wait event after the approval process which is waiting for the status change for posted or withdrawn or error and working fine when the work item stayed with the direct manager and no escallation is happend.
    When Escalation happend and the leave is withdrawn the status is changing in the workflow container to withdrawn but the event is not firing in the wokflow which needs to be triggered to complete the workflow which is not happening and the work item keeps on escalating to the other managers.
    Please help me ASAP and let me know if anybody not clear about anything.
    Regards,
    Raj.
    Edited by: rajasekhar bhupathyraju on Sep 6, 2010 11:46 AM

    Helo Every one,
    thanks for your inputs,
    I m not sure that wether i explained properly or not.But i will try to explain more elobrately.
    My leave request workflow is Zworkflow which is working fine in the production.Recently in the last month business request for escalation of leave request when direct manager not approved with in the time frame.
    So i added latest end to the Approve task which uses the ABAP class CL_PT_REQ_WF_ATTRIBS and Method Dummy.
    So the task has 3 outcomes one is deadline reached,process obsolete and processed. and after that i added a loop which will create new work item when escalated.
    When i apply a leave on the portal the workflow is triggering and stopping in the Approve step in the log which is fine and when i with withdrawn the leave without any escallation it is taking one of the brach Processed which i mentioned above and reaching to the event and completing the workflow which is 100%.
    When the direct manager doe'nt approve then it is escallating to the next level manager which is fine.Once the escallation happen and the leave is withdrawn by the Employee(Initiator) then it is not taking any of the 3 paths which i mentioned above and not reacting at all.But the status in the workflow container REQ.STATUS is changing to "WITHDRAWN".
    The same thing is happening for the APPROVE once escallation happens.It keeps on escallating even the leave is approved and posted in the database.
    Please reply me if you are not clear.
    Thanks,
    Raja.

  • HELP NEEDED: ESS Sick Leave Workflow

    Hi ESS/MSS Gurus,
    Good day!
    I am a newbie workflow consultant currently working on enabling ESS-MSS for a client. In summary, here are their requirements:
    1. Leave Requests and Clock In/Out Corrections - Upon initiation of employee request, the work item is sent to the manager for approval. Regardless of the decision (either approve or reject), the employee will be notified via an email notification
    2. Sick Leave Requests - upon initiation of employee request, the work item is sent to the company doctor for approval. Regardless of the decision (either approve or reject), both the employee and his/her immediate manager will be notified via an email notification
    Here are some details regarding how I went about it:
    1. Leave Requests and Clock In/Out Corrections - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process) to notify the work item initiators.
    2. Sick Leave Request - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process). The approval process is pointed to the Position Company Doctor. After which a step was inserted after the approval process which uses a customized method (using FM SWX_GET_MANAGER) to determine the employee's manager. Then send mail steps are executed for the employee and the manager
    3. Clock Corrections and Sick Leave/Leave Requests belong to the same Rule Group
    During testing in our sandbox client I was able to successfully test all of the workflows. However, when I migrated the changes into our pseudo-QA system, I cannot launch the Sick Leave workflow from ESS. I encountered the following errors in PTARQ (standard leave request and clock in/out correction are ok):
    1. Scenario 1: applied leave coincides with the working time of the employee
       "Document created with information: P2 848: Absence encompasses planned work time
    2. Scenario 2: when only the total nmber of hours is entered for the applied sick leave date
       "No document created: HRTIM_ABS_REQ 094 Indentical clock times were adjusted, Check the entries"
    3. Scenario 3: applied leavedoues not coincide with the working time
       "Document created with warning" HRTIM00BLPRETRO 001 Time entry triggers retroactive accounting in payroll"
    For all cases, no work item was created in the back end.
    I would like to tap unto your wealth of knowledge and experience on how to address such errors. I need to determine if this is a misstep in the workflow, HCM, or ESS/MSS configuration to better isolate the errors.
    Your immediate response is highly appreciated.
    Regards,

    you dont need a custom WF first of all, You can directly use standard one cause we have a standard mail program
    called rptarqemail
    ie
    The mails will be directly triggered to the mail address once you run rptarqemail.
    Please check if you are running the report using the option since last
    run. The procedure is usually this :
    1. Create a Leave Request
    2. Execute the report RPTARQEMAIL.
    3. Approve the Leave Request.
    4. Execute the report RPTARQPOST.
    5. Execute the report RPTARQEMAIL.
    Now to determine different approvers for different types of leave you can use the option of badi PT_GEN_REQ
    IF_EX_PT_GEN_REQ~FIND_RESP_AND_DEFAULT_NEXT_PRC.
    Method FIND_RESP_AND_DEFAULT_NEXT_PRC of badi
    PT_GET_REQ  might be utilised here.
    Please have a look at the  method
    CL_PT_REQ_SEARCH_NEXT_P~SEARCH_NEXT_PROCESSOR.
    If you are implementing the badi then make sure you copy all the methods
    and implement the one, as mentioned.
    also note that
    Standard Leave request application offers the following options to
    determine the Next agent. This specifies whether and how the next agent
    of a leave request is to be determined.
    Last Agent: The system reads from the database the last agent to have
    had requests from this employee.
    Line Manager: The system uses the organizational model to determine the
    agent.
    Last Agent, Then Line Manager: If no agent is entered in the database,
    the system then uses the organizational model to determine the agent.
    No Calculation/Manual Entry: The system does not determine a next agent.
    Employees can enter an agent manually.
    However if the customer has a different requirement, the BADI PT_GET_REQ
    method FIND_RESP_AND_DEFAULT_NEXT_PRC is provided for this purpose.
    the message you get is correct and its a information message which will not stop leave request, they depend upon customisation which can be hidden too
    check here
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestCustom+Messages

  • Leave Workflow escalation

    Hi Experts
    My client is having one requirement regarding the escalations of the leave workflow after the certain period of time. I am using the standard leave workflow WS12300111.
    For e.g.
    Employee applies the leave for 27.02.2009- 28.02.2009 and his reporting officer will not take any action till 26.02.2009 so, automatically the leave request should escalate to the managers' manager for approval.
    Please help me in this regard
    Thanks & Best Regards
    Sheetal Gupta

    Dear Kumar
    Can you please let me know the point on which I can fix the no. of days in WF.
    Thanks & Best Regards
    Sheetal Gupta

  • Standard Leave Workflow

    Hi,
      We are using a copy of standard leave workflow 12300111. It is working perfectly. But sometimes for few Pernrs the agents were not picked up correctly.
    I saw the BOR AAGENT and also the class CL_WFD_ADHOC_PROPERTY_DB but not able to decide on anything.
    I saw the Agents tab in the workflow container in SWIA it has only US value to it. If i check the GUID, that particular GUID does not have the Agent assigned to it instead it has only US value in the table SWDAAGNTS.
    The workflow in in Started status.
    Please let me know what could be the issue.
    Thanks,
    Sri

    Hi ,
    check for pernr if it has multiple users assigned / or relevant authorisations are provided.
    Hope this helps.
    If not , provide more information , so that the community can contribute further.
    Best Regards
    Saujanya

  • 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

Maybe you are looking for

  • My ~/Documents folder is nearly empty! Gah!!

    I was working remotely from my MacBook on a file that was on my iMac. My MacBook started complaining about disk space being full (which isn't true) and started beachballing for about 10 mins, so I forced a reboot. When it finally booted back up, I lo

  • Can't find Time Capsule with Airport Utility on ethernet but can on configure other.

    OS X 10.8.4, 24" iMac,TC 1st generation, Airport Utility 6.3 or 5.6, TC Firmware was 7.6.3 downgraded to 7.6.1(no effect), reinstalled OS X 10.8.4, have done a factory reset of TC, TC is visible to finder and Time Machine, both work fine. Internet wo

  • How to Trace ABAP Webdynpro Application?

    Dear Friends, We are trying analyse performance bottle neck for ABAP Webdynro application. We have an Webdynpro Application named Z_APPLICTION_URL in NW 7.0 SP16 which is calling 4 RFC's in R/3 4.7 to fech data. Users lauch this application using URL

  • View on actvity type planned for the period

    Hi all , I am creating production plan through SOP for a long period say for ex 12 months. Plan is transferred to demand management to create a demand programme. Then MRP is run to create planned orders to fulfill the plan. Now i want that how can i

  • Does bios 1.08 really fix the CPU temp?

    I just plopped in a shiny new 3700+, and I noticed that unlike my old 3200+, my temps now don't read correctly.  My old 3200+ seemed to read accurately @39c.  Now with my new 3700+ it reads 63c.  I have confirmed that it is not running anywhere near