14: --
15: l_proc varchar2(72) := g_package||'return_api_dml_status';
16: --
17: Begin
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
18: hr_utility.set_location('Entering:'||l_proc, 5);
19: --
20: Return (nvl(g_api_dml, false));
21: --
22: hr_utility.set_location(' Leaving:'||l_proc, 10);
23: End return_api_dml_status;
24: --
25: -- ----------------------------------------------------------------------------
26: -- |---------------------------< constraint_error >---------------------------|
31: l_proc varchar2(72) := g_package||'constraint_error';
32: --
33: --
34: Begin
35: hr_utility.set_location('Entering:'||l_proc, 5);
36: --
37: If (p_constraint_name = 'HR_PPU_HIERARCHY_LEVEL') Then
38: fnd_message.set_name('PAY', 'HR_51018_HR_PPU_LEVEL');
39: fnd_message.raise_error;
53: fnd_message.raise_error;
54:
55: End If;
56: --
57: hr_utility.set_location(' Leaving:'||l_proc, 10);
58: End constraint_error;
59: --
60: -- ----------------------------------------------------------------------------
61: -- |-----------------------------< api_updating >-----------------------------|
82: l_proc varchar2(72) := g_package||'api_updating';
83: l_fct_ret boolean;
84: --
85: Begin
86: hr_utility.set_location('Entering:'||l_proc, 5);
87: --
88: If (
89: p_purpose_usage_id is null and
90: p_object_version_number is null
98: If (
99: p_purpose_usage_id = g_old_rec.purpose_usage_id and
100: p_object_version_number = g_old_rec.object_version_number
101: ) Then
102: hr_utility.set_location(l_proc, 10);
103: --
104: -- The g_old_rec is current therefore we must
105: -- set the returning function to true
106: --
120: fnd_message.raise_error;
121: End If;
122: Close C_Sel1;
123: If (p_object_version_number <> g_old_rec.object_version_number) Then
124: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
125: hr_utility.raise_error;
126: End If;
127: hr_utility.set_location(l_proc, 15);
128: l_fct_ret := true;
121: End If;
122: Close C_Sel1;
123: If (p_object_version_number <> g_old_rec.object_version_number) Then
124: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
125: hr_utility.raise_error;
126: End If;
127: hr_utility.set_location(l_proc, 15);
128: l_fct_ret := true;
129: End If;
123: If (p_object_version_number <> g_old_rec.object_version_number) Then
124: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
125: hr_utility.raise_error;
126: End If;
127: hr_utility.set_location(l_proc, 15);
128: l_fct_ret := true;
129: End If;
130: End If;
131: hr_utility.set_location(' Leaving:'||l_proc, 20);
127: hr_utility.set_location(l_proc, 15);
128: l_fct_ret := true;
129: End If;
130: End If;
131: hr_utility.set_location(' Leaving:'||l_proc, 20);
132: Return (l_fct_ret);
133: --
134: End api_updating;
135: --
156: --
157: l_proc varchar2(72) := g_package||'lck';
158: --
159: Begin
160: hr_utility.set_location('Entering:'||l_proc, 5);
161: --
162: -- Add any mandatory argument checking here:
163: -- Example:
164: -- hr_api.mandatory_arg_error
177: fnd_message.raise_error;
178: End If;
179: Close C_Sel1;
180: If (p_object_version_number <> g_old_rec.object_version_number) Then
181: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
182: hr_utility.raise_error;
183: End If;
184: --
185: hr_utility.set_location(' Leaving:'||l_proc, 10);
178: End If;
179: Close C_Sel1;
180: If (p_object_version_number <> g_old_rec.object_version_number) Then
181: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
182: hr_utility.raise_error;
183: End If;
184: --
185: hr_utility.set_location(' Leaving:'||l_proc, 10);
186: --
181: hr_utility.set_message('801', 'HR_7155_OBJECT_INVALID');
182: hr_utility.raise_error;
183: End If;
184: --
185: hr_utility.set_location(' Leaving:'||l_proc, 10);
186: --
187: -- We need to trap the ORA LOCK exception
188: --
189: Exception
191: --
192: -- The object is locked therefore we need to supply a meaningful
193: -- error message.
194: --
195: hr_utility.set_message('801', 'HR_7165_OBJECT_LOCKED');
196: hr_utility.set_message_token('TABLE_NAME', 'hr_pattern_purpose_usages');
197: hr_utility.raise_error;
198: End lck;
199: --
192: -- The object is locked therefore we need to supply a meaningful
193: -- error message.
194: --
195: hr_utility.set_message('801', 'HR_7165_OBJECT_LOCKED');
196: hr_utility.set_message_token('TABLE_NAME', 'hr_pattern_purpose_usages');
197: hr_utility.raise_error;
198: End lck;
199: --
200: -- ----------------------------------------------------------------------------
193: -- error message.
194: --
195: hr_utility.set_message('801', 'HR_7165_OBJECT_LOCKED');
196: hr_utility.set_message_token('TABLE_NAME', 'hr_pattern_purpose_usages');
197: hr_utility.raise_error;
198: End lck;
199: --
200: -- ----------------------------------------------------------------------------
201: -- |-----------------------------< convert_args >-----------------------------|
214: l_proc varchar2(72) := g_package||'convert_args';
215: --
216: Begin
217: --
218: hr_utility.set_location('Entering:'||l_proc, 5);
219: --
220: -- Convert arguments into local l_rec structure.
221: --
222: l_rec.purpose_usage_id := p_purpose_usage_id;
226: l_rec.object_version_number := p_object_version_number;
227: --
228: -- Return the plsql record structure.
229: --
230: hr_utility.set_location(' Leaving:'||l_proc, 10);
231: Return(l_rec);
232: --
233: End convert_args;
234: --