83: hr_utility.set_location('Entering:'|| l_proc, 10);
84: --
85: -- Ensure that all the mandatory parameter are not null
86: --
87: hr_api.mandatory_arg_error
88: (p_api_name => l_proc
89: ,p_argument => 'ext_where_clause_id'
90: ,p_argument_value => p_ext_where_clause_id
91: );
106: close csr_sec_grp;
107: --
108: -- Set the security_group_id in CLIENT_INFO
109: --
110: hr_api.set_security_group_id
111: (p_security_group_id => l_security_group_id
112: );
113: --
114: hr_utility.set_location(' Leaving:'|| l_proc, 20);
156: (p_ext_where_clause_id => p_ext_where_clause_id,
157: p_object_version_number => p_object_version_number);
158: --
159: if (l_api_updating
160: and nvl(p_ext_where_clause_id,hr_api.g_number)
161: <> ben_xwc_shd.g_old_rec.ext_where_clause_id) then
162: --
163: -- raise error as PK has changed
164: --
228: (p_ext_where_clause_id => p_ext_where_clause_id,
229: p_object_version_number => p_object_version_number);
230: --
231: if (l_api_updating
232: and nvl(p_cond_ext_data_elmt_in_rcd_id,hr_api.g_number)
233: <> nvl(ben_xwc_shd.g_old_rec.cond_ext_data_elmt_in_rcd_id,hr_api.g_number)
234: or not l_api_updating) and
235: p_cond_ext_data_elmt_in_rcd_id is not null then
236: --
229: p_object_version_number => p_object_version_number);
230: --
231: if (l_api_updating
232: and nvl(p_cond_ext_data_elmt_in_rcd_id,hr_api.g_number)
233: <> nvl(ben_xwc_shd.g_old_rec.cond_ext_data_elmt_in_rcd_id,hr_api.g_number)
234: or not l_api_updating) and
235: p_cond_ext_data_elmt_in_rcd_id is not null then
236: --
237: -- check if cond_ext_data_elmt_in_rcd_id value exists in ben_ext_data_elmt_in_rcd table
304: (p_ext_where_clause_id => p_ext_where_clause_id,
305: p_object_version_number => p_object_version_number);
306: --
307: if (l_api_updating
308: and nvl(p_ext_rcd_in_file_id,hr_api.g_number)
309: <> nvl(ben_xwc_shd.g_old_rec.ext_rcd_in_file_id,hr_api.g_number)
310: or not l_api_updating) and
311: p_ext_rcd_in_file_id is not null then
312: --
305: p_object_version_number => p_object_version_number);
306: --
307: if (l_api_updating
308: and nvl(p_ext_rcd_in_file_id,hr_api.g_number)
309: <> nvl(ben_xwc_shd.g_old_rec.ext_rcd_in_file_id,hr_api.g_number)
310: or not l_api_updating) and
311: p_ext_rcd_in_file_id is not null then
312: --
313: -- check if ext_rcd_in_file_id value exists in ben_ext_rcd_in_file table
380: (p_ext_where_clause_id => p_ext_where_clause_id,
381: p_object_version_number => p_object_version_number);
382: --
383: if (l_api_updating
384: and nvl(p_ext_data_elmt_in_rcd_id,hr_api.g_number)
385: <> nvl(ben_xwc_shd.g_old_rec.ext_data_elmt_in_rcd_id,hr_api.g_number)
386: or not l_api_updating) and
387: p_ext_data_elmt_in_rcd_id is not null then
388: --
381: p_object_version_number => p_object_version_number);
382: --
383: if (l_api_updating
384: and nvl(p_ext_data_elmt_in_rcd_id,hr_api.g_number)
385: <> nvl(ben_xwc_shd.g_old_rec.ext_data_elmt_in_rcd_id,hr_api.g_number)
386: or not l_api_updating) and
387: p_ext_data_elmt_in_rcd_id is not null then
388: --
389: -- check if ext_data_elmt_in_rcd_id value exists in ben_ext_data_elmt_in_rcd table
456: (p_ext_where_clause_id => p_ext_where_clause_id,
457: p_object_version_number => p_object_version_number);
458: --
459: if (l_api_updating
460: and nvl(p_cond_ext_data_elmt_id,hr_api.g_number)
461: <> nvl(ben_xwc_shd.g_old_rec.cond_ext_data_elmt_id,hr_api.g_number)
462: or not l_api_updating) and
463: p_cond_ext_data_elmt_id is not null then
464: --
457: p_object_version_number => p_object_version_number);
458: --
459: if (l_api_updating
460: and nvl(p_cond_ext_data_elmt_id,hr_api.g_number)
461: <> nvl(ben_xwc_shd.g_old_rec.cond_ext_data_elmt_id,hr_api.g_number)
462: or not l_api_updating) and
463: p_cond_ext_data_elmt_id is not null then
464: --
465: -- check if cond_ext_data_elmt_id value exists in ben_ext_data_elmt table
532: (p_ext_where_clause_id => p_ext_where_clause_id,
533: p_object_version_number => p_object_version_number);
534: --
535: if (l_api_updating
536: and nvl(p_ext_data_elmt_id,hr_api.g_number)
537: <> nvl(ben_xwc_shd.g_old_rec.ext_data_elmt_id,hr_api.g_number)
538: or not l_api_updating) and
539: p_ext_data_elmt_id is not null then
540: --
533: p_object_version_number => p_object_version_number);
534: --
535: if (l_api_updating
536: and nvl(p_ext_data_elmt_id,hr_api.g_number)
537: <> nvl(ben_xwc_shd.g_old_rec.ext_data_elmt_id,hr_api.g_number)
538: or not l_api_updating) and
539: p_ext_data_elmt_id is not null then
540: --
541: -- check if ext_data_elmt_id value exists in ben_ext_data_elmt table
606: p_object_version_number => p_object_version_number);
607: --
608: if (l_api_updating
609: and p_oper_cd
610: <> nvl(ben_xwc_shd.g_old_rec.oper_cd,hr_api.g_varchar2)
611: or not l_api_updating)
612: and p_oper_cd is not null then
613: --
614: -- check if value of lookup falls within lookup type.
614: -- check if value of lookup falls within lookup type.
615: --
616: if p_business_group_id is not null then
617: /* BG is set, so use the existing call, with no modifications*/
618: if hr_api.not_exists_in_hr_lookups
619: (p_lookup_type => 'BEN_EXT_OPER',
620: p_lookup_code => p_oper_cd,
621: p_effective_date => p_effective_date) then
622: --
629: --
630: end if;
631: else
632: /* BG is null, so alternative call is required */
633: if hr_api.not_exists_in_hrstanlookups
634: (p_lookup_type => 'BEN_EXT_OPER',
635: p_lookup_code => p_oper_cd,
636: p_effective_date => p_effective_date) then
637: --
695: p_object_version_number => p_object_version_number);
696: --
697: if (l_api_updating
698: and p_and_or_cd
699: <> nvl(ben_xwc_shd.g_old_rec.and_or_cd,hr_api.g_varchar2)
700: or not l_api_updating)
701: and p_and_or_cd is not null then
702: --
703: -- check if value of lookup falls within lookup type.
703: -- check if value of lookup falls within lookup type.
704: --
705: if p_business_group_id is not null then
706: /* BG is set, so use the existing call, with no modifications*/
707: if hr_api.not_exists_in_hr_lookups
708: (p_lookup_type => 'BEN_EXT_AND_OR',
709: p_lookup_code => p_and_or_cd,
710: p_effective_date => p_effective_date) then
711: --
718: --
719: end if;
720: else
721: /* BG is null, so alternative call is required */
722: if hr_api.not_exists_in_hrstanlookups
723: (p_lookup_type => 'BEN_EXT_AND_OR',
724: p_lookup_code => p_and_or_cd,
725: p_effective_date => p_effective_date) then
726: --
786: (p_ext_where_clause_id => p_ext_where_clause_id,
787: p_object_version_number => p_object_version_number);
788: --
789: if (
790: (l_api_updating and (p_val <> nvl(ben_xwc_shd.g_old_rec.val,hr_api.g_varchar2))) or
791: (l_api_updating and (p_oper_cd <> nvl(ben_xwc_shd.g_old_rec.oper_cd,hr_api.g_varchar2))) or
792: not l_api_updating
793: ) then
794:
787: p_object_version_number => p_object_version_number);
788: --
789: if (
790: (l_api_updating and (p_val <> nvl(ben_xwc_shd.g_old_rec.val,hr_api.g_varchar2))) or
791: (l_api_updating and (p_oper_cd <> nvl(ben_xwc_shd.g_old_rec.oper_cd,hr_api.g_varchar2))) or
792: not l_api_updating
793: ) then
794:
795:
924: (p_ext_where_clause_id => p_ext_where_clause_id,
925: p_object_version_number => p_object_version_number);
926: --
927: If (
928: (l_api_updating and (p_seq_num <> nvl(ben_xwc_shd.g_old_rec.seq_num,hr_api.g_number))) or
929: not l_api_updating
930: ) then
931: Open c_xwc;
932: --
960: chk_startup_action(True
961: ,p_rec.business_group_id
962: ,p_rec.legislation_code);
963: IF hr_startup_data_api_support.g_startup_mode NOT IN ('GENERIC','STARTUP') THEN
964: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate bus_grp
965: END IF;
966: --
967: chk_ext_where_clause_id
968: (p_ext_where_clause_id => p_rec.ext_where_clause_id,
1044: chk_startup_action(False
1045: ,p_rec.business_group_id
1046: ,p_rec.legislation_code);
1047: IF hr_startup_data_api_support.g_startup_mode NOT IN ('GENERIC','STARTUP') THEN
1048: hr_api.validate_bus_grp_id(p_rec.business_group_id); -- Validate bus_grp
1049: END IF;
1050: --
1051: chk_ext_where_clause_id
1052: (p_ext_where_clause_id => p_rec.ext_where_clause_id,
1158: hr_utility.set_location('Entering:'|| l_proc, 10);
1159: --
1160: -- Ensure that all the mandatory parameter are not null
1161: --
1162: hr_api.mandatory_arg_error(p_api_name => l_proc,
1163: p_argument => 'ext_where_clause_id',
1164: p_argument_value => p_ext_where_clause_id);
1165: --
1166: open csr_leg_code;