25: BEGIN
26: --
27: -- Added for GSI Bug 5472781
28: --
29: IF hr_utility.chk_product_install('Oracle Human Resources', 'ES') THEN
30: --
31: hr_api.mandatory_arg_error
32: (p_api_name => l_proc,
33: p_argument => hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'),
35: );
36:
37: /*IF p_per_information3 IS NOT NULL AND
38: p_per_information2 IS NULL THEN
39: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
40: hr_utility.raise_error;
41: ELSIF p_per_information2 IS NOT NULL AND
42: p_per_information3 IS NULL THEN
43: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
36:
37: /*IF p_per_information3 IS NOT NULL AND
38: p_per_information2 IS NULL THEN
39: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
40: hr_utility.raise_error;
41: ELSIF p_per_information2 IS NOT NULL AND
42: p_per_information3 IS NULL THEN
43: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
44: hr_utility.raise_error;
39: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
40: hr_utility.raise_error;
41: ELSIF p_per_information2 IS NOT NULL AND
42: p_per_information3 IS NULL THEN
43: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
44: hr_utility.raise_error;
45: END IF;
46: --
47: IF p_national_identifier IS NULL THEN
40: hr_utility.raise_error;
41: ELSIF p_per_information2 IS NOT NULL AND
42: p_per_information3 IS NULL THEN
43: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
44: hr_utility.raise_error;
45: END IF;
46: --
47: IF p_national_identifier IS NULL THEN
48: IF p_per_information3 IS NULL THEN
45: END IF;
46: --
47: IF p_national_identifier IS NULL THEN
48: IF p_per_information3 IS NULL THEN
49: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
50: hr_utility.raise_error;
51: END IF;
52: ELSE
53: l_national_identifier := hr_es_utility.check_NIF(p_national_identifier);
46: --
47: IF p_national_identifier IS NULL THEN
48: IF p_per_information3 IS NULL THEN
49: hr_utility.set_message(800, 'HR_ES_REQ_NIF_IDT_MISSING');
50: hr_utility.raise_error;
51: END IF;
52: ELSE
53: l_national_identifier := hr_es_utility.check_NIF(p_national_identifier);
54: END IF;
56: IF p_per_information2 IS NOT NULL THEN
57: OPEN get_lookup_type(p_per_information2);
58: FETCH get_lookup_type into l_identifier_type;
59: IF get_lookup_type%NOTFOUND THEN
60: hr_utility.set_message(800,'HR_ES_INVALID_VALUE'||p_per_information2||'..'||p_per_information3||'..'||p_national_identifier);
61: hr_utility.set_message_token(800,'FIELD','Identifier Type');
62: hr_utility.raise_error;
63: ELSE
64: l_identifier_value := hr_es_utility.validate_identifier(p_per_information2,p_per_information3);
57: OPEN get_lookup_type(p_per_information2);
58: FETCH get_lookup_type into l_identifier_type;
59: IF get_lookup_type%NOTFOUND THEN
60: hr_utility.set_message(800,'HR_ES_INVALID_VALUE'||p_per_information2||'..'||p_per_information3||'..'||p_national_identifier);
61: hr_utility.set_message_token(800,'FIELD','Identifier Type');
62: hr_utility.raise_error;
63: ELSE
64: l_identifier_value := hr_es_utility.validate_identifier(p_per_information2,p_per_information3);
65: END IF;
58: FETCH get_lookup_type into l_identifier_type;
59: IF get_lookup_type%NOTFOUND THEN
60: hr_utility.set_message(800,'HR_ES_INVALID_VALUE'||p_per_information2||'..'||p_per_information3||'..'||p_national_identifier);
61: hr_utility.set_message_token(800,'FIELD','Identifier Type');
62: hr_utility.raise_error;
63: ELSE
64: l_identifier_value := hr_es_utility.validate_identifier(p_per_information2,p_per_information3);
65: END IF;
66: END IF;*/
65: END IF;
66: END IF;*/
67:
68: IF length(p_last_name)>40 THEN
69: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
70: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'));
71: hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
72: hr_utility.set_message_token('MAX_LENGTH','40');
73: hr_utility.raise_error;
66: END IF;*/
67:
68: IF length(p_last_name)>40 THEN
69: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
70: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'));
71: hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
72: hr_utility.set_message_token('MAX_LENGTH','40');
73: hr_utility.raise_error;
74: END IF;
67:
68: IF length(p_last_name)>40 THEN
69: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
70: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'));
71: hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
72: hr_utility.set_message_token('MAX_LENGTH','40');
73: hr_utility.raise_error;
74: END IF;
75:
68: IF length(p_last_name)>40 THEN
69: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
70: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'));
71: hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
72: hr_utility.set_message_token('MAX_LENGTH','40');
73: hr_utility.raise_error;
74: END IF;
75:
76: IF length(p_first_name)>40 THEN
69: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
70: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_1'));
71: hr_utility.set_message_token('COLUMN_VALUE',p_last_name);
72: hr_utility.set_message_token('MAX_LENGTH','40');
73: hr_utility.raise_error;
74: END IF;
75:
76: IF length(p_first_name)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
73: hr_utility.raise_error;
74: END IF;
75:
76: IF length(p_first_name)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
78: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','NAME'));
79: hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
80: hr_utility.set_message_token('MAX_LENGTH','40');
81: hr_utility.raise_error;
74: END IF;
75:
76: IF length(p_first_name)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
78: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','NAME'));
79: hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
80: hr_utility.set_message_token('MAX_LENGTH','40');
81: hr_utility.raise_error;
82: END IF;
75:
76: IF length(p_first_name)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
78: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','NAME'));
79: hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
80: hr_utility.set_message_token('MAX_LENGTH','40');
81: hr_utility.raise_error;
82: END IF;
83:
76: IF length(p_first_name)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
78: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','NAME'));
79: hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
80: hr_utility.set_message_token('MAX_LENGTH','40');
81: hr_utility.raise_error;
82: END IF;
83:
84: IF length(p_per_information1)>40 THEN
77: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
78: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','NAME'));
79: hr_utility.set_message_token('COLUMN_VALUE',p_first_name);
80: hr_utility.set_message_token('MAX_LENGTH','40');
81: hr_utility.raise_error;
82: END IF;
83:
84: IF length(p_per_information1)>40 THEN
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
81: hr_utility.raise_error;
82: END IF;
83:
84: IF length(p_per_information1)>40 THEN
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
86: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_2'));
87: hr_utility.set_message_token('COLUMN_VALUE',p_per_information1);
88: hr_utility.set_message_token('MAX_LENGTH','40');
89: hr_utility.raise_error;
82: END IF;
83:
84: IF length(p_per_information1)>40 THEN
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
86: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_2'));
87: hr_utility.set_message_token('COLUMN_VALUE',p_per_information1);
88: hr_utility.set_message_token('MAX_LENGTH','40');
89: hr_utility.raise_error;
90: END IF;
83:
84: IF length(p_per_information1)>40 THEN
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
86: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_2'));
87: hr_utility.set_message_token('COLUMN_VALUE',p_per_information1);
88: hr_utility.set_message_token('MAX_LENGTH','40');
89: hr_utility.raise_error;
90: END IF;
91: --
84: IF length(p_per_information1)>40 THEN
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
86: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_2'));
87: hr_utility.set_message_token('COLUMN_VALUE',p_per_information1);
88: hr_utility.set_message_token('MAX_LENGTH','40');
89: hr_utility.raise_error;
90: END IF;
91: --
92: END IF;
85: hr_utility.set_message(800, 'HR_289712_UTF8_LENGTH_EXCEEDED');
86: hr_utility.set_message_token('COLUMN_NAME',hr_general.decode_lookup('ES_FORM_LABELS','LAST_NAME_2'));
87: hr_utility.set_message_token('COLUMN_VALUE',p_per_information1);
88: hr_utility.set_message_token('MAX_LENGTH','40');
89: hr_utility.raise_error;
90: END IF;
91: --
92: END IF;
93: --