42: Begin
43: --
44: hr_utility.set_location('Entering:'||l_proc, 5);
45: --
46: l_api_updating := pqh_dst_shd.api_updating
47: (p_dflt_budget_set_id => p_dflt_budget_set_id,
48: p_object_version_number => p_object_version_number);
49: --
50: if (l_api_updating
48: p_object_version_number => p_object_version_number);
49: --
50: if (l_api_updating
51: and nvl(p_dflt_budget_set_id,hr_api.g_number)
52: <> pqh_dst_shd.g_old_rec.dflt_budget_set_id) then
53: --
54: -- raise error as PK has changed
55: --
56: pqh_dst_shd.constraint_error('PQH_DFLT_BUDGET_SETS_PK');
52: <> pqh_dst_shd.g_old_rec.dflt_budget_set_id) then
53: --
54: -- raise error as PK has changed
55: --
56: pqh_dst_shd.constraint_error('PQH_DFLT_BUDGET_SETS_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null
62: if p_dflt_budget_set_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: pqh_dst_shd.constraint_error('PQH_DFLT_BUDGET_SETS_PK');
67: --
68: end if;
69: --
70: end if;
111:
112: -- ----------------------------------------------------------------------------
113: -- |---------------------------< insert_validate >----------------------------|
114: -- ----------------------------------------------------------------------------
115: Procedure insert_validate(p_rec in pqh_dst_shd.g_rec_type) is
116: --
117: l_proc varchar2(72) := g_package||'insert_validate';
118: --
119: Begin
136: --
137: -- ----------------------------------------------------------------------------
138: -- |---------------------------< update_validate >----------------------------|
139: -- ----------------------------------------------------------------------------
140: Procedure update_validate(p_rec in pqh_dst_shd.g_rec_type) is
141: --
142: l_proc varchar2(72) := g_package||'update_validate';
143: --
144: Begin
162: --
163: -- ----------------------------------------------------------------------------
164: -- |---------------------------< delete_validate >----------------------------|
165: -- ----------------------------------------------------------------------------
166: Procedure delete_validate(p_rec in pqh_dst_shd.g_rec_type) is
167: --
168: l_proc varchar2(72) := g_package||'delete_validate';
169: --
170: Begin