ESS Auto Approval Leave Request

Goodday all,
I'. trying to create a WF which will have a step tp auto approve a leave request after 5 days of submission to the approver. I have made a copy of the standard WF12300011 and have included 'modeled deadline monitoring' step just before 'request approved?' step. This is where i'm stuck, once teh deadline is obsolete, i will need to create a new step to automatically change the REQ.STATUS to 'Posted' OR 'Approved'. How do i do this step? or is there a better way to do things? Thanks in advance
Regards

Try Like this
1. As you said that you hvae a copy of the standard workflow so when the Modeled Deadline monitoring is reached any ways a outcome will be included in the WF template , so what you can do is in that outcome you include a Activity which uses the method of conatiner element REQ  which will have the current request instance
REQ type is cl_pt_req_wf_attribs so in this class you hvae a method with name APPROVE so use this mehtod in the Activity that you will create in the modeled deadline monitoring outcome. this will approve the request and when ever the report RPTARQPOST is executeed the approved request will be posted into the respective infotypes.
If you hvae any more queries plz let me know, because i also had the same issue and i fixed that in the above mentioned way.

Similar Messages

  • ESS/MSS: Approve Leave Request in UWL - not working

    Hi to all,
    we are using web dynpro ESS/ MSS (SAPESS07_12/ SAPMSS07_4) in portal NW04s for mySAP ERP2005 and are using UWL in order to approve leave requests. If employees are creating leave requests, everything works fine. After that the manager opens the leave request in UWL, the web dynpro application is openening succesfully and after some clicks he reaches the buttons to approve or reject the leave request. But by pushing one of them the following messages occures :
    <b>Workitem 000000000000 Cannot be read</b>
    After pushing the button again, another message comes up:
    <b>No Customizing for status typ ARQ, Status approved...</b>
    By the way, the same errors also come up when the employee wants to delete his leave request which is not approved.
    Any ideas, what can be the reason?
    Regards,
    Frank

    Hi Ashutosh,
    I have found the reason. The user <b>WF - Batch</b> in sap erp, which is using the RFC Destination for workflow, was locked. Well, it is a a little bit strange for a cummunication user that he becomes locked. Unlocked him, now all works.
    Thanks for your support.
    Regards,
    Frank

  • Error while approving Leave request from UWL

    Hi Experts,
    We are getting following error while manager clicks on Universal Worklist to approve Leave Request. On system we have assigned ess id to employee no. 43 in IT 105-0001 but it gives error message about employee no. 167 which has nothing to do with this leave request.
    Please go through following ST22 error log..
    Short text of the error message:
    "No data exists in this period for infotype 0105 and employee 00000167."
    Trigger Location of Runtime Error
        Program                                 SAPLPT_ARQ_REQUEST_U
        Include                                 LPT_ARQ_REQUEST_UIAF
        Row                                     186
        Module type                             (FORM)
        Module Name                             DUMP_IF_ERRORS
    Source Code Extract
    Line  SourceCde
      156   ENDCASE.
      157
      158   IF lock_indicator = 'X'.    "ANK Note962342
      159     status_ui = c_req_sent.
      160     status_ui_text = 'gesendet'(s04).
      161   endif.                      "ANK Note962342
      162
      163 ENDFORM.                    " set_request_status_ui_text
      164
      165 &----
      166 *&      Form  dump_if_errors
      167 &----
      168 *       text
      169 ----
      170 *      -->MESSAGES   text
      171 ----
      172 FORM dump_if_errors
      173   USING
      174     messages   TYPE ptarq_uia_messages_tab.
      175
      176   FIELD-SYMBOLS:
      177     <message>  TYPE bapiret2.
      178
      179   LOOP AT messages ASSIGNING <message>.
      180     IF <message>-type EQ c_message_error.
      181
      182 *Note 1168656 begin
      183 *      MESSAGE x999(53) WITH
      184 *     <message>-message
      185 *     <message>-type.                                        "#EC *
    >>>>>       MESSAGE <message>-message type 'X'.
      187 *Note 1168656 end
      188     ELSEIF <message>-type EQ c_message_abend.
      189 *Note 1168656 begin
      190 *      MESSAGE a999(53) WITH
      191 *      <message>-message
      192 *      <message>-type.                                       "#EC *
      193       MESSAGE <message>-message type 'A'.
      194 *Note 1168656 end
    195
    196     ENDIF.
    197   ENDLOOP.
    198
    199
    200 ENDFORM.                    " check_errors
    201
    202 *&----
    203 *&      Form  prepare_customizing_attibs
    204 *&----
    205 *       text
    Would really appreciate kind guidance to resolve the same.
    Thanks.
    Aashish

    Hi Ashish,
    Short text of the error message:
    "No data exists in this period for infotype 0105 and employee 00000167
    This clearly suggests that the employee data is not up to date.
    Go to Tcode : PC00_M40_CLSTR
    here 40 is the country coding or the Molga value for India. Like wise which ever country you work for, enter the country code there instead of 40.
    Enter the pernr as 00000167 and you would find till which date the payroll for 167 has been run successfully.It has to be in green color.
    If the payroll is not run till the period in which you are getting the error ( which obvisouly is what the error means) try running the payroll by going to the Tcode : PC00_M40_CALC or you can ask your HR team to run this payroll for you and you are good to go.
    Good Luck!
    Sandeep Tudumu

  • 500 internal error while approving leave request

    Hi All,
    One of my user when trying to approve leave request, he is getting the following error. it was working previously but suddenly thsi error has come
    500 internal server error
    Application error occurred during request processing
    Details: com.sap.tc.webdynpro.services.sal.core.Dispatcher exception: The requested deployable object 'sap.com/ess~lea' and application 'leaverequestapprove' are not deployed
    Can anyone advise on this error please!!!
    Thanks!
    Swarnaprakash

    Dear Swarnaprakash,
    Hope you are doing good.
    Do make sure that all ESS related applications/services are running.
    Please try to restart the applications this way:
    1. start the telnet admin tool
       telnet <hostname> 5<instnum>08
    2. logon using the J2EE Admnistrator user
    3. lsc (to list the available servernodes)
    4. jump <servernode> (usually jump 0)
    5. add deploy
    6. start_app -all
    Please have a look at the below for more information:
    [http://wiki.sdn.sap.com/wiki/display/TechTSG/(JSTSG)(Telnet)DeployController+Commands]
    and
    [http://help.sap.com/saphelp_nwpi711/helpdata/en/45/0ad8e787652d6ae10000000a11466f/frameset.htm]
    If the issue still persists, please check if all the SDAs have been deployed for ESS (SCA->SAP ESS and Business packages)
    Thank you and have a nice day :).
    Kind Regards,
    Hemanth

  • Change the format in advanced serach of approver-Leave Request

    Hi,
    Can we modify the option in advance search window that we get in the Leave Request - approver field.
    (ESS- Working time- Leave Request- below we have the differnt required entries to be made.)
    Regrds,
    Nazeer

    Hi Vamshi,
    You can change the type of leave shown in the dropdown-box, as well as the sort order of these types.
    Go to the IMG, choose Personnel Management - Employee Self-Service - Service-Spesific Settings - Working Time - Leave Request - Processing Processes - Specify Processing Processes for Types of Leave.
    Here you can set up the types of leave you require. In the detail view of these types you can specify the sort number, which is the sort order of the dropdown-box.
    Regards,
    Ellen

  • UWL Filter causing error while approving Leave Request

    Hi Guys,
    We recently applied MSS SP17 and we changed our UWL filter BADI to SWK1 Function group - SWK_LOCAL_INBOX_GET.
    The filter works fine, but when we try to approve leave request, it somehow calls this piece of code again and does not allow (DUMPS) BADI to set the filter saying - this field is not modifiable.
    Has anybody seen this before. Can anybody let me know how to resolve the issue?
    Regards,
    SC

    We added a code that if leave request calls this code...skip it.

  • Issue in Deletion of approved leave request using ws12300111

    We are using Std workflow 12300111 and its working fine for new leave request and change leave request but when raise request for deletion of approved leave request the workitem created and info type  updated automatically without seeking approval from manager. When you check the workflow log the agent determination happend and updated the info type 2001.  This issue is in production system , At the same time if we tested the same scenario in QAS its working fine, ie its asking approval from Manager.
    Pl help on this issue.
    Regards,
    Muthu

    This is correct and intended functionality, NO WF IS triggered.
    Let me explain, There is no WF triggered when APPROVED (NOT POSTED)
    absence is deleted. This is standard, You can trigger a mail
    which You had already done so. But there will be no WF triggered.
    So if you notice
    when the leave request is in status POSTED, it calls the workflow,
    but if the leave request is not POSTED yet, it is doesnt call the
    workflow.
    There is no standard Workflow triggered when the Approved leave request
    has been deleted by the employee!
    This step should be configured by the customers as when to trigger a
    mail to the Admin or Supervisor, when deletion or cancellation happens.
    The workflow template is a simple template, You can modify
    to suit their needs.

  • Multiple Approval Leave Request in Fiori

    Hello,
    Do we have multiple approval Leave request in Fiori and how do we enable it.
    In EHP7 portal we have multiple approval and Fiori app should be in synch with the same. However, I could not find any option to enable the multi-level approval for leave request in Fiori.
    Regards,
    Divya

    Hi Divya,
    Are you talking about, multiple levels of approval in approve leave requests app in Fiori.
    This totally depends on the workflow template you are using. If the workflow you use in your portal handles multiple approval, your approve leave request should allow the same too. Make sure you are getting the workitems in your sap inbox.
    Let us know if this is not what you are asking for.
    Regards,
    Tejas

  • Approval Leave request for Wave2

    hello guys:
    For approval Leave Request for Wave 1,  we need to define an Approval Scenario on the gateway side. Just want to know for Wave 2, where should we define the workflow task id ?  should we define it on the ERP side ?
    thanks
    tony

    Hi Tony,
    The Workflow id definition remains same as wave 1.
    On the gateway system.
    regards,
    Meghna

  • Cancel approved leave request by manager

    Hi
    Can a manager cancel the approved leave request?
    any standard workflows for this.
    Regards
    vijaya

    Hi Andy
    Yeah i thought so..
    but in case there is an emergency work lying and that has to be done at any cost..in that scenario manager have to cancel the leave request.
    is there any standard ones.if there is no standard ones we might not use this scenario.
    Thanks
    vijaya

  • Loan Auto approval while requesting in ESS

    Hai all,
    I am having a requirement that while applying a loan req in ESS that request should not go to the manager for approval.
    It should be approved when it is applied. So that the status should be approved when applying itself.\
    So when i run the report it will post the request in infotype 45.
    what is the necessary setting needs to be done so that the request will be approved when sending itself.
    Kindly give some suggestions.
    Thanks,
    Nalla B.

    Hai all,
    Thanks for ur valuable response. There is a small twist in this. Am having three type of loans in which two required approval one does not required any approval.
    Am using the standard Wd 18900041and  using the BADI   HRPBSINGET_APPROVER to find the approver and sending the request to approval through WF.
    So how can I achieve the auto approval functionality for that one type of loan alone???
    Can I follow the following steps
    1) Deactivate the WF in config.
    2) Restricting the BADI to find approver only for the other two type of loans.
    Pls give some suggestions.
    Thnks in advance,
    Nalla B.

  • How to approve Leave Request for Workflow in ESS?

    Hey! Experts,
    Currently, I am working on ESS Leave Request Workflow referening the Standard Workflow Template WS12300111. The requirements are as such, requested leave need to be approved using TS 12300007 'Approve Process'. Here, I have created a customized Rule to get the actual agent since the requirement is like i have to check if the employee who is apply for leave on the date is present in any project (alternative C-project Org. Structure is maintained) than his / her project manager will be the approver else i need to get the approver from the central HR Org. Struct. For simplicity consider the employee is currently present in only one project.
    Also, for information the Rule is working fine. That is the workitem is received in the appropriate agent UWL.
    Now my doubt is, there is no approve  / reject button coming in the workitem in UWL
    Also, after refering documentation on help.sap.com i came to know that some reports need to be run in background for approval to be done.
    Here, I am confused and I am stucked as I dont know which reports need to be run and how will the approval will be done in MSS.
    Kindly, give me some guidance on the same so that i can proceed.
    Thnx! in advance.
    And yeah points will be rewarded on giving suitable answer for this.
    Regards,
    Mistry Wasim

    Hi,
    Following are the some important points you should understand about ESS Leave Request Workflow
    1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
    2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
    3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
    4. Apart from schedule job as mentioned above, you also have to schedule a background job for program  RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
    as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
    Good Luck !!
    Regards
    Krishna Mohan

  • Unable to approve leave request in ESS

    Hi
        While trying to approve leave in ESS/MSSm getting the following error
        After clicking the link in SAP inbox / Universal Work List in MSS an error is encountered.
        In R3 we have analysed the error in ST22 transaction which says--
    The current application triggered a termination with a short dump.
    There is no data for infotype 0105,personnel no. 0 E .
    Kindly suggest what to do..???

    hi,
    check the Infotype 105 subtype 0001 in Transaction PA30 for the Personnel no.
    Regards,
    Boobalan.

  • Reg : Getting error while approving leave request

    Hello Experts,
    Manger is getting and error message u2018Work item 000000000000 cannot be readu2019 while
    Approving the leave request of one his reportee. This error is triggering for only one
    Reportee. 
    Experts please kindly help us.
    Regards,
    Raj

    Hi Raj,
    There are a number of issues that could cause this.  Can you share your scenario (where is manager approving the request - via SAPGUI, ESS, MSS?)  Are you using an SAP standard workflow?
    Plus, there are lots of threads in SCN on this topic.  Have you checked any of these?
    Good luck,
    Sue

  • ESS - RPTARQPOST (Approved Leave)

    Hello,
    I was wondering if anyone has ever worked on the ABAP program RPTARQPOST which posts approved
    leave via infotypes 2001.
    Currently, people apply for leave thorough our ESS system. RPTARQPOST is then run and the infotype
    leave records are created. Everything is ok when applying for a full days leave.
    The problem is when someone requests a half days leave. This is being inserted into the infotype as a full
    day and not a half day. Also, no start and end times are recorded. They are being inserted as 00:00:00.
    I am ready to try amend the ABAP code but was wondering if this is something that could be sorted via
    workflow or a config issue??  ( I don't have any workflow experience)
    Many thanks
    Andy

    Hi,
    Check leave type.....
    For that leave type the entry in hours should be permissible , this is done with the help of spro setings
    Thanks and Regards

Maybe you are looking for

  • [iPhone SDK] Multiple Apps and App ID nightmare

    Maybe I don't understand this quite well or there's something wrong with Apple's Documentation. I've setup a single App ID using an asterisk for all my apps: "com.me.*" and the resulting App ID is something like: "##########.com.me.*" I've used this

  • Infor regarding Collections from customers

    Dear SAP gurus goodmorning as I need some information regarding Accounts Receivable. our client is distributing power to customers and receives the collections from the customers/consumers. Now the issues is that if a customer is not paid the bill am

  • Blocking of Cost centre and activity type

    Dear all, Please tell me how to block cost centres and activity types which will no longer be used best rgds, Manoj

  • Microsoft Office 2007 student does not fully load

    I have been trying to get my Office 2007 student 60 day trail to load but it come back to me with the message: Microsoft Office Student 2007 did not fully load. please can anyone advise me what to do thanks

  • P_ORGIN and P_ORGXX?

    Guru's What are P_ORGIN and P_ORGXX? Thanks, Harish