21: l_error exception;
22: l_argument varchar2(30);
23: --
24: Begin
25: hr_utility.set_location('Entering:'||l_proc, 10);
26: --
27: -- Only proceed with validation if a row exists for
28: -- the current record in the HR Schema
29: --
30: if not hr_ahc_shd.api_updating
31: (p_api_hook_call_id => p_rec.api_hook_call_id,
32: p_object_version_number => p_rec.object_version_number
33: ) then
34: hr_utility.set_message(800, 'HR_6153_ALL_PROCEDURE_FAIL');
35: hr_utility.set_message_token('PROCEDURE', l_proc);
36: hr_utility.set_message_token('STEP', '20');
37: end if;
38: hr_utility.set_location(l_proc, 30);
31: (p_api_hook_call_id => p_rec.api_hook_call_id,
32: p_object_version_number => p_rec.object_version_number
33: ) then
34: hr_utility.set_message(800, 'HR_6153_ALL_PROCEDURE_FAIL');
35: hr_utility.set_message_token('PROCEDURE', l_proc);
36: hr_utility.set_message_token('STEP', '20');
37: end if;
38: hr_utility.set_location(l_proc, 30);
39: --
32: p_object_version_number => p_rec.object_version_number
33: ) then
34: hr_utility.set_message(800, 'HR_6153_ALL_PROCEDURE_FAIL');
35: hr_utility.set_message_token('PROCEDURE', l_proc);
36: hr_utility.set_message_token('STEP', '20');
37: end if;
38: hr_utility.set_location(l_proc, 30);
39: --
40: if nvl(p_rec.api_hook_id, hr_api.g_number) <>
34: hr_utility.set_message(800, 'HR_6153_ALL_PROCEDURE_FAIL');
35: hr_utility.set_message_token('PROCEDURE', l_proc);
36: hr_utility.set_message_token('STEP', '20');
37: end if;
38: hr_utility.set_location(l_proc, 30);
39: --
40: if nvl(p_rec.api_hook_id, hr_api.g_number) <>
41: nvl(hr_ahc_shd.g_old_rec.api_hook_id
42: ,hr_api.g_number
68: l_argument := 'application_id';
69: raise l_error;
70: end if;
71: --
72: hr_utility.set_location(l_proc, 40);
73: exception
74: when l_error then
75: hr_api.argument_changed_error
76: (p_api_name => l_proc
77: ,p_argument => l_argument
78: );
79: when others then
80: raise;
81: hr_utility.set_location(' Leaving:'||l_proc, 50);
82: end chk_non_updateable_args;
83: --
84: -- -----------------------------------------------------------------
85: -- |-----------------------< chk_api_hook_id >-------------------------|
121: where api_hook_id = p_api_hook_id;
122:
123: --
124: begin
125: hr_utility.set_location('Entering: '||l_proc,5);
126: --
127: --------------------------------
128: -- Check hook id not null --
129: --------------------------------
142: hr_ahc_shd.constraint_error('HR_API_HOOK_CALLS_FK1');
143: end if;
144: close csr_valid_hook_id;
145:
146: hr_utility.set_location('Leaving: '||l_proc,10);
147: end chk_api_hook_id;
148: --
149: --
150: -- -----------------------------------------------------------------
184: l_lookup_code hr_lookups.lookup_code%TYPE;
185: --
186: --
187: begin
188: hr_utility.set_location('Entering: '||l_proc,5);
189: --
190: --------------------------------
191: -- Check hook call type not null --
192: --------------------------------
204: p_lookup_code => p_api_hook_call_type) then
205: hr_ahc_shd.constraint_error('HR_API_HOOK_CALLS_CK1');
206: end if;
207:
208: hr_utility.set_location('Leaving: '||l_proc,10);
209: end chk_api_hook_call_type;
210: --
211: --
212: -- -----------------------------------------------------------------
249: where ft.territory_code = p_legislation_code;
250: --
251: --
252: begin
253: hr_utility.set_location('Entering: '||l_proc,5);
254: --------------------------------
255: -- Check legislation code is valid --
256: --------------------------------
257: if p_legislation_code is not null then
259: fetch csr_valid_legislation_code into l_territory_code;
260:
261: if csr_valid_legislation_code%notfound then
262: close csr_valid_legislation_code;
263: hr_utility.set_message(800,'PER_52123_AMD_LEG_CODE_INV');
264: hr_utility.raise_error;
265: end if; -- End cursor if
266:
267: close csr_valid_legislation_code;
260:
261: if csr_valid_legislation_code%notfound then
262: close csr_valid_legislation_code;
263: hr_utility.set_message(800,'PER_52123_AMD_LEG_CODE_INV');
264: hr_utility.raise_error;
265: end if; -- End cursor if
266:
267: close csr_valid_legislation_code;
268: end if; -- end check
266:
267: close csr_valid_legislation_code;
268: end if; -- end check
269:
270: hr_utility.set_location('Leaving: '||l_proc,10);
271: end chk_legislation_code;
272: --
273: --
274: -- -----------------------------------------------------------------
312: l_api_updating boolean;
313:
314: --
315: begin
316: hr_utility.set_location('Entering: '||l_proc,5);
317:
318: -- Check if hook is being updated
319: l_api_updating := hr_ahc_shd.api_updating
320: (p_api_hook_call_id => p_api_hook_call_id,
327:
328:
329: if ( p_legislation_code is not null and
330: (p_sequence < 1500 or p_sequence > 1999) ) then
331: hr_utility.set_message(800,'PER_52145_AHC_INVALID_SEQ1');
332: hr_utility.raise_error;
333: elsif( p_legislation_code is null) then
334: if (p_application_id is null and
335: (p_sequence >= 1000 and p_sequence <= 1999) )then
328:
329: if ( p_legislation_code is not null and
330: (p_sequence < 1500 or p_sequence > 1999) ) then
331: hr_utility.set_message(800,'PER_52145_AHC_INVALID_SEQ1');
332: hr_utility.raise_error;
333: elsif( p_legislation_code is null) then
334: if (p_application_id is null and
335: (p_sequence >= 1000 and p_sequence <= 1999) )then
336: hr_utility.set_message(800,'PER_52146_AHC_INVALID_SEQ2');
332: hr_utility.raise_error;
333: elsif( p_legislation_code is null) then
334: if (p_application_id is null and
335: (p_sequence >= 1000 and p_sequence <= 1999) )then
336: hr_utility.set_message(800,'PER_52146_AHC_INVALID_SEQ2');
337: hr_utility.raise_error;
338: elsif (p_application_id is not null and
339: (p_sequence < 1000 or p_sequence > 1499)) then
340: hr_utility.set_message(800,'PER_289089_AHC_INVALID_SEQ3');
333: elsif( p_legislation_code is null) then
334: if (p_application_id is null and
335: (p_sequence >= 1000 and p_sequence <= 1999) )then
336: hr_utility.set_message(800,'PER_52146_AHC_INVALID_SEQ2');
337: hr_utility.raise_error;
338: elsif (p_application_id is not null and
339: (p_sequence < 1000 or p_sequence > 1499)) then
340: hr_utility.set_message(800,'PER_289089_AHC_INVALID_SEQ3');
341: hr_utility.raise_error;
336: hr_utility.set_message(800,'PER_52146_AHC_INVALID_SEQ2');
337: hr_utility.raise_error;
338: elsif (p_application_id is not null and
339: (p_sequence < 1000 or p_sequence > 1499)) then
340: hr_utility.set_message(800,'PER_289089_AHC_INVALID_SEQ3');
341: hr_utility.raise_error;
342: end if;
343: end if;
344: end if;
337: hr_utility.raise_error;
338: elsif (p_application_id is not null and
339: (p_sequence < 1000 or p_sequence > 1499)) then
340: hr_utility.set_message(800,'PER_289089_AHC_INVALID_SEQ3');
341: hr_utility.raise_error;
342: end if;
343: end if;
344: end if;
345:
342: end if;
343: end if;
344: end if;
345:
346: hr_utility.set_location('Leaving: '||l_proc,10);
347: end chk_sequence;
348: --
349: --
350: -- -----------------------------------------------------------------
386: l_api_updating boolean;
387: --
388: --
389: begin
390: hr_utility.set_location('Entering: '||l_proc,5);
391:
392: --------------------------------
393: -- Check enabled flag type not null --
394: --------------------------------
413: if hr_api.not_exists_in_hr_lookups
414: (p_effective_date => p_effective_date,
415: p_lookup_type => 'YES_NO',
416: p_lookup_code => p_enabled_flag) then
417: hr_utility.set_message(800,'PER_52136_AHC_ENAB_FLAG_INV');
418: hr_utility.raise_error;
419: end if;
420:
421: end if;
414: (p_effective_date => p_effective_date,
415: p_lookup_type => 'YES_NO',
416: p_lookup_code => p_enabled_flag) then
417: hr_utility.set_message(800,'PER_52136_AHC_ENAB_FLAG_INV');
418: hr_utility.raise_error;
419: end if;
420:
421: end if;
422: hr_utility.set_location('Leaving: '||l_proc,10);
418: hr_utility.raise_error;
419: end if;
420:
421: end if;
422: hr_utility.set_location('Leaving: '||l_proc,10);
423: end chk_enabled_flag;
424: --
425: --
426: -- -----------------------------------------------------------------
460: l_proc varchar2(72) := g_package||'chk_call_package';
461: l_api_updating boolean;
462: --
463: begin
464: hr_utility.set_location('Entering: '||l_proc,5);
465:
466: -- Check if hook is being updated
467: l_api_updating := hr_ahc_shd.api_updating
468: (p_api_hook_call_id => p_api_hook_call_id,
476:
477: if (p_api_hook_call_type = 'PP' and p_call_package is null) OR
478: (p_api_hook_call_type = 'FF' and p_call_package is not null)
479: then
480: hr_utility.set_message(800,'PER_52137_AHC_CALL_PACK_INV');
481: hr_utility.raise_error;
482: end if;
483: end if;
484:
477: if (p_api_hook_call_type = 'PP' and p_call_package is null) OR
478: (p_api_hook_call_type = 'FF' and p_call_package is not null)
479: then
480: hr_utility.set_message(800,'PER_52137_AHC_CALL_PACK_INV');
481: hr_utility.raise_error;
482: end if;
483: end if;
484:
485: hr_utility.set_location('Leaving: '||l_proc,10);
481: hr_utility.raise_error;
482: end if;
483: end if;
484:
485: hr_utility.set_location('Leaving: '||l_proc,10);
486: end chk_call_package;
487: --
488: --
489: -- -----------------------------------------------------------------
523: l_proc varchar2(72) := g_package||'chk_call_procedure';
524: l_api_updating boolean;
525: --
526: begin
527: hr_utility.set_location('Entering: '||l_proc,5);
528:
529: -- Check if hook is being updated
530: l_api_updating := hr_ahc_shd.api_updating
531: (p_api_hook_call_id => p_api_hook_call_id,
539:
540: if (p_api_hook_call_type = 'PP' and p_call_procedure is null) OR
541: (p_api_hook_call_type = 'FF' and p_call_procedure is not null)
542: then
543: hr_utility.set_message(800,'PER_52138_AHC_CALL_PROC_INV');
544: hr_utility.raise_error;
545: end if;
546:
547: end if;
540: if (p_api_hook_call_type = 'PP' and p_call_procedure is null) OR
541: (p_api_hook_call_type = 'FF' and p_call_procedure is not null)
542: then
543: hr_utility.set_message(800,'PER_52138_AHC_CALL_PROC_INV');
544: hr_utility.raise_error;
545: end if;
546:
547: end if;
548:
545: end if;
546:
547: end if;
548:
549: hr_utility.set_location('Leaving: '||l_proc,10);
550: end chk_call_procedure;
551: --
552: --
553: -- -----------------------------------------------------------------
614: = nvl(p_call_procedure, 'X');
615:
616: --
617: begin
618: hr_utility.set_location('Entering: '||l_proc,5);
619: -- Check if hook call is being updated
620: l_api_updating := hr_ahc_shd.api_updating
621: (p_api_hook_call_id => p_api_hook_call_id,
622: p_object_version_number => p_object_version_number);
627: hr_ahc_shd.g_old_rec.call_procedure <> p_call_procedure)
628: )
629: or
630: (not l_api_updating) ) then
631: hr_utility.set_location('**'||hr_ahc_shd.g_old_rec.call_package,99);
632: hr_utility.set_location('**'||hr_ahc_shd.g_old_rec.call_procedure,99);
633:
634: if p_api_hook_call_type = 'PP' then
635: ----------------------------------------------------------------------------
628: )
629: or
630: (not l_api_updating) ) then
631: hr_utility.set_location('**'||hr_ahc_shd.g_old_rec.call_package,99);
632: hr_utility.set_location('**'||hr_ahc_shd.g_old_rec.call_procedure,99);
633:
634: if p_api_hook_call_type = 'PP' then
635: ----------------------------------------------------------------------------
636: -- Check for combination of hook call id, leg code, call pack, call proc --
634: if p_api_hook_call_type = 'PP' then
635: ----------------------------------------------------------------------------
636: -- Check for combination of hook call id, leg code, call pack, call proc --
637: ----------------------------------------------------------------------------
638: hr_utility.set_location('App_id:'||to_char(p_application_id),1);
639: hr_utility.set_location('Leg:'||p_legislation_code,2);
640: hr_utility.set_location('Pkg:'||p_call_package,3);
641: hr_utility.set_location('prc:'||p_call_procedure,4);
642: open csr_valid_combo;
635: ----------------------------------------------------------------------------
636: -- Check for combination of hook call id, leg code, call pack, call proc --
637: ----------------------------------------------------------------------------
638: hr_utility.set_location('App_id:'||to_char(p_application_id),1);
639: hr_utility.set_location('Leg:'||p_legislation_code,2);
640: hr_utility.set_location('Pkg:'||p_call_package,3);
641: hr_utility.set_location('prc:'||p_call_procedure,4);
642: open csr_valid_combo;
643: fetch csr_valid_combo into l_api_hook_call_id;
636: -- Check for combination of hook call id, leg code, call pack, call proc --
637: ----------------------------------------------------------------------------
638: hr_utility.set_location('App_id:'||to_char(p_application_id),1);
639: hr_utility.set_location('Leg:'||p_legislation_code,2);
640: hr_utility.set_location('Pkg:'||p_call_package,3);
641: hr_utility.set_location('prc:'||p_call_procedure,4);
642: open csr_valid_combo;
643: fetch csr_valid_combo into l_api_hook_call_id;
644:
637: ----------------------------------------------------------------------------
638: hr_utility.set_location('App_id:'||to_char(p_application_id),1);
639: hr_utility.set_location('Leg:'||p_legislation_code,2);
640: hr_utility.set_location('Pkg:'||p_call_package,3);
641: hr_utility.set_location('prc:'||p_call_procedure,4);
642: open csr_valid_combo;
643: fetch csr_valid_combo into l_api_hook_call_id;
644:
645: if csr_valid_combo%found then
650: close csr_valid_combo;
651: end if;
652:
653: end if;
654: hr_utility.set_location('Leaving: '||l_proc,10);
655: end chk_call_pp_combination;
656: --
657: --
658: -- -----------------------------------------------------------------
685: l_proc varchar2(72) := g_package||'chk_formula_id';
686:
687: --
688: begin
689: hr_utility.set_location('Entering: '||l_proc,5);
690:
691: -- There is no formula id in the table for the first version.
692: -- It will be added when FORMULA calls are possible.
693:
691: -- There is no formula id in the table for the first version.
692: -- It will be added when FORMULA calls are possible.
693:
694:
695: hr_utility.set_location('Leaving: '||l_proc,10);
696: end chk_formula_id;
697: --
698: --
699: -- -----------------------------------------------------------------
726: l_proc varchar2(72) := g_package||'chk_call_ff_combination';
727:
728: --
729: begin
730: hr_utility.set_location('Entering: '||l_proc,5);
731:
732: -- There is no formula id in the table for the first version.
733: -- It will be added when FORMULA calls are possible.
734:
731:
732: -- There is no formula id in the table for the first version.
733: -- It will be added when FORMULA calls are possible.
734:
735: hr_utility.set_location('Leaving: '||l_proc,10);
736: end chk_call_ff_combination;
737: --
738: --
739: -- -----------------------------------------------------------------
771: l_proc varchar2(72) := g_package||'chk_pre_processor_date';
772: l_api_updating boolean;
773: --
774: begin
775: hr_utility.set_location('Entering: '||l_proc,5);
776:
777: -- Check if hook is being updated
778: l_api_updating := hr_ahc_shd.api_updating
779: (p_api_hook_call_id => p_api_hook_call_id,
779: (p_api_hook_call_id => p_api_hook_call_id,
780: p_object_version_number => p_object_version_number);
781:
782: if (not l_api_updating and p_pre_processor_date is not null) then
783: hr_utility.set_message(800,'PER_52144_AHC_PP_DATE_NOT_NULL');
784: hr_utility.raise_error;
785: end if;
786:
787: hr_utility.set_location('Leaving: '||l_proc,10);
780: p_object_version_number => p_object_version_number);
781:
782: if (not l_api_updating and p_pre_processor_date is not null) then
783: hr_utility.set_message(800,'PER_52144_AHC_PP_DATE_NOT_NULL');
784: hr_utility.raise_error;
785: end if;
786:
787: hr_utility.set_location('Leaving: '||l_proc,10);
788: end chk_pre_processor_date;
783: hr_utility.set_message(800,'PER_52144_AHC_PP_DATE_NOT_NULL');
784: hr_utility.raise_error;
785: end if;
786:
787: hr_utility.set_location('Leaving: '||l_proc,10);
788: end chk_pre_processor_date;
789: --
790: --
791: -- -----------------------------------------------------------------
826: l_proc varchar2(72) := g_package||'chk_encoded_error';
827: l_api_updating boolean;
828: --
829: begin
830: hr_utility.set_location('Entering: '||l_proc,5);
831:
832: -- Check if hook is being updated
833: l_api_updating := hr_ahc_shd.api_updating
834: (p_api_hook_call_id => p_api_hook_call_id,
836:
837: -- Proceed with validation based on outcome of api_updating call.
838: if (not l_api_updating and p_encoded_error is not null)
839: then
840: hr_utility.set_message(800,'PER_52142_AHC_ENC_ERR_NOT_NULL');
841: hr_utility.raise_error;
842: elsif
843: (l_api_updating and
844: (p_status = 'N' or p_status = 'V') and
837: -- Proceed with validation based on outcome of api_updating call.
838: if (not l_api_updating and p_encoded_error is not null)
839: then
840: hr_utility.set_message(800,'PER_52142_AHC_ENC_ERR_NOT_NULL');
841: hr_utility.raise_error;
842: elsif
843: (l_api_updating and
844: (p_status = 'N' or p_status = 'V') and
845: p_encoded_error is not null)
843: (l_api_updating and
844: (p_status = 'N' or p_status = 'V') and
845: p_encoded_error is not null)
846: then
847: hr_utility.set_message(800,'PER_52143_AHC_E_ERR_NOT_NULL2');
848: hr_utility.raise_error;
849: end if;
850:
851: hr_utility.set_location('Leaving: '||l_proc,10);
844: (p_status = 'N' or p_status = 'V') and
845: p_encoded_error is not null)
846: then
847: hr_utility.set_message(800,'PER_52143_AHC_E_ERR_NOT_NULL2');
848: hr_utility.raise_error;
849: end if;
850:
851: hr_utility.set_location('Leaving: '||l_proc,10);
852: end chk_encoded_error;
847: hr_utility.set_message(800,'PER_52143_AHC_E_ERR_NOT_NULL2');
848: hr_utility.raise_error;
849: end if;
850:
851: hr_utility.set_location('Leaving: '||l_proc,10);
852: end chk_encoded_error;
853: --
854: --
855: -- -----------------------------------------------------------------
892: l_api_updating boolean;
893: --
894: --
895: begin
896: hr_utility.set_location('Entering: '||l_proc,5);
897:
898: --------------------------------
899: -- Check status not null --
900: --------------------------------
919: if hr_api.not_exists_in_hr_lookups
920: (p_effective_date => p_effective_date,
921: p_lookup_type => 'API_HOOK_CALL_STATUS',
922: p_lookup_code => p_status) then
923: hr_utility.set_message(800,'PER_52140_AHC_STATUS_INV');
924: hr_utility.raise_error;
925: end if;
926:
927: --------------------------------------
920: (p_effective_date => p_effective_date,
921: p_lookup_type => 'API_HOOK_CALL_STATUS',
922: p_lookup_code => p_status) then
923: hr_utility.set_message(800,'PER_52140_AHC_STATUS_INV');
924: hr_utility.raise_error;
925: end if;
926:
927: --------------------------------------
928: -- Status must be 'N' during insert --
927: --------------------------------------
928: -- Status must be 'N' during insert --
929: --------------------------------------
930: if (not l_api_updating and p_status <> 'N') then
931: hr_utility.set_message(800,'PER_52141_AHC_INV_STA_ON_INS');
932: hr_utility.raise_error;
933: end if;
934:
935: end if;
928: -- Status must be 'N' during insert --
929: --------------------------------------
930: if (not l_api_updating and p_status <> 'N') then
931: hr_utility.set_message(800,'PER_52141_AHC_INV_STA_ON_INS');
932: hr_utility.raise_error;
933: end if;
934:
935: end if;
936: hr_utility.set_location('Leaving: '||l_proc,10);
932: hr_utility.raise_error;
933: end if;
934:
935: end if;
936: hr_utility.set_location('Leaving: '||l_proc,10);
937: end chk_status;
938: --
939: -- ----------------------------------------------------------------------------
940: -- |-----------------------< chk_application_id >-----------------------------|
979: --
980: IF csr_check_app_id%NOTFOUND THEN
981: -- Application does not exist
982: CLOSE csr_check_app_id;
983: hr_utility.set_message(800,'PER_289085_AHC_INVALID_APPL');
984: hr_utility.raise_error;
985: END IF;
986: CLOSE csr_check_app_id;
987: --
980: IF csr_check_app_id%NOTFOUND THEN
981: -- Application does not exist
982: CLOSE csr_check_app_id;
983: hr_utility.set_message(800,'PER_289085_AHC_INVALID_APPL');
984: hr_utility.raise_error;
985: END IF;
986: CLOSE csr_check_app_id;
987: --
988: END IF;
1023: --
1024: IF ((p_application_id IS NULL) and (p_app_install_status IS NOT NULL)) THEN
1025: --
1026: -- Error - app_install_status must be null when app_id is null
1027: hr_utility.set_message(800,'PER_289086_AHC_INST_STAT_NULL');
1028: hr_utility.raise_error;
1029: --
1030: ELSIF ((p_application_id IS NOT NULL) and (p_app_install_status IS NULL)) THEN
1031: --
1024: IF ((p_application_id IS NULL) and (p_app_install_status IS NOT NULL)) THEN
1025: --
1026: -- Error - app_install_status must be null when app_id is null
1027: hr_utility.set_message(800,'PER_289086_AHC_INST_STAT_NULL');
1028: hr_utility.raise_error;
1029: --
1030: ELSIF ((p_application_id IS NOT NULL) and (p_app_install_status IS NULL)) THEN
1031: --
1032: -- Error - app_install_status is mandatory when app_id is not null
1029: --
1030: ELSIF ((p_application_id IS NOT NULL) and (p_app_install_status IS NULL)) THEN
1031: --
1032: -- Error - app_install_status is mandatory when app_id is not null
1033: hr_utility.set_message(800,'PER_289087_AHC_MAND_INSTALL_ST');
1034: hr_utility.raise_error;
1035: ELSE
1036: -- combination of application_id and app_install_status is ok
1037: IF p_app_install_status IS NOT NULL THEN
1030: ELSIF ((p_application_id IS NOT NULL) and (p_app_install_status IS NULL)) THEN
1031: --
1032: -- Error - app_install_status is mandatory when app_id is not null
1033: hr_utility.set_message(800,'PER_289087_AHC_MAND_INSTALL_ST');
1034: hr_utility.raise_error;
1035: ELSE
1036: -- combination of application_id and app_install_status is ok
1037: IF p_app_install_status IS NOT NULL THEN
1038: -- validate against HR_LOOKUPS
1039: if hr_api.not_exists_in_hr_lookups
1040: (p_effective_date => p_effective_date,
1041: p_lookup_type => 'APP_INSTALL_STATUS',
1042: p_lookup_code => p_app_install_status) then
1043: hr_utility.set_message(800,'PER_289088_AHC_INST_STATUS_ERR');
1044: hr_utility.raise_error;
1045: end if;
1046: END IF;
1047: END IF;
1040: (p_effective_date => p_effective_date,
1041: p_lookup_type => 'APP_INSTALL_STATUS',
1042: p_lookup_code => p_app_install_status) then
1043: hr_utility.set_message(800,'PER_289088_AHC_INST_STATUS_ERR');
1044: hr_utility.raise_error;
1045: end if;
1046: END IF;
1047: END IF;
1048: --
1056: --
1057: l_proc varchar2(72) := g_package||'insert_validate';
1058: --
1059: Begin
1060: hr_utility.set_location('Entering:'||l_proc, 5);
1061: --
1062: -- As this data is not within the context of a business group
1063: -- the set_security_group_id procedure has zero passed
1064: -- to it as the default security_group_id.
1064: -- to it as the default security_group_id.
1065: --
1066: hr_api.set_security_group_id(p_security_group_id => 0);
1067: --
1068: hr_utility.set_location('Entering:'||l_proc, 6);
1069: --
1070: -- Call all supporting business operations
1071: --
1072: -- Validate the api_hook_id
1171: p_encoded_error => p_rec.encoded_error,
1172: p_status => p_rec.status,
1173: p_object_version_number => p_rec.object_version_number);
1174: --
1175: hr_utility.set_location(' Leaving:'||l_proc, 10);
1176: End insert_validate;
1177: --
1178: -- ----------------------------------------------------------------------------
1179: -- |---------------------------< update_validate >----------------------------|
1183: --
1184: l_proc varchar2(72) := g_package||'update_validate';
1185: --
1186: Begin
1187: hr_utility.set_location('Entering:'||l_proc, 5);
1188: --
1189: -- As this data is not within the context of a business group
1190: -- the set_security_group_id procedure has zero passed
1191: -- to it as the default security_group_id.
1191: -- to it as the default security_group_id.
1192: --
1193: hr_api.set_security_group_id(p_security_group_id => 0);
1194: --
1195: hr_utility.set_location('Entering:'||l_proc, 6);
1196: --
1197: -- Check that non-updateable columns have not been updated
1198: chk_non_updateable_args
1199: (p_effective_date => p_effective_date
1283: p_encoded_error => p_rec.encoded_error,
1284: p_status => p_rec.status,
1285: p_object_version_number => p_rec.object_version_number);
1286: --
1287: hr_utility.set_location(' Leaving:'||l_proc, 10);
1288: End update_validate;
1289: --
1290: -- ----------------------------------------------------------------------------
1291: -- |---------------------------< delete_validate >----------------------------|
1294: --
1295: l_proc varchar2(72) := g_package||'delete_validate';
1296: --
1297: Begin
1298: hr_utility.set_location('Entering:'||l_proc, 5);
1299: --
1300: -- Call all supporting business operations
1301: --
1302: hr_utility.set_location(' Leaving:'||l_proc, 10);
1298: hr_utility.set_location('Entering:'||l_proc, 5);
1299: --
1300: -- Call all supporting business operations
1301: --
1302: hr_utility.set_location(' Leaving:'||l_proc, 10);
1303: End delete_validate;
1304: --
1305: end hr_ahc_bus;