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

Similar Messages

  • 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 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!!

  • 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

  • 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

  • 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

  • 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

    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

  • How to pass Employee number of MSS - Employee Search to Start Process

    Hi All,
    Just like HR admin role, Employee Information number is getting passed in Display Processes, Start Processes, and Personnel File, we have to make same scenario working for MSS also.
    In MSS, General Information Page, when manager selects the Employee, then that Employee Number should get passed in Display Personnel File and also in Start Process.
    I am new to HR module so I have not explined the requirement properlly, but Experts may be knowing this. Please help.
    Regards,
    Nikesh

    Hi Siddharth Rajora,
    I have actually 2 doubts..
    1. You mean to say this can be done and is already implemented, but I think it will only work if we put "Display Personnel File and Start Process" under "Related Activities" area right ?
    2. But user wants these views in the Detailed Navigation, so if he selects PERNER from general Information Page, and then if he clicks on "Start Process (under Detailed Navigation)" , then it shud show list of processes for that Employee.
    Can you please guide me properly.

  • How to pass Employee number of MSS - General Information to Start Process.

    Hi All,
    Just like HR admin role, Employee Information number is getting passed in Display Processes, Start Processes, and Personnel File, we have to make same scenario working for MSS also.
    In MSS, General Information Page, when manager selects the Employee, then that Employee Number should get passed in Display Personnel File and also in Start Process.
    I am new to HR module so I have not explined the requirement properlly, but Experts may be knowing this. Please help.
    Regards,
    Nikesh

    Hi Siddharth Rajora,
    I have actually 2 doubts..
    1. You mean to say this can be done and is already implemented, but I think it will only work if we put "Display Personnel File and Start Process" under "Related Activities" area right ?
    2. But user wants these views in the Detailed Navigation, so if he selects PERNER from general Information Page, and then if he clicks on "Start Process (under Detailed Navigation)" , then it shud show list of processes for that Employee.
    Can you please guide me properly.

  • How to customize AR Statement Generation program

    Hi,
    Our client needs some additional attributes in the AR Statement generation program.
    The program is a Spawned program and internally calls an RDF ( ARXSGPO.rdf )
    How can we customize the program(spawn type) to include some additional fields in the output.
    Regards
    Kishore

    I have a same requirement.But my understanding of Customer Balance Report on 12.1.1 is slightly different.
    My understanding is Spawned Program Statement Generation Program insert data into AR_STATEMENT_HEADERS & AR_STATEMENT_LINE_CLUSTERS tables and kick off standard report AR Customer Balance Statement Letter. This report does not have rdf attached to it rather has Data Template ARXSGPO.xml which fetches the data.
    Now my question is how do I customize the Data Template ARXSGPO.xml . Update File button has been disabled on this data defination. Also is there any way I can apply something similar to unix softlink here.
    Thanks in Advance

  • 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

  • Customized LPN Number Generation in WMS

    How to Customize the LPN Generation Number in WMS for all available Business Flow.
    Can any one please help me to resolve the Problem.

    Hi Debraj,
    You can generate a sequential number when ever user saves the record using function module 'NUMBER_GET_NEXT'.
    Firstly, Go to transaction SNRO and create a new Number range object. Here you can define the range of the numbers. say 'WXYZ'.
    Pass this to the import parameter object of the function module.
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = '01'
          object                  = 'WXYZ'
        IMPORTING
          number                  = l_next_number
        EXCEPTIONS
          interval_not_found      = 1
          number_range_not_intern = 2
          object_not_found        = 3
          quantity_is_0           = 4
          quantity_is_not_1       = 5
          interval_overflow       = 6
          buffer_overflow         = 7
          OTHERS                  = 8.
      IF sy-subrc <> 0.
    Do Nothing
      ENDIF.
    The export parameter 'number' gives us the next sequential number.
    So when you click on save. Call this function module and get the next number and save it.
    Hope this helps.
    Do let me know in case you need any more details.
    Regards,
    Sravan Varagani

  • 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...

Maybe you are looking for

  • Show previous requisition requests link is missing in MSS.

    Hi All, In Manager Self-Service ->Recruiting->New Requisition Request->Request to fill postion. Here link show previous requisition requests missing. How to enable the link? This link is missed after portal is upgraded. Regards, Srinivasu.Y

  • IMac freezing in both Mac and XP

    I am having some very annoying issues with my iMac. (Specs at bottom). First, while I am in my OS X, at the odd time my screen will go completely black, I will still be able to hear sounds, like Ventrilo (Voice communication program used with gaming)

  • HT204053 syncing contacts with icloud

    I am a new iPhone user.  I have an iPhone 4S and am very happy with it.  HOWEVER...after reading up on this topic, I am confused.  I have enabled my iCloud account...but...I've not been successful with the actual syncing of the contacts.  To add anot

  • Fix messed up permissions on external HDD?

    I've got an external HDD that I've been using with tons of macs. It now has plenty of old and new folders from different locations that come from various users/macs. Deleteing or moving files, depending on the folder, sometimes requires a password. I

  • Hit 401 error

    Hi, Once in a while I hit 401 error on the server. On the client some of the operations dont go through. LIke cant upload document drop menu dont show... The site has both formbased and windows based login enabled. loopback check is disabled on the s