DBA Data[Home] [Help]

PACKAGE BODY: APPS.PER_HU_CREATE_APPLICANT

Source


1 package body PER_HU_CREATE_APPLICANT as
2 /* $Header: pehuappp.pkb 120.2 2006/09/20 16:31:36 mgettins noship $ */
3 g_package   VARCHAR2(30) := 'PER_HU_CREATE_APPLICANT.';
4 
5 PROCEDURE create_hu_applicant (p_last_name           VARCHAR2
6                               ,p_first_name          VARCHAR2
7                               ,p_per_information1    VARCHAR2
8                               ,p_per_information2    VARCHAR2
9                                ) is
10 
11 l_proc                  VARCHAR2(72) := g_package||'CREATE_HU_APPLICANT';
12 
13 BEGIN
14   --
15   -- Added for GSI Bug 5472781
16   --
17   IF hr_utility.chk_product_install('Oracle Human Resources', 'HU') THEN
18     --
19 
20        --Bug 4411143
21        /*hr_api.mandatory_arg_error
22            (p_api_name         => l_proc,
23             p_argument         => hr_general.decode_lookup('HU_FORM_LABELS','FIRST_NAME'),
24             p_argument_value   => p_first_name
25            );*/
26 
27       /*  hr_api.mandatory_arg_error
28            (p_api_name         => l_proc,
29             p_argument         => 'Tax Identification Number',
30             p_argument_value   => p_per_information2
31            );
32 
33         hr_api.mandatory_arg_error
34            (p_api_name         => l_proc,
35             p_argument         => 'Mothers Maiden Name',
36             p_argument_value   => p_per_information1
37            );*/
38 
39        IF  length(p_last_name)>40 THEN
40          hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
41          hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('HU_FORM_LABELS','LAST_NAME'));
42          hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
43          hr_utility.set_message_token('MAX_LENGTH','40');
44          hr_utility.raise_error;
45        END IF;
46 
47        IF  length(p_first_name)>40 THEN
48          hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
49          hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('HU_FORM_LABELS','FIRST_NAME'));
50          hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
51          hr_utility.set_message_token('MAX_LENGTH','40');
52          hr_utility.raise_error;
53        END IF;
54   END IF;
55 END create_hu_applicant;
56 
57 END PER_HU_CREATE_APPLICANT;