DBA Data[Home] [Help]

PACKAGE BODY: APPS.GHR_CCA_BUS

Source


1 Package Body ghr_cca_bus as
2 /* $Header: ghccarhi.pkb 115.1 2003/01/30 19:25:04 asubrahm noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '  ghr_cca_bus.';  -- Global package name
9 --
10 -- The following two global variables are only to be
11 -- used by the return_legislation_code function.
12 --
13 g_legislation_code            varchar2(150)  default null;
14 g_compl_appeal_id             number         default null;
15 --
16 --  ---------------------------------------------------------------------------
17 --  |----------------------< set_security_group_id >--------------------------|
18 --  ---------------------------------------------------------------------------
19 --
20 Procedure set_security_group_id
21   (p_compl_appeal_id                      in number
22   ) is
23   --
24   -- Declare cursor
25   --
26   -- EDIT_HERE  In the following cursor statement add join(s) between
27   -- ghr_compl_appeals and PER_BUSINESS_GROUPS
28   -- so that the security_group_id for
29   -- the current business group context can be derived.
30   -- Remove this comment when the edit has been completed.
31   cursor csr_sec_grp is
32     select pbg.security_group_id
33       from per_business_groups pbg
34          , ghr_compl_appeals cca
35       --   , EDIT_HERE table_name(s) 333
36      where cca.compl_appeal_id = p_compl_appeal_id;
37       -- and pbg.business_group_id = EDIT_HERE 333.business_group_id;
38   --
39   -- Declare local variables
40   --
41   l_security_group_id number;
42   l_proc              varchar2(72)  :=  g_package||'set_security_group_id';
43   --
44 begin
45   --
46   hr_utility.set_location('Entering:'|| l_proc, 10);
47   --
48   -- Ensure that all the mandatory parameter are not null
49   --
50   hr_api.mandatory_arg_error
51     (p_api_name           => l_proc
52     ,p_argument           => 'compl_appeal_id'
53     ,p_argument_value     => p_compl_appeal_id
54     );
55   --
56   open csr_sec_grp;
57   fetch csr_sec_grp into l_security_group_id;
58   --
59   if csr_sec_grp%notfound then
60      --
61      close csr_sec_grp;
62      --
63      -- The primary key is invalid therefore we must error
64      --
65      fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
66      fnd_message.raise_error;
67      --
68   end if;
69   close csr_sec_grp;
70   --
71   -- Set the security_group_id in CLIENT_INFO
72   --
73   hr_api.set_security_group_id
74     (p_security_group_id => l_security_group_id
75     );
76   --
77   hr_utility.set_location(' Leaving:'|| l_proc, 20);
78   --
79 end set_security_group_id;
80 --
81 --  ---------------------------------------------------------------------------
82 --  |---------------------< return_legislation_code >-------------------------|
83 --  ---------------------------------------------------------------------------
84 --
85 Function return_legislation_code
86   (p_compl_appeal_id                      in     number
87   )
88   Return Varchar2 Is
89   --
90   -- Declare cursor
91   --
92   -- EDIT_HERE  In the following cursor statement add join(s) between
93   -- ghr_compl_appeals and PER_BUSINESS_GROUPS
94   -- so that the legislation_code for
95   -- the current business group context can be derived.
96   -- Remove this comment when the edit has been completed.
97   cursor csr_leg_code is
98     select pbg.legislation_code
99       from per_business_groups     pbg
100          , ghr_compl_appeals cca
101       --   , EDIT_HERE table_name(s) 333
102      where cca.compl_appeal_id = p_compl_appeal_id;
103       -- and pbg.business_group_id = EDIT_HERE 333.business_group_id;
104   --
105   -- Declare local variables
106   --
107   l_legislation_code  varchar2(150);
108   l_proc              varchar2(72)  :=  g_package||'return_legislation_code';
109   --
110 Begin
111   --
112   hr_utility.set_location('Entering:'|| l_proc, 10);
113   --
114   -- Ensure that all the mandatory parameter are not null
115   --
116   hr_api.mandatory_arg_error
117     (p_api_name           => l_proc
118     ,p_argument           => 'compl_appeal_id'
119     ,p_argument_value     => p_compl_appeal_id
120     );
121   --
122   if ( nvl(ghr_cca_bus.g_compl_appeal_id, hr_api.g_number)
123        = p_compl_appeal_id) then
124     --
125     -- The legislation code has already been found with a previous
126     -- call to this function. Just return the value in the global
127     -- variable.
128     --
129     l_legislation_code := ghr_cca_bus.g_legislation_code;
130     hr_utility.set_location(l_proc, 20);
131   else
132     --
133     -- The ID is different to the last call to this function
134     -- or this is the first call to this function.
135     --
136     open csr_leg_code;
137     fetch csr_leg_code into l_legislation_code;
138     --
139     if csr_leg_code%notfound then
140       --
141       -- The primary key is invalid therefore we must error
142       --
143       close csr_leg_code;
144       fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
145       fnd_message.raise_error;
146     end if;
147     hr_utility.set_location(l_proc,30);
148     --
149     -- Set the global variables so the values are
150     -- available for the next call to this function.
151     --
152     close csr_leg_code;
153     ghr_cca_bus.g_compl_appeal_id             := p_compl_appeal_id;
154     ghr_cca_bus.g_legislation_code  := l_legislation_code;
155   end if;
156   hr_utility.set_location(' Leaving:'|| l_proc, 40);
157   return l_legislation_code;
158 end return_legislation_code;
159 --
160 -- ----------------------------------------------------------------------------
161 -- |-----------------------< chk_non_updateable_args >------------------------|
162 -- ----------------------------------------------------------------------------
163 -- {Start Of Comments}
164 --
165 -- Description:
166 --   This procedure is used to ensure that non updateable attributes have
167 --   not been updated. If an attribute has been updated an error is generated.
168 --
169 -- Pre Conditions:
170 --   g_old_rec has been populated with details of the values currently in
171 --   the database.
172 --
173 -- In Arguments:
174 --   p_rec has been populated with the updated values the user would like the
175 --   record set to.
176 --
177 -- Post Success:
178 --   Processing continues if all the non updateable attributes have not
179 --   changed.
180 --
181 -- Post Failure:
182 --   An application error is raised if any of the non updatable attributes
183 --   have been altered.
184 --
185 -- {End Of Comments}
186 -- ----------------------------------------------------------------------------
187 Procedure chk_non_updateable_args
188   (p_effective_date               in date
189   ,p_rec in ghr_cca_shd.g_rec_type
190   ) IS
191 --
192   l_proc     varchar2(72) := g_package || 'chk_non_updateable_args';
193   l_error    EXCEPTION;
194   l_argument varchar2(30);
195 --
196 Begin
197   --
198   -- Only proceed with the validation if a row exists for the current
199   -- record in the HR Schema.
200   --
201   IF NOT ghr_cca_shd.api_updating
202       (p_compl_appeal_id                      => p_rec.compl_appeal_id
203       ,p_object_version_number                => p_rec.object_version_number
204       ) THEN
205      fnd_message.set_name('PER', 'HR_6153_ALL_PROCEDURE_FAIL');
206      fnd_message.set_token('PROCEDURE ', l_proc);
207      fnd_message.set_token('STEP ', '5');
208      fnd_message.raise_error;
209   END IF;
210   --
211   -- EDIT_HERE: Add checks to ensure non-updateable args have
212   --            not been updated.
213   --
214   EXCEPTION
215     WHEN l_error THEN
216        hr_api.argument_changed_error
217          (p_api_name => l_proc
218          ,p_argument => l_argument);
219     WHEN OTHERS THEN
220        RAISE;
221 End chk_non_updateable_args;
222 --
223 --
224 -----------------------------<chk_appealed_to>------------------------------
225 --
226 --
227 
228 PROCEDURE chk_appealed_to(p_compl_appeal_id       in ghr_compl_appeals.compl_appeal_id%TYPE,
229 			  p_appealed_to           in ghr_compl_appeals.appealed_to%TYPE,
230 			  p_effective_date        in date,
231 			  p_object_version_number in number)
232 
233 IS
234 
235 l_proc	varchar2(72) := g_package||'chk_appealed_to';
236 l_api_updating boolean;
237 
238 
239 BEGIN
240 
241 	hr_utility.set_location('Entering: '|| l_proc, 10);
242 
243 -- Check Mandatory Parameters are set
244 
245 	hr_api.mandatory_arg_error
246 		(p_api_name	 => l_proc,
247          	p_argument       => 'effective date',
248          	p_argument_value => p_effective_date
249 		);
250 
251 --
252 -- Only Proceed with the validation if:
253 --
254 -- a) The current g_old_rec is current and
255 -- b) The appealed_to value has changed
256 -- c) A record is being inserted.
257 --
258 
259 	l_api_updating := ghr_cca_shd.api_updating(
260 					p_compl_appeal_id       => p_compl_appeal_id,
261 					p_object_version_number	=> p_object_version_number);
262 
263 	IF (l_api_updating
264         AND
265         ((nvl(ghr_cca_shd.g_old_rec.appealed_to,hr_api.g_varchar2)
266 				<> nvl(p_appealed_to,hr_api.g_varchar2))))
267         OR
268 	NOT l_api_updating THEN
269 
270 --
271 	hr_utility.set_location(l_proc,20);
272 --
273 -- 	If appealed_to is not null then
274 --	Check if the appealed_to value exists in fnd_lookups
275 --	Where the look up type is 'GHR_US_APPEAL_TO'
276 --
277 
278 	IF p_appealed_to is NOT NULL THEN
279 
280 	   IF hr_api.not_exists_in_hr_lookups
281 			(p_effective_date =>	p_effective_date,
282 			 p_lookup_type	  =>    'GHR_US_APPEAL_TO',
283 			 p_lookup_code	  =>	p_appealed_to
284 			) THEN
285 
286 	-- Error: Invalid Subject to IA Action
287 
288                -- New Message
289 
290 	       hr_utility.set_message(8301,'GHR_38707_INV_COMP_APPEAL_TO');
291 	       hr_utility.raise_error;
292 	   END IF;
293 	   hr_utility.set_location(l_proc,30);
294 
295 	END IF;
296 
297      END IF;
298 
299      hr_utility.set_location('Leaving: '|| l_proc, 40);
300 
301 END chk_appealed_to;
302 
303 --
304 -----------------------------<chk_reason_for_appeal>----------------------------------
305 --
306 --
307 
308 PROCEDURE chk_reason_for_appeal(p_compl_appeal_id       in ghr_compl_appeals.compl_appeal_id%TYPE,
309 			        p_reason_for_appeal     in ghr_compl_appeals.reason_for_appeal%TYPE,
310 			        p_effective_date        in date,
311 			        p_object_version_number in number)
312 
313 IS
314 
315 l_proc	varchar2(72) := g_package||'chk_reason_for_appeal';
316 l_api_updating boolean;
317 
318 
319 BEGIN
320 
321 	hr_utility.set_location('Entering: '|| l_proc, 10);
322 
323 -- Check Mandatory Parameters are set
324 
325 	hr_api.mandatory_arg_error
326 		(p_api_name	 => l_proc,
327          	p_argument       => 'effective date',
328          	p_argument_value => p_effective_date
329 		);
330 
331 --
332 -- Only Proceed with the validation if:
333 --
334 -- a) The current g_old_rec is current and
335 -- b) The reason_for_appeal value has changed
336 -- c) A record is being inserted.
337 --
338 
339 	l_api_updating := ghr_cca_shd.api_updating(
340 					p_compl_appeal_id       => p_compl_appeal_id,
341 					p_object_version_number	=> p_object_version_number);
342 
343 	IF (l_api_updating
344         AND
345         ((nvl(ghr_cca_shd.g_old_rec.reason_for_appeal,hr_api.g_varchar2)
346 				<> nvl(p_reason_for_appeal,hr_api.g_varchar2))))
347         OR
348 	NOT l_api_updating THEN
349 
350 --
351 	hr_utility.set_location(l_proc,20);
352 --
353 -- 	If reason_for_appeal is not null then
354 --	Check if the reason_for_appeal value exists in fnd_lookups
355 --	Where the look up type is 'GHR_US_APPEAL_REASON'
356 --
357 
358 	IF p_reason_for_appeal is NOT NULL THEN
359 
360 	   IF hr_api.not_exists_in_hr_lookups
361 			(p_effective_date =>	p_effective_date,
362 			 p_lookup_type	  =>    'GHR_US_APPEAL_REASON',
363 			 p_lookup_code	  =>	p_reason_for_appeal
364 			) THEN
365 
366 	-- Error: Invalid Subject to IA Action
367 
368                -- New Message
369 
370 	       hr_utility.set_message(8301,'GHR_38708_INV_COMP_APPEAL_RESN');
371 	       hr_utility.raise_error;
372 	   END IF;
373 	   hr_utility.set_location(l_proc,30);
374 
375 	END IF;
376 
377      END IF;
378 
379      hr_utility.set_location('Leaving: '|| l_proc, 40);
380 
381 END chk_reason_for_appeal;
382 
383 --
384 -----------------------------<chk_decision>-----------------------------------
385 --
386 --
387 
388 PROCEDURE chk_decision(p_compl_appeal_id       in ghr_compl_appeals.compl_appeal_id%TYPE,
389 		       p_appealed_to           in ghr_compl_appeals.appealed_to%TYPE,
390                        p_decision              in ghr_compl_appeals.decision%TYPE,
391 		       p_effective_date        in date,
392 		       p_object_version_number in number)
393 
394 IS
395 
396 l_proc	varchar2(72) := g_package||'chk_decision';
397 l_api_updating boolean;
398 
402 
399 l_ofo             varchar2(30) := '10'; -- Lookup code for 'Appealed To' in fnd_common_lookups having Meaning OFO
400 l_mspb            varchar2(30) := '20'; -- Lookup code for 'Appealed To' in fnd_common_lookups having Meaning MSPB
401 l_lookup_type     varchar2(30);
403 
404 BEGIN
405 
406 	hr_utility.set_location('Entering: '|| l_proc, 10);
407 
408 -- Check Mandatory Parameters are set
409 
410 	hr_api.mandatory_arg_error
411 		(p_api_name	 => l_proc,
412          	p_argument       => 'effective date',
413          	p_argument_value => p_effective_date
414 		);
415 
416 --
417 -- Only Proceed with the validation if:
418 --
419 -- a) The current g_old_rec is current and
420 -- b) The decision value has changed
421 -- c) A record is being inserted.
422 --
423 
424 	l_api_updating := ghr_cca_shd.api_updating(
425 					p_compl_appeal_id       => p_compl_appeal_id,
426 					p_object_version_number	=> p_object_version_number);
427 
428 	IF (l_api_updating
429         AND
430         ((nvl(ghr_cca_shd.g_old_rec.decision,hr_api.g_varchar2)
431 				<> nvl(p_decision,hr_api.g_varchar2))))
432         OR
433 	NOT l_api_updating THEN
434 
435 --
436 	hr_utility.set_location(l_proc,20);
437 --
438 -- 	If decision is not null then
439 --	If appealed_to value = '10' (OFO) then check if the decision value exists in fnd_lookups
440 --	Where the look up type is 'GHR_US_APPEAL_DECISION'
441 --
442 --	If appealed_to value = '20' (MSPB) then check if the decision value exists in fnd_lookups
443 --	Where the look up type is 'GHR_US_MSPB_DECISION'
444 
445 --
446 
447 	IF p_decision is NOT NULL THEN
448 
449          IF p_appealed_to = l_ofo then
450            l_lookup_type := 'GHR_US_APPEAL_DECISION';
451          ELSIF p_appealed_to = l_mspb then
452            l_lookup_type := 'GHR_US_MSPB_DECISION';
453          END IF;
454 
455 	   IF hr_api.not_exists_in_hr_lookups
456 			(p_effective_date =>	p_effective_date,
457 			 p_lookup_type	  =>    l_lookup_type,
458 			 p_lookup_code	  =>	p_decision
459 			) THEN
460 
461 	-- Error: Invalid Subject to IA Action
462 
463                -- New Message
464 
465 	       hr_utility.set_message(8301,'GHR_38709_INV_COMP_DECISION');
466 	       hr_utility.raise_error;
467 	   END IF;
468 	   hr_utility.set_location(l_proc,30);
469 
470 	END IF;
471 
472      END IF;
473 
474      hr_utility.set_location('Leaving: '|| l_proc, 40);
475 
476 END chk_decision;
477 
478 --
479 -----------------------------<chk_rfr_requested_by>------------------------------------
480 --
481 --
482 
483 PROCEDURE chk_rfr_requested_by(p_compl_appeal_id       in ghr_compl_appeals.compl_appeal_id%TYPE,
484 			       p_rfr_requested_by      in ghr_compl_appeals.rfr_requested_by%TYPE,
485 			       p_effective_date        in date,
486 			       p_object_version_number in number)
487 
488 IS
489 
490 l_proc	varchar2(72) := g_package||'chk_rfr_requested_by';
491 l_api_updating boolean;
492 
493 
494 BEGIN
495 
496 	hr_utility.set_location('Entering: '|| l_proc, 10);
497 
498 -- Check Mandatory Parameters are set
499 
500 	hr_api.mandatory_arg_error
501 		(p_api_name	 => l_proc,
502          	p_argument       => 'effective date',
503          	p_argument_value => p_effective_date
504 		);
505 
506 --
507 -- Only Proceed with the validation if:
508 --
509 -- a) The current g_old_rec is current and
510 -- b) The rfr_requested_by value has changed
511 -- c) A record is being inserted.
512 --
513 
514 	l_api_updating := ghr_cca_shd.api_updating(
515 					p_compl_appeal_id       => p_compl_appeal_id,
516 					p_object_version_number	=> p_object_version_number);
517 
518 	IF (l_api_updating
519         AND
520         ((nvl(ghr_cca_shd.g_old_rec.rfr_requested_by,hr_api.g_varchar2)
521 				<> nvl(p_rfr_requested_by,hr_api.g_varchar2))))
522         OR
523 	NOT l_api_updating THEN
524 
525 --
526 	hr_utility.set_location(l_proc,20);
527 --
528 -- 	If rfr_requested_by is not null then
529 --	Check if the rfr_requested_by value exists in fnd_lookups
530 --	Where the look up type is 'GHR_US_REQUESTOR'
531 --
532 
533 	IF p_rfr_requested_by is NOT NULL THEN
534 
535 	   IF hr_api.not_exists_in_hr_lookups
536 			(p_effective_date =>	p_effective_date,
537 			 p_lookup_type	  =>    'GHR_US_REQUESTOR',
538 			 p_lookup_code	  =>	p_rfr_requested_by
539 			) THEN
540 
541 	-- Error: Invalid Subject to IA Action
542 
543                -- New Message
544 
545 	       hr_utility.set_message(8301,'GHR_38711_INV_COMP_REQUESTOR');
546 	       hr_utility.raise_error;
547 	   END IF;
548 	   hr_utility.set_location(l_proc,30);
549 
550 	END IF;
551 
552      END IF;
553 
554      hr_utility.set_location('Leaving: '|| l_proc, 40);
555 
556 END chk_rfr_requested_by;
557 
558 --
559 -----------------------------<chk_rfr_decision>------------------------------------
560 --
561 --
562 
563 PROCEDURE chk_rfr_decision(p_compl_appeal_id    in ghr_compl_appeals.compl_appeal_id%TYPE,
564 			p_rfr_decision          in ghr_compl_appeals.rfr_decision%TYPE,
565 			p_effective_date        in date,
566 			p_object_version_number in number)
567 
568 IS
569 
573 
570 l_proc	varchar2(72) := g_package||'chk_rfr_decision';
571 l_api_updating boolean;
572 
574 BEGIN
575 
576 	hr_utility.set_location('Entering: '|| l_proc, 10);
577 
578 -- Check Mandatory Parameters are set
579 
580 	hr_api.mandatory_arg_error
581 		(p_api_name	 => l_proc,
582          	p_argument       => 'effective date',
583          	p_argument_value => p_effective_date
584 		);
585 
586 --
587 -- Only Proceed with the validation if:
588 --
589 -- a) The current g_old_rec is current and
590 -- b) The rfr_decision value has changed
591 -- c) A record is being inserted.
592 --
593 
594 	l_api_updating := ghr_cca_shd.api_updating(
595 					p_compl_appeal_id       => p_compl_appeal_id,
596 					p_object_version_number	=> p_object_version_number);
597 
598 	IF (l_api_updating
599         AND
600         ((nvl(ghr_cca_shd.g_old_rec.rfr_decision,hr_api.g_varchar2)
601 				<> nvl(p_rfr_decision,hr_api.g_varchar2))))
602         OR
603 	NOT l_api_updating THEN
604 
605 --
606 	hr_utility.set_location(l_proc,20);
607 --
608 -- 	If rfr_decision is not null then
609 --	Check if the rfr_decision value exists in fnd_lookups
610 --	Where the look up type is 'GHR_US_OFO_RFR_DECISION'
611 --
612 
613 	IF p_rfr_decision is NOT NULL THEN
614 
615 	   IF hr_api.not_exists_in_hr_lookups
616 			(p_effective_date  =>	p_effective_date,
617 			 p_lookup_type	   =>   'GHR_US_OFO_RFR_DECISION',
618 			 p_lookup_code	   =>	p_rfr_decision
619 			) THEN
620 
621 	-- Error: Invalid Subject to IA Action
622 
623                -- New Message
624 
625 	       hr_utility.set_message(8301,'GHR_38710_INV_COMP_OFO_RFR_DES');
626 	       hr_utility.raise_error;
627 	   END IF;
628 	   hr_utility.set_location(l_proc,30);
629 
630 	END IF;
631 
632      END IF;
633 
634      hr_utility.set_location('Leaving: '|| l_proc, 40);
635 
636 END chk_rfr_decision;
637 
638 --
639 -- ----------------------------------------------------------------------------
640 -- |---------------------------< insert_validate >----------------------------|
641 -- ----------------------------------------------------------------------------
642 Procedure insert_validate
646 --
643   (p_effective_date               in date
644   ,p_rec                          in ghr_cca_shd.g_rec_type
645   ) is
647   l_proc  varchar2(72) := g_package||'insert_validate';
648 --
649 Begin
650   hr_utility.set_location('Entering:'||l_proc, 5);
651   --
652   -- Call all supporting business operations
653   --
654   --
655   -- EDIT_HERE: As this table does not have a mandatory business_group_id
656   -- column, ensure client_info is populated by calling a suitable
657   -- ???_???_bus.set_security_group_id procedure, or add one of the following
658   -- comments:
659   -- "-- No business group context.  HR_STANDARD_LOOKUPS used for validation."
660   -- "-- CLIENT_INFO not set.  No lookup validation or joins to HR_LOOKUPS."
661   --
662   --
663 
664   chk_appealed_to(p_compl_appeal_id     => p_rec.compl_appeal_id
665                ,p_appealed_to           => p_rec.appealed_to
666                ,p_effective_date        => p_effective_date
667                ,p_object_version_number => p_rec.object_version_number);
668 
669   chk_reason_for_appeal(p_compl_appeal_id  => p_rec.compl_appeal_id
670                ,p_reason_for_appeal        => p_rec.reason_for_appeal
671                ,p_effective_date           => p_effective_date
672                ,p_object_version_number    => p_rec.object_version_number);
673 
674   chk_decision(p_compl_appeal_id        => p_rec.compl_appeal_id
675                ,p_appealed_to           => p_rec.appealed_to
676                ,p_decision              => p_rec.decision
677                ,p_effective_date        => p_effective_date
678                ,p_object_version_number => p_rec.object_version_number);
679 
680   chk_rfr_requested_by(p_compl_appeal_id => p_rec.compl_appeal_id
681                ,p_rfr_requested_by       => p_rec.rfr_requested_by
682                ,p_effective_date         => p_effective_date
683                ,p_object_version_number  => p_rec.object_version_number);
684 
685   chk_rfr_decision(p_compl_appeal_id     => p_rec.compl_appeal_id
686                ,p_rfr_decision           => p_rec.rfr_decision
687                ,p_effective_date         => p_effective_date
688                ,p_object_version_number  => p_rec.object_version_number);
689 
690 
691   hr_utility.set_location(' Leaving:'||l_proc, 10);
692 End insert_validate;
693 --
694 -- ----------------------------------------------------------------------------
695 -- |---------------------------< update_validate >----------------------------|
696 -- ----------------------------------------------------------------------------
697 Procedure update_validate
698   (p_effective_date               in date
699   ,p_rec                          in ghr_cca_shd.g_rec_type
700   ) is
701 --
702   l_proc  varchar2(72) := g_package||'update_validate';
703 --
704 Begin
705   hr_utility.set_location('Entering:'||l_proc, 5);
706   --
707   -- Call all supporting business operations
708   --
709   --
710   -- EDIT_HERE: As this table does not have a mandatory business_group_id
711   -- column, ensure client_info is populated by calling a suitable
712   -- ???_???_bus.set_security_group_id procedure, or add one of the following
713   -- comments:
714   -- "-- No business group context.  HR_STANDARD_LOOKUPS used for validation."
715   -- "-- CLIENT_INFO not set.  No lookup validation or joins to HR_LOOKUPS."
716   --
717   chk_non_updateable_args
718     (p_effective_date     => p_effective_date
719       ,p_rec              => p_rec
720     );
721   --
722 
723   chk_appealed_to(p_compl_appeal_id     => p_rec.compl_appeal_id
724                ,p_appealed_to           => p_rec.appealed_to
725                ,p_effective_date        => p_effective_date
726                ,p_object_version_number => p_rec.object_version_number);
727 
728   chk_reason_for_appeal(p_compl_appeal_id => p_rec.compl_appeal_id
729                ,p_reason_for_appeal       => p_rec.reason_for_appeal
730                ,p_effective_date          => p_effective_date
731                ,p_object_version_number   => p_rec.object_version_number);
732 
733   chk_decision(p_compl_appeal_id         => p_rec.compl_appeal_id
734                ,p_appealed_to            => p_rec.appealed_to
735                ,p_decision               => p_rec.decision
736                ,p_effective_date         => p_effective_date
737                ,p_object_version_number  => p_rec.object_version_number);
738 
739   chk_rfr_requested_by(p_compl_appeal_id => p_rec.compl_appeal_id
740                ,p_rfr_requested_by       => p_rec.rfr_requested_by
741                ,p_effective_date         => p_effective_date
742                ,p_object_version_number  => p_rec.object_version_number);
743 
744   chk_rfr_decision(p_compl_appeal_id     => p_rec.compl_appeal_id
745                ,p_rfr_decision           => p_rec.rfr_decision
746                ,p_effective_date         => p_effective_date
747                ,p_object_version_number  => p_rec.object_version_number);
748 
749   --
750   hr_utility.set_location(' Leaving:'||l_proc, 10);
751 End update_validate;
752 --
753 -- ----------------------------------------------------------------------------
754 -- |---------------------------< delete_validate >----------------------------|
755 -- ----------------------------------------------------------------------------
756 Procedure delete_validate
757   (p_rec                          in ghr_cca_shd.g_rec_type
758   ) is
759 --
760   l_proc  varchar2(72) := g_package||'delete_validate';
761 --
762 Begin
763   hr_utility.set_location('Entering:'||l_proc, 5);
764   --
765   -- Call all supporting business operations
766   --
767   hr_utility.set_location(' Leaving:'||l_proc, 10);
768 End delete_validate;
769 --
770 end ghr_cca_bus;