49: --
50: -- Procedure Name
51: l_proc varchar2(72) := g_package||'find_error_segment';
52: -- Structure for holding the flexfield information from AOL
53: l_flexfield fnd_dflex.dflex_r;
54: -- Structure for holding information about the flexfield from AOL
55: l_flexinfo fnd_dflex.dflex_dr;
56: -- Structure for holding context information about 'Global Data Elements'
57: l_global_context fnd_dflex.context_r;
51: l_proc varchar2(72) := g_package||'find_error_segment';
52: -- Structure for holding the flexfield information from AOL
53: l_flexfield fnd_dflex.dflex_r;
54: -- Structure for holding information about the flexfield from AOL
55: l_flexinfo fnd_dflex.dflex_dr;
56: -- Structure for holding context information about 'Global Data Elements'
57: l_global_context fnd_dflex.context_r;
58: -- Structure for holding context information about the context
59: l_context fnd_dflex.context_r;
53: l_flexfield fnd_dflex.dflex_r;
54: -- Structure for holding information about the flexfield from AOL
55: l_flexinfo fnd_dflex.dflex_dr;
56: -- Structure for holding context information about 'Global Data Elements'
57: l_global_context fnd_dflex.context_r;
58: -- Structure for holding context information about the context
59: l_context fnd_dflex.context_r;
60: -- Structure for holding the segments corresponding to the Global Data
61: -- Elements
55: l_flexinfo fnd_dflex.dflex_dr;
56: -- Structure for holding context information about 'Global Data Elements'
57: l_global_context fnd_dflex.context_r;
58: -- Structure for holding context information about the context
59: l_context fnd_dflex.context_r;
60: -- Structure for holding the segments corresponding to the Global Data
61: -- Elements
62: l_global_segments fnd_dflex.segments_dr;
63: -- The number of global data element segments
58: -- Structure for holding context information about the context
59: l_context fnd_dflex.context_r;
60: -- Structure for holding the segments corresponding to the Global Data
61: -- Elements
62: l_global_segments fnd_dflex.segments_dr;
63: -- The number of global data element segments
64: l_global_count number :=0;
65: -- Structure for holding the segments corresponding to the passed context
66: l_segments fnd_dflex.segments_dr;
62: l_global_segments fnd_dflex.segments_dr;
63: -- The number of global data element segments
64: l_global_count number :=0;
65: -- Structure for holding the segments corresponding to the passed context
66: l_segments fnd_dflex.segments_dr;
67: -- Structure for holding the composite Global Data Element and passed
68: -- context information
69: l_segment_info var2tabtype;
70: -- General counter variable
87: -- Bug fix 1218702.Debug check added to improve performance.
88: if g_debug then
89: hr_utility.set_location('Entering:'|| l_proc, 10);
90: end if;
91: fnd_dflex.get_flexfield(appl_short_name => p_appl_short_name,
92: flexfield_name => p_flexfield_name,
93: flexfield => l_flexfield,
94: flexinfo => l_flexinfo);
95: --
196: --
197: -- First set up the Global Data Elements flexfield context, which is
198: -- always called 'Global Data Elements', as is not translated.
199: --
200: l_global_context := fnd_dflex.make_context(flexfield => l_flexfield,
201: context_code => 'Global Data Elements');
202: if g_debug then
203: hr_utility.set_location(l_proc, 34);
204: end if;
206: -- Fetch all enabled segments associated with this context. The flex server
207: -- engine will ignore non-enabled segments - see
208: -- /usr/home/arundell/11bugs/1033593/test_case/test.info
209: --
210: fnd_dflex.get_segments(context => l_global_context,
211: segments => l_global_segments,
212: enabled_only => true);
213: if g_debug then
214: hr_utility.set_location(l_proc, 36);
258: if g_debug then
259: hr_utility.set_location(l_proc, 40);
260: end if;
261: --
262: l_context := fnd_dflex.make_context(flexfield => l_flexfield,
263: context_code => p_context_code);
264: --
265: -- Retrieve the segment information for this context
266: --
267: if g_debug then
268: hr_utility.set_location(l_proc, 50);
269: end if;
270: --
271: fnd_dflex.get_segments(context => l_context,
272: segments => l_segments,
273: enabled_only => true);
274: --
275: -- Append the specific context segment information to the Global Segment Information