Validations to Leave Request

Hi Gurus,
We are using ESS in ERP2005.
I have a clarifications, that where to add the validations for the leave request
eg: to check the employee has enough leaves, and incase of any cusomer specific conditons has to be checked against leave where it has to be done.
is that using rules?
Kindly clarify?
Sera

Hello Sera,
Out of the box, you basically just have the option to use the two BAdIs PT_ABS_REQ and PT_GEN_REQ to add any kind of custom code. You should check them out.
Another way could bo to enhance, not modify, the standard code. Once you press the check button in your leave request ess application the Function module PT_ARQ_REQUEST_CHECK gets triggered. At the end of this function module you could add your custom coding and once an error should occur, you can add a mesage to the output parameter "messages". To read more about the enhancement framework just search on the SDN.
I hope this gives you an idea, what is possible.
regards,
Markus

Similar Messages

  • Time Constraints on ESS - Record Working Time and Leave Request

    Hi All,
    I have configured Time Constraints and their reaction in V_T554Y.
    When I record the appropriate combination of Attendances and Absences in back-end, I can see the reactions as specified... However, when I try to do the same in ESS - Recording Working Time and Leave Request, I do not see that Time Constraints taking effect on the front end.
    Here is what I have done:
    I have two attendance - P001 and P002. P001 is configured to be recorded on Leave Request where as P002 is configured to be recorded via Record Working Time (CATS) link.
    I record the attendance P001 in Leave Request and also post that into infotypes. After this, I try to record P002 in the Record Working Time Screen and I still get errors (Errors are from: HRTIM00REC E/207 and LR E/335)
    If I try to replicate the same in the back-end in IT20002, then there is no issues.
    Can anyone help and let me know how we can implement the same Time constraints reactions on the front-end and the back-end.
    Thanks a bunch
    - Harshal

    Note that Time constraints are not valid for Leave request and Working time ie in ESS
    it only comes via PA30
    in CATS too, we dont follow much HR related collisions checks these are taken into consideration during CAT6
    and in leave request via Rptarqpost
    so its not gonna work, Its intended and correct! go for a user exit cats0003 or check cac1 profile customisation

  • ESS leave request issue?

    Hi Gurus,
    I have an requirement where in which if employee enters (Employee total working hours is 8 hours per day) 4 hours in the hours column of the ESS leave request page.
    He has to get 0.5 days in the no of days column in the ESS leave request page.
    Then if employee choose the leave type as Sick Leave (It will be generic in standard ESS) he has to get the column where in which he can enter the reason for the same.
    EP 7.0 and backend is ECC6.0 and am using ESS/MSS 60.2 business package.
    Is there any patch is avaiable to incorprate the above requirement into standard ESS/leave request page.
    Higher points will be rewarded for valuble inputs.......
    This is very urgent requirement............
    Thanks in Advance,
    Dharani

    Hi,
    Please check this blog:
    Follow your leave request in Duet
    Please refer to this document:
    [Doc deleted 87 Nov 2012]
    Please check this thread for leave request from ESS:
    Leave request  from ESS
    Please check this wiki link for validation of leave request:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/validations%2bfor%2bess%2bleave%2brequest
    Hope this helps.
    Regards,
    Mona

  • ESS leave request(WS20000081) validation (ITS version)

    Hi,
    We are trying to do certain validations in the leave system WS20000081 in ECC 5.0.we need to pass the error message to ITS web screen like standard error msg.Kindly suggest any BADI tat can serve this purpose.
    Regards,
    Thyagu.

    From ECC 500, there is new leave request Service based on Web dynpro, and wf is WS12300111
    you can get the whole config in PTARQ trans code

  • ESS Leave Request - Custom validations

    Hello all,
    As I understand SAP does not perform any custom validations (which we might have coded within the PBAS0001 enhancement OR the HRPAD00INFTY business add in) when requesting a absence from ESS~LEA leave request iView from the portal.
    Hence to validate the absence record, I attempted to insert the HR_INFOTYPE_OPERATION function module and run it in CHK operation mode to validate the data in the PT_GEN_REQ~START_WF business add in method.
    If the validation fails I return RETURN_CODE as non-zero from the business addin. However I keep getting a dump as a result.
    Can anyone advice if this has been tried successfully and any alternate if @ all?
    Thanks in advance.
    Regards,
    Aditya

    You can easily to do so with badi pt_abs_req or pt_gen_req
    you can call exits in badi, read here the steps
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/ValidationsforESSLeaverequest
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestVariousConfiguraton+Steps
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?QuickLink=index&overridelayout=true

  • Blank header appears when validating  leave request from the UWL

    Hello,
    We are using SAP Portal 7.3 and BP_ERP5MSS 1.51 SP06 according note oss 1618269 with a backend ECC6 EHP5 SPS06.
    We are facing the following issue :: "Leave Request Approval screen is poping with blank header".
    This  issue occurs when launching the task TS21500003 from the UWL of the manager trying to validate a leave request.
    See these screenshots,
    [http://s14.postimage.org/dponkbsoh/UWL_issue_1.jpg]
    [http://s9.postimage.org/7si0vfa7j/UWL_issue_2.jpg]
    From NWA and Log traces we can find, but it is not sure it is relevant (due to some other iview not set yet) :
    error : "Item with external id :<000000005010> and system id: <SAP_UWL >: Problem in performing action <markAsLaunched>: Unknown action: <markAsLaunched>-"
    warning : "com.sap.security.api.NoSuchUserException: The given id " "is not a unique id of a user!"
    We tried to follow some recommandations :
    - Tx SWFVISU / Task TS21500003
    - DYNPARAM = LRF_REQUEST_ID=${item.REQUESTID}
    - and from portal : "Universal Worklist - Administration" / "my system alias" / Re-Register
    - and clear cache
    => without success.
    we tried :
    - role : SAP_MANAGER_MSS_NWBC and SAP_ALL
    - we assigned this role or this profile at our user test
    => without success.
    we find :
    - Note 1600953 : Modifications to UWL configuration file in BP MSS Add-On 1.0
    => but we didn't setup this Add-On, so we think this note is not relevant for us.
    to investigate :
    We have also tried to copy and past the XML indicated in note 1600953 for task TS21500003 and it did not solve the issue. We then came back to our initial XML.
    We have configured the SAP_WebDynpro_XSS as indicated but we still face he same issue :
    - when trying to open the task in the UWL, a pop up with a blank header opens. 
    - when using the iview com.sap.pct.erp.mss.leave_request_approval, the system opens directly a leave request without showing the list of requests assigned to the manager.
    Find step by step in this word document and the UWL information trace :
    http://www.filedropper.com/issueuwl20120217
    Thanks in advance for your help,
    Regards,
    Rodolphe

    Hi,
    thanks for your answer, we still have the issue.
    We have tried to change the Web AS setting from ABAP to Java but same error message :
    "ressource not found"
    and error : "Item with external id :<000000005010> and system id: <SAP_UWL >: Problem in performing action <markAsLaunched>: Unknown action: <markAsLaunched>-"
    warning : "com.sap.security.api.NoSuchUserException: The given id " "is not a unique id of a user!"
    in the backend :
    /nSWFVISU
    TASK :TS21500003
    DYNPARAM:
    LRF_ARQ_MODE=A&LRF_REQUEST_ID=&LRF_SKIP_OVERVIEW_PAGE=X&LRF_WITEM_ID=
    XML FILE configuration file Universal Worklist Configuration Content :
    (concerning the Task)
    <ItemType name="uwl.task.webflow.TS21500003.SAP_UWL" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
    <ItemTypeCriteria systemId="SAP_UWL" externalType="TS21500003" connector="WebFlowConnector"/>
    <Actions>
    <Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
    <Properties>
    <Property name="display_order_priority" value="5"/>
    <Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
    <Property name="WebDynproApplication" value="hress_a_ptarq_leavreq_appl"/>
    <Property name="WebDynproNamespace" value="sap"/>
    <Property name="openInNewWindow" value="yes"/>
    <Property name="System" value="SAP_UWL"/>
    <Property name="DynamicParameter" value="LRF_ARQ_MODE=A&amp;LRF_REQUEST_ID=&amp;LRF_SKIP_OVERVIEW_PAGE=X&amp;LRF_WITEM_ID="/>
    </Properties>
    <Descriptions default=""/>
    </Action>
    </Actions>
    </ItemType>
    Best regards,
    Thomas

  • Team Calendar in Read-Only Mode in Leave Request Approver Screen

    Hi,
      After lots of interaction and inputs in my previous thread,
      Customization Done for 2 level approval of leave in ESS but Facing Problems
           Our Team had decided to make the Team Calendar in Leave Request Approval Screen in Read-Only Mode (more precisely modus=TeamView)
           My question is, is it possible to achieve the same, because instead of adding custom validations using Custom RFC, If it is possible to make the Team Calendar as Read-Only than it will help us to achieve our goals. Please do let us know that is it possible? and, if Yes, How to achieve it?
          On leave request approval screen, we want Approver to take any action via "Show Worklist" and No User Action allowed on Team Calendar (Disabled but not InVisible).
      Thanks,
    Regards,
    Tushar Shinde.

    This is the note 1484853 but as i said you cant see it unless you raise a Message for SAP , We have to add yout company to the note.
    these are the steps
    Symptom
    In LeaveRequestApprover application, a higher level manager can
    approve/reject a leave though he/she is not the owner of the approval
    workitem (TS12300097). It happens when a higher level manager clicks on
    the leave in the TeamCalendar launched from the LeaveRequestApprover
    application.
    Other terms
    LeaveRequestApprover, TS12300097, prepare_select, WorkList,
    LPT_ARQ_REQUEST_UIAF07
    Reason and Prerequisites
    Reason:- This is caused because the approve/reject button were not
    restricted based on the logged in user.
    Prerequisites:- IT105 entries for the backend PERNRs should be correctly
    maintained.
    You can check here
    Object REPS LPT_ARQ_REQUEST_UIAF07
    Object Header FUGR PT_ARQ_REQUEST_UIA
    FORM PREPARE_SELECT
    the note is meant for few customers only

  • User Exits for Leave Request Application in SAP R/3

    Dear All,
    In our project, we have implemented leave validations in BADI PT_ABS_REQ. These validations are checked when a leave request is raised from ESS Portal.
    However we also want to these validations to be checked when a leave is applied from PA30. Can anyone please suggest where to implement the validations when the requests are applied from R/3?
    Regards,
    Sachin Mahajan.

    Here is a list of exits that PA30 use:
    HRPC0001
    HRRPAI01
    PARA0001
    PARA0002
    PBAS0001
    PBAS0002
    PBASRP01
    HRPBAS01

  • Critical error in leave request

    Dear All,
    Following error is getting only for some users when they click on Leave request link in E-portal. We have EP 7.
    I have searched previously posted threads for this type of issue & checked for points suggested in those threads. But everything seem to be ok.
    1. Leave request config is proper
    2. WEBMO maintained is ok.
    3. Infotype 0105 subtype 0001 is maintained & ESS role is assigned using Tcode HRUSER.
    4. Leave quota is updated in 2006.
    Error I am getting
    Critical Error
    A critical error has occured. Processing of the service was terminated. Unsaved data has been lost.
    Contact your system administrator.
           User  does not exist in this period                                 , error key: RFC_ERROR_SYSTEM_FAILURE   
           User  does not exist in this period                                 , error key:
    RFC_ERROR_SYSTEM_FAILURE:com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException:      User  does not exist in this period                                 , error key: RFC_ERROR_SYSTEM_FAILURE
    For  other users entire leave request & leave approval process is happening properly. leaves are also getting updated in 2001. Then why the error is for only few users?system has gone live & people are not able to apply leaves
    Please help.
    Thanks & Regards,
    Swapnali
    Edited by: Swapnali Kamerkar on Sep 14, 2010 2:28 PM

    Hi Siddharth & Jiggar,
    Thanks for your immediate response.
    Yes, I had already checked  this scenario giving SAP_ALL authorization, same error is coming & I don't think so authorization would be the problem cause for other users entire leave request & leave approval is happening properly with assigned ESS Role.
    Also respective user Id was already created in R/3 & maintained in infotype 0105 subtype 0001 using HRUSER Transaction. Same user ID was created in portal & employee is logging-in with that Id. Validity period is also proper.
    Also I want to put one more point here that whenever I don't maintained user Id in 0105 subtype 0001 for a particular employee & if he is logging-in with that ID, Error coming is only 'User 'XY' doesn't exist in this period'. where XY is user ID.
    But for the case in qustion even if Id is maintained in 0105, error coming is 'User doesn't exist in this period ...RFC_ERROR_SYSTEM_FAILURE'.
    Also all other applications like time account,payslips, personal information are working fine for that user.
    Waiting for your replies.
    Thanks & Regards,
    Swapnali
    Edited by: Swapnali Kamerkar on Sep 15, 2010 8:36 AM

  • Ess Leave  Request -Change in Time calculation without changing work schedu

    Hi All,
    We are implementing a ESS Leave Request in EP6 with backend HR ECC5.0.
    The time calculation is taken  from the Work schedule rule in
    HR backend which is 24*7.
    For example if the leave taken is for 2 days-systems calculates as 24*2=48 hrs
    but in actual the requirement is to calculate 2*8 =16 hrs without changing
    the Work Schedule in 2001 infotype in HR Backend.
    Can we do this change through
    1.Validation in portal itself
    2.Changing the RFC PT_ARQ_REQUEST_CHECK
    3.Changing the Absence Types
    Regards
    Anand.

    Hello,
    Please use:
    programming
    but without the spaces before and after } and {
    Testing:
    programming
    regards
    Rick Bakker
    Hanabi Technology

  • Webdynpro - Leave Request Approval

    Hi Colleagues,
    We have implemented the mysaperp2005 ESS business package on EP7. Portal is working, leave request is working, workflows trigger and open in UWL, UWL looks OK.
    However the button to execute the workflow, "Launch Webdynpro", launches the wrong URL for Leave Approval.
    It gets the Port wrong using 8032
    http://ourserver.com:8032/webdynpro/dispatcher/sap.com/ess~lea/LeaveRequestApprover
    Should be port 53300
    http://ourserver.com:53300/webdynpro/dispatcher/sap.com/ess~lea/LeaveRequestApprover
    Cannot find where 8032 is comming from, can can't find any config for this in the LeaveRequestApprover iView properties or anywhere else. Checked every property of the LeaveRequestApprover versus LevaeRequest iView: identical.
    Regards,
    Jimmy.

    Thanks Sebastian,
    icm/server_port_0 is not set up.
    I have only icm/server_port_<xx>
    Do you thing I should I set up icm/server_port_0?
    Regards,
    Jimmy.
    Param. Name
    icm/server_port_<xx>
    Short description(Engl)   ICM server specification
    Appl. area                Internet Communication Manager
    ParameterTyp              Character String
    Changes allowed           Change permitted
    Valid for oper. system    All operating systems
    DynamicallySwitchable
    Same on all servers
    Dflt value
    ProfileVal
    Current value

  • Hr Administrator processing of leave request

    Hi Experts,
    We are implementing the leave request using WF WS12300111.
    We have a requirement in which we need to customize at TS12300104 which is for the HR Administrator to process in case the status change is not effected.
    The work item should come to the HR Admin. There should be 3 action buttons in the work item : Approve, Reject, Raise to another team.
    When we click on the "Raise to another team" button,  there should be a pop-up that appears in which the HR Admin can enter his comments. When he enters his comments, the WF should trigger an email notification that sends the comments that the HR Admin had entered in the pop up. Also they would be requiring a checkbox in the form just below the pop up if which checked will send the above comments entered in the pop up to another team. If this is not checked, the email notification is sent to the team to which it was initially supposed to send to. The control of the WF should return back to the same step once this is done.
    Could you please guide us as to how this could be achieved.
    Cheers,
    Belinda Clarke

    Hello Raj,
    Thanks a lot for your answer.
    What you are essentially implying is that first we call the 'CATSXT_SIMPLE_TEXT_EDIOTR'  followed by the 'POPUP_TO_CONFIRM'. We can utilize the CH_TEXT parameter of the 'CATSXT_SIMPLE_TEXT_EDIOTR'  to get the comments and pass the same to the email notification.
    I will discuss the same with the Users and ask them their opinion.
    Just in case we need to design a module pool screen with a text box and checkbox....is that going to be complex? I am sorry. I am not a technical person and dont have much idea about the same as our ABAP person is on leave.
    How can we then use the comments of the text box and checkbox validation inside the module pool inside our workflow.
    Thanks a lot for all the help rendered.
    Cheers,
    Belinda Clarke

  • ESS Leave Request Confirmation Link Issue

    Hi
    We have implemented ESS/MSS on EP7-EC6.0 system. In Leave Request application once an employee submits a leave and clicks on the confirmation link "Request Further Absence" it takes back to the intial leave request screen. But a extra label "Valid For: " comes in between the Roadmap and CAP links. I need to remove it. That label comes only if we click on the confirmation link for requesting a leave. It doesnot appear if u click on Request for leave from overview page or subarea page or from detailed navigation pane. Please help me with the issue
    Renu.
    Edited by: Renu Sumith on Apr 22, 2010 4:26 PM

    Hi ,
    Can you personlalize that link and hide that lable.
    goto content admin of the page and Ctl+ right click after previewing the page.
    Thanks,
    Nachy

  • Customizing Leave Request in NWDS

    Hi All,
    I am trying to customize the standard webdynpro application of Leave Request. So, I downloaded that particular file (*.wda ) file from the J2ee instance server and copied that to desktop . Renamed to zip extension and unzipped the contents.
    After extracting the file i got two folders viz.,META-INF and PORTAL-INF.
    I would like to know
    1. Is it only that  two folders that I need to get or are there any other files/folders ?
    2. I want to add two Radio buttons in that Leave Request form, Is that valid? If so, How can I do that ?
    ( I have imported that folder(sap.comesslea) to the NWDS and I see *.xml files under the main node of PORTAL-INF.. what to do next)
    Appreciate your inputs,
    Regards,
    NR

    Hi NR,
    I dont have any documentation about the same. But you need to know WD for JAVA and corresponding backend aRFC's to make any changes to ESS Applications. Also you would need to understand the FPM Framework for the same.
    Check out this blog. /people/harald.reiter2/blog/2006/09/06/sdn-day-session-in-las-vegas-custom-development-of-web-dynpro-ess-applications-using-floor-plan-manager
    Also download the file from this link https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/teched-2006-sdn-day/sdnday_ess_hr.zip
    This blog gives you a basic idea of about ESS applications and how you can create your own ESS applications.
    Hope this helps.
    Regards,
    Shubham

  • Leave request Error in ESS

    Hi Experts,
    Greetings !!
    One of our user is facing a weird issue while he is trying to apply for a leave through ESS.
    He is applying for a leave for absence type ABC for which he is having enough quota, an error message is coming while he is submitting the leave as below:
    "No absence quota type 1/01/20 on 17.06.2014" - This error is of absence type XYZ,
    More information about this issue:
    - Employee has enough quota for which he is trying to apply for leave
    - The error message which is showing as error (absence type  XYZ 1/01/20) is a different absence type and this absence type is delimited on 31.12.2010.
    - Though the leave type is delimited, it is coming as error message for only one employee while he is applying for leave of a different absence type.
    Can some one help me providing solution how to fix this issue. Thanks in advance.

    In leave request we consider all open requests of absences for validating current request and not necessarily current request that's the reason you get error message for an absence which is not related to the one you are applying read here the concept http://scn.sap.com/thread/2068984 http://scn.sap.com/thread/3508890 Read note 1070831 which explains how quota deduction is done both in leave request and TMW which are based on same technology. So to summarize Absences are picked up for the quota deduction , they are picked in the ascending order of the begin date of the absences \In  the standard TMW framework, when the data is simulated it first backtracks the PA2001 record and based on the ascending order the quota is deducted, therefore the first quota is deducted by the simulated requests and the Infotype 2001 record is deducted from the second Infotype 2006 record. so check for this user if he has any open request ie in sent/approved not yet posted status which ll also account for quota!! and will sorted again in ascending order and all requests will be considered for quota deduction if they are open!

Maybe you are looking for

  • My outlook 2011 keeps saying error message and closing

    My outlook said the cache was full, so I went in and followed the steps it said to sync to my work system. Now my outlook will open up and shut down within about 10 seconds of opening with the error message of "Microsoft outlook must be closed becaus

  • Status of pyexiv2.

    Not sure if this is the correct forum so please move if it's in the wrong place. I have used pyexiv2 in the past and am just starting a new project which will read/write exif/IPTC tags from JPG files. I notice that the package is currently maintained

  • HT200224 can you use iphone material in FCP 7?

    hay, i am importing material from Iphone 5 into FCP 7.0.3, but is needs a lot of renderign. now i have tried apple pro res. but i only use it for ineternt or to make a dvd. and for anonther project I mix material from iphone with dv, from a card (Son

  • IMessage (for iMac)

    I keep getting the error message that my iMessage on my iMac cannot log into my iMessage account because "Could not sign in. Please check your network connection and try again." However, my GoogleTalk account on my iMessage does work and so does my i

  • Phone Volume both sending and receiving

    I've had my BB Torch for about a week and all was working fine.  I can't figure out what I did, but I can no longer hear when I make a call...even voice mail.  The volume is turned up completely, but still I cannot hear anything when using the phone.