Leave of absence replaced by lov

Hi everyone, for the SSHR absence management form, I am trying to limit the replaced by LOV to only people in my business group. It is picking everyone across the company which isn't what I was hoping for. Does anyone have a workaround for this?
Many Thanks,
Igwe

Hi Asif, this doesn't seem to be working. could you look at my setup dump and tell me where I've gone wrong. The LOVs for absence replacement and employee directory still return data for everyone.
View Grant: XXKSA Employee Self Service Replaced By LOV
Delete Update
Name XXKSA Employee Self Service Replaced By LOV
Description
Effective From 15-Mar-2013
Effective To
Security Context
Grantee Type All Users
Grantee Everyone
Operating Unit
Responsibility KSA Employee Self Service
Data Security
Object Workflow Role LOV
Data Context
Type Instance Set
Name XXKSA Employee Directory Instance Set
Description Limits Employee Directory to KSA Employees
Predicate
&TABLE_ALIAS.USER_NAME IN (SELECT USER_NAME FROM FND_USER FU, PER_ALL_PEOPLE_F PAPF WHERE FU.EMPLOYEE_ID = PAPF.PERSON_ID AND PAPF.BUSINESS_GROUP_ID = 721 AND (PAPF.CURRENT_EMPLOYEE_FLAG = 'Y' or PAPF.CURRENT_NPW_FLAG = 'Y') AND SYSDATE BETWEEN PAPF.EFFECTIVE_START_DATE AND PAPF.EFFECTIVE_END_DATE )
Instance Set Details
Parameter 1
Parameter 2
Parameter 3
Parameter 4
Parameter 5
Parameter 6
Parameter 7
Parameter 8
Parameter 9
Parameter 10
Set
Name Workflow Role LOV Permission Set
Code WF_ROLE_LOV_PSET
Description Permission Set to Restrict the Visibility of Roles

Similar Messages

  • How to read the comment field of the Leave of absence Workflow.

    Hi,
    I have attached a custom Workflow template  to the
    Standard class "CL_HRASR00_WF_PROCESS_OBJECT" and  event "TRIGGERED" for my Personal leave of absence approval.
    During the Workflow step, once the approval goes to the final approval step and it is there in the Benifit Administrator's inbox (Portal) for approval, the Benift Admin is having an option of Withdrawing the process(Withdraw Process button). After filling the comments field, once he clicks this withdraw button the standard class "CL_HRASR00_WF_PROCESS_OBJECT" event "WITHDRAWN" gets triggered and it calls a separate workflow.
    I need to capture this comment in the new Workflow but not able to do the same.
    Can anyone let me know how can I do this. The event container does have any parameter to pass this value to the workflow container. And since the Step_Object GUID also changes I am unable to read it in the second workflow.
    Looking for some real help as this has become critical for the project.
    Thanks is andvace.

    Hi All,
    Thanks for your reply Trevor, but I guess you misunderstood my question. What I am not looking for is not the absence data. Basically I need to capture the comments put in by the Benifit administrator in the Leave of absence application form (Personal or Maternity/child care ), incase when he goes for withdrawing the Application submitted by the Employee.
    To elaborate it functionality step by step...
    1. An employee logs on to portal and submits a LOA application with a few mandatory field ( Commencing date,Returning Date, Reason).
      This kicks of a Workflow say WF1 attached to
    ABAP Class- CL_HRASR00_WF_PROCESS_OBJECT,  Event- TRIGGERED.
    2. Then after executing a few tasks to retrive data it goes to the Manager for approval. Once the manager appoves it goes to the Benifit Administrator.
    3. The Benifit Administrator can approve the application or has an option of withdrawing it.
    4. In case the Benifit Administrator goes for Withdrawal, after putting some comments in the form, it triggers the Event-WITHDRAWN of ABAP Class-CL_HRASR00_WF_PROCESS_OBJECT.
    5. This event in turn starts a new Workflow WF2.
    6. In this Workflow WF2 I need to pull in the comments put in by the Benifit Admin.
    How can I pull this comment?

  • Needs to stop mail going through work-flow related to Leave of Absence & se

    While running transactions Pa20/pa30..if it runs for Leave of absence with 5 as reason & separation with 5 as reason then the mail is going to employess due to work-floas it goes to all other actions & reasons.But we want to stop it for above mentioned only.How can we change logic in work-flow for this

    0000 infotype(actions) run with any reason like separation or long term disabilitymeans
    in Actions infotype the both are reasons right are your sure whether these are Actions reasons or action type ?
    In that case identify the Code Related to MASSN which is is acton type feild name and action reason is MASSG
    and deactivate for those two action type that will suffice the requirement right

  • LIST MANAGER - Replace popup lov - with stationary scrollable box

    Sorry... I thought this was Oracle 10g XE form...could you direct me to right form.
    LIST MANAGER - Replace popup lov - with stationary scrollable box...
    The end result would be: 2 scrollable list boxes separated by the word ADD / REMOVE. One to select from and the other box to act as collection box
    The popup LOV is quick and fast ..but is a little time consuming
    Oracle 10g XE
    Message was edited by:
    user518110

    Hi user518110,
    1) please update your forum handler to a more friendlier name.
    2) I think your are looking for the Shuttle component in Oracle APEX, like on the following page http://apex.oracle.com/pls/otn/f?p=2672:2
    If you are using Oracle XE you are probably using Oracle APEX 2.1, you have to upgrade this version to Oracle APEX 3.0 which contains this new control. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_and_xe.html for details.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • Workflow Process - Leave of Absence in R12

    Hey guys,
    I am trying to find out the workflow process name for the Leave of Absence process using the FND FUNCTION Name.
    Previously in 11i you were able to find out the process name (pProcessName=HR_LOA_JSP_PRC) using the parameters field in the function definition screen.
    pProcessName=HR_LOA_JSP_PRC&pItemType=HRSSA&pCalledFrom=HR_LOA_SS&pPersonID=&pFromMenu=Y
    But the parameters field in 12i has a reference to a Generic process name.
    Any Idea how to find the process name? I had heard that the architecture had changed? so anyone has any idea or doc or metalink note on this?
    new 12i function
    OAFunc=HR_LOA_SS&pAMETranType=SSHRMS&pAMEAppId=800&pProcessName=HR_GENERIC_APPROVAL_PRC&pItemType=HRSSA&pCalledFrom=HR_LOA_SS&pApprovalReqd=YD&pNtfSubMsg=HR_ABS_NTF_SUB_MSG&pConcAction=N
    ---------------------------------------------

    There seems to some kind of change of concept with respect to some of the workflows.
    Found the below text from the workflow developer guide.
    Self Service Generic Approval Process (HR_GENERIC_APPROVAL_PRC) - This approval process supplied by Oracle Self-Service Human Resources is used across HRMS products such as Oracle iRecruitment, Oracle Training administration, Oracle Talent Management (Appraisal), and others, as well as by Oracle Self-Service Human Resource. The Self Service Generic Approval Process provides extensive capability including the features delivered through the Notification Process for Approvers and Notifiers. This generic approval process can be invoked directly from BC4J Java code by passing mandatory attributes for AME callback. Also it provides callbacks for dynamic notification message subject generation with product specific-callbacks.
    ----------------------------------

  • Application Error has occurred in your process Leave of Absence performed

    Hello,
    We have a leave process in SSHR Module.When we create a leave and send it for an approval then it is approved without an error. But when we update the leave and send it again for an approval then We are getting below error.
    Application Error has occurred in your process Leave of Absence performed
    The changes were not applied because ORA-01403: no data found ORA-01403: no data found
    We have removed all user hooks related to leave.Still error is coming. We are using 12.1.3 version.
    Thanks in Advance,
    Regards,
    monika

    Hi Monika,
    One more thing i want to tell that when i am checking the transaction from workflow Admin then its showing an error in below activity.
    "Notify HR About Commit System Error"
    Below error stack has been found in workflow ADMIN
    Workflow Errors:
    Failed Activity Notify HR About Commit System Error
    Activity Type Notice
    Error Name WFNTF_ROLE
    Error Message 3205: '[email protected]' is not a valid role or user name.
    Error Stack Wf_Notification.Send([email protected], HRSSA, HR_EMBED_DEPT_SYSAPPLERR_MSG, WF_ENGINE.CB) Wf_Engine_Util.Notification_Send(HRSSA, 8155, 1296851, HRSSA:HR_EMBED_DEPT_SYSAPPLERR_MSG) Wf_Engine_Util.Notification(HRSSA, 8155, 1296851, RUN)
    please see this
    The Exception ' The changes were not applied because A person type with a system person type EMP must be specified' is Raised While Appoving Changes to Employee Personal Details. [ID 1545950.1]
    Application Error Notification Is Recieved By Requestor After LOA Approval [ID 855141.1]
    ;) AppsmAsti :)
    sharing is caring

  • Leave of absence that includes stat holiday

    employee applies for leave of absence for Mon-Fri, but Wed is a stat holiday in the work schedule.
    What is the system reaction? will it delimit automatically the absence in IT2001 and create two records Mon-Tu and Thu-Fri?
    Tiberiu

    Hi
    employee applies for leave of absence for Mon-Fri, but Wed is a stat holiday in the work schedule.
    What is the system reaction? will it delimit automatically the absence in IT2001 and create two records Mon-Tu and Thu-Fri?
    System reacts on the base of u r configuration. As per my knowlwedge system will call leave from monday to Friday- 4 days absence

  • SSHR: Leave of Absence API

    Hello All,
    I want to add Leave of Absence for an employee using API which should generate Approval notification. Can anyone please guide me to get the API to add Leave of Absence.
    - Priyanka

    Hi ,
    Could someone please help me out here?
    regards,
    Ved

  • Leave of absence datas storing table before approval

    hi,
    we are using the leave of absence process with one level approval.
    Once the employee leave is approved its saving in the table PER_ABSENCE_ATTENDANCES_V.
    while the leave status is pending for approval its not saving in the table
    PER_ABSENCE_ATTENDANCES_V
    but we need the applied datas while the status pending for approval
    from which table i acn get this ...
    anybody can help me out?
    Regds,
    Kumar

    Hi,
    Take a look at HR_API_TRANSACTIONS, HR_API_TRANSACTION_STEPS, HR_API_TRANSACTION_VALUES.
    Thx

  • What is the process of Leave of Absence?

    what is the process of Leave of Absence?

    Dear Rakesh,
    Below is given step by step to create absence quota creation...
    The following is the config. of TM.
    IMG --> Personnel Time Management --> Work Schedules --> Define Public Holiday Classes
    IMG --> Personnel Time Management --> Work Schedules --> Personnel Subarea Groupings --> Group Personnel Subareas for the Work Schedule
    IMG --> Personnel Time Management --> Work Schedules --> Personnel Subarea Groupings --> Group Personnel Subareas for theDaily Work Schedule
    IMG --> Personnel Time Management --> Work Schedules --> Daily Work Schedules --> Define Daily Work Schedules
    IMG --> Personnel Time Management --> Work Schedules --> Period Work Schedules --> Define Period Work Schedules.
    IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Day Types.
    IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Day Types.
    IMG --> Personnel Time Management --> Work Schedules --> Day Types --> Define Special Days.
    IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Define Employee Subgroup Groupings
    IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Define Groupings for the Public Holiday Calendar.
    IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Set Work Schedule Rules and Work Schedules.
    IMG --> Personnel Time Management --> Work Schedules --> Work Schedule Rules and Work Schedules --> Generate Work Schedules Manually
    IMG --> Personnel Time Management --> Work Schedules --> Planned Working Time --> Set Default Value for the Work Schedule.
    IMG --> Personnel Time Management --> Work Schedules --> Planned Working Time --> Set Default Value for Time Management Status.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Substitutions --> Define Personnel Subareas for Substitution Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Substitutions --> Set Defaults for Substitution Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Group Personnel Subareas for Attendances and Absences.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Define Absence Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Define Counting Classes for the Period Work Schedule.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New)  --> Group Employee Subgroups for Time Quotas.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Group Personnel Subareas for Time Quotas
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Rules for Rounding Counted Absences
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New)  --> Define Counting Rules
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Counting Rules --> Deduction rules for Absence quotas
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Assign Counting Rules to Absence Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Attendances/Actual Working Times --> Define Attendance Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Attendances/Actual Working Times --> Attendance counting --> Rules for Attendance  counting (New) --> Assign Counting Rules to Attendance Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Time Quota Types --> Define Absence Quota Types.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Automatic Accrual of Absence Quotas --> Permit Quota Generation Without Time Evaluation.
    IMG --> Personnel Time Management --> Time Evaluation --> Time Evaluation Settings --> Set Personnel Subarea Groupings for Time Recording.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Rules for Generating Absence Quotas --> Set Base Entitlements --> Base Entitlement for Absence Quota Generation.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence Entitlements --> Rules for Generating Absence Quotas --> Determine Validity and Deduction Periods.
    IMG --> Personnel Time Management --> Time Data Recording and Administration --> Managing Time Accounts Using Attendance/Absence Quotas --> Calculating Absence  Entitlements --> Rules for Generating Absence Quotas --> Set Base Entitlements --> Define Generation Rules for Quota Selection
    If still do you need screens --> kindly click on below link
    HCM - Absence Quota Generation
    Ur's
    Mohan

  • I need to change logic behind Calculate Duration button in Leave of Absence

    Hello,
    I need to change logic behind Calculate Duration button in Leave of Absence creation page.
    How I can do that?
    Please suggest.
    Regards,
    mofizur

    This will be a OAF customization, you have extend this oracle.apps.per.selfservice.absence.webui.AbsenceCO Controller.
    in processFormRequest you have catch event to Calculate Duration Button.
    You need to write custom your requrirement Logic for event to Calculate Duration.
    Thanks, Avaneesh

  • Internal Server error while approving leave in absence management

    hi
    In my project absence mgt is applicable for Netherland employees. When an NL manager applies leave and his manager from puerto rico tries to approve it from UWL , the manager is getting the following ERROR on clicking on the leave request in his inbox task.
    500   Internal Server Error   Web Dynpro Container/SAP J2EE Engine/6.40 
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException:
        at com.sap.xss.hr.lea.form.edit.VcFormEdit.setReadOnlyApprover(VcFormEdit.java:467)
        at com.sap.xss.hr.lea.form.edit.VcFormEdit.onInit(VcFormEdit.java:269)
        at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onInit(InternalVcFormEdit.java:700)
        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:158)
        ... 37 more
    This UWL error in Leave approval workflow is coming ONLY when PR manager is trying to NL employee's leave .
    All other country managers ( US , CH , FR etc) are able to approve the leave without any issue.
    We are using the standard leave approval workflow.
    ANY SOLUTIONS Plzz???

    Hello
    The above issue can occur if the rule group , to which this employee belongs, the leave type is not configured correctly. Please check the view V_T556A_WEB. The leave type and the rule group need to be defined here .
    Also make sure that the counting rule for the leave type is also  define correctly in T556C. Once the leave type for the approver  which belongs to the rule group has been correctly configured, way it has been done for normal employees, there will not be any issue.
    Kindly complete the necessary customizing  and check your results.
    Thanks and kind Regards
    Ramana

  • ESS - Leave request - Absence type

    Hi SDN.
    We want to implement ESS(50.4) iView "Leave request".
    How do we control which entries there is in the dropdownbox "Absence type"?
    I can't find any documentation regarding this.
    Thanks in advance
    Peter

    Hi Ashutosh.
    Perfect, 10 points for you
    Can you also tell me where I could read about this, because I really feel I am missing information about this iView.
    The online documentation for this BP/iView, doesn't say anything.(or I just can't find it)
    Thanks
    Peter

  • R12 SSHR - Leave of Absence page error

    HI,
    I am filling the leave details like "From" & "To" date, selecting leave type etc. When I click "Next" button, I am getting an error message like "A compiled version of the formula 324 cannot be found.. Check that it exists and compiled..."
    I just copied the formula from "TEMPLATE ABSENCE DURATION" into "BG_ABSENCE_DURATION" (created new formula name with "Quickpaint" type)
    How to overcome this error?
    Thanks in advance.

    Dear All,
    This is the formula I am using for Absence. In form It is working fine. But in SSHR it is throwing the error. Please check and help me in resolving this issue.
    FORMULA NAME: TEMPLATE_ABSENCE_DURATION
    FORMULA TYPE: Quickpaint
    DESCRIPTION: Calculates the Employee's Absence
    Duration in days or hours. The profile
    'HR: Absence Duration Auto Overwrite'
    determines if an existing duration value
    can change automatically or not.
    INPUTS:
    - days_or_hours: the units of the absence
    - date_start: the absence start date
    - date_end: the absence end date
    - time_start: the absence start time
    - time_end: the absence end time
    DBI Required:
    - asg_start_time : the assignment start time
    - asg_end_time: the assignment end time
    - asg_pos_start_time: the positon start time
    - asg_pos_end_time: the position end time
    Change History
    01 Sep 99 jmoyano Created
    10 Oct 01 dcasemor end_day was being set to
    asg_start_time. Also allowed
    hours to be defaulted if no
    UOM is set and hours have been
    entered.
    alias emp_hire_date as hire_date
    default for per_sex is 'X'
    /* Main Body of Formula */
    INPUTS ARE days_or_hours(text),
    date_start (date),
    date_end (date),
    time_start (text),
    time_end (text),absence_attendance_type_id
    /* default values */
    default for per_emp_number is ' '
    default for MARRIAGE_LEAVE_CUM_BALANCE is 0
    default for PER_SEX_CODE is 'X'
    default for hire_date is '01-jan-1951'(date)
    DEFAULT FOR days_or_hours IS 'D'
    DEFAULT FOR time_start IS '09:00'
    DEFAULT FOR time_end IS '17:00'
    DEFAULT FOR date_start IS '0001/01/01 00:00:00' (DATE)
    DEFAULT FOR date_end IS '4712/12/31 00:00:00' (DATE)
    /* database items */
    DEFAULT FOR asg_start_time IS '09:00'
    DEFAULT FOR asg_end_time IS '17:00'
    DEFAULT FOR asg_pos_start_time IS '09:00'
    DEFAULT FOR asg_pos_end_time IS '17:00'
    v_business_group_id=81
    /* local variables */
    error_or_warning = ' '
    invalid_msg = ' '
    duration = '0'
    number_of_days = 0
    first_day_hours = 0
    last_day_hours = 0
    /* Defaults Section */
    /* default values for working day, these are only used if no
    working conditions can be found */
    begin_day = '09:00'
    end_day = '17:00'
    IF ((date_start WAS DEFAULTED) or (date_end WAS DEFAULTED)) then
    duration = '0'
    else
    number_of_days = days_between(date_end,date_start)
    /* absence in hours */
    IF days_or_hours = 'H'
    OR (days_or_hours WAS DEFAULTED
    AND time_start WAS NOT DEFAULTED
    AND time_end WAS NOT DEFAULTED) THEN
    /* look for the assignment values*/
    If ((asg_start_time WAS NOT DEFAULTED) and
    (asg_end_time WAS NOT DEFAULTED)) then
    begin_day = asg_start_time
    end_day = asg_end_time
    else
    /* look for the position values */
    if ((asg_pos_start_time WAS NOT DEFAULTED) and
    (asg_pos_end_time WAS NOT DEFAULTED)) then
    begin_day = asg_pos_start_time
    end_day = asg_pos_end_time
    /* compute hours per day */
    hours_per_day = ((to_num(substr(end_day,1,2))*60 +
    to_num(substr(end_day,4,2))) -
    (to_num(substr(begin_day,1,2))*60 +
    to_num(substr(begin_day,4,2)))) / 60
    /* absence takes place during the same day */
    IF number_of_days = 0 THEN
    duration = to_char(((to_num(substr(time_end,1,2))*60 +
    to_num(substr(time_end,4,2))) -
    (to_num(substr(time_start,1,2))*60 +
    to_num(substr(time_start,4,2)))) / 60)
    /* more than one day */
    ELSE
    /* Changes for bug3093970 starts here */
    first_day_hours =((to_num(substr(end_day,1,2))*60 +
    to_num(substr(end_day,4,2))) -
    (to_num(substr(time_start,1,2))*60 +
    to_num(substr(time_start,4,2))) ) / 60
         last_day_hours = ((to_num(substr(time_end,1,2))*60 +
    to_num(substr(time_end,4,2))) -
    (to_num(substr(begin_day,1,2))*60 +
    to_num(substr(begin_day,4,2))))/60
         if first_day_hours <=0
         OR first_day_hours > hours_per_day
         OR last_day_hours <= 0
         OR last_day_hours > hours_per_day THEN
    /* Leave timings are out off standard timings*/
    /* So use 24 hours rule */
         first_day_hours = (24*60 -
         (to_num(substr(time_start,1,2))*60 +
    to_num(substr(time_start,4,2))))/60
    last_day_hours = (to_num(substr(time_end,1,2))*60 +
    to_num(substr(time_end,4,2)))/60
    duration = to_char(first_day_hours+last_day_hours)
    duration = to_char(to_num(duration) +
    (DAYS_BETWEEN(date_end,date_start) - 1)* hours_per_day)
    /* Changes for bug3093970 ends here */
    /* absence in days */
    ELSE
    duration = to_char(DAYS_BETWEEN(date_end,date_start) + 1)
    /* use of error messages:
    if to_num(duration) = 0 then
    duration = 'FAILED'
    invalid_msg = 'HR_ABSENCE_CANNOT_BE_ZERO'
    v_duration=to_number(duration)
    length_of_service=(days_between(date_start,hire_date)+1)/365
    v_leave_type=XXAQ_LEAVE_TYPE(v_business_group_id,absence_attendance_type_id)
    if v_leave_type='HAJJ LEAVE' then
    if length_of_service<=aq_los_for_hajj_leave then
    duration = 'FAILED'
    invalid_msg = 'Length of Service Should be more than '||to_char(aq_los_for_hajj_leave)|| ' years'
    else
    if v_duration+XXAQLEAVEAVAILED(per_emp_number,
    v_leave_type)>aq_hajj_leave_entitlement then
    duration = 'FAILED'
    invalid_msg = 'Maximum Entitlement Should Be '||to_char(aq_hajj_leave_entitlement)
    /*Marriage Leave*/
    if v_leave_type='MARRIAGE LEAVE' then
    if v_duration+XXAQLEAVEAVAILED(per_emp_number,
    v_leave_type)>aq_marriage_leave_entitlement then
    duration = 'FAILED'
    invalid_msg = 'Maximum Entitlement Should Be '||to_char(aq_marriage_leave_entitlement)
    /*Paternity Leave*/
    if v_leave_type='PATERNITY LEAVE' then
    if v_duration+XXAQLEAVEAVAILED(per_emp_number,
    v_leave_type)>aq_paternity_leave_entitlement then
    duration = 'FAILED'
    invalid_msg = 'Maximum Entitlement Should Be '||to_char(aq_paternity_leave_entitlement)
    /*Maternity Leave*/
    if v_leave_type='MATERNITY LEAVE' then
    if PER_SEX<>'Female' then
    duration = 'FAILED'
    invalid_msg = 'Only Female Employees are Eligible for Maternity Leave'
    /*unpaid leave hours begin*/
    /*if v_leave_type='UNPAID LEAVE HOURS' then
    if v_duration>8 then
    duration = 'FAILED'
    invalid_msg = TO_CHAR(v_duration)||'Duration Should not Exceed 8 Hours for This Leave Type'
    /*unpaid leave hours end*/
    return duration, invalid_msg
    Regards,
    Jithin

  • How to Handle the Carry Over leaves in  Absences

    Hi Friends,
    I have one Requirement from my client.
    let me explain you the scenario.
    say Person X is having 20 annual vacation leaves per year, if he applies say 10 leaves this year and remaining 10 leaves should get carry forward to next year and next year he should be eligible for total 30days of annual vacation leave.
    let me tell u that there is no balance has been attached to that leave element and no Accruals Setup has been done in the system.
    Is it possible to handle it technically for carryover leaves. if yes plz explain in me .
    thanks in advance

    Yes, standard Oracle HRMS supports this out-of-the-box.
    You define a Paid-Time Off (PTO) Accrual Plan, which defines all the business rules around entitlement and carryover and then you attach this accrual plan to employees.
    Once all the business rules are defined you run a PTO Carry Over process that transfers outstanding balances (in this example 10 days) from the previous vacation year to the next.

Maybe you are looking for