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
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
SwpanaHi,
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 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 -
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 -
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?
ThanksHi,
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 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 AutomaticHi,
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 -
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,
PrashanthMy 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 -
Automatic number generation using the function module
Hai Everyone,
I have the doubt in automatic number generation.
i find the function module. the function module is
report 123.
*DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING OBJECT = 'HUGO'
NR_RANGE_NR = '01'
IMPORTING RETURNCODE = RC
NUMBER = NUMBER.
CASE RC.
WHEN ' '.
everything o.k.
WHEN '1'.
the assigned number lies in the critical area.
WHEN '2'.
this was the last number, next time the first number
will be assigned
ENDCASE.
write:/ number.
in that function module what i want to give the Exporting Object 'HOGO'. where i want to define the number range. what is meant by 'HOGO'.
If any one faced the same problem plz help me.
Thanks and regards,
P.Naganjana ReddyHai Chandrasekhar,
in that what i have to give. Plz help me in this.
Subobject data element
To-year flag
Number length domain
No interval rolling
Number range transaction
Warning %
Main memory buffering
Group table
Subobject field in group table
Fld NoRangeElement
Fields int./ext. no.range no.
Fld. NoRangeNo
Display element text
Thasnks and regards,
P.Naganjana reddy -
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 -
Returing date using Fast Formula
Hi
I need to return the payroll process end date to an element input value.
I wrote a very simple formula
ALIAS RADIANT_OTL_REGULAR_HOUR_HOURS_ENTRY_VALUE AS HOURS
default for PAY_PROC_PERIOD_END_DATE is '0001/01/01 00:00:00'(date)
DEFAULT FOR HOURS IS 0
INPUTS ARE HRS,TOT_ACCRUAL , PAY_DATE (DATE)
HRS=HOURS
PAY_DATE = PAY_PROC_PERIOD_END_DATE
TOT_ACCRUAL = HRS*(1.54/40)
RETURN TOT_ACCRUAL, PAY_DATE
But when the element is processed the date is not being returned
Please correct my formula if i need to change anything
Thanks
Regards
Ramesh Kumar SHi
I'll Explain again what actually i am trying to achieve.
From the OTL we will get the time card Entries.We are getting the number of hours from the time card and calculating the Accrual hours(AC_HRS) from the number of hours input from the time card.
Then i am trying to pass the ACC_HRS and Pay Proc End date to an element input value which is attached to the Accrual Plan in the Net Calculation rule.So hat accrual hrs will be added to the Accrual Hrs
Simple saying i need to calculate the Accrual hrs from the time card input
This particular element i am attaching manually and the time card details flows from OTL through the BEE
Please advice
Regards
Ramesh Kumar S -
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. -
Using Oracle Fast Formula in Discoverer
Hello,
Does anyone have any experience of using Fast Formula in Discoverer - can it be called from a PL/SQL function that would then be registered in the usual way in Discoverer?
Thanks
RachaelHi,
Yes, you can wrap the FF_EXEC.run_formula call into your own pl/sql function and map this function into the EUL so that the formula can be called from a workbook.
Rod West -
Oracle Gurus,
Customer creation number generation as Automatic, where we are doing this setup in applications.
For supplier we give the setup in Financial options but I am not able to trace out for customer automatic number generation.
If anyone know the setups, please let me know the steps and setups.
Please advise.
Edited by: satish.ygl on 09-Sep-2012 19:21Hi Satish,
Set the sequence number
Pl. go thru following navaigation path :
Go to Application Developer responsibility >Menu > Application> Database > Sequence
Query on sequence RA_CUSTOMERS_NUM_S and set Start Value to 20000 .
Retest it.
HTH
Sanjay
Maybe you are looking for
-
Oracle 11g for WinXP VirtualMachine install problem
Hi! I have problem with installation Oracle 11g x32 on WinXP x32 which was installed into VMWare Player When my installation goes to 60% i have an error em.ear file not found... I looking for many issues on this forum, but i can't fix this error (i h
-
TM doesn't recognize usual TM drive!
Hello, I just had to replace the motherboard and GPU of my iMac, but the HDD is the same. But now TM wants to generate a FULL back-up on the external drive where there already is a back-up file. Is there anyway to "tell" TM that it simply has to cont
-
my iphone came from u.s and brought in the philippines as a gift from my seafarer husband. Unfortuantely it didn't charge, something is wrong.how can i avail its warranty if I am not able to bring it back to u.s?
-
Add Tax IDs to BP on SAVE (new)
I'm trying with the following code to add a Tax ID to the BP while I'm saving it (New). But I don't get the BP ID. BUPA_NUMBERS_GET doesn't return BP ID. 'BBP_BUPA_GET_NUMBER' doesn't return BP ID. How can I solve this issue? Best regards. METHOD if_
-
SSH does not start after reboot
Hi, I have a problem with my sshd daemon. I have updated my OS, I have changed the .pacnew files and tested service with "systemctl start sshd.service" and it worked good. I have run command "systemctl enable sshd.service" and command executed good.