1: Package Body pqh_str_shd as
2: /* $Header: pqstrrhi.pkb 115.10 2004/04/06 05:49 svorugan noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqh_str_shd.'; -- Global package name
9:
10: g_debug boolean := hr_utility.debug_enabled;
11: --
12: -- ----------------------------------------------------------------------------
74: --
75: l_fct_ret := false;
76: Else
77: If (p_stat_situation_rule_id
78: = pqh_str_shd.g_old_rec.stat_situation_rule_id and
79: p_object_version_number
80: = pqh_str_shd.g_old_rec.object_version_number
81: ) Then
82: --
76: Else
77: If (p_stat_situation_rule_id
78: = pqh_str_shd.g_old_rec.stat_situation_rule_id and
79: p_object_version_number
80: = pqh_str_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 pqh_str_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: <> pqh_str_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;
166: ,p_argument_value => p_object_version_number
167: );
168: --
169: Open C_Sel1;
170: Fetch C_Sel1 Into pqh_str_shd.g_old_rec;
171: If C_Sel1%notfound then
172: Close C_Sel1;
173: --
174: -- The primary key is invalid therefore we must error
177: fnd_message.raise_error;
178: End If;
179: Close C_Sel1;
180: If (p_object_version_number
181: <> pqh_str_shd.g_old_rec.object_version_number) Then
182: fnd_message.set_name('PAY', 'HR_7155_OBJECT_INVALID');
183: fnd_message.raise_error;
184: End If;
185: --
242: Return(l_rec);
243: --
244: End convert_args;
245: --
246: end pqh_str_shd;