1: Package Body pqh_vlp_shd as
2: /* $Header: pqvlprhi.pkb 115.6 2004/03/31 00:31:40 kgowripe noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqh_vlp_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
81: --
82: l_fct_ret := false;
83: Else
84: If (p_validation_period_id
85: = pqh_vlp_shd.g_old_rec.validation_period_id and
86: p_object_version_number
87: = pqh_vlp_shd.g_old_rec.object_version_number
88: ) Then
89: --
83: Else
84: If (p_validation_period_id
85: = pqh_vlp_shd.g_old_rec.validation_period_id and
86: p_object_version_number
87: = pqh_vlp_shd.g_old_rec.object_version_number
88: ) Then
89: --
90: -- The g_old_rec is current therefore we must
91: -- set the returning function to true
95: --
96: -- Select the current row into g_old_rec
97: --
98: Open C_Sel1;
99: Fetch C_Sel1 Into pqh_vlp_shd.g_old_rec;
100: If C_Sel1%notfound Then
101: Close C_Sel1;
102: --
103: -- The primary key is invalid therefore we must error
106: fnd_message.raise_error;
107: End If;
108: Close C_Sel1;
109: If (p_object_version_number
110: <> pqh_vlp_shd.g_old_rec.object_version_number) Then
111: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
112: fnd_message.raise_error;
113: End If;
114: l_fct_ret := true;
165: ,p_argument_value => p_object_version_number
166: );
167: --
168: Open C_Sel1;
169: Fetch C_Sel1 Into pqh_vlp_shd.g_old_rec;
170: If C_Sel1%notfound then
171: Close C_Sel1;
172: --
173: -- The primary key is invalid therefore we must error
176: fnd_message.raise_error;
177: End If;
178: Close C_Sel1;
179: If (p_object_version_number
180: <> pqh_vlp_shd.g_old_rec.object_version_number) Then
181: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
182: fnd_message.raise_error;
183: End If;
184: --
244: Return(l_rec);
245: --
246: End convert_args;
247: --
248: end pqh_vlp_shd;