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
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: -- ---------------------------------------------------------------------------
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
126: -- call to this function. Just return the value in the global
127: -- variable.
128: --
129: l_legislation_code := ghr_cah_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.
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_cah_bus.g_compl_ca_header_id := p_compl_ca_header_id;
154: ghr_cah_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: -- ----------------------------------------------------------------------------
238:
239:
240: BEGIN
241:
242: hr_utility.set_location('Entering: '|| l_proc, 10);
243:
244: -- Check Mandatory Parameters are set
245:
246: hr_api.mandatory_arg_error
268: OR
269: NOT l_api_updating THEN
270:
271: --
272: hr_utility.set_location(l_proc,20);
273: --
274: -- If ca_source is not null then
275: -- Check if the ca_source value exists in fnd_lookups
276: -- Where the look up type is 'GHR_US_COMPLAINT_SOURCE'
287: -- Error: Invalid Subject to IA Action
288:
289: -- New Message
290:
291: hr_utility.set_message(8301,'GHR_38701_INV_COMPLAINT_SOURCE');
292: hr_utility.raise_error;
293: END IF;
294: hr_utility.set_location(l_proc,30);
295:
288:
289: -- New Message
290:
291: hr_utility.set_message(8301,'GHR_38701_INV_COMPLAINT_SOURCE');
292: hr_utility.raise_error;
293: END IF;
294: hr_utility.set_location(l_proc,30);
295:
296: END IF;
290:
291: hr_utility.set_message(8301,'GHR_38701_INV_COMPLAINT_SOURCE');
292: hr_utility.raise_error;
293: END IF;
294: hr_utility.set_location(l_proc,30);
295:
296: END IF;
297:
298: END IF;
296: END IF;
297:
298: END IF;
299:
300: hr_utility.set_location('Leaving: '|| l_proc, 40);
301:
302: END chk_ca_source;
303:
304: --
318:
319:
320: BEGIN
321:
322: hr_utility.set_location('Entering: '|| l_proc, 10);
323:
324: -- Check Mandatory Parameters are set
325:
326: hr_api.mandatory_arg_error
348: OR
349: NOT l_api_updating THEN
350:
351: --
352: hr_utility.set_location(l_proc,20);
353: --
354: -- If comrep_noncom_req is not null then
355: -- Check if the comrep_noncom_req value exists in fnd_lookups
356: -- Where the look up type is 'GHR_US_REQUEST'
367: -- Error: Invalid Subject to IA Action
368:
369: -- New Message
370:
371: hr_utility.set_message(8301,'GHR_38702_INV_COMP_REQUEST');
372: hr_utility.raise_error;
373: END IF;
374: hr_utility.set_location(l_proc,30);
375:
368:
369: -- New Message
370:
371: hr_utility.set_message(8301,'GHR_38702_INV_COMP_REQUEST');
372: hr_utility.raise_error;
373: END IF;
374: hr_utility.set_location(l_proc,30);
375:
376: END IF;
370:
371: hr_utility.set_message(8301,'GHR_38702_INV_COMP_REQUEST');
372: hr_utility.raise_error;
373: END IF;
374: hr_utility.set_location(l_proc,30);
375:
376: END IF;
377:
378: END IF;
376: END IF;
377:
378: END IF;
379:
380: hr_utility.set_location('Leaving: '|| l_proc, 40);
381:
382: END chk_comrep_noncom_req;
383:
384: --
397: l_api_updating boolean;
398:
399: BEGIN
400:
401: hr_utility.set_location('Entering: '|| l_proc, 10);
402:
403: -- Check Mandatory Parameters are set
404:
405: hr_api.mandatory_arg_error
427: OR
428: NOT l_api_updating THEN
429:
430: --
431: hr_utility.set_location(l_proc,20);
432: --
433: -- If stage_complaint_reinstated is not null then
434: -- Check if the stage_complaint_reinstated value exists in fnd_lookups
435: -- Where the look up type is 'GHR_US_STAGE'
446: -- Error: Invalid Subject to IA Action
447:
448: -- New Message
449:
450: hr_utility.set_message(8301,'GHR_38703_INV_COMP_STAGE');
451: hr_utility.raise_error;
452: END IF;
453: hr_utility.set_location(l_proc,30);
454:
447:
448: -- New Message
449:
450: hr_utility.set_message(8301,'GHR_38703_INV_COMP_STAGE');
451: hr_utility.raise_error;
452: END IF;
453: hr_utility.set_location(l_proc,30);
454:
455: END IF;
449:
450: hr_utility.set_message(8301,'GHR_38703_INV_COMP_STAGE');
451: hr_utility.raise_error;
452: END IF;
453: hr_utility.set_location(l_proc,30);
454:
455: END IF;
456:
457: END IF;
455: END IF;
456:
457: END IF;
458:
459: hr_utility.set_location('Leaving: '|| l_proc, 40);
460:
461: END chk_stage_complaint_reinstated;
462:
463: --
471: --
472: l_proc varchar2(72) := g_package||'insert_validate';
473: --
474: Begin
475: hr_utility.set_location('Entering:'||l_proc, 5);
476: --
477: -- Call all supporting business operations
478: --
479: --
500: ,p_stage_complaint_reinstated => p_rec.stage_complaint_reinstated
501: ,p_effective_date => p_effective_date
502: ,p_object_version_number => p_rec.object_version_number);
503:
504: hr_utility.set_location(' Leaving:'||l_proc, 10);
505: End insert_validate;
506: --
507: -- ----------------------------------------------------------------------------
508: -- |---------------------------< update_validate >----------------------------|
514: --
515: l_proc varchar2(72) := g_package||'update_validate';
516: --
517: Begin
518: hr_utility.set_location('Entering:'||l_proc, 5);
519: --
520: -- Call all supporting business operations
521: --
522: --
548: ,p_object_version_number => p_rec.object_version_number);
549:
550: --
551: --
552: hr_utility.set_location(' Leaving:'||l_proc, 10);
553: End update_validate;
554: --
555: -- ----------------------------------------------------------------------------
556: -- |---------------------------< delete_validate >----------------------------|
561: --
562: l_proc varchar2(72) := g_package||'delete_validate';
563: --
564: Begin
565: hr_utility.set_location('Entering:'||l_proc, 5);
566: --
567: -- Call all supporting business operations
568: --
569: hr_utility.set_location(' Leaving:'||l_proc, 10);
565: hr_utility.set_location('Entering:'||l_proc, 5);
566: --
567: -- Call all supporting business operations
568: --
569: hr_utility.set_location(' Leaving:'||l_proc, 10);
570: End delete_validate;
571: --
572: end ghr_cah_bus;