Employee Number Generation

Hi All,
I want to generate the employee number automatically by using the sequence number generated using custom logic. Not the oracle predefined. How can i accomadate this logic.
It should be generated based on the Employe type and nationality. I mean after i fill in the personal data based on that data employee number should be genearted.
Before saving the record. Can onyone help on this solution.
Thanks N Regards,
Prashanth

My goodness, are you sure you really want to do this? You are customizing something pretty basic in Oracle. You do have the choice of using the national indentifier to auto generate the employee number in Oracle. Perhaps that might work out for your situation. Otherwise may want to pay Oracle to customize this for you, and thus make sure you have a supported solution.
John Dickey

Similar Messages

  • How to Create an Custom Employee Number Generation ...

    Dear Friends,
    We are Implementing HRMS Suite Version12i, for one of the Client in Middle east.
    One question about Custom Person Numbering.
    How to create custom employee numbering Based on the User Person Type?
    Example:
    Two person types
    o Permanent Employee
    o Probationary employees
    We Need to give two different numbering schemes for each person type.
    eg Permanent Employee will use a seq begin 100000 whereas Probationary employees (other user type) will use a sequence beginning 200000.. Can any pls let me know how to handle the Custom Employee Number Generation (with Setups)
    With regards
    Swpana

    Hi,
    Could you please help me to write/or send a sample of a Person Number Generation Formula.
    I don't see the noteid : 279458.1 on metalink,I get the following message:
    Article or Bug cannot be displayed. Possible reasons are:
    The article Id or bug number was entered incorrectly. Please check and try again.
    The article Id or bug number does not exist (was referenced incorrectly).
    The article or bug is not classified as publicly accessible ("non-public").
    The content is being updated and it is temporarily unavailable but will be made available again soon.
    If you still have questions about why you could not access this article or bug, please use Feedback.
    Please help!!

  • Custom Employee Number Generation Using Fast Formulas

    Hi,
    I have a requirement to generate custom employee numbers like "EMP100001". we have already created a business group with the setting of Employee number generation as Automatic. but we need to generate custom employee number as Format given above instead of automatic number generation.
    I have created my own PL/SQL Package to generate custom employee number as per Person Type. Also created a Fast Formula Function with the following parameters -
    Name = Get_Custom_Number
    Data Type = Text
    Class = External Funtion
    Alias Name = NULL or what you want the alias to be
    Description = Returns the next custom number value
    Definition = CUSTOM_EMP_NUMBER_GENERATION.Get_Custom_Number (PL/SQL Function)
    Proving the following Context usages and Parameters details to the Fast Formula Function -
    Context usages:-
    Number = 1
    Context Name = BUSINESS_GROUP_ID
    Data Type = Number
    Parameters as defined in PL/SQL function
    1 p_legislation_code Text Input Only
    2 p_person_type Text Input Only
    3 p_person_number Text Input Only
    4 p_party_id Number Input Only
    5 p_person_id Number Input Only
    6 p_national_id Text Input Only
    7 p_date_of_birth Date Input Only
    Than i created a Fast Formula using the following navigation
    Total Compensation > Basic > Write Formula
    with following details -
    Name = EMP_NUMBER_GENERATION
    Type = Person Number Generation
    Description = Returns next Employee number
    and wrote my formula code.
    When i created a Employee from Enter and Maintain People screen it is showing automatic number instead of my custom employee number.
    I m not able to find where i m missing the logic or some parameters?
    If anyone has come across such situation, please provide some pointers here.
    Thanks
    Renu

    What is the application release?
    Please review these docs and see if it helps.
    Is it Possible to Update Generate Employee Number Method From Automatic to Manual? [ID 393827.1]
    Need To Change The Employee Numbering From Automatic To Manual [ID 291634.1]
    Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr [ID 452044.1]
    How to Prefix a Zero on Custom Employee Numbers [ID 822425.1]
    How To Implement Custom Person Numbering Using FastFormula Based on User Person Type Instead of System Person Type [ID 372696.1]
    Thanks,
    Hussein

  • Automatic employee number generation

    Hi,
    When installing Oracle HR, we had choosed manual employee number generation and then we changed to the automatical mode. Now, we need to return back the the manual mode.
    I ask if there tips to do that?
    best regards,
    Mourad.

    Pl see MOS Doc 452044.1 (Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr)
    HTH
    Srini

  • API to get Employee Number Generation method

    Hi,
    We need to find out employee number generation method at run-time. (Automatic/Manual)
    Is there any standard API to find it out?
    Thanks

    Hi,
    You can get the value from 'METHOD_OF_GENERATION_EMP_NUM' column of PER_BUSINESS_GROUPS view.
    Thanks
    Satheesh

  • Employee number generation process

    Hi All
    Please guide me how to change an employee number generation process which is already set as automatic to manual and vice-e-versa ?
    Please help.

    Welcome to the forums !
    Pl post details of OS, database and EBS versions. Pl see if these MOS Docs can help
    How to Change Employee Numbering from Manual to Automatic?          (Doc ID 292257.1)
    Is it Possible to Update Generate Employee Number Method From Automatic to Manual?          (Doc ID 393827.1)
    Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr          (Doc ID 452044.1)
    How to control automatic employee numbering?          (Doc ID 473065.1)
    Need To Change The Employee Numbering From Automatic To Manual          (Doc ID 291634.1)
    More information will be available in the HR Implementation Guides for your EBS version at http://www.oracle.com/technetwork/documentation/applications-167706.html
    HTH
    Srini

  • How to Customize Employee Number Generation?

    m trying to generate a custom employee,applicant numbers through a dummy business group.
    I've created on Application: Oracle E-Business 11.5.10.2 the work structure and am now on the step of customizing the employee generating number.
    I followed the link steps:
    Below steps already done:
    Technical Side:
    1- Create New Sequence in DB.
    -----Sequence Code----------
    DROP SEQUENCE APPS.APPSLEAD_CUST_NUMB;
    CREATE SEQUENCE APPS.APPSLEAD_CUST_NUMB
    START WITH 1
    MAXVALUE 999999999999999999999999999
    MINVALUE 0
    NOCYCLE
    NOCACHE
    NOORDER;
    2- Create New Package for issuing the numbers.
    ----------Package Code--------------
    Create or replace package appslead_package as
    Function get_emp_custom_number (
    p_business_group_id IN number
    ,p_legislation_code IN varchar2
    ,p_person_type IN varchar2
    ,p_person_number IN varchar2
    ,p_party_id IN number
    ,p_person_id IN number
    ,p_national_id IN varchar2
    ,p_date_of_birth IN date
    ) return varchar2;
    end appslead_package;
    Create or replace package body APPSLEAD_PACKAGE as
    Function GET_EMP_CUSTOM_NUMBER (
    p_business_group_id IN number
    ,p_legislation_code IN varchar2
    ,p_person_type IN varchar2
    ,p_person_number IN varchar2
    ,p_party_id IN number
    ,p_person_id IN number
    ,p_national_id IN varchar2
    ,p_date_of_birth IN date
    ) return varchar2 as
    /*Check if the person id is exists on the system or not*/
    cursor person_exists is
    select employee_number,applicant_number,npw_number
    from per_all_people_f
    where party_id = p_party_id;
    --and p_effective_date between effective_start_date and effective_end_date;
    lseq_num number;
    l_next varchar2(30);
    l_emp_num varchar2(30);
    l_apl_num varchar2(30);
    l_npw_num varchar2(30);
    begin
    open person_exists;
    fetch person_exists into l_emp_num,l_apl_num,l_npw_num;
    if person_exists%notfound then
    Select to_char(Appslead_Cust_Numb.Nextval) Into lseq_num From Dual;
    l_next := 'AppsLead-'||lseq_num;
    return l_next;
    Else
    If p_person_type = 'EMP' then
    l_next := l_emp_num;
    Elsif p_person_type = 'APL' then
    l_next := l_apl_num;
    Elsif p_person_type = 'CWK' then
    l_next := l_apl_num;
    End if;
    End if;
    Close person_exists;
    return l_next;
    end get_emp_custom_number;
    End appslead_package;
    Functional Side:
    1- Create or Modify Business Group Employee numbering method to Manual.
    2- Create New Formula Function.
    3- Create New Formula EMP_NUMBER_GENERATION with Type "Person Number Generation"
    ------Formula Script--------
    EMP_NUMBER_GENERATION
    Create Custome formula for generation employee number*/
    DEFAULT FOR Person_Number IS ' '
    DEFAULT FOR Party_ID IS 0
    DEFAULT FOR Person_ID IS 0
    DEFAULT FOR National_ID IS ' '
    DEFAULT FOR DATE_OF_BIRTH IS '1900/01/01 00:00:00' (date)
    DEFAULT FOR Hire_Date IS '1900/01/01 00:00:00' (date)
    INPUTS ARE
    Legislation_Code (text),
    Person_Type (text),
    Person_number (text),
    Party_id,
    Person_id,
    Date_of_birth (date),
    Hire_date (date),
    National_ID (text)
    Next_Number = '0'
    Invalid_msg = ' '
    IF Person_Type = 'EMP' then
    Next_Number = TO_CHAR(Get_Emp_Custom_Number(Legislation_Code,Person_Type,Person_Number,Party_Id,Person_Id,National_ID,Date_Of_Birth))
    Else
    Invalid_msg = 'This is not an person_type of Employee!'
    Return Next_Number
    Now, when I create a new employee I need the employee number to appear as
    "AppsLead-Emp-00001"
    But its not, and the screen of employee master is not allow to create an employee without filling the number.
    How to do the same?
    What should be the Employee Number Generation ?
    1- Automatic generation with Global Sequencing
    2- Manual
    If your answer is manual, in the employee master screen, the employee id is required and when you create the employee the id should be entered.

    there are some fast formula you can use.
    Please check metalink

  • How to change Employee Number Generation from Manual to Automatic

    Hi,
    We have given Employee Number Generation Manual while creating Business Group. Now we want to change that to Automatic. I have tried to change but I count not.
    Please tell me what are all the steps needed to change Employee Number Generation From Manual to Automatic

    Hi,
    1. Goto org screen --> query business group
    2. Click other --> Business Group info
    3. Change second option from Employee Number Generation from Manual To Automatic.
    Also look
    Employee number generation process
    Hope it work for u.
    Ayaz
    Edited by: Ayaz on Dec 20, 2010 7:15 PM

  • How to generate customize employee number

    Hi,
    I am trying to generate customize employee number and for that i have taken following steps
    1. I changed employee number generation from automatic to manual
    2. I created a sequence
    3. I wrote a pl/sql code to create a customize employee number using the sequence concating it with text like 'EMP||'-'||seq.nextval.
    4. I registered the pl/sql code in apps through formula function window.
    But when i create a new employee it doesnt generate customize employee number.
    Any Idea where am i mistaking.
    Regards
    Majid

    You need to use the EMP_NUMBER_GENERATION fast formula of type Person Number Generation
    The formula needs to be setup in the Setup Business group (business group id = 0)
    Call your pl/sql function through the formula function in the EMP_NUMBER_GENERATION fast formula
    Look into the help in the fast formula window for help on the the EMP_NUMBER_GENERATION fast formula.
    The name of the fast formula has to be EMP_NUMBER_GENERATION for Employees, CWK_NUMBER_GENERATION for contingent workers and APL_NUMBER_GENERATION for applicants.
    There was some document in metalink but was later removed by Oracle citing that it is a customization.
    Also check this thread
    simple employee number generationformula needed
    Hope this helps.
    -Debojyoty

  • Employee Number Not generated

    Hi All,
    I have an issue .Please share ur knowledge in it and help me solve it .
    I am creating employee with api hr_employee_api.create_employee ,then I do all other api calls like address , assignment ,assignment criteria and finally insert salary proposal .
    The whole piece of PL/SQL code containing the api is called from a Wokflow function .
    The issue is for few employees created Employee number is not being populated in per_all_people_f .(Out of 4000 employees created via that code 5 employees dont have their employee number)
    Employee number generation is automatic as per our settings .
    Expecting a solution from u all .Thanks u

    Hi vee,
    Thanks soon after the alteration according to the page process given by you i can able to insert a new image corresponding to an employee_number..
    But vee, in my table i have taken employee_number has a primary key column as i doesnt allow duplication......so for that i have altered the page process to the below......
    declare
    l_count number(25);
    begin
    select count(*) into l_count
    from a_images2
    where employee_number = :P2_EMPLOYEE_NUMBER;
    if l_count = 0 and :P2_BLOB_CONTENT IS NOT NULL
    THEN
    INSERT INTO A_IMAGES2 (EMPLOYEE_NUMBER, FILE_NAME, BLOB_CONTENT, MIME_TYPE)
    SELECT :APP_USER,FILENAME, BLOB_CONTENT, MIME_TYPE
    FROM APEX_APPLICATION_FILES WHERE NAME = :P2_BLOB_CONTENT;
    DELETE FROM APEX_APPLICATION_FILES WHERE NAME = :P2_BLOB_CONTENT;
    elsif
    l_count=1 and :P2_BLOB_CONTENT IS NOT NULL
    then
    update a_images2
    set BLOB_CONTENT=:P2_BLOB_CONTENT
    where employee_number=:P2_EMPLOYEE_NUMBER;
    END IF;
    COMMIT;
    END;so, for what logic i have framed the above process means,
    Suppose if a employee wants to upload his photo for the first time means, he needs to insert newly into the table....For that i performed insertion into the table in the above query......If an employee needs to update his photo means, he needs to update for that i used update statement in the above query.......
    I guess there is no any mistake in my above page process..........
    if i tried to update a photo using the above page process query means, it is returning the error like........
    ORA-01465: invalid hex numberi couldnt guess what might be the issue over here....
    Whether my above page process logic is right, vee............
    incase any mistakes, point it out vee.......
    Thanks
    Mini...

  • Custom  Employee Number

    Dear Gurus
    As we are implementing HRMS, client needs the employee number should be generated automatically. There are two types of employee, one type of employee number should be A1000 & other should be B1000. I have given the employee number generation as manual in the BG setup. and added a personalization with the below code.
    Condition : PERSON.D_PTU_USER_PERSON_TYPE= 'Employee'
    Value 
    = select 'A' || (nvl(max(to_number(substr(employee_number,2))),999)+1)
    from per_all_people_f
    where EMPLOYEE_NUMBER like 'A%'
    and business_group_id = 81
    One more point, i want to include that, iRecruitment module going to be implemented. so applicants can be hired as employee. Will it make any problem.
    Please share your experience about this process.

    What is the application release?
    Please review these docs and see if it helps.
    Is it Possible to Update Generate Employee Number Method From Automatic to Manual? [ID 393827.1]
    Need To Change The Employee Numbering From Automatic To Manual [ID 291634.1]
    Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr [ID 452044.1]
    How to Prefix a Zero on Custom Employee Numbers [ID 822425.1]
    How To Implement Custom Person Numbering Using FastFormula Based on User Person Type Instead of System Person Type [ID 372696.1]
    Thanks,
    Hussein

  • Employee and contractor number generation

    We are implementing Oracle HRMS Rel 11i. We would like to record regular employees and contractor details. For contractors, we need to track and report on their assignments (department, job, location) and payrate alongwith their general information. So I feel that contractors should correspond to 'Employee' person type. A further requirement is that the employee/contractor number generation needs to be automatic and separate ranges (employees starting with 1 and contractors starting with 5000) need to be used. Is it right to set contractors as employee type and is automatic number generation using separate ranges possible?

    Yes, you should have contractors as employee system type, otherwise you can not pay them.
    we can not define a sequence to that with out wirting custom code.
    But we can do it by creating either a new user person type or user status (on assignment) and use that to track the contractors. which also gives you flexibility in reports, by filtering the assignment status or person type, which ever you want to configure.

  • Employee Number

    Hi All,
    i am working in oracle HRMS, there is one requirement for the generation of employee number. requirement is to generate the employee number base of custom logic. employee number should contain prefix of department/organization e.g (HR001).
    is form customiztion only way to achevie this or any other wayout, like fast formula.

    I think you have some issues.
    - First you enter the person (and hence an employee number must be generated somehow), and then you enter the assignment, including the organization. So you will need to update the employee number.
    - How you want to handle the fact that an employee can change organization or department? You gonna change the employee number then? I hope not.

  • How to Avoid Duplicate Employee Number in Custom Form

    Developing A new employee screen, where all the Personal, Assignment, Visa, Passort & Tickets are capture and send for approval. Once it is done. Scheduled Concurrent Program will pick the APPROVED records and create the Employee & Assignment in the HRMS.
    In custom form the employee Number is Last Employee Number in HRMS and Get the Last Employee Number in Custom table (always Custom table employee is higher) and increment by 1 whichever is higher.
    This code written on ON-INSERT trigger.
    SELECT     MAX (TO_NUMBER(employee_number)) + 1 INTO v_max_empno
    FROM     per_all_people_f
    WHERE     employee_number != 99999
    AND     REPLACE ( TRANSLATE (employee_number, '1234567890', '~~~~~~~~~~'),'~', NULL) IS NULL
    AND     business_group_id = :parameter.bg_id ;
    SELECT     MAX (TO_NUMBER(employee_num)) + 1 INTO v_max_empno2
    FROM     xx_employee_details
    WHERE     business_group_id = :parameter.bg_id ;
    IF v_max_empno2 IS NOT NULL THEN
         v_emp_number := v_max_empno2 ;
    ELSE
         v_emp_number := v_max_empno ;
    END IF ;
    :xxempdet.employee_num := v_emp_number ;
    Issue.
    The above is working fine only when data entered from single machine. When multple users are access this form we are getting Duplicate Employee Numbers.
    I need to impliment the process which is Sales Order Number generation without GAPLESS.
    Regards/Prasanth

    Make use of Sequence and use sequence.nextval for fetching the next value to ensure unique values.
    Thanks
    Shree

  • Simple employee number generationformula needed

    Good day,
    Any one send/give me a simple Employee_Number generation formula.
    I need to know the begining and ending.
    thanks &
    regards
    zamora

    the online help "Writing Formulas for Person Number Generation" gives you the details.
    some copy paste:
    Formula Names and Parameters
    The formula names for the Person Number Generation type are:
    o EMP_NUMBER_GENERATION (for employee numbers)
    o APL_NUMBER_GENERATION (for applicant numbers)
    o CWK_NUMBER_GENERATION (for contingent worker numbers)
    You can define only one formula for each person type.
    Attention: You must define person number generation formulas in the Setup business group, and they must have the names shown here. The formulas have no effect if you define them in any other business group or if you do not use the specified names.
    The formula context value is Business Group ID.
    The formula inputs are:
    o Legislation code
    o Person type
    o Person number
    o Party ID
    o Person ID
    o Date of birth
    o Start date (which is the hire date for employees, the latest start date for applicants, and the placement start date for contingent workers)
    o National identifier
    The person number and person ID parameters are null when you create a new person record and nonnull when you update an existing person record. Although you cannot change a person number when you update a person record, Oracle HRMS checks that the number is valid. If the number is not valid (for example, if it is null), Oracle HRMS may execute the person number generation formula.
    The formula outputs are:
    o Next person number
    o Completion message (for example, an error message)
    The following general rules apply to person number formulas:
    o Gaps in the number sequence are valid.
    o Oracle HRMS checks that numbers from a custom sequence are unique in the business group.
    o A custom number sequence applies to all business groups. However, you can write a formula that works differently in each business group.
    o You can manage other business needs in the logic of the formula. For example, you may want employees to keep their employee numbers when they transfer to different business groups.

Maybe you are looking for

  • HP Officejet Pro 8600 and/or Plus: differences.

    Hi all, simple question. What's the difference, beside shape, little speed up and LCD screen, between: HP Officejet Pro 8600 HP Officejet Pro 8600 Plus Can't really find out if the second is worth 50 euro more. Also, do HP drivers work well with OS X

  • How make installer java with mySQL database

    How do I create a java installer for windows, because I have a project that uses mySQL database. Anyone please help me....

  • JVM fails

    I'm writing JNI application for some C++ code. I don't have implementations of any functions but I'm pass values of parameters through my java program. e.g. in following OpenDevice function I can pass parallel port parameter(defined in C++) through J

  • Tablespace management system and sysaux size.. a concern..

    Hi mates, I have the report of my tablespace as thus: FILE_NAME TABLESPACE_NAME STA Total MB % Free Aext /usr/lib/oracle/xe/oradata/XE/MD MDATE AVA 196.608 13.57 YES ATE.dbf /usr/lib/oracle/xe/oradata/XE/SL SLIPSTREAM AVA 327.680 17.54 YES IPSTREAM.d

  • I cannot save the adobe TV turorials to the "My Library"

    And although this is perhaps not the right place to ask - I have been scouring the site and find no place I can ask. And I am wanting to see the Lightroom 5 tutorials since I just bought it. I was trying to pick out the ones I wanted and save to the