DBA Data[Home] [Help]

PACKAGE BODY: APPS.OTA_LME_BUS

Source


1 Package Body ota_lme_bus as
2 /* $Header: otlmerhi.pkb 120.0 2005/05/29 07:18 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '  ota_lme_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_lp_member_enrollment_id     number         default null;
15 --
16 --  ---------------------------------------------------------------------------
17 --  |----------------------< set_security_group_id >--------------------------|
18 --  ---------------------------------------------------------------------------
19 --
20 Procedure set_security_group_id
21   (p_lp_member_enrollment_id              in number
22   ,p_associated_column1                   in varchar2 default null
23   ) is
24   --
25   -- Declare cursor
26   --
27   cursor csr_sec_grp is
28     select pbg.security_group_id,
29            pbg.legislation_code
30       from per_business_groups_perf pbg
31          , ota_lp_member_enrollments lme
32      where lme.lp_member_enrollment_id = p_lp_member_enrollment_id
33        and pbg.business_group_id = lme.business_group_id;
34   --
35   -- Declare local variables
36   --
37   l_security_group_id number;
38   l_proc              varchar2(72)  :=  g_package||'set_security_group_id';
39   l_legislation_code  varchar2(150);
40   --
41 begin
42   --
43   hr_utility.set_location('Entering:'|| l_proc, 10);
44   --
45   -- Ensure that all the mandatory parameter are not null
46   --
47   hr_api.mandatory_arg_error
48     (p_api_name           => l_proc
49     ,p_argument           => 'lp_member_enrollment_id'
50     ,p_argument_value     => p_lp_member_enrollment_id
51     );
52   --
53   open csr_sec_grp;
54   fetch csr_sec_grp into l_security_group_id
55                        , l_legislation_code;
56   --
57   if csr_sec_grp%notfound then
58      --
59      close csr_sec_grp;
60      --
61      -- The primary key is invalid therefore we must error
62      --
63      fnd_message.set_name('PAY','HR_7220_INVALID_PRIMARY_KEY');
64      hr_multi_message.add
65        (p_associated_column1
66         => nvl(p_associated_column1,'LP_MEMBER_ENROLLMENT_ID')
67        );
68      --
69   else
70     close csr_sec_grp;
71     --
72     -- Set the security_group_id in CLIENT_INFO
73     --
74     hr_api.set_security_group_id
75       (p_security_group_id => l_security_group_id
76       );
77     --
78     -- Set the sessions legislation context in HR_SESSION_DATA
79     --
80     hr_api.set_legislation_context(l_legislation_code);
81   end if;
82   --
83   hr_utility.set_location(' Leaving:'|| l_proc, 20);
84   --
85 end set_security_group_id;
86 --
87 --  ---------------------------------------------------------------------------
88 --  |---------------------< return_legislation_code >-------------------------|
89 --  ---------------------------------------------------------------------------
90 --
91 Function return_legislation_code
92   (p_lp_member_enrollment_id              in     number
93   )
94   Return Varchar2 Is
95   --
96   -- Declare cursor
97   --
98  cursor csr_leg_code is
99     select pbg.legislation_code
100       from per_business_groups_perf pbg
101          , ota_lp_member_enrollments lme
102      where lme.lp_member_enrollment_id = p_lp_member_enrollment_id
103        and pbg.business_group_id = lme.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           => 'lp_member_enrollment_id'
119     ,p_argument_value     => p_lp_member_enrollment_id
120     );
121   --
122   if ( nvl(ota_lme_bus.g_lp_member_enrollment_id, hr_api.g_number)
123        = p_lp_member_enrollment_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 := ota_lme_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     ota_lme_bus.g_lp_member_enrollment_id     := p_lp_member_enrollment_id;
154     ota_lme_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_df >----------------------------------|
162 -- ----------------------------------------------------------------------------
163 --
164 -- Description:
165 --   Validates all the Descriptive Flexfield values.
166 --
167 -- Prerequisites:
168 --   All other columns have been validated.  Must be called as the
169 --   last step from insert_validate and update_validate.
170 --
171 -- In Arguments:
172 --   p_rec
173 --
174 -- Post Success:
175 --   If the Descriptive Flexfield structure column and data values are
176 --   all valid this procedure will end normally and processing will
177 --   continue.
178 --
179 -- Post Failure:
180 --   If the Descriptive Flexfield structure column value or any of
181 --   the data values are invalid then an application error is raised as
182 --   a PL/SQL exception.
183 --
184 -- Access Status:
185 --   Internal Row Handler Use Only.
186 --
187 -- ----------------------------------------------------------------------------
188 procedure chk_df
189   (p_rec in ota_lme_shd.g_rec_type
190   ) is
191 --
192   l_proc   varchar2(72) := g_package || 'chk_df';
193 --
194 begin
195   hr_utility.set_location('Entering:'||l_proc,10);
196   --
197   if ((p_rec.lp_member_enrollment_id is not null)  and (
198     nvl(ota_lme_shd.g_old_rec.attribute_category, hr_api.g_varchar2) <>
199     nvl(p_rec.attribute_category, hr_api.g_varchar2)  or
200     nvl(ota_lme_shd.g_old_rec.attribute1, hr_api.g_varchar2) <>
201     nvl(p_rec.attribute1, hr_api.g_varchar2)  or
202     nvl(ota_lme_shd.g_old_rec.attribute2, hr_api.g_varchar2) <>
203     nvl(p_rec.attribute2, hr_api.g_varchar2)  or
204     nvl(ota_lme_shd.g_old_rec.attribute3, hr_api.g_varchar2) <>
205     nvl(p_rec.attribute3, hr_api.g_varchar2)  or
206     nvl(ota_lme_shd.g_old_rec.attribute4, hr_api.g_varchar2) <>
207     nvl(p_rec.attribute4, hr_api.g_varchar2)  or
208     nvl(ota_lme_shd.g_old_rec.attribute5, hr_api.g_varchar2) <>
209     nvl(p_rec.attribute5, hr_api.g_varchar2)  or
210     nvl(ota_lme_shd.g_old_rec.attribute6, hr_api.g_varchar2) <>
211     nvl(p_rec.attribute6, hr_api.g_varchar2)  or
212     nvl(ota_lme_shd.g_old_rec.attribute7, hr_api.g_varchar2) <>
213     nvl(p_rec.attribute7, hr_api.g_varchar2)  or
214     nvl(ota_lme_shd.g_old_rec.attribute8, hr_api.g_varchar2) <>
215     nvl(p_rec.attribute8, hr_api.g_varchar2)  or
216     nvl(ota_lme_shd.g_old_rec.attribute9, hr_api.g_varchar2) <>
217     nvl(p_rec.attribute9, hr_api.g_varchar2)  or
218     nvl(ota_lme_shd.g_old_rec.attribute10, hr_api.g_varchar2) <>
219     nvl(p_rec.attribute10, hr_api.g_varchar2)  or
220     nvl(ota_lme_shd.g_old_rec.attribute11, hr_api.g_varchar2) <>
221     nvl(p_rec.attribute11, hr_api.g_varchar2)  or
222     nvl(ota_lme_shd.g_old_rec.attribute12, hr_api.g_varchar2) <>
223     nvl(p_rec.attribute12, hr_api.g_varchar2)  or
224     nvl(ota_lme_shd.g_old_rec.attribute13, hr_api.g_varchar2) <>
225     nvl(p_rec.attribute13, hr_api.g_varchar2)  or
226     nvl(ota_lme_shd.g_old_rec.attribute14, hr_api.g_varchar2) <>
227     nvl(p_rec.attribute14, hr_api.g_varchar2)  or
228     nvl(ota_lme_shd.g_old_rec.attribute15, hr_api.g_varchar2) <>
229     nvl(p_rec.attribute15, hr_api.g_varchar2)  or
230     nvl(ota_lme_shd.g_old_rec.attribute16, hr_api.g_varchar2) <>
231     nvl(p_rec.attribute16, hr_api.g_varchar2)  or
232     nvl(ota_lme_shd.g_old_rec.attribute17, hr_api.g_varchar2) <>
233     nvl(p_rec.attribute17, hr_api.g_varchar2)  or
234     nvl(ota_lme_shd.g_old_rec.attribute18, hr_api.g_varchar2) <>
235     nvl(p_rec.attribute18, hr_api.g_varchar2)  or
236     nvl(ota_lme_shd.g_old_rec.attribute19, hr_api.g_varchar2) <>
237     nvl(p_rec.attribute19, hr_api.g_varchar2)  or
238     nvl(ota_lme_shd.g_old_rec.attribute20, hr_api.g_varchar2) <>
239     nvl(p_rec.attribute20, hr_api.g_varchar2)  or
240     nvl(ota_lme_shd.g_old_rec.attribute21, hr_api.g_varchar2) <>
241     nvl(p_rec.attribute21, hr_api.g_varchar2)  or
242     nvl(ota_lme_shd.g_old_rec.attribute22, hr_api.g_varchar2) <>
243     nvl(p_rec.attribute22, hr_api.g_varchar2)  or
244     nvl(ota_lme_shd.g_old_rec.attribute23, hr_api.g_varchar2) <>
245     nvl(p_rec.attribute23, hr_api.g_varchar2)  or
246     nvl(ota_lme_shd.g_old_rec.attribute24, hr_api.g_varchar2) <>
247     nvl(p_rec.attribute24, hr_api.g_varchar2)  or
248     nvl(ota_lme_shd.g_old_rec.attribute25, hr_api.g_varchar2) <>
249     nvl(p_rec.attribute25, hr_api.g_varchar2)  or
250     nvl(ota_lme_shd.g_old_rec.attribute26, hr_api.g_varchar2) <>
251     nvl(p_rec.attribute26, hr_api.g_varchar2)  or
252     nvl(ota_lme_shd.g_old_rec.attribute27, hr_api.g_varchar2) <>
253     nvl(p_rec.attribute27, hr_api.g_varchar2)  or
254     nvl(ota_lme_shd.g_old_rec.attribute28, hr_api.g_varchar2) <>
255     nvl(p_rec.attribute28, hr_api.g_varchar2)  or
256     nvl(ota_lme_shd.g_old_rec.attribute29, hr_api.g_varchar2) <>
257     nvl(p_rec.attribute29, hr_api.g_varchar2)  or
258     nvl(ota_lme_shd.g_old_rec.attribute30, hr_api.g_varchar2) <>
259     nvl(p_rec.attribute30, hr_api.g_varchar2) ))
260     --Need not check creator_person_id
261     /*or
262     nvl(ota_lme_shd.g_old_rec.creator_person_id, hr_api.g_varchar2) <>
263     nvl(p_rec.creator_person_id, hr_api.g_varchar2) ))
264     */
265     or (p_rec.lp_member_enrollment_id is null)  then
266     --
267     -- Only execute the validation if absolutely necessary:
268     -- a) During update, the structure column value or any
269     --    of the attribute values have actually changed.
270     -- b) During insert.
271     --
272     hr_dflex_utility.ins_or_upd_descflex_attribs
273       (p_appl_short_name                 => 'OTA'
274       ,p_descflex_name                   => 'OTA_LP_MEMBER_ENROLLMENTS'
275       ,p_attribute_category              => p_rec.attribute_category
276       ,p_attribute1_name                 => 'ATTRIBUTE1'
277       ,p_attribute1_value                => p_rec.attribute1
278       ,p_attribute2_name                 => 'ATTRIBUTE2'
279       ,p_attribute2_value                => p_rec.attribute2
280       ,p_attribute3_name                 => 'ATTRIBUTE3'
281       ,p_attribute3_value                => p_rec.attribute3
282       ,p_attribute4_name                 => 'ATTRIBUTE4'
283       ,p_attribute4_value                => p_rec.attribute4
284       ,p_attribute5_name                 => 'ATTRIBUTE5'
285       ,p_attribute5_value                => p_rec.attribute5
286       ,p_attribute6_name                 => 'ATTRIBUTE6'
290       ,p_attribute8_name                 => 'ATTRIBUTE8'
287       ,p_attribute6_value                => p_rec.attribute6
288       ,p_attribute7_name                 => 'ATTRIBUTE7'
289       ,p_attribute7_value                => p_rec.attribute7
291       ,p_attribute8_value                => p_rec.attribute8
292       ,p_attribute9_name                 => 'ATTRIBUTE9'
293       ,p_attribute9_value                => p_rec.attribute9
294       ,p_attribute10_name                => 'ATTRIBUTE10'
295       ,p_attribute10_value               => p_rec.attribute10
296       ,p_attribute11_name                => 'ATTRIBUTE11'
297       ,p_attribute11_value               => p_rec.attribute11
298       ,p_attribute12_name                => 'ATTRIBUTE12'
299       ,p_attribute12_value               => p_rec.attribute12
300       ,p_attribute13_name                => 'ATTRIBUTE13'
301       ,p_attribute13_value               => p_rec.attribute13
302       ,p_attribute14_name                => 'ATTRIBUTE14'
303       ,p_attribute14_value               => p_rec.attribute14
304       ,p_attribute15_name                => 'ATTRIBUTE15'
305       ,p_attribute15_value               => p_rec.attribute15
306       ,p_attribute16_name                => 'ATTRIBUTE16'
307       ,p_attribute16_value               => p_rec.attribute16
308       ,p_attribute17_name                => 'ATTRIBUTE17'
309       ,p_attribute17_value               => p_rec.attribute17
310       ,p_attribute18_name                => 'ATTRIBUTE18'
311       ,p_attribute18_value               => p_rec.attribute18
312       ,p_attribute19_name                => 'ATTRIBUTE19'
313       ,p_attribute19_value               => p_rec.attribute19
314       ,p_attribute20_name                => 'ATTRIBUTE20'
315       ,p_attribute20_value               => p_rec.attribute20
316       ,p_attribute21_name                => 'ATTRIBUTE21'
317       ,p_attribute21_value               => p_rec.attribute21
318       ,p_attribute22_name                => 'ATTRIBUTE22'
319       ,p_attribute22_value               => p_rec.attribute22
320       ,p_attribute23_name                => 'ATTRIBUTE23'
321       ,p_attribute23_value               => p_rec.attribute23
322       ,p_attribute24_name                => 'ATTRIBUTE24'
323       ,p_attribute24_value               => p_rec.attribute24
324       ,p_attribute25_name                => 'ATTRIBUTE25'
325       ,p_attribute25_value               => p_rec.attribute25
326       ,p_attribute26_name                => 'ATTRIBUTE26'
327       ,p_attribute26_value               => p_rec.attribute26
328       ,p_attribute27_name                => 'ATTRIBUTE27'
329       ,p_attribute27_value               => p_rec.attribute27
330       ,p_attribute28_name                => 'ATTRIBUTE28'
331       ,p_attribute28_value               => p_rec.attribute28
332       ,p_attribute29_name                => 'ATTRIBUTE29'
333       ,p_attribute29_value               => p_rec.attribute29
334       ,p_attribute30_name                => 'ATTRIBUTE30'
335       ,p_attribute30_value               => p_rec.attribute30
336       );
337   end if;
338   --
339   hr_utility.set_location(' Leaving:'||l_proc,20);
340 end chk_df;
341 --
342 -- ----------------------------------------------------------------------------
343 -- |-----------------------< chk_non_updateable_args >------------------------|
344 -- ----------------------------------------------------------------------------
345 -- {Start Of Comments}
346 --
347 -- Description:
348 --   This procedure is used to ensure that non updateable attributes have
349 --   not been updated. If an attribute has been updated an error is generated.
350 --
351 -- Pre Conditions:
352 --   g_old_rec has been populated with details of the values currently in
353 --   the database.
354 --
355 -- In Arguments:
356 --   p_rec has been populated with the updated values the user would like the
357 --   record set to.
358 --
359 -- Post Success:
360 --   Processing continues if all the non updateable attributes have not
361 --   changed.
362 --
363 -- Post Failure:
364 --   An application error is raised if any of the non updatable attributes
365 --   have been altered.
366 --
367 -- {End Of Comments}
368 -- ----------------------------------------------------------------------------
369 Procedure chk_non_updateable_args
370   (p_effective_date               in date
371   ,p_rec in ota_lme_shd.g_rec_type
372   ) IS
373 --
374   l_proc     varchar2(72) := g_package || 'chk_non_updateable_args';
375 --
376 Begin
377   --
378   -- Only proceed with the validation if a row exists for the current
379   -- record in the HR Schema.
380   --
381   IF NOT ota_lme_shd.api_updating
382       (p_lp_member_enrollment_id           => p_rec.lp_member_enrollment_id
383       ,p_object_version_number             => p_rec.object_version_number
384       ) THEN
385      fnd_message.set_name('PER', 'HR_6153_ALL_PROCEDURE_FAIL');
386      fnd_message.set_token('PROCEDURE ', l_proc);
387      fnd_message.set_token('STEP ', '5');
388      fnd_message.raise_error;
389   END IF;
390   --
391   -- EDIT_HERE: Add checks to ensure non-updateable args have
392   --            not been updated.
393   --
394 End chk_non_updateable_args;
395 --
396 --
397 -- ----------------------------------------------------------------------------
398 -- |---------------------------<  chk_member_status_code>------------------------|
399 -- ----------------------------------------------------------------------------
400 PROCEDURE chk_member_status_code(p_lp_member_enrollment_id           IN number
401                               ,p_object_version_number             IN NUMBER
402                               ,p_member_status_code	   	   IN VARCHAR2
403                               ,p_effective_date			   IN date) IS
404 
405 --
406   l_proc  VARCHAR2(72) := g_package||'chk_member_status_code';
410   hr_utility.set_location(' Leaving:'||l_proc, 10);
407   l_api_updating boolean;
408 
409 BEGIN
411   --
412   -- check mandatory parameters has been set
413   --
414   hr_api.mandatory_arg_error
415     (p_api_name		=> l_proc
416      ,p_argument	=> 'effective_date'
417      ,p_argument_value  => p_effective_date);
418 
419   l_api_updating := ota_lme_shd.api_updating
420     (p_lp_member_enrollment_id   => p_lp_member_enrollment_id
421     ,p_object_version_number     => p_object_version_number);
422 
423 
424 IF ((l_api_updating AND
425        NVL(ota_lme_shd.g_old_rec.member_status_code,hr_api.g_varchar2) <>
426          NVL(p_member_status_code, hr_api.g_varchar2))
427      OR NOT l_api_updating AND p_member_status_code IS NOT NULL) THEN
428 
429        hr_utility.set_location(' Leaving:'||l_proc, 20);
430        --
431 
432        IF p_member_status_code IS NOT NULL THEN
433           IF hr_api.not_exists_in_hr_lookups
434              (p_effective_date => p_effective_date
435               ,p_lookup_type => 'OTA_LP_MEMBER_STATUS'
436               ,p_lookup_code => p_member_status_code) THEN
437               fnd_message.set_name('OTA','OTA_13843_TPM_BAD_STATUS');
438                fnd_message.raise_error;
439           END IF;
440            hr_utility.set_location(' Leaving:'||l_proc, 30);
441 
442        END IF;
443 
444    END IF;
445  hr_utility.set_location(' Leaving:'||l_proc, 40);
446 
447  EXCEPTION
448 
449     WHEN app_exception.application_exception THEN
450 
451             IF hr_multi_message.exception_add
452                 (p_associated_column1   => 'OTA_LP_MEMBER_ENROLLMENTS.MEMBER_STATUS_CODE') THEN
453 
454                      hr_utility.set_location(' Leaving:'||l_proc, 42);
455                         RAISE;
456             END IF;
457 
458               hr_utility.set_location(' Leaving:'||l_proc, 44);
459 
460 END chk_member_status_code;
461 --
462 -- ----------------------------------------------------------------------------
463 -- |----------------------< get_path_source_code >-----------------------------|
464 -- ----------------------------------------------------------------------------
465 --
466 FUNCTION  get_path_source_code
467   (p_lp_enrollment_id      IN     ota_lp_enrollments.lp_enrollment_id%TYPE
468   ) RETURN VARCHAR2 IS
469 --
470   l_path_source_code  ota_learning_paths.path_source_code%TYPE;
471   l_proc   VARCHAR2(72) :=      g_package||'chk_lp_enrollments_exist';
472 
473        CURSOR csr_get_path_source IS
474        SELECT lps.path_source_code
475          FROM ota_learning_paths lps,
476               ota_lp_enrollments lpe
477         WHERE lps.learning_path_id = lpe.learning_path_id
478           --AND lps.learning_path_id = p_lp_enrollment_id;
479 	  AND lpe.lp_enrollment_id = p_lp_enrollment_id;
480 
481 BEGIN
482 --
483 -- check mandatory parameters have been set
484 --
485   hr_utility.set_location('Entering:'||l_proc, 5);
486   hr_api.mandatory_arg_error
487     (p_api_name       =>  l_proc
488     ,p_argument       => 'p_lp_enrollment_id'
489     ,p_argument_value =>  p_lp_enrollment_id
490     );
491   --
492    OPEN csr_get_path_source;
493   FETCH csr_get_path_source INTO l_path_source_code;
494   CLOSE csr_get_path_source;
495   hr_utility.set_location(' Leaving:'||l_proc, 20);
496 --
497   RETURN l_path_source_code;
498 END  get_path_source_code;
499 --
500 -- ----------------------------------------------------------------------------
501 -- |---------------------------< insert_validate >----------------------------|
502 -- ----------------------------------------------------------------------------
503 Procedure insert_validate
504   (p_effective_date               in date
505   ,p_rec                          in ota_lme_shd.g_rec_type
506   ) is
507 --
508   l_proc  varchar2(72) := g_package||'insert_validate';
509 --
510 Begin
511   hr_utility.set_location('Entering:'||l_proc, 5);
512   --
513   -- Call all supporting business operations
514   --
515   hr_api.validate_bus_grp_id
516     (p_business_group_id => p_rec.business_group_id
517     ,p_associated_column1 => ota_lme_shd.g_tab_nam
518                               || '.BUSINESS_GROUP_ID');
519   --
520   -- After validating the set of important attributes,
521   -- if Multiple Message detection is enabled and at least
522   -- one error has been found then abort further validation.
523   --
524   hr_multi_message.end_validation_set;
525   --
526   -- Validate Dependent Attributes
527   --
528   --
529   IF get_path_source_code(p_rec.lp_enrollment_id) NOT IN ('CATALOG', 'TALENT_MGMT') THEN
530      ota_lme_bus.chk_df(p_rec);
531  END IF;
532   --
533   hr_utility.set_location(' Leaving:'||l_proc, 10);
534 End insert_validate;
535 --
536 -- ----------------------------------------------------------------------------
537 -- |---------------------------< update_validate >----------------------------|
538 -- ----------------------------------------------------------------------------
539 Procedure update_validate
540   (p_effective_date               in date
541   ,p_rec                          in ota_lme_shd.g_rec_type
542   ) is
543 --
544   l_proc  varchar2(72) := g_package||'update_validate';
545 --
546 Begin
547   hr_utility.set_location('Entering:'||l_proc, 5);
548   --
549   -- Call all supporting business operations
550   --
551   hr_api.validate_bus_grp_id
552     (p_business_group_id => p_rec.business_group_id
553     ,p_associated_column1 => ota_lme_shd.g_tab_nam
554                               || '.BUSINESS_GROUP_ID');
555   --
556   -- After validating the set of important attributes,
560   hr_multi_message.end_validation_set;
557   -- if Multiple Message detection is enabled and at least
558   -- one error has been found then abort further validation.
559   --
561   --
562   -- Validate Dependent Attributes
563   --
564   chk_non_updateable_args
565     (p_effective_date              => p_effective_date
566       ,p_rec              => p_rec
567     );
568   --
569   --
570   IF get_path_source_code(p_rec.lp_enrollment_id) NOT IN ('CATALOG', 'TALENT_MGMT') THEN
571      ota_lme_bus.chk_df(p_rec);
572  END IF;
573   --
574   hr_utility.set_location(' Leaving:'||l_proc, 10);
575 End update_validate;
576 --
577 -- ----------------------------------------------------------------------------
578 -- |---------------------------< delete_validate >----------------------------|
579 -- ----------------------------------------------------------------------------
580 Procedure delete_validate
581   (p_rec                          in ota_lme_shd.g_rec_type
582   ) is
583 --
584   l_proc  varchar2(72) := g_package||'delete_validate';
585 --
586 Begin
587   hr_utility.set_location('Entering:'||l_proc, 5);
588   --
589   -- Call all supporting business operations
590   --
591   hr_utility.set_location(' Leaving:'||l_proc, 10);
592 End delete_validate;
593 --
594 end ota_lme_bus;