DBA Data[Home] [Help]

PACKAGE BODY: APPS.PAY_CTY_UPD

Source


1 Package Body pay_cty_upd as
2 /* $Header: pyctyrhi.pkb 120.0.12000000.2 2007/05/01 22:44:28 ahanda noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '  pay_cty_upd.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |----------------------------< dt_update_dml >-----------------------------|
12 -- ----------------------------------------------------------------------------
13 -- {Start Of Comments}
14 --
15 -- Description:
16 --   This procedure controls the execution of dml from the datetrack mode
17 --   of CORRECTION only. It is important to note that the object version
18 --   number is only increment by 1 because the datetrack correction is
19 --   soley for one datetracked row.
20 --   This procedure controls the actual dml update logic. The functions of this
21 --   procedure are as follows:
22 --   1) Get the next object_version_number.
23 --   2) To set and unset the g_api_dml status as required (as we are about to
24 --      perform dml).
25 --   3) To update the specified row in the schema using the primary key in
26 --      the predicates.
27 --   4) To trap any constraint violations that may have occurred.
28 --   5) To raise any other errors.
29 --
30 -- Prerequisites:
31 --   This is an internal private procedure which must be called from the
32 --   update_dml procedure.
33 --
34 -- In Parameters:
35 --   A Pl/Sql record structre.
36 --
37 -- Post Success:
38 --   The specified row will be updated in the schema.
39 --
40 -- Post Failure:
41 --   On the update dml failure it is important to note that we always reset the
42 --   g_api_dml status to false.
43 --   If a check or unique integrity constraint violation is raised the
44 --   constraint_error procedure will be called.
45 --   If any other error is reported, the error will be raised after the
46 --   g_api_dml status is reset.
47 --
48 -- Developer Implementation Notes:
49 --   The update 'set' arguments list should be modified if any of your
50 --   attributes are not updateable.
51 --
52 -- Access Status:
53 --   Internal Row Handler Use Only.
54 --
55 -- {End Of Comments}
56 -- ----------------------------------------------------------------------------
57 Procedure dt_update_dml
58       (p_rec                   in out nocopy pay_cty_shd.g_rec_type,
59        p_effective_date        in      date,
60        p_datetrack_mode        in      varchar2,
61        p_validation_start_date in      date,
62        p_validation_end_date   in      date) is
63 --
64   l_proc      varchar2(72) := g_package||'dt_update_dml';
65 --
66 Begin
67   hr_utility.set_location('Entering:'||l_proc, 5);
68   --
69   If (p_datetrack_mode = 'CORRECTION') then
70     hr_utility.set_location(l_proc, 10);
71     --
72     -- Because we are updating a row we must get the next object
73     -- version number.
74     --
75     p_rec.object_version_number :=
76       dt_api.get_object_version_number
77         (p_base_table_name      => 'pay_us_emp_city_tax_rules_f',
78          p_base_key_column      => 'emp_city_tax_rule_id',
79          p_base_key_value      => p_rec.emp_city_tax_rule_id);
80     --
81     pay_cty_shd.g_api_dml := true;  -- Set the api dml status
82     --
83     -- Update the pay_us_emp_city_tax_rules_f Row
84     --
85     update  pay_us_emp_city_tax_rules_f
86     set
87         emp_city_tax_rule_id            = p_rec.emp_city_tax_rule_id,
88     assignment_id                   = p_rec.assignment_id,
89     state_code                      = p_rec.state_code,
90     county_code                     = p_rec.county_code,
91     city_code                       = p_rec.city_code,
92     business_group_id               = p_rec.business_group_id,
93     additional_wa_rate              = p_rec.additional_wa_rate,
94     filing_status_code              = p_rec.filing_status_code,
95     jurisdiction_code               = p_rec.jurisdiction_code,
96     lit_additional_tax              = p_rec.lit_additional_tax,
97     lit_override_amount             = p_rec.lit_override_amount,
98     lit_override_rate               = p_rec.lit_override_rate,
99     withholding_allowances          = p_rec.withholding_allowances,
100     lit_exempt                      = p_rec.lit_exempt,
101     sd_exempt                       = p_rec.sd_exempt,
102     ht_exempt                       = p_rec.ht_exempt,
103     wage_exempt                     = p_rec.wage_exempt,
104     school_district_code            = p_rec.school_district_code,
105     object_version_number           = p_rec.object_version_number,
106     attribute_category              = p_rec.attribute_category,
107     attribute1                      = p_rec.attribute1,
108     attribute2                      = p_rec.attribute2,
109     attribute3                      = p_rec.attribute3,
110     attribute4                      = p_rec.attribute4,
111     attribute5                      = p_rec.attribute5,
112     attribute6                      = p_rec.attribute6,
113     attribute7                      = p_rec.attribute7,
114     attribute8                      = p_rec.attribute8,
115     attribute9                      = p_rec.attribute9,
116     attribute10                     = p_rec.attribute10,
117     attribute11                     = p_rec.attribute11,
118     attribute12                     = p_rec.attribute12,
119     attribute13                     = p_rec.attribute13,
120     attribute14                     = p_rec.attribute14,
121     attribute15                     = p_rec.attribute15,
122     attribute16                     = p_rec.attribute16,
123     attribute17                     = p_rec.attribute17,
124     attribute18                     = p_rec.attribute18,
125     attribute19                     = p_rec.attribute19,
126     attribute20                     = p_rec.attribute20,
127     attribute21                     = p_rec.attribute21,
128     attribute22                     = p_rec.attribute22,
129     attribute23                     = p_rec.attribute23,
130     attribute24                     = p_rec.attribute24,
131     attribute25                     = p_rec.attribute25,
132     attribute26                     = p_rec.attribute26,
133     attribute27                     = p_rec.attribute27,
134     attribute28                     = p_rec.attribute28,
135     attribute29                     = p_rec.attribute29,
136     attribute30                     = p_rec.attribute30,
137     cty_information_category        = p_rec.cty_information_category,
138     cty_information1                      = p_rec.cty_information1,
139     cty_information2                      = p_rec.cty_information2,
140     cty_information3                      = p_rec.cty_information3,
141     cty_information4                      = p_rec.cty_information4,
142     cty_information5                      = p_rec.cty_information5,
143     cty_information6                      = p_rec.cty_information6,
144     cty_information7                      = p_rec.cty_information7,
145     cty_information8                      = p_rec.cty_information8,
146     cty_information9                      = p_rec.cty_information9,
147     cty_information10                     = p_rec.cty_information10,
148     cty_information11                     = p_rec.cty_information11,
149     cty_information12                     = p_rec.cty_information12,
150     cty_information13                     = p_rec.cty_information13,
151     cty_information14                     = p_rec.cty_information14,
152     cty_information15                     = p_rec.cty_information15,
153     cty_information16                     = p_rec.cty_information16,
154     cty_information17                     = p_rec.cty_information17,
155     cty_information18                     = p_rec.cty_information18,
156     cty_information19                     = p_rec.cty_information19,
157     cty_information20                     = p_rec.cty_information20,
158     cty_information21                     = p_rec.cty_information21,
159     cty_information22                     = p_rec.cty_information22,
160     cty_information23                     = p_rec.cty_information23,
161     cty_information24                     = p_rec.cty_information24,
162     cty_information25                     = p_rec.cty_information25,
163     cty_information26                     = p_rec.cty_information26,
164     cty_information27                     = p_rec.cty_information27,
165     cty_information28                     = p_rec.cty_information28,
166     cty_information29                     = p_rec.cty_information29,
167     cty_information30                     = p_rec.cty_information30
168     where   emp_city_tax_rule_id = p_rec.emp_city_tax_rule_id
169     and     effective_start_date = p_validation_start_date
170     and     effective_end_date   = p_validation_end_date;
171     --
172     pay_cty_shd.g_api_dml := false;   -- Unset the api dml status
173     --
174     -- Set the effective start and end dates
175     --
176     p_rec.effective_start_date := p_validation_start_date;
177     p_rec.effective_end_date   := p_validation_end_date;
178   End If;
179 --
180 hr_utility.set_location(' Leaving:'||l_proc, 15);
181 Exception
182   When hr_api.check_integrity_violated Then
183     -- A check constraint has been violated
184     pay_cty_shd.g_api_dml := false;   -- Unset the api dml status
185     pay_cty_shd.constraint_error
186       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
187   When hr_api.unique_integrity_violated Then
188     -- Unique integrity has been violated
189     pay_cty_shd.g_api_dml := false;   -- Unset the api dml status
190     pay_cty_shd.constraint_error
191       (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
192   When Others Then
193     pay_cty_shd.g_api_dml := false;   -- Unset the api dml status
194     Raise;
195 End dt_update_dml;
196 --
197 -- ----------------------------------------------------------------------------
198 -- |------------------------------< update_dml >------------------------------|
199 -- ----------------------------------------------------------------------------
200 -- {Start Of Comments}
201 --
202 -- Description:
203 --   This procedure calls the dt_update_dml control logic which handles
204 --   the actual datetrack dml.
205 --
206 -- Prerequisites:
207 --   This is an internal private procedure which must be called from the upd
208 --   procedure.
209 --
210 -- In Parameters:
211 --   A Pl/Sql record structre.
212 --
213 -- Post Success:
214 --   Processing contines.
215 --
216 -- Post Failure:
217 --   No specific error handling is required within this procedure.
218 --
219 -- Developer Implementation Notes:
220 --   The update 'set' arguments list should be modified if any of your
221 --   attributes are not updateable.
222 --
223 -- Access Status:
224 --   Internal Row Handler Use Only.
225 --
226 -- {End Of Comments}
227 -- ----------------------------------------------------------------------------
228 Procedure update_dml
229       (p_rec                   in out nocopy pay_cty_shd.g_rec_type,
230        p_effective_date        in      date,
231        p_datetrack_mode        in      varchar2,
232        p_validation_start_date in      date,
233        p_validation_end_date   in      date) is
234 --
235   l_proc      varchar2(72) := g_package||'update_dml';
236 --
237 Begin
238   hr_utility.set_location('Entering:'||l_proc, 5);
239   --
240   dt_update_dml(p_rec               => p_rec,
241             p_effective_date        => p_effective_date,
242             p_datetrack_mode        => p_datetrack_mode,
243             p_validation_start_date => p_validation_start_date,
244             p_validation_end_date   => p_validation_end_date);
245   --
246   hr_utility.set_location(' Leaving:'||l_proc, 10);
247 End update_dml;
248 --
249 -- ----------------------------------------------------------------------------
250 -- |----------------------------< dt_pre_update >-----------------------------|
251 -- ----------------------------------------------------------------------------
252 -- {Start Of Comments}
253 --
254 -- Description:
255 --   The dt_pre_update procedure controls the execution
256 --   of dml for the datetrack modes of: UPDATE, UPDATE_OVERRIDE
257 --   and UPDATE_CHANGE_INSERT only. The execution required is as
258 --   follows:
259 --
260 --   1) Providing the datetrack update mode is not 'CORRECTION'
261 --      then set the effective end date of the current row (this
262 --      will be the validation_start_date - 1).
263 --   2) If the datetrack mode is 'UPDATE_OVERRIDE' then call the
264 --      corresponding delete_dml process to delete any future rows
265 --      where the effective_start_date is greater than or equal to
266 --      the validation_start_date.
267 --   3) Call the insert_dml process to insert the new updated row
268 --      details..
269 --
270 -- Prerequisites:
271 --   This is an internal procedure which is called from the
272 --   pre_update procedure.
273 --
274 -- In Parameters:
275 --
276 -- Post Success:
277 --   Processing continues.
278 --
279 -- Post Failure:
280 --   If an error has occurred, an error message and exception will be raised
281 --   but not handled.
282 --
283 -- Developer Implementation Notes:
284 --   This is an internal procedure which is required by Datetrack. Don't
285 --   remove or modify.
286 --
287 -- Access Status:
288 --   Internal Row Handler Use Only.
289 --
290 -- {End Of Comments}
291 -- ----------------------------------------------------------------------------
292 Procedure dt_pre_update
293       (p_rec                   in out nocopy      pay_cty_shd.g_rec_type,
294        p_effective_date        in      date,
295        p_datetrack_mode        in      varchar2,
296        p_validation_start_date in      date,
297        p_validation_end_date   in      date) is
298 --
299   l_proc         varchar2(72) := g_package||'dt_pre_update';
300   l_dummy_version_number number;
301 --
302 Begin
303   hr_utility.set_location('Entering:'||l_proc, 5);
304   If (p_datetrack_mode <> 'CORRECTION') then
305     hr_utility.set_location(l_proc, 10);
306     --
307     -- Update the current effective end date
308     --
309     pay_cty_shd.upd_effective_end_date
310      (p_effective_date         => p_effective_date,
311       p_base_key_value         => p_rec.emp_city_tax_rule_id,
312       p_new_effective_end_date => (p_validation_start_date - 1),
313       p_validation_start_date  => p_validation_start_date,
314       p_validation_end_date    => p_validation_end_date,
315       p_object_version_number  => l_dummy_version_number);
316     --
317     If (p_datetrack_mode = 'UPDATE_OVERRIDE') then
318       hr_utility.set_location(l_proc, 15);
319       --
320       -- As the datetrack mode is 'UPDATE_OVERRIDE' then we must
321       -- delete any future rows
322       --
323       pay_cty_del.delete_dml
324       (p_rec                   => p_rec,
325        p_effective_date        => p_effective_date,
326        p_datetrack_mode        => p_datetrack_mode,
327        p_validation_start_date => p_validation_start_date,
328        p_validation_end_date   => p_validation_end_date);
329     End If;
330     hr_utility.set_location(l_proc, 20);
331     --
332     -- We must now insert the updated row
333     --
334     pay_cty_ins.insert_dml
335       (p_rec                  => p_rec,
336        p_effective_date       => p_effective_date,
337        p_datetrack_mode       => p_datetrack_mode,
338        p_validation_start_date => p_validation_start_date,
339        p_validation_end_date  => p_validation_end_date);
340   End If;
341   hr_utility.set_location(' Leaving:'||l_proc, 20);
342 End dt_pre_update;
343 --
344 -- ----------------------------------------------------------------------------
345 -- |------------------------------< pre_update >------------------------------|
346 -- ----------------------------------------------------------------------------
347 -- {Start Of Comments}
348 --
349 -- Description:
350 --   This private procedure contains any processing which is required before
351 --   the update dml.
352 --
353 -- Prerequisites:
354 --   This is an internal procedure which is called from the upd procedure.
355 --
356 -- In Parameters:
357 --   A Pl/Sql record structre.
358 --
359 -- Post Success:
360 --   Processing continues.
361 --
362 -- Post Failure:
363 --   If an error has occurred, an error message and exception will be raised
364 --   but not handled.
365 --
366 -- Developer Implementation Notes:
367 --   Any pre-processing required before the update dml is issued should be
368 --   coded within this procedure. It is important to note that any 3rd party
369 --   maintenance should be reviewed before placing in this procedure. The call
370 --   to the dt_update_dml procedure should NOT be removed.
371 --
372 -- Access Status:
373 --   Internal Row Handler Use Only.
374 --
375 -- {End Of Comments}
376 -- ----------------------------------------------------------------------------
377 Procedure pre_update
378       (p_rec                   in out nocopy      pay_cty_shd.g_rec_type,
379        p_effective_date        in      date,
380        p_datetrack_mode        in      varchar2,
381        p_validation_start_date in      date,
382        p_validation_end_date   in      date) is
383 --
384   l_proc      varchar2(72) := g_package||'pre_update';
385 --
386 Begin
387   hr_utility.set_location('Entering:'||l_proc, 5);
388   --
389   --
390   --
391   dt_pre_update
392     (p_rec                   => p_rec,
393      p_effective_date        => p_effective_date,
394      p_datetrack_mode        => p_datetrack_mode,
395      p_validation_start_date => p_validation_start_date,
396      p_validation_end_date   => p_validation_end_date);
397   --
398   hr_utility.set_location(' Leaving:'||l_proc, 10);
399 End pre_update;
400 --
401 -- ----------------------------------------------------------------------------
402 -- |-----------------------------< post_update >------------------------------|
403 -- ----------------------------------------------------------------------------
404 -- {Start Of Comments}
405 --
406 -- Description:
407 --   This private procedure contains any processing which is required after the
408 --   update dml.
409 --
410 -- Prerequisites:
411 --   This is an internal procedure which is called from the upd procedure.
412 --
413 -- In Parameters:
414 --   A Pl/Sql record structre.
415 --
416 -- Post Success:
417 --   Processing continues.
418 --
419 -- Post Failure:
420 --   If an error has occurred, an error message and exception will be raised
421 --   but not handled.
422 --
423 -- Developer Implementation Notes:
424 --   Any post-processing required after the update dml is issued should be
425 --   coded within this procedure. It is important to note that any 3rd party
426 --   maintenance should be reviewed before placing in this procedure.
427 --
428 -- Access Status:
429 --   Internal Row Handler Use Only.
430 --
431 -- {End Of Comments}
432 -- ----------------------------------------------------------------------------
433 Procedure post_update
434       (p_rec                   in pay_cty_shd.g_rec_type,
435        p_effective_date        in date,
436        p_datetrack_mode        in varchar2,
437        p_validation_start_date in date,
438        p_validation_end_date   in date) is
439 --
440   l_proc      varchar2(72) := g_package||'post_update';
441 --
442 Begin
443   hr_utility.set_location('Entering:'||l_proc, 5);
444 --
445   --
446   -- Start of API User Hook for post_update.
447   --
448   begin
449     --
450     null;
451 /*
452     pay_cty_rku.after_update
453       (
454   p_emp_city_tax_rule_id       =>p_rec.emp_city_tax_rule_id
455  ,p_effective_start_date       =>p_rec.effective_start_date
456  ,p_effective_end_date         =>p_rec.effective_end_date
457  ,p_additional_wa_rate         =>p_rec.additional_wa_rate
458  ,p_filing_status_code         =>p_rec.filing_status_code
459  ,p_lit_additional_tax         =>p_rec.lit_additional_tax
460  ,p_lit_override_amount        =>p_rec.lit_override_amount
461  ,p_lit_override_rate          =>p_rec.lit_override_rate
462  ,p_withholding_allowances     =>p_rec.withholding_allowances
463  ,p_lit_exempt                 =>p_rec.lit_exempt
464  ,p_sd_exempt                  =>p_rec.sd_exempt
465  ,p_ht_exempt                  =>p_rec.ht_exempt
466  ,p_wage_exempt                =>p_rec.wage_exempt
467  ,p_school_district_code       =>p_rec.school_district_code
468  ,p_object_version_number      =>p_rec.object_version_number
469  ,p_effective_date             =>p_effective_date
470  ,p_datetrack_mode             =>p_datetrack_mode
471  ,p_validation_start_date      =>p_validation_start_date
472  ,p_validation_end_date        =>p_validation_end_date
473  ,p_effective_start_date_o     =>pay_cty_shd.g_old_rec.effective_start_date
474  ,p_effective_end_date_o       =>pay_cty_shd.g_old_rec.effective_end_date
475  ,p_assignment_id_o            =>pay_cty_shd.g_old_rec.assignment_id
476  ,p_state_code_o               =>pay_cty_shd.g_old_rec.state_code
477  ,p_county_code_o              =>pay_cty_shd.g_old_rec.county_code
478  ,p_city_code_o                =>pay_cty_shd.g_old_rec.city_code
479  ,p_business_group_id_o        =>pay_cty_shd.g_old_rec.business_group_id
480  ,p_additional_wa_rate_o       =>pay_cty_shd.g_old_rec.additional_wa_rate
481  ,p_filing_status_code_o       =>pay_cty_shd.g_old_rec.filing_status_code
482  ,p_jurisdiction_code_o        =>pay_cty_shd.g_old_rec.jurisdiction_code
483  ,p_lit_additional_tax_o       =>pay_cty_shd.g_old_rec.lit_additional_tax
484  ,p_lit_override_amount_o      =>pay_cty_shd.g_old_rec.lit_override_amount
485  ,p_lit_override_rate_o        =>pay_cty_shd.g_old_rec.lit_override_rate
486  ,p_withholding_allowances_o   =>pay_cty_shd.g_old_rec.withholding_allowances
487  ,p_lit_exempt_o               =>pay_cty_shd.g_old_rec.lit_exempt
488  ,p_sd_exempt_o                =>pay_cty_shd.g_old_rec.sd_exempt
489  ,p_ht_exempt_o                =>pay_cty_shd.g_old_rec.ht_exempt
490  ,p_wage_exempt_o              =>pay_cty_shd.g_old_rec.wage_exempt
491  ,p_school_district_code_o     =>pay_cty_shd.g_old_rec.school_district_code
492  ,p_object_version_number_o    =>pay_cty_shd.g_old_rec.object_version_number
493       );
494     --
495   exception
496     --
497     when hr_api.cannot_find_prog_unit then
498       --
499       hr_api.cannot_find_prog_unit_error
500         (p_module_name => 'PAY_US_EMP_CITY_TAX_RULES_F
501         ,p_hook_type   => 'AU');
502       --
503 */
504   end;
505   --
506   -- End of API User Hook for post_update.
507   --
508   --
509   hr_utility.set_location(' Leaving:'||l_proc, 10);
510 End post_update;
511 --
512 -- ----------------------------------------------------------------------------
513 -- |-----------------------------< convert_defs >-----------------------------|
514 -- ----------------------------------------------------------------------------
515 -- {Start Of Comments}
516 --
517 -- Description:
518 --   The Convert_Defs procedure has one very important function:
519 --   It must return the record structure for the row with all system defaulted
520 --   values converted into its corresponding parameter value for update. When
521 --   we attempt to update a row through the Upd process , certain
522 --   parameters can be defaulted which enables flexibility in the calling of
523 --   the upd process (e.g. only attributes which need to be updated need to be
524 --   specified). For the upd process to determine which attributes
525 --   have NOT been specified we need to check if the parameter has a reserved
526 --   system default value. Therefore, for all parameters which have a
527 --   corresponding reserved system default mechanism specified we need to
528 --   check if a system default is being used. If a system default is being
529 --   used then we convert the defaulted value into its corresponding attribute
530 --   value held in the g_old_rec data structure.
531 --
532 -- Prerequisites:
533 --   This private function can only be called from the upd process.
534 --
535 -- In Parameters:
536 --   A Pl/Sql record structre.
537 --
538 -- Post Success:
539 --   The record structure will be returned with all system defaulted parameter
540 --   values converted into its current row attribute value.
541 --
542 -- Post Failure:
543 --   No direct error handling is required within this function. Any possible
544 --   errors within this procedure will be a PL/SQL value error due to
545 --   conversion of datatypes or data lengths.
546 --
547 -- Developer Implementation Notes:
548 --   None.
549 --
550 -- Access Status:
551 --   Internal Row Handler Use Only.
552 --
553 -- {End Of Comments}
554 -- ----------------------------------------------------------------------------
555 Procedure convert_defs(p_rec in out nocopy pay_cty_shd.g_rec_type) is
556 --
557   l_proc  varchar2(72) := g_package||'convert_defs';
558 --
559 Begin
560   --
561   hr_utility.set_location('Entering:'||l_proc, 5);
562   --
563   -- We must now examine each argument value in the
564   -- p_rec plsql record structure
565   -- to see if a system default is being used. If a system default
566   -- is being used then we must set to the 'current' argument value.
567   --
568   If (p_rec.assignment_id = hr_api.g_number) then
569     p_rec.assignment_id :=
570     pay_cty_shd.g_old_rec.assignment_id;
571   End If;
572   If (p_rec.state_code = hr_api.g_varchar2) then
573     p_rec.state_code :=
574     pay_cty_shd.g_old_rec.state_code;
575   End If;
576   If (p_rec.county_code = hr_api.g_varchar2) then
577     p_rec.county_code :=
578     pay_cty_shd.g_old_rec.county_code;
579   End If;
580   If (p_rec.city_code = hr_api.g_varchar2) then
581     p_rec.city_code :=
582     pay_cty_shd.g_old_rec.city_code;
583   End If;
584   If (p_rec.business_group_id = hr_api.g_number) then
585     p_rec.business_group_id :=
586     pay_cty_shd.g_old_rec.business_group_id;
587   End If;
588   If (p_rec.additional_wa_rate = hr_api.g_number) then
589     p_rec.additional_wa_rate :=
590     pay_cty_shd.g_old_rec.additional_wa_rate;
591   End If;
592   If (p_rec.filing_status_code = hr_api.g_varchar2) then
593     p_rec.filing_status_code :=
594     pay_cty_shd.g_old_rec.filing_status_code;
595   End If;
596   If (p_rec.jurisdiction_code = hr_api.g_varchar2) then
597     p_rec.jurisdiction_code :=
598     pay_cty_shd.g_old_rec.jurisdiction_code;
599   End If;
600   If (p_rec.lit_additional_tax = hr_api.g_number) then
601     p_rec.lit_additional_tax :=
602     pay_cty_shd.g_old_rec.lit_additional_tax;
603   End If;
604   If (p_rec.lit_override_amount = hr_api.g_number) then
605     p_rec.lit_override_amount :=
606     pay_cty_shd.g_old_rec.lit_override_amount;
607   End If;
608   If (p_rec.lit_override_rate = hr_api.g_number) then
609     p_rec.lit_override_rate :=
610     pay_cty_shd.g_old_rec.lit_override_rate;
611   End If;
612   If (p_rec.withholding_allowances = hr_api.g_number) then
613     p_rec.withholding_allowances :=
614     pay_cty_shd.g_old_rec.withholding_allowances;
615   End If;
616   If (p_rec.lit_exempt = hr_api.g_varchar2) then
617     p_rec.lit_exempt :=
618     pay_cty_shd.g_old_rec.lit_exempt;
619   End If;
620   If (p_rec.sd_exempt = hr_api.g_varchar2) then
621     p_rec.sd_exempt :=
622     pay_cty_shd.g_old_rec.sd_exempt;
623   End If;
624   If (p_rec.ht_exempt = hr_api.g_varchar2) then
625     p_rec.ht_exempt :=
626     pay_cty_shd.g_old_rec.ht_exempt;
627   End If;
628   If (p_rec.wage_exempt = hr_api.g_varchar2) then
629     p_rec.wage_exempt :=
630     pay_cty_shd.g_old_rec.wage_exempt;
631   End If;
632   If (p_rec.school_district_code = hr_api.g_varchar2) then
633     p_rec.school_district_code :=
634     pay_cty_shd.g_old_rec.school_district_code;
635   End If;
636   If (p_rec.attribute_category = hr_api.g_varchar2) then
637     p_rec.attribute_category :=
638     pay_cty_shd.g_old_rec.attribute_category;
639   End If;
640   If (p_rec.attribute1 = hr_api.g_varchar2) then
641     p_rec.attribute1 :=
642     pay_cty_shd.g_old_rec.attribute1;
643   End If;
644   If (p_rec.attribute2 = hr_api.g_varchar2) then
645     p_rec.attribute2 :=
646     pay_cty_shd.g_old_rec.attribute2;
647   End If;
648   If (p_rec.attribute3 = hr_api.g_varchar2) then
649     p_rec.attribute3 :=
650     pay_cty_shd.g_old_rec.attribute3;
651   End If;
652   If (p_rec.attribute4 = hr_api.g_varchar2) then
653     p_rec.attribute4 :=
654     pay_cty_shd.g_old_rec.attribute4;
655   End If;
656   If (p_rec.attribute5 = hr_api.g_varchar2) then
657     p_rec.attribute5 :=
658     pay_cty_shd.g_old_rec.attribute5;
659   End If;
660   If (p_rec.attribute6 = hr_api.g_varchar2) then
661     p_rec.attribute6 :=
662     pay_cty_shd.g_old_rec.attribute6;
663   End If;
664   If (p_rec.attribute7 = hr_api.g_varchar2) then
665     p_rec.attribute7 :=
666     pay_cty_shd.g_old_rec.attribute7;
667   End If;
668   If (p_rec.attribute8 = hr_api.g_varchar2) then
669     p_rec.attribute8 :=
670     pay_cty_shd.g_old_rec.attribute8;
671   End If;
672   If (p_rec.attribute9 = hr_api.g_varchar2) then
673     p_rec.attribute9 :=
674     pay_cty_shd.g_old_rec.attribute9;
675   End If;
676   If (p_rec.attribute10 = hr_api.g_varchar2) then
677     p_rec.attribute10 :=
678     pay_cty_shd.g_old_rec.attribute10;
679   End If;
680   If (p_rec.attribute11 = hr_api.g_varchar2) then
681     p_rec.attribute11 :=
682     pay_cty_shd.g_old_rec.attribute11;
683   End If;
684   If (p_rec.attribute12 = hr_api.g_varchar2) then
685     p_rec.attribute12 :=
686     pay_cty_shd.g_old_rec.attribute12;
687   End If;
688   If (p_rec.attribute13 = hr_api.g_varchar2) then
689     p_rec.attribute13 :=
690     pay_cty_shd.g_old_rec.attribute13;
691   End If;
692   If (p_rec.attribute14 = hr_api.g_varchar2) then
693     p_rec.attribute14 :=
694     pay_cty_shd.g_old_rec.attribute14;
695   End If;
696   If (p_rec.attribute15 = hr_api.g_varchar2) then
697     p_rec.attribute15 :=
698     pay_cty_shd.g_old_rec.attribute15;
699   End If;
700   If (p_rec.attribute16 = hr_api.g_varchar2) then
701     p_rec.attribute16 :=
702     pay_cty_shd.g_old_rec.attribute16;
703   End If;
704   If (p_rec.attribute17 = hr_api.g_varchar2) then
705     p_rec.attribute17 :=
706     pay_cty_shd.g_old_rec.attribute17;
707   End If;
708   If (p_rec.attribute18 = hr_api.g_varchar2) then
709     p_rec.attribute18 :=
710     pay_cty_shd.g_old_rec.attribute18;
711   End If;
712   If (p_rec.attribute19 = hr_api.g_varchar2) then
713     p_rec.attribute19 :=
714     pay_cty_shd.g_old_rec.attribute19;
715   End If;
716   If (p_rec.attribute20 = hr_api.g_varchar2) then
717     p_rec.attribute20 :=
718     pay_cty_shd.g_old_rec.attribute20;
719   End If;
720   If (p_rec.attribute21 = hr_api.g_varchar2) then
721     p_rec.attribute21 :=
722     pay_cty_shd.g_old_rec.attribute21;
723   End If;
724   If (p_rec.attribute22 = hr_api.g_varchar2) then
725     p_rec.attribute22 :=
726     pay_cty_shd.g_old_rec.attribute22;
727   End If;
728   If (p_rec.attribute23 = hr_api.g_varchar2) then
729     p_rec.attribute23 :=
730     pay_cty_shd.g_old_rec.attribute23;
731   End If;
732   If (p_rec.attribute24 = hr_api.g_varchar2) then
733     p_rec.attribute24 :=
734     pay_cty_shd.g_old_rec.attribute24;
735   End If;
736   If (p_rec.attribute25 = hr_api.g_varchar2) then
737     p_rec.attribute25 :=
738     pay_cty_shd.g_old_rec.attribute25;
739   End If;
740   If (p_rec.attribute26 = hr_api.g_varchar2) then
741     p_rec.attribute26 :=
742     pay_cty_shd.g_old_rec.attribute26;
743   End If;
744   If (p_rec.attribute27 = hr_api.g_varchar2) then
745     p_rec.attribute27 :=
746     pay_cty_shd.g_old_rec.attribute27;
747   End If;
748   If (p_rec.attribute28 = hr_api.g_varchar2) then
749     p_rec.attribute28 :=
750     pay_cty_shd.g_old_rec.attribute28;
751   End If;
752   If (p_rec.attribute29 = hr_api.g_varchar2) then
753     p_rec.attribute29 :=
754     pay_cty_shd.g_old_rec.attribute29;
755   End If;
756   If (p_rec.attribute30 = hr_api.g_varchar2) then
757     p_rec.attribute30 :=
758     pay_cty_shd.g_old_rec.attribute30;
759   End If;
760   If (p_rec.cty_information_category = hr_api.g_varchar2) then
761     p_rec.cty_information_category :=
762     pay_cty_shd.g_old_rec.cty_information_category;
763   End If;
764   If (p_rec.cty_information1 = hr_api.g_varchar2) then
765     p_rec.cty_information1 :=
766     pay_cty_shd.g_old_rec.cty_information1;
767   End If;
768   If (p_rec.cty_information2 = hr_api.g_varchar2) then
769     p_rec.cty_information2 :=
770     pay_cty_shd.g_old_rec.cty_information2;
771   End If;
772   If (p_rec.cty_information3 = hr_api.g_varchar2) then
773     p_rec.cty_information3 :=
774     pay_cty_shd.g_old_rec.cty_information3;
775   End If;
776   If (p_rec.cty_information4 = hr_api.g_varchar2) then
777     p_rec.cty_information4 :=
778     pay_cty_shd.g_old_rec.cty_information4;
779   End If;
780   If (p_rec.cty_information5 = hr_api.g_varchar2) then
781     p_rec.cty_information5 :=
782     pay_cty_shd.g_old_rec.cty_information5;
783   End If;
784   If (p_rec.cty_information6 = hr_api.g_varchar2) then
785     p_rec.cty_information6 :=
786     pay_cty_shd.g_old_rec.cty_information6;
787   End If;
788   If (p_rec.cty_information7 = hr_api.g_varchar2) then
789     p_rec.cty_information7 :=
790     pay_cty_shd.g_old_rec.cty_information7;
791   End If;
792   If (p_rec.cty_information8 = hr_api.g_varchar2) then
793     p_rec.cty_information8 :=
794     pay_cty_shd.g_old_rec.cty_information8;
795   End If;
796   If (p_rec.cty_information9 = hr_api.g_varchar2) then
797     p_rec.cty_information9 :=
798     pay_cty_shd.g_old_rec.cty_information9;
799   End If;
800   If (p_rec.cty_information10 = hr_api.g_varchar2) then
801     p_rec.cty_information10 :=
802     pay_cty_shd.g_old_rec.cty_information10;
803   End If;
804   If (p_rec.cty_information11 = hr_api.g_varchar2) then
805     p_rec.cty_information11 :=
806     pay_cty_shd.g_old_rec.cty_information11;
807   End If;
808   If (p_rec.cty_information12 = hr_api.g_varchar2) then
809     p_rec.cty_information12 :=
810     pay_cty_shd.g_old_rec.cty_information12;
811   End If;
812   If (p_rec.cty_information13 = hr_api.g_varchar2) then
813     p_rec.cty_information13 :=
814     pay_cty_shd.g_old_rec.cty_information13;
815   End If;
816   If (p_rec.cty_information14 = hr_api.g_varchar2) then
817     p_rec.cty_information14 :=
818     pay_cty_shd.g_old_rec.cty_information14;
819   End If;
820   If (p_rec.cty_information15 = hr_api.g_varchar2) then
821     p_rec.cty_information15 :=
822     pay_cty_shd.g_old_rec.cty_information15;
823   End If;
824   If (p_rec.cty_information16 = hr_api.g_varchar2) then
825     p_rec.cty_information16 :=
826     pay_cty_shd.g_old_rec.cty_information16;
827   End If;
828   If (p_rec.cty_information17 = hr_api.g_varchar2) then
829     p_rec.cty_information17 :=
830     pay_cty_shd.g_old_rec.cty_information17;
831   End If;
832   If (p_rec.cty_information18 = hr_api.g_varchar2) then
833     p_rec.cty_information18 :=
834     pay_cty_shd.g_old_rec.cty_information18;
835   End If;
836   If (p_rec.cty_information19 = hr_api.g_varchar2) then
837     p_rec.cty_information19 :=
838     pay_cty_shd.g_old_rec.cty_information19;
839   End If;
840   If (p_rec.cty_information20 = hr_api.g_varchar2) then
841     p_rec.cty_information20 :=
842     pay_cty_shd.g_old_rec.cty_information20;
843   End If;
844   If (p_rec.cty_information21 = hr_api.g_varchar2) then
845     p_rec.cty_information21 :=
846     pay_cty_shd.g_old_rec.cty_information21;
847   End If;
848   If (p_rec.cty_information22 = hr_api.g_varchar2) then
849     p_rec.cty_information22 :=
850     pay_cty_shd.g_old_rec.cty_information22;
851   End If;
852   If (p_rec.cty_information23 = hr_api.g_varchar2) then
853     p_rec.cty_information23 :=
854     pay_cty_shd.g_old_rec.cty_information23;
855   End If;
856   If (p_rec.cty_information24 = hr_api.g_varchar2) then
857     p_rec.cty_information24 :=
858     pay_cty_shd.g_old_rec.cty_information24;
859   End If;
860   If (p_rec.cty_information25 = hr_api.g_varchar2) then
861     p_rec.cty_information25 :=
862     pay_cty_shd.g_old_rec.cty_information25;
863   End If;
864   If (p_rec.cty_information26 = hr_api.g_varchar2) then
865     p_rec.cty_information26 :=
866     pay_cty_shd.g_old_rec.cty_information26;
867   End If;
868   If (p_rec.cty_information27 = hr_api.g_varchar2) then
869     p_rec.cty_information27 :=
870     pay_cty_shd.g_old_rec.cty_information27;
871   End If;
872   If (p_rec.cty_information28 = hr_api.g_varchar2) then
873     p_rec.cty_information28 :=
874     pay_cty_shd.g_old_rec.cty_information28;
875   End If;
876   If (p_rec.cty_information29 = hr_api.g_varchar2) then
877     p_rec.cty_information29 :=
878     pay_cty_shd.g_old_rec.cty_information29;
879   End If;
880   If (p_rec.cty_information30 = hr_api.g_varchar2) then
881     p_rec.cty_information30 :=
882     pay_cty_shd.g_old_rec.cty_information30;
883   End If;
884 
885   --
886   hr_utility.set_location(' Leaving:'||l_proc, 10);
887 --
888 End convert_defs;
889 --
890 -- ----------------------------------------------------------------------------
891 -- |---------------------------------< upd >----------------------------------|
892 -- ----------------------------------------------------------------------------
893 Procedure upd
894   (
895   p_rec                 in out nocopy       pay_cty_shd.g_rec_type,
896   p_effective_date      in       date,
897   p_datetrack_mode      in       varchar2
898   ) is
899 --
900   l_proc                  varchar2(72) := g_package||'upd';
901   l_validation_start_date date;
902   l_validation_end_date   date;
903 --
904 Begin
905   hr_utility.set_location('Entering:'||l_proc, 5);
906   --
907   -- Ensure that the DateTrack update mode is valid
908   --
909   dt_api.validate_dt_upd_mode(p_datetrack_mode => p_datetrack_mode);
910   --
911   -- We must lock the row which we need to update.
912   --
913   pay_cty_shd.lck
914       (p_effective_date        => p_effective_date,
915        p_datetrack_mode        => p_datetrack_mode,
916        p_emp_city_tax_rule_id  => p_rec.emp_city_tax_rule_id,
917        p_object_version_number => p_rec.object_version_number,
918        p_validation_start_date => l_validation_start_date,
919        p_validation_end_date   => l_validation_end_date);
920   --
921   -- 1. During an update system defaults are used to determine if
922   --    arguments have been defaulted or not. We must therefore
923   --    derive the full record structure values to be updated.
924   --
925   -- 2. Call the supporting update validate operations.
926   --
927   convert_defs(p_rec);
928   pay_cty_bus.update_validate
929       (p_rec                   => p_rec,
930        p_effective_date        => p_effective_date,
931        p_datetrack_mode        => p_datetrack_mode,
932        p_validation_start_date => l_validation_start_date,
933        p_validation_end_date   => l_validation_end_date);
934   --
935   -- Call the supporting pre-update operation
936   --
937   pre_update
938       (p_rec                   => p_rec,
939        p_effective_date        => p_effective_date,
940        p_datetrack_mode        => p_datetrack_mode,
941        p_validation_start_date => l_validation_start_date,
942        p_validation_end_date   => l_validation_end_date);
943   --
944   -- Update the row.
945   --
946   update_dml
947       (p_rec                   => p_rec,
948        p_effective_date        => p_effective_date,
949        p_datetrack_mode        => p_datetrack_mode,
950        p_validation_start_date => l_validation_start_date,
951        p_validation_end_date   => l_validation_end_date);
952   --
953   -- Call the supporting post-update operation
954   --
955   post_update
956       (p_rec                   => p_rec,
957        p_effective_date        => p_effective_date,
958        p_datetrack_mode        => p_datetrack_mode,
959        p_validation_start_date => l_validation_start_date,
960        p_validation_end_date   => l_validation_end_date);
961 End upd;
962 --
963 -- ----------------------------------------------------------------------------
964 -- |---------------------------------< upd >----------------------------------|
965 -- ----------------------------------------------------------------------------
966 Procedure upd
967   (
968   p_emp_city_tax_rule_id         in number,
969   p_effective_start_date         out nocopy date,
970   p_effective_end_date           out nocopy date,
971   p_additional_wa_rate           in number  ,
972   p_filing_status_code           in varchar2,
973   p_lit_additional_tax           in number  ,
974   p_lit_override_amount          in number  ,
975   p_lit_override_rate            in number  ,
976   p_withholding_allowances       in number  ,
977   p_lit_exempt                   in varchar2,
978   p_sd_exempt                    in varchar2,
979   p_ht_exempt                    in varchar2,
980   p_wage_exempt                  in varchar2,
981   p_school_district_code         in varchar2,
982   p_object_version_number        in out nocopy number,
983   p_effective_date             in date,
984   p_datetrack_mode             in varchar2,
985   p_attribute_category          in varchar2         default hr_api.g_varchar2,
986   p_attribute1                  in varchar2         default hr_api.g_varchar2,
987   p_attribute2                  in varchar2         default hr_api.g_varchar2,
988   p_attribute3                  in varchar2         default hr_api.g_varchar2,
989   p_attribute4                  in varchar2         default hr_api.g_varchar2,
990   p_attribute5                  in varchar2         default hr_api.g_varchar2,
991   p_attribute6                  in varchar2         default hr_api.g_varchar2,
992   p_attribute7                  in varchar2         default hr_api.g_varchar2,
993   p_attribute8                  in varchar2         default hr_api.g_varchar2,
994   p_attribute9                  in varchar2         default hr_api.g_varchar2,
995   p_attribute10                 in varchar2         default hr_api.g_varchar2,
996   p_attribute11                 in varchar2         default hr_api.g_varchar2,
997   p_attribute12                 in varchar2         default hr_api.g_varchar2,
998   p_attribute13                 in varchar2         default hr_api.g_varchar2,
999   p_attribute14                 in varchar2         default hr_api.g_varchar2,
1000   p_attribute15                 in varchar2         default hr_api.g_varchar2,
1001   p_attribute16                 in varchar2         default hr_api.g_varchar2,
1002   p_attribute17                 in varchar2         default hr_api.g_varchar2,
1003   p_attribute18                 in varchar2         default hr_api.g_varchar2,
1004   p_attribute19                 in varchar2         default hr_api.g_varchar2,
1005   p_attribute20                 in varchar2         default hr_api.g_varchar2,
1006   p_attribute21                 in varchar2         default hr_api.g_varchar2,
1007   p_attribute22                 in varchar2         default hr_api.g_varchar2,
1008   p_attribute23                 in varchar2         default hr_api.g_varchar2,
1009   p_attribute24                 in varchar2         default hr_api.g_varchar2,
1010   p_attribute25                 in varchar2         default hr_api.g_varchar2,
1011   p_attribute26                 in varchar2         default hr_api.g_varchar2,
1012   p_attribute27                 in varchar2         default hr_api.g_varchar2,
1013   p_attribute28                 in varchar2         default hr_api.g_varchar2,
1014   p_attribute29                 in varchar2         default hr_api.g_varchar2,
1015   p_attribute30                 in varchar2         default hr_api.g_varchar2,
1016   p_cty_information_category    in varchar2         default hr_api.g_varchar2,
1017   p_cty_information1            in varchar2         default hr_api.g_varchar2,
1018   p_cty_information2            in varchar2         default hr_api.g_varchar2,
1019   p_cty_information3            in varchar2         default hr_api.g_varchar2,
1020   p_cty_information4            in varchar2         default hr_api.g_varchar2,
1021   p_cty_information5            in varchar2         default hr_api.g_varchar2,
1022   p_cty_information6            in varchar2         default hr_api.g_varchar2,
1023   p_cty_information7            in varchar2         default hr_api.g_varchar2,
1024   p_cty_information8            in varchar2         default hr_api.g_varchar2,
1025   p_cty_information9            in varchar2         default hr_api.g_varchar2,
1026   p_cty_information10           in varchar2         default hr_api.g_varchar2,
1027   p_cty_information11           in varchar2         default hr_api.g_varchar2,
1028   p_cty_information12           in varchar2         default hr_api.g_varchar2,
1029   p_cty_information13           in varchar2         default hr_api.g_varchar2,
1030   p_cty_information14           in varchar2         default hr_api.g_varchar2,
1031   p_cty_information15           in varchar2         default hr_api.g_varchar2,
1032   p_cty_information16           in varchar2         default hr_api.g_varchar2,
1033   p_cty_information17           in varchar2         default hr_api.g_varchar2,
1034   p_cty_information18           in varchar2         default hr_api.g_varchar2,
1035   p_cty_information19           in varchar2         default hr_api.g_varchar2,
1036   p_cty_information20           in varchar2         default hr_api.g_varchar2,
1037   p_cty_information21           in varchar2         default hr_api.g_varchar2,
1038   p_cty_information22           in varchar2         default hr_api.g_varchar2,
1039   p_cty_information23           in varchar2         default hr_api.g_varchar2,
1040   p_cty_information24           in varchar2         default hr_api.g_varchar2,
1041   p_cty_information25           in varchar2         default hr_api.g_varchar2,
1042   p_cty_information26           in varchar2         default hr_api.g_varchar2,
1043   p_cty_information27           in varchar2         default hr_api.g_varchar2,
1044   p_cty_information28           in varchar2         default hr_api.g_varchar2,
1045   p_cty_information29           in varchar2         default hr_api.g_varchar2,
1046   p_cty_information30           in varchar2         default hr_api.g_varchar2
1047   ) is
1048 --
1049   l_rec            pay_cty_shd.g_rec_type;
1050   l_proc      varchar2(72) := g_package||'upd';
1051 --
1052 Begin
1053   hr_utility.set_location('Entering:'||l_proc, 5);
1054   --
1055   -- Call conversion function to turn arguments into the
1056   -- l_rec structure.
1057   --
1058   l_rec :=
1059   pay_cty_shd.convert_args
1060   (
1061   p_emp_city_tax_rule_id,
1062   hr_api.g_date,
1063   hr_api.g_date,
1064   hr_api.g_number,    --/* DFGII 30 Sep 97  p_assignment_id,     */
1065   hr_api.g_varchar2,  --/* DFGII 30 Sep 97  p_state_code,        */
1066   hr_api.g_varchar2,  --/* DFGII 30 Sep 97  p_county_code,       */
1067   hr_api.g_varchar2,  --/* DFGII 30 Sep 97  p_city_code,         */
1068   hr_api.g_number,    --/* DFGII 30 Sep 97  p_business_group_id, */
1069   p_additional_wa_rate,
1070   p_filing_status_code,
1071   hr_api.g_varchar2, -- p_jurisdiction_code,
1072   p_lit_additional_tax,
1073   p_lit_override_amount,
1074   p_lit_override_rate,
1075   p_withholding_allowances,
1076   p_lit_exempt,
1077   p_sd_exempt,
1078   p_ht_exempt,
1079   p_wage_exempt,
1080   p_school_district_code,
1081   p_object_version_number,
1082   p_attribute_category,
1083   p_attribute1,
1084   p_attribute2,
1085   p_attribute3,
1086   p_attribute4,
1087   p_attribute5,
1088   p_attribute6,
1089   p_attribute7,
1090   p_attribute8,
1091   p_attribute9,
1092   p_attribute10,
1093   p_attribute11,
1094   p_attribute12,
1095   p_attribute13,
1096   p_attribute14,
1097   p_attribute15,
1098   p_attribute16,
1099   p_attribute17,
1100   p_attribute18,
1101   p_attribute19,
1102   p_attribute20,
1103   p_attribute21,
1104   p_attribute22,
1105   p_attribute23,
1106   p_attribute24,
1107   p_attribute25,
1108   p_attribute26,
1109   p_attribute27,
1110   p_attribute28,
1111   p_attribute29,
1112   p_attribute30,
1113   p_cty_information_category,
1114   p_cty_information1,
1115   p_cty_information2,
1116   p_cty_information3,
1117   p_cty_information4,
1118   p_cty_information5,
1119   p_cty_information6,
1120   p_cty_information7,
1121   p_cty_information8,
1122   p_cty_information9,
1123   p_cty_information10,
1124   p_cty_information11,
1125   p_cty_information12,
1126   p_cty_information13,
1127   p_cty_information14,
1128   p_cty_information15,
1129   p_cty_information16,
1130   p_cty_information17,
1131   p_cty_information18,
1132   p_cty_information19,
1133   p_cty_information20,
1134   p_cty_information21,
1135   p_cty_information22,
1136   p_cty_information23,
1137   p_cty_information24,
1138   p_cty_information25,
1139   p_cty_information26,
1140   p_cty_information27,
1141   p_cty_information28,
1142   p_cty_information29,
1143   p_cty_information30
1144   );
1145   --
1146   -- Having converted the arguments into the
1147   -- plsql record structure we call the corresponding record
1148   -- business process.
1149   --
1150   upd(l_rec, p_effective_date, p_datetrack_mode);
1151   p_object_version_number       := l_rec.object_version_number;
1152   p_effective_start_date        := l_rec.effective_start_date;
1153   p_effective_end_date          := l_rec.effective_end_date;
1154   --
1155   --
1156   hr_utility.set_location(' Leaving:'||l_proc, 10);
1157 End upd;
1158 --
1159 --
1160 end pay_cty_upd;