You are on page 1of 12

Writing Formulas for Person Number

Generation

Copyright © 2007, Oracle. All rights reserved.


Introduction

If you select:
• Automatic local person numbering
– Oracle HRMS allocates numbers for a person type
from a number sequence that is specific to the
business group.
• Global person numbering:
– Oracle HRMS allocates numbers for a person type
from a single global sequence across all business
groups.

Copyright © 2007, Oracle. All rights reserved.


Person Number Generation Formula

To generate a custom number sequence in place of the


default local or global sequence:
• You can write a formula of type Person Number
Generation.

Copyright © 2007, Oracle. All rights reserved.


Formula Names

Person Number Generation formulas:


• You must define them in the Setup business group.
• You must use the specified names.
– EMP_NUMBER_GENERATION (for employee
numbers)
– APL_NUMBER_GENERATION (for applicant
numbers)
– CWK_NUMBER_GENERATION (for contingent
worker numbers)

Copyright © 2007, Oracle. All rights reserved.


Formula Parameters

The formula inputs are:


• Legislation code
• Person type
• Person number
• Party ID
• Person ID
• Date of birth
• Start date
• National identifier

Copyright © 2007, Oracle. All rights reserved.


Formula Parameters

The person number and person ID parameters are:


• Null, when you create a new person record
• Nonnull, when you update an existing person record

Copyright © 2007, Oracle. All rights reserved.


Formula Outputs

The formula outputs are:


• Next person number
• Completion message (for example, an error
message)

Copyright © 2007, Oracle. All rights reserved.


General Rules

Rules applicable to person number formulas:


• Gaps in the number sequence are valid.
• Oracle HRMS checks that numbers from a custom
sequence are unique in the business group.
• A custom number sequence applies to all business
groups. However, you can write a formula that
works differently in each business group.
• You can manage other business needs in the logic
of the formula.

Copyright © 2007, Oracle. All rights reserved.


Using Global Person Number Sequence

To use the default global person number sequence for


a person type:
• You run the process Change automatic person
number generation to global sequencing for the
person type.
You do not need to run this process if you define a
valid custom formula.

Copyright © 2007, Oracle. All rights reserved.


Using Custom Formula and the Process:
Implications

If you define a valid person number generation formula


and run the process Change automatic person number
generation to global sequencing:
• Oracle HRMS writes this message to the log:
– A valid custom formula for generating person
numbers exists. The default global number sequence
will not be used.

Copyright © 2007, Oracle. All rights reserved.


Using Custom Formula and the Process:
Implications

If the custom formula becomes invalid or you delete it:


• Oracle HRMS switches to the default global person
number sequence because the profile option is set
to Yes.
Otherwise, the application switches to the default local
sequence.

Copyright © 2007, Oracle. All rights reserved.


Summary

In this module, you should have learned how to:


• Use FastFormula
• Use and design formula components efficiently
• Use FastFormula in People Management templates
• Write formulas for person number generation

Copyright © 2007, Oracle. All rights reserved.

You might also like