DBA Data[Home] [Help]

APPS.PAY_EXA_INS dependencies on PAY_EXA_SHD

Line 54: p_rec in out nocopy pay_exa_shd.g_rec_type,

50: --
51: -- {End Of Comments}
52: -- ----------------------------------------------------------------------------
53: procedure insert_dml(
54: p_rec in out nocopy pay_exa_shd.g_rec_type,
55: p_business_group_id in number
56: ) is
57: --
58: l_proc varchar2(72) := g_package||'insert_dml';

Line 63: pay_exa_shd.g_api_dml := true; -- set the api dml status

59: --
60: begin
61: hr_utility.set_location('Entering:'||l_proc, 5);
62: --
63: pay_exa_shd.g_api_dml := true; -- set the api dml status
64:
65: --
66: -- insert_validate(), chk_territory_code(), pay_exa_shd.api_updating()
67: -- has been called,

Line 66: -- insert_validate(), chk_territory_code(), pay_exa_shd.api_updating()

62: --
63: pay_exa_shd.g_api_dml := true; -- set the api dml status
64:
65: --
66: -- insert_validate(), chk_territory_code(), pay_exa_shd.api_updating()
67: -- has been called,
68: -- this selects a row into g_old_rec and returns true if the PK value
69: -- passed in matches a row on the db,
70: -- nb. no locking is done

Line 72: pay_exa_shd.lck

68: -- this selects a row into g_old_rec and returns true if the PK value
69: -- passed in matches a row on the db,
70: -- nb. no locking is done
71: --
72: pay_exa_shd.lck
73: (p_rec.external_account_id,
74: p_rec.object_version_number);
75: --
76: -- only do U if values have changed

Line 79: nvl(pay_exa_shd.g_old_rec.territory_code, hr_api.g_varchar2) )

75: --
76: -- only do U if values have changed
77: --
78: if ( nvl(p_rec.territory_code, hr_api.g_varchar2) <>
79: nvl(pay_exa_shd.g_old_rec.territory_code, hr_api.g_varchar2) )
80: or
81: ( nvl(p_rec.prenote_date, hr_api.g_date) <>
82: nvl(pay_exa_shd.g_old_rec.prenote_date, hr_api.g_date) ) then
83: hr_utility.trace('| doing update on combination table');

Line 82: nvl(pay_exa_shd.g_old_rec.prenote_date, hr_api.g_date) ) then

78: if ( nvl(p_rec.territory_code, hr_api.g_varchar2) <>
79: nvl(pay_exa_shd.g_old_rec.territory_code, hr_api.g_varchar2) )
80: or
81: ( nvl(p_rec.prenote_date, hr_api.g_date) <>
82: nvl(pay_exa_shd.g_old_rec.prenote_date, hr_api.g_date) ) then
83: hr_utility.trace('| doing update on combination table');
84: --
85: -- fresh combination record
86: --

Line 87: if ( pay_exa_shd.g_old_rec.territory_code is null ) then

83: hr_utility.trace('| doing update on combination table');
84: --
85: -- fresh combination record
86: --
87: if ( pay_exa_shd.g_old_rec.territory_code is null ) then
88: hr_utility.trace('| updating territory_code');
89: --
90: UPDATE PAY_EXTERNAL_ACCOUNTS
91: SET territory_code = p_rec.territory_code

Line 110: nvl(pay_exa_shd.g_old_rec.prenote_date, hr_api.g_date) ) then

106: -- take place).
107: --
108: null;
109: elsif ( nvl(p_rec.prenote_date, hr_api.g_date) <>
110: nvl(pay_exa_shd.g_old_rec.prenote_date, hr_api.g_date) ) then
111: hr_utility.trace('| updating prenote_date');
112: --
113: UPDATE PAY_EXTERNAL_ACCOUNTS
114: SET prenote_date = p_rec.prenote_date

Line 127: pay_exa_shd.g_api_dml := false; -- unset the api dml status

123: WHERE external_account_id = p_rec.external_account_id
124: ;
125: end if;
126: --
127: pay_exa_shd.g_api_dml := false; -- unset the api dml status
128: --
129: hr_utility.set_location(' Leaving:'||l_proc, 10);
130: Exception
131: When hr_api.check_integrity_violated Then

Line 133: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

129: hr_utility.set_location(' Leaving:'||l_proc, 10);
130: Exception
131: When hr_api.check_integrity_violated Then
132: -- A check constraint has been violated
133: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
134: pay_exa_shd.constraint_error
135: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
136: When hr_api.parent_integrity_violated Then
137: -- Parent integrity has been violated

Line 134: pay_exa_shd.constraint_error

130: Exception
131: When hr_api.check_integrity_violated Then
132: -- A check constraint has been violated
133: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
134: pay_exa_shd.constraint_error
135: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
136: When hr_api.parent_integrity_violated Then
137: -- Parent integrity has been violated
138: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

Line 138: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

134: pay_exa_shd.constraint_error
135: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
136: When hr_api.parent_integrity_violated Then
137: -- Parent integrity has been violated
138: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
139: pay_exa_shd.constraint_error
140: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
141: When hr_api.unique_integrity_violated Then
142: -- Unique integrity has been violated

Line 139: pay_exa_shd.constraint_error

135: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
136: When hr_api.parent_integrity_violated Then
137: -- Parent integrity has been violated
138: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
139: pay_exa_shd.constraint_error
140: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
141: When hr_api.unique_integrity_violated Then
142: -- Unique integrity has been violated
143: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

Line 143: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

139: pay_exa_shd.constraint_error
140: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
141: When hr_api.unique_integrity_violated Then
142: -- Unique integrity has been violated
143: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
144: pay_exa_shd.constraint_error
145: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
146: When Others Then
147: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

Line 144: pay_exa_shd.constraint_error

140: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
141: When hr_api.unique_integrity_violated Then
142: -- Unique integrity has been violated
143: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
144: pay_exa_shd.constraint_error
145: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
146: When Others Then
147: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
148: Raise;

Line 147: pay_exa_shd.g_api_dml := false; -- Unset the api dml status

143: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
144: pay_exa_shd.constraint_error
145: (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
146: When Others Then
147: pay_exa_shd.g_api_dml := false; -- Unset the api dml status
148: Raise;
149: end insert_dml;
150: --
151: -- ----------------------------------------------------------------------------

Line 189: p_rec in out nocopy pay_exa_shd.g_rec_type

185: --
186: -- {End Of Comments}
187: -- ----------------------------------------------------------------------------
188: procedure pre_insert(
189: p_rec in out nocopy pay_exa_shd.g_rec_type
190: ,p_business_group_id in number
191: ) is
192: --
193: l_proc varchar2(72) := g_package||'pre_insert';

Line 233: p_rec in pay_exa_shd.g_rec_type

229: --
230: -- {End Of Comments}
231: -- ----------------------------------------------------------------------------
232: procedure post_insert(
233: p_rec in pay_exa_shd.g_rec_type
234: ,p_business_group_id in number
235: ) is
236: --
237: l_proc varchar2(72) := g_package||'post_insert';

Line 249: p_rec in out nocopy pay_exa_shd.g_rec_type

245: -- ----------------------------------------------------------------------------
246: -- |---------------------------------< ins >----------------------------------|
247: -- ----------------------------------------------------------------------------
248: procedure ins(
249: p_rec in out nocopy pay_exa_shd.g_rec_type
250: ,p_business_group_id in number
251: ,p_validate in boolean default false
252: ) is
253: --

Line 347: l_rec pay_exa_shd.g_rec_type;

343: ,p_object_version_number out nocopy number
344: ,p_validate in boolean default false
345: ) is
346: --
347: l_rec pay_exa_shd.g_rec_type;
348: l_proc varchar2(72) := g_package||'ins';
349: --
350: cursor csr_ovn(p_external_account_id number) is
351: SELECT pea.object_version_number

Line 362: pay_exa_shd.convert_args

358: --
359: -- call conversion function to turn arguments into the p_rec structure
360: --
361: l_rec :=
362: pay_exa_shd.convert_args
363: (
364: p_external_account_id,
365: p_territory_code,
366: p_prenote_date,

Line 503: pay_exa_shd.keyflex_comb(

499: -- only an internal call,
500: -- out paramters used by ins_or_sel() are explicitly set to null
501: -- on failure
502: --
503: pay_exa_shd.keyflex_comb(
504: p_dml_mode => 'INSERT',
505: p_business_group_id => p_business_group_id,
506: p_appl_short_name => 'PAY',
507: p_territory_code => p_territory_code,