DBA Data[Home] [Help]

PACKAGE BODY: APPS.PE_POI_FLEX_DDF

Source


1 Package Body pe_poi_flex_ddf as
2 /* $Header: pepoiddf.pkb 115.0 99/07/18 14:27:34 porting ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- |                     Private Global Definitions                           |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package  varchar2(33) := '   pe_poi_flex_ddf.';  -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |--------------------------< val_info_type_y >------------------------------|
12 -- ----------------------------------------------------------------------------
13 --  {Start of Comments}
14 --
15 --  Description:
16 --    This procedure performs the descriptive flexfield validation for the
17 --    reference field - Information Type where the value is 'Y'.
18 --
19 --  Pre Conditions:
20 --    None
21 --
22 --  In Arguments:
23 --    p_rec
24 --
25 --  Post Success:
26 --    Processing of pe_poi_flex_ddf continues.
27 --
28 --  Post failure:
29 --    Processing will be suspended if the descriptive flexfield validation
30 --    fails.
31 --
32 --  Developer Implementation Notes:
33 --    Customer defined.
34 --
35 --  Access Status:
36 --    From df procedure only.
37 --
38 --  {End of Comments}
39 -- ----------------------------------------------------------------------------
40 Procedure val_info_type_y
41              (p_rec   in per_asg_shd.g_rec_type) is
42 --
43   l_proc    varchar2(72) := g_package||'val_info_type_y';
44 --
45 begin
46   hr_utility.set_location('Entering:'||l_proc, 1);
47   --
48   -- Enter procedure code here
49   --
50   hr_utility.set_location(' Leaving:'||l_proc, 2);
51 end val_info_type_y;
52 -- ----------------------------------------------------------------------------
53 -- |--------------------------< val_info_type_x >------------------------------|
54 -- ----------------------------------------------------------------------------
55 --  {Start of Comments}
56 --
57 --  Description:
58 --    This procedure performs the descriptive flexfield validation for the
59 --    reference field - Information Type where the value is 'X'.
60 --
61 --  Pre Conditions:
62 --    None
63 --
64 --  In Arguments:
65 --    p_rec
66 --
67 --  Post Success:
68 --    Processing of pe_poi_flex_ddf continues.
69 --
70 --  Post failure:
71 --    Processing will be suspended if the descriptive flexfield validation
72 --    fails.
73 --
74 --  Developer Implementation Notes:
75 --    Customer defined.
76 --
77 --  Access Status:
78 --    From df procedure only.
79 --
80 --  {End of Comments}
81 -- ----------------------------------------------------------------------------
82 Procedure val_info_type_x
83              (p_rec   in per_asg_shd.g_rec_type) is
84 --
85   l_proc    varchar2(72) := g_package||'val_info_type_x';
86 --
87 begin
88   hr_utility.set_location('Entering:'||l_proc, 1);
89   --
90   -- Enter procedure code here
91   --
92   hr_utility.set_location(' Leaving:'||l_proc, 2);
93 end val_info_type_x;
94 -- ----------------------------------------------------------------------------
95 -- |-------------------------------< ddf >-------------------------------------|
96 -- ----------------------------------------------------------------------------
97 --
98 procedure ddf
99   (p_rec   in pe_poi_shd.g_rec_type) is
100 --
101   l_proc       varchar2(72) := g_package||'ddf';
102   l_error      exception;
103   l_date_from   date;
104 --
105 Begin
106   hr_utility.set_location('Entering:'||l_proc, 5);
107   --
108 /*
109   -- Check for value of reference field an then
110   -- call relevant validation procedure.
111   --
112   if <reference field value> is not null then
113     --
114     -- Reference field       => Information type
115     -- Reference field value => 'X'
116     --
117     if <reference field value> is <value> then
118       val_info_type_x(p_rec => p_rec);
119     --
120     -- Reference field       => Information type
121     -- Reference field value => 'Y'
122     --
123     elsif <reference field value> is <value> then
124       val_info_type_y(p_rec => p_rec);
125     else
126       --
127       -- Reference field values is not supported
128       --
129       hr_utility.set_message(801, 'HR_7438_FLEX_INV_REF_FIELD_VAL');
130       hr_utility.raise_error;
131     end if;
132   else
133     --
134     -- When the reference field is null, check
135     -- that none of the attribute fields have
136     -- been set
137     --
138 */
139   --
140   if p_rec.poei_information1 is not null then
141     raise l_error;
142   elsif p_rec.poei_information2 is not null then
143     raise l_error;
144   elsif p_rec.poei_information3 is not null then
145     raise l_error;
146   elsif p_rec.poei_information4 is not null then
147     raise l_error;
148   elsif p_rec.poei_information5 is not null then
149     raise l_error;
150   elsif p_rec.poei_information6 is not null then
151     raise l_error;
152   elsif p_rec.poei_information7 is not null then
153     raise l_error;
154   elsif p_rec.poei_information8 is not null then
155     raise l_error;
156   elsif p_rec.poei_information9 is not null then
157     raise l_error;
158   elsif p_rec.poei_information10 is not null then
159     raise l_error;
160   elsif p_rec.poei_information11 is not null then
161     raise l_error;
162   elsif p_rec.poei_information12 is not null then
163     raise l_error;
164   elsif p_rec.poei_information13 is not null then
165     raise l_error;
166   elsif p_rec.poei_information14 is not null then
167     raise l_error;
168   elsif p_rec.poei_information15 is not null then
169     raise l_error;
170   elsif p_rec.poei_information16 is not null then
171     raise l_error;
172   elsif p_rec.poei_information17 is not null then
173     raise l_error;
174   elsif p_rec.poei_information18 is not null then
175     raise l_error;
176   elsif p_rec.poei_information19 is not null then
177     raise l_error;
178   elsif p_rec.poei_information20 is not null then
179     raise l_error;
180   elsif p_rec.poei_information21 is not null then
181     raise l_error;
182   elsif p_rec.poei_information22 is not null then
183     raise l_error;
184   elsif p_rec.poei_information23 is not null then
185     raise l_error;
186   elsif p_rec.poei_information24 is not null then
187     raise l_error;
188   elsif p_rec.poei_information25 is not null then
189     raise l_error;
190   elsif p_rec.poei_information26 is not null then
191     raise l_error;
192   elsif p_rec.poei_information27 is not null then
193     raise l_error;
194   elsif p_rec.poei_information28 is not null then
195     raise l_error;
196   elsif p_rec.poei_information29 is not null then
197     raise l_error;
198   elsif p_rec.poei_information30 is not null then
199     raise l_error;
200   end if;
201   --
202   /*
203   endif;
204   */
205   hr_utility.set_location(' Leaving:'||l_proc, 10);
206   --
207 exception
208   when l_error then
209     hr_utility.set_message(999, 'HR_9999_FLEX_INV_INFO_ARG');
210     hr_utility.raise_error;
211     hr_utility.set_location(' Leaving:'||l_proc, 10);
212 end ddf;
213 
214 --
215 end pe_poi_flex_ddf;