1: Package Body pqh_tsh_shd as
2: /* $Header: pqtshrhi.pkb 120.2 2005/12/21 11:28:58 hpandya noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' pqh_tsh_shd.'; -- Global package name
9: --
10: -- ----------------------------------------------------------------------------
11: -- |---------------------------< constraint_error >---------------------------|
12: -- ----------------------------------------------------------------------------
75: --
76: l_fct_ret := false;
77: Else
78: If (p_transaction_history_id
79: = pqh_tsh_shd.g_old_rec.transaction_history_id and
80: p_approval_history_id
81: = pqh_tsh_shd.g_old_rec.approval_history_id
82: ) Then
83: --
77: Else
78: If (p_transaction_history_id
79: = pqh_tsh_shd.g_old_rec.transaction_history_id and
80: p_approval_history_id
81: = pqh_tsh_shd.g_old_rec.approval_history_id
82: ) Then
83: --
84: -- The g_old_rec is current therefore we must
85: -- set the returning function to true
89: --
90: -- Select the current row into g_old_rec
91: --
92: Open C_Sel1;
93: Fetch C_Sel1 Into pqh_tsh_shd.g_old_rec;
94: If C_Sel1%notfound Then
95: Close C_Sel1;
96: --
97: -- The primary key is invalid therefore we must error
154: ,p_argument_value => p_approval_history_id
155: );
156: --
157: Open C_Sel1;
158: Fetch C_Sel1 Into pqh_tsh_shd.g_old_rec;
159: If C_Sel1%notfound then
160: Close C_Sel1;
161: --
162: -- The primary key is invalid therefore we must error
225: Return(l_rec);
226: --
227: End convert_args;
228: --
229: end pqh_tsh_shd;