Showing posts with label SSHR. Show all posts
Showing posts with label SSHR. Show all posts

Monday, September 27, 2021

How to restrict the absence type list of values in Oracle Self-Service Human Resources.R 12.2.8

 

    Oracle Self-Service HR enables users to apply for absences. When applying for an absence, users enter the absence date or time, absence type, absence status, and absence reason. The absence types (for example, Vacation, Sick Leave etc.) are defined in Oracle HRMS application. Currently, all the absence types defined in Oracle HRMS application are displayed to the self-service user. 

    The user may not be eligible for all the absence types displayed in the self-service application.

    Example, In Our Organization, Unauthorized LWA Should not be viewed in the SSHR - Absence entry page. But the same to be displayed for the Payroll User in Enter & maintain - Absence Screen.

Solution :

    Oracle Self-Service HR introduces a custom package that enables customers to write the logic for deriving the absence type values based on their business requirements.

    Use the following the sample steps to derive a restricted list of values for absence type LOV in Absence Management. The custom logic has to be written in the New Package function HR_ABSENCE_RESTRICTED.ABSENCES_RESTRICTED Login person id and selected person id will be passed by default – using these two parameters the rest of the data or parameters can be queried from the tables.

Step 1: Query the HR_ABSENCE_RESTRICTED Package 

Step 2: Add the below function in the Package Body.

 

function absences_restricted(selected_person_id in varchar2,
         login_person_id in varchar2
         )return varchar2 is
l_sex VARCHAR2 (15) := NULL;

begin

IF to_number(selected_person_id) is not null THEN
 
    select sex into l_sex from per_all_people_f where person_id= to_number(selected_person_id)
    and sysdate between effective_start_date and effective_end_date;
 
        if l_sex = 'F' THEN
        return  '66,3061';
    elsif l_sex = 'M' THEN
    return '65,3061';
    else
    return '66,65,3061';
    END IF;

END IF;

end absences_restricted;
 

The above function is to restrict, the Maternity Leave  view access only to the Female Employees & Paternity Leave view access only to the Male Employees & Restrict Unauthorized LWA Leave for the Both female , male & Others.

Note: In this example, ‘66,3061,66’ are the id of the absence type, which has to restricted.

After Complied this, Go to Employee Self Service, Absence --> Create Absence, In the Absence Type you cant find the Unauthorized LWA Leaves.

Thursday, August 26, 2021

Individual Compensation Disbursement Planner - By Employee Request Via SSHR

 

Individual Compensation Distribution Plans

Requirement:

                In an organization, there is a policy which will enable the employees to decide their Monthly deduction amount by own & the same will be getting approved by the Supervisor.

Then it will be pushed to the Payroll team for the Calculation of Payroll.

Example: If Employee A wants to add Rs.2500 as Other Earnings & Employee B wants to deduct Rs.3000 for the month of Sep’21.

Solution:

                Oracle Individual Compensation distributions enable the employee to define the Planner on which components of an allowance or deduction to be attached.

The employee uses the self-service login to assign the element with respect to Effective start date & mentioned Input Value (Deduction or Earnings Amount).

It will be further goes to the approval based on the Supervisor Hierarchy & then post the approval process, it will be added in the Element Entry with respect to the Effective Date.

Step 1: Enable the Menu to Create Plan

Enable the function in the MENU.

Navigation: System Administrator -->  Application -->Menu --> Query User Menu Name as India HRMS Navigator.

Add        Seq No,

                Prompt - ICD Quick Setup

                Function - Individual Compensation Distributions Quick Setup

 

Step 2: Define Plan.

Navigation: India HRMS Manager --> ICD Quick Setup

Effective Date – 01 Apr 2021

Element Type – Other Earnings

Do you want this to be linked to a Plan or Option? – Plan

Do you want this to be linked to a new or existing plan? – New Plan Type

Click Create.


 

Step 3: Create a New function for the SSHR Request.

Navigation: System Administrator --> Application --> Function

Description Tab:

Function: ICD_ESS

User Function Name: Self Service Individual Compensation Distributions-Employee

Properties Tab:

Type: SSWA jsp function

Form Tab:

Parameters: pProcessName=HR_ADV_INDIVIDUAL_COMP_PRC&pItemType=HRSSA&pCalledFrom=ICD_ESS&OAFunc=ICD_ESS

Web HTML Tab:

HTML Call: OA.jsp?akRegionCode=HR_CREATE_PROCESS_TOP_SS&akRegionApplicationId=800&OAFunc=ICD_ESS

Click Save

Step 4: Assign the Function Under Menu

Navigation: System Administrator --> Application --> Menu

Query Menu as - HR_GLOBAL_SS_FUNCTIONS_CUSTOM

Add Function - Self Service Individual Compensation Distributions-Employee

Click Save.


 

Step 5: Assign the Function Under Menu

Navigation: System Administrator --> Application -->Menu

 Query Menu as - HR_EMPLOYEE_DIRECT_ACCESS_V4.0

Add

Prompt - Employee Individual Compensation Distribution

Function - Self Service Individual Compensation Distributions-Employee

Click Save.

Step 6: Clear Out Functional Caches.

Navigation: Functional Administrator --> Home -->  Core Service --> Caching Framework -->Global Configuration --> Clear All Cache.

Step 7 : Assign Element Link for Other Earnings.

Navigation: India HRMS Manager --> Total Compensation --> Basic --> Link

Select the Element Name & Provide the link as per the requirement.

Step 8 : Login in as Employee & Click Employee Self Service.

Navigation : Employee Self Service --> Employee Individual Compensation Disbursement.

Click Award new Compensation

Select the Type as Other Earnings

Enter Pay Value & Effective Date and Click Submit.


Step 9 : Approval Request

Once the employee is submitted, it will be shared to the Supervisor based on the Supervisor Assignment for the approval.

Once the approval is done by the Supervisor, It will be added to the People à Enter & Maintain à Employee à Assignment à Entry value



How to restrict the Order of Absence (Leave) Entry in SSHR in Oracle HRMS ?

  Business Scenario:     In our organization, HR has a policy that, each employee should apply Absence(Leave) only based on the Orders.     ...