18: --
19: Begin
20: --
21: If (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK1') Then
22: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
19: Begin
20: --
21: If (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK1') Then
22: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
20: --
21: If (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK1') Then
22: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
21: If (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK1') Then
22: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
23: hr_utility.set_message_token('PROCEDURE', l_proc);
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
24: hr_utility.set_message_token('STEP','5');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
25: hr_utility.raise_error;
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
26: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_FK2') Then
27: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
28: hr_utility.set_message_token('PROCEDURE', l_proc);
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
29: hr_utility.set_message_token('STEP','10');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
30: hr_utility.raise_error;
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
31: ElsIf (p_constraint_name = 'IRC_REC_TEAM_MEMBERS_PK') Then
32: hr_utility.set_message('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
33: hr_utility.set_message_token('PROCEDURE', l_proc);
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
34: hr_utility.set_message_token('STEP','15');
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
35: hr_utility.raise_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
43: End constraint_error;
36: Else
37: hr_utility.set_message('PAY', 'HR_7877_API_INVALID_CONSTRAINT');
38: hr_utility.set_message_token('PROCEDURE', l_proc);
39: hr_utility.set_message_token('CONSTRAINT_NAME', p_constraint_name);
40: hr_utility.raise_error;
41: End If;
42: --
43: End constraint_error;
44: --
148: --
149: l_proc varchar2(72) := g_package||'lck';
150: --
151: Begin
152: hr_utility.set_location('Entering:'||l_proc, 5);
153: --
154: hr_api.mandatory_arg_error
155: (p_api_name => l_proc
156: ,p_argument => 'REC_TEAM_MEMBER_ID'
155: (p_api_name => l_proc
156: ,p_argument => 'REC_TEAM_MEMBER_ID'
157: ,p_argument_value => p_rec_team_member_id
158: );
159: hr_utility.set_location('Rec team member id ok at ' || l_proc,7);
160: hr_api.mandatory_arg_error
161: (p_api_name => l_proc
162: ,p_argument => 'OBJECT_VERSION_NUMBER'
163: ,p_argument_value => p_object_version_number
161: (p_api_name => l_proc
162: ,p_argument => 'OBJECT_VERSION_NUMBER'
163: ,p_argument_value => p_object_version_number
164: );
165: hr_utility.set_location('OVN ok at ' || l_proc,9);
166: --
167: Open C_Sel1;
168: Fetch C_Sel1 Into irc_rtm_shd.g_old_rec;
169: If C_Sel1%notfound then
170: Close C_Sel1;
171: --
172: -- The primary key is invalid therefore we must error
173: --
174: hr_utility.set_location('Invalid key at :'||l_proc, 11);
175: fnd_message.set_name('PAY', 'HR_7220_INVALID_PRIMARY_KEY');
176: fnd_message.raise_error;
177: End If;
178: Close C_Sel1;
177: End If;
178: Close C_Sel1;
179: If (p_object_version_number
180: <> irc_rtm_shd.g_old_rec.object_version_number) Then
181: hr_utility.set_location('Invalid OVN at :'||l_proc, 14);
182: hr_utility.set_location(to_char(p_object_version_number) ||
183: 'vs' || to_char(irc_rtm_shd.g_old_rec.object_version_number) ||
184: ' '||l_proc, 16);
185: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
178: Close C_Sel1;
179: If (p_object_version_number
180: <> irc_rtm_shd.g_old_rec.object_version_number) Then
181: hr_utility.set_location('Invalid OVN at :'||l_proc, 14);
182: hr_utility.set_location(to_char(p_object_version_number) ||
183: 'vs' || to_char(irc_rtm_shd.g_old_rec.object_version_number) ||
184: ' '||l_proc, 16);
185: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
186: fnd_message.raise_error;
185: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
186: fnd_message.raise_error;
187: End If;
188: --
189: hr_utility.set_location(' Leaving:'||l_proc, 20);
190: --
191: -- We need to trap the ORA LOCK exception
192: --
193: Exception
195: --
196: -- The object is locked therefore we need to supply a meaningful
197: -- error message.
198: --
199: hr_utility.set_location('Object locked :'||l_proc, 21);
200: fnd_message.set_name('PAY', 'HR_7165_OBJECT_LOCKED');
201: fnd_message.set_token('TABLE_NAME', 'irc_rec_team_members');
202: fnd_message.raise_error;
203: End lck;