37: l_proc varchar2(72) := g_package||'set_security_group_id';
38: --
39: begin
40: --
41: hr_utility.set_location('Entering:'|| l_proc, 10);
42: --
43: -- Ensure that all the mandatory parameter are not null
44: --
45: hr_api.mandatory_arg_error
72: (p_security_group_id => l_security_group_id
73: );
74: end if;
75: --
76: hr_utility.set_location(' Leaving:'|| l_proc, 20);
77: --
78: end set_security_group_id;
79: --
80: -- ---------------------------------------------------------------------------
101: l_proc varchar2(72) := g_package||'return_legislation_code';
102: --
103: Begin
104: --
105: hr_utility.set_location('Entering:'|| l_proc, 10);
106: --
107: -- Ensure that all the mandatory parameter are not null
108: --
109: hr_api.mandatory_arg_error
119: -- call to this function. Just return the value in the global
120: -- variable.
121: --
122: l_legislation_code := pqh_los_bus.g_legislation_code;
123: hr_utility.set_location(l_proc, 20);
124: else
125: --
126: -- The ID is different to the last call to this function
127: -- or this is the first call to this function.
136: close csr_leg_code;
137: fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
138: fnd_message.raise_error;
139: end if;
140: hr_utility.set_location(l_proc,30);
141: --
142: -- Set the global variables so the values are
143: -- available for the next call to this function.
144: --
145: close csr_leg_code;
146: pqh_los_bus.g_situation_id := p_situation_id;
147: pqh_los_bus.g_legislation_code := l_legislation_code;
148: end if;
149: hr_utility.set_location(' Leaving:'|| l_proc, 40);
150: return l_legislation_code;
151: end return_legislation_code;
152: --
153: -- ----------------------------------------------------------------------------
184: --
185: l_proc varchar2(72) := g_package || 'chk_ddf';
186: --
187: begin
188: hr_utility.set_location('Entering:'||l_proc,10);
189: --
190: if ((p_rec.situation_id is not null) and (
191: nvl(pqh_los_shd.g_old_rec.information_category, hr_api.g_varchar2) <>
192: nvl(p_rec.information_category, hr_api.g_varchar2) or
323: ,p_attribute30_value => p_rec.information30
324: );
325: end if;
326: --
327: hr_utility.set_location(' Leaving:'||l_proc,20);
328: end chk_ddf;
329: --
330: -- ----------------------------------------------------------------------------
331: -- |------------------------------< chk_df >----------------------------------|
361: --
362: l_proc varchar2(72) := g_package || 'chk_df';
363: --
364: begin
365: hr_utility.set_location('Entering:'||l_proc,10);
366: --
367: if ((p_rec.situation_id is not null) and (
368: nvl(pqh_los_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
369: nvl(p_rec.attribute_category, hr_api.g_varchar2) or
500: ,p_attribute30_value => p_rec.attribute30
501: );
502: end if;
503: --
504: hr_utility.set_location(' Leaving:'||l_proc,20);
505: end chk_df;
506: --
507: -- ----------------------------------------------------------------------------
508: -- |-----------------------< chk_non_updateable_args >------------------------|
576: AND BUSINESS_GROUP_ID = hr_general.get_business_group_id; --add for BUG#3519152 (reopen)
577: l_proc varchar2(72);
578: Begin
579: l_proc := g_package||'duplicate_check';
580: hr_utility.set_location('Entering:'||l_proc, 5);
581: --
582: -- To check for duplicate value.
583: --
584: OPEN cur_duplicate;
587: fnd_message.set_name('PQH', 'PQH_FR_DUP_SITUATION');
588: hr_multi_message.add;
589: end if;
590: CLOSE cur_duplicate;
591: hr_utility.set_location(' Leaving:'||l_proc, 10);
592: End duplicate_check;
593:
594:
595:
605:
606:
607: --
608: Begin
609: hr_utility.set_location('Entering:'||l_proc, 5);
610: --
611: -- Call all supporting business operations
612: --
613: hr_api.validate_bus_grp_id
634: -- pqh_los_bus.chk_ddf(p_rec);
635: --
636: -- pqh_los_bus.chk_df(p_rec);
637: --
638: hr_utility.set_location(' Leaving:'||l_proc, 10);
639: End insert_validate;
640: --
641: -- ----------------------------------------------------------------------------
642: -- |---------------------------< update_validate >----------------------------|
649: l_proc varchar2(72) := g_package||'update_validate';
650:
651: --
652: Begin
653: hr_utility.set_location('Entering:'||l_proc, 5);
654: --
655: -- Call all supporting business operations
656: --
657: hr_api.validate_bus_grp_id
683: -- pqh_los_bus.chk_ddf(p_rec);
684: --
685: -- pqh_los_bus.chk_df(p_rec);
686: --
687: hr_utility.set_location(' Leaving:'||l_proc, 10);
688: End update_validate;
689: --
690: -- ----------------------------------------------------------------------------
691: -- |---------------------------< delete_validate >----------------------------|
696: --
697: l_proc varchar2(72) := g_package||'delete_validate';
698: --
699: Begin
700: hr_utility.set_location('Entering:'||l_proc, 5);
701: --
702: -- Call all supporting business operations
703: --
704: hr_utility.set_location(' Leaving:'||l_proc, 10);
700: hr_utility.set_location('Entering:'||l_proc, 5);
701: --
702: -- Call all supporting business operations
703: --
704: hr_utility.set_location(' Leaving:'||l_proc, 10);
705: End delete_validate;
706: --
707: end pqh_los_bus;