1: Package Body ghr_cin_shd as
2: /* $Header: ghcinrhi.pkb 115.1 2003/01/30 19:25:18 asubrahm noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ghr_cin_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
74: --
75: l_fct_ret := false;
76: Else
77: If (p_compl_incident_id
78: = ghr_cin_shd.g_old_rec.compl_incident_id and
79: p_object_version_number
80: = ghr_cin_shd.g_old_rec.object_version_number
81: ) Then
82: --
76: Else
77: If (p_compl_incident_id
78: = ghr_cin_shd.g_old_rec.compl_incident_id and
79: p_object_version_number
80: = ghr_cin_shd.g_old_rec.object_version_number
81: ) Then
82: --
83: -- The g_old_rec is current therefore we must
84: -- set the returning function to true
88: --
89: -- Select the current row into g_old_rec
90: --
91: Open C_Sel1;
92: Fetch C_Sel1 Into ghr_cin_shd.g_old_rec;
93: If C_Sel1%notfound Then
94: Close C_Sel1;
95: --
96: -- The primary key is invalid therefore we must error
99: fnd_message.raise_error;
100: End If;
101: Close C_Sel1;
102: If (p_object_version_number
103: <> ghr_cin_shd.g_old_rec.object_version_number) Then
104: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
105: fnd_message.raise_error;
106: End If;
107: l_fct_ret := true;
151: ,p_argument_value => p_object_version_number
152: );
153: --
154: Open C_Sel1;
155: Fetch C_Sel1 Into ghr_cin_shd.g_old_rec;
156: If C_Sel1%notfound then
157: Close C_Sel1;
158: --
159: -- The primary key is invalid therefore we must error
162: fnd_message.raise_error;
163: End If;
164: Close C_Sel1;
165: If (p_object_version_number
166: <> ghr_cin_shd.g_old_rec.object_version_number) Then
167: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
168: fnd_message.raise_error;
169: End If;
170: --
216: Return(l_rec);
217: --
218: End convert_args;
219: --
220: end ghr_cin_shd;