[Home] [Help]
PACKAGE BODY: APPS.BEN_CSR_SHD
Source
1 Package Body ben_csr_shd as
2 /* $Header: becsrrhi.pkb 115.4 2002/12/16 17:34:51 glingapp ship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' ben_csr_shd.'; -- Global package name
9 --
10 -- ----------------------------------------------------------------------------
11 -- |------------------------< return_api_dml_status >-------------------------|
12 -- ----------------------------------------------------------------------------
13 Function return_api_dml_status Return Boolean Is
14 --
15 l_proc varchar2(72) := g_package||'return_api_dml_status';
16 --
17 Begin
18 hr_utility.set_location('Entering:'||l_proc, 5);
19 --
20 Return (nvl(g_api_dml, false));
21 --
22 hr_utility.set_location(' Leaving:'||l_proc, 10);
23 End return_api_dml_status;
24 --
25 -- ----------------------------------------------------------------------------
26 -- |---------------------------< constraint_error >---------------------------|
27 -- ----------------------------------------------------------------------------
28 Procedure constraint_error
29 (p_constraint_name in all_constraints.constraint_name%TYPE) Is
30 --
31 l_proc varchar2(72) := g_package||'constraint_error';
32 --
33 Begin
34 hr_utility.set_location('Entering:'||l_proc, 5);
35 --
36 If (p_constraint_name = 'BEN_CSS_RLTD_PER_PER_IN_LE_FK2') Then
37 fnd_message.set_name('BEN', 'BEN_91000_INVALID_BUS_GROUP');
38 fnd_message.raise_error;
39 ElsIf (p_constraint_name = 'BEN_CSS_RLTD_PER_PER_IN_LE_PK') Then
40 fnd_message.set_name('PER', 'HR_7220_INVALID_PRIMARY_KEY');
41 fnd_message.raise_error;
42 ElsIf (p_constraint_name = 'BEN_CSS_RLTD_PER_PER_IN_LER_UK2') Then
43 fnd_message.set_name('BEN', 'BEN_91001_SEQ_NOT_UNIQUE');
44 fnd_message.raise_error;
45 ElsIf (p_constraint_name = 'BEN_CSS_RLTD_PER_PER_IN_LER_UK3') Then
46 fnd_message.set_name('BEN', 'BEN_91002_CS_LER_NOT_UNIQUE');
47 fnd_message.raise_error;
48 Else
49 fnd_message.set_name('PER', 'HR_7877_API_INVALID_CONSTRAINT');
50 fnd_message.set_token('PROCEDURE', l_proc);
51 fnd_message.set_token('CONSTRAINT_NAME', p_constraint_name);
52 fnd_message.raise_error;
53 End If;
54 --
55 hr_utility.set_location(' Leaving:'||l_proc, 10);
56 End constraint_error;
57 --
58 -- ----------------------------------------------------------------------------
59 -- |-----------------------------< api_updating >-----------------------------|
60 -- ----------------------------------------------------------------------------
61 Function api_updating
62 (p_effective_date in date,
63 p_css_rltd_per_per_in_ler_id in number,
64 p_object_version_number in number
65 ) Return Boolean Is
66 --
67 --
68 -- Cursor selects the 'current' row from the HR Schema
69 --
70 Cursor C_Sel1 is
71 select
72 css_rltd_per_per_in_ler_id,
73 effective_start_date,
74 effective_end_date,
75 ordr_to_prcs_num,
76 ler_id,
77 rsltg_ler_id,
78 business_group_id,
79 csr_attribute_category,
80 csr_attribute1,
81 csr_attribute2,
82 csr_attribute3,
83 csr_attribute4,
84 csr_attribute5,
85 csr_attribute6,
86 csr_attribute7,
87 csr_attribute8,
88 csr_attribute9,
89 csr_attribute10,
90 csr_attribute11,
91 csr_attribute12,
92 csr_attribute13,
93 csr_attribute14,
94 csr_attribute15,
95 csr_attribute16,
96 csr_attribute17,
97 csr_attribute18,
98 csr_attribute19,
99 csr_attribute20,
100 csr_attribute21,
101 csr_attribute22,
102 csr_attribute23,
103 csr_attribute24,
104 csr_attribute25,
105 csr_attribute26,
106 csr_attribute27,
107 csr_attribute28,
108 csr_attribute29,
109 csr_attribute30,
110 object_version_number
111 from ben_css_rltd_per_per_in_ler_f
112 where css_rltd_per_per_in_ler_id = p_css_rltd_per_per_in_ler_id
113 and p_effective_date
114 between effective_start_date and effective_end_date;
115 --
116 l_proc varchar2(72) := g_package||'api_updating';
117 l_fct_ret boolean;
118 --
119 Begin
120 hr_utility.set_location('Entering:'||l_proc, 5);
121 --
122 If (p_effective_date is null or
123 p_css_rltd_per_per_in_ler_id is null or
124 p_object_version_number is null) Then
125 --
126 -- One of the primary key arguments is null therefore we must
127 -- set the returning function value to false
128 --
129 l_fct_ret := false;
130 Else
131 If (p_css_rltd_per_per_in_ler_id = g_old_rec.css_rltd_per_per_in_ler_id and
132 p_object_version_number = g_old_rec.object_version_number) Then
133 hr_utility.set_location(l_proc, 10);
134 --
135 -- The g_old_rec is current therefore we must
136 -- set the returning function to true
137 --
138 l_fct_ret := true;
139 Else
140 --
141 -- Select the current row
142 --
143 Open C_Sel1;
144 Fetch C_Sel1 Into g_old_rec;
145 If C_Sel1%notfound Then
146 Close C_Sel1;
147 --
148 -- The primary key is invalid therefore we must error
149 --
150 fnd_message.set_name('PER', 'HR_7220_INVALID_PRIMARY_KEY');
151 fnd_message.raise_error;
152 End If;
153 Close C_Sel1;
154 If (p_object_version_number <> g_old_rec.object_version_number) Then
155 fnd_message.set_name('PER', 'HR_7155_OBJECT_INVALID');
156 fnd_message.raise_error;
157 End If;
158 hr_utility.set_location(l_proc, 15);
159 l_fct_ret := true;
160 End If;
161 End If;
162 hr_utility.set_location(' Leaving:'||l_proc, 20);
163 Return (l_fct_ret);
164 --
165 End api_updating;
166 --
167 -- ----------------------------------------------------------------------------
168 -- |--------------------------< find_dt_del_modes >---------------------------|
169 -- ----------------------------------------------------------------------------
170 Procedure find_dt_del_modes
171 (p_effective_date in date,
172 p_base_key_value in number,
173 p_zap out nocopy boolean,
174 p_delete out nocopy boolean,
175 p_future_change out nocopy boolean,
176 p_delete_next_change out nocopy boolean) is
177 --
178 l_proc varchar2(72) := g_package||'find_dt_del_modes';
179 --
180 l_parent_key_value1 number;
181 l_parent_key_value2 number;
182 --
183 Cursor C_Sel1 Is
184 select t.ler_id,
185 t.rsltg_ler_id
186 from ben_css_rltd_per_per_in_ler_f t
187 where t.css_rltd_per_per_in_ler_id = p_base_key_value
188 and p_effective_date
189 between t.effective_start_date and t.effective_end_date;
190 --
191 Begin
192 hr_utility.set_location('Entering:'||l_proc, 5);
193 Open C_Sel1;
194 Fetch C_Sel1 Into l_parent_key_value1,
195 l_parent_key_value2;
196 If C_Sel1%notfound then
197 Close C_Sel1;
198 fnd_message.set_name('PER', 'HR_6153_ALL_PROCEDURE_FAIL');
199 fnd_message.set_token('PROCEDURE', l_proc);
200 fnd_message.set_token('STEP','10');
201 fnd_message.raise_error;
202 End If;
203 Close C_Sel1;
204 --
205 -- Call the corresponding datetrack api
206 --
207 -- if the ler_id and rsltg_ler_id are the same, there is no need to call
208 -- the date track api with both values.
209 if l_parent_key_value1 = l_parent_key_value2 then
210 dt_api.find_dt_del_modes
211 (p_effective_date => p_effective_date,
212 p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
213 p_base_key_column => 'css_rltd_per_per_in_ler_id',
214 p_base_key_value => p_base_key_value,
215 p_parent_table_name1 => 'ben_ler_f',
216 p_parent_key_column1 => 'ler_id',
217 p_parent_key_value1 => l_parent_key_value1,
218 p_zap => p_zap,
219 p_delete => p_delete,
220 p_future_change => p_future_change,
221 p_delete_next_change => p_delete_next_change);
222 else
223 dt_api.find_dt_del_modes
224 (p_effective_date => p_effective_date,
225 p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
226 p_base_key_column => 'css_rltd_per_per_in_ler_id',
227 p_base_key_value => p_base_key_value,
228 p_parent_table_name1 => 'ben_ler_f',
229 p_parent_key_column1 => 'ler_id',
230 p_parent_key_value1 => l_parent_key_value1,
231 p_parent_table_name2 => 'ben_ler_f',
232 p_parent_key_column2 => 'ler_id',
233 p_parent_key_value2 => l_parent_key_value2,
234 p_zap => p_zap,
235 p_delete => p_delete,
236 p_future_change => p_future_change,
237 p_delete_next_change => p_delete_next_change);
238 end if;
239 --
240 hr_utility.set_location(' Leaving:'||l_proc, 10);
241 End find_dt_del_modes;
242 --
243 -- ----------------------------------------------------------------------------
244 -- |--------------------------< find_dt_upd_modes >---------------------------|
245 -- ----------------------------------------------------------------------------
246 Procedure find_dt_upd_modes
247 (p_effective_date in date,
248 p_base_key_value in number,
249 p_correction out nocopy boolean,
250 p_update out nocopy boolean,
251 p_update_override out nocopy boolean,
252 p_update_change_insert out nocopy boolean) is
253 --
254 l_proc varchar2(72) := g_package||'find_dt_upd_modes';
255 --
256 Begin
257 hr_utility.set_location('Entering:'||l_proc, 5);
258 --
259 -- Call the corresponding datetrack api
260 --
261 dt_api.find_dt_upd_modes
262 (p_effective_date => p_effective_date,
263 p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
264 p_base_key_column => 'css_rltd_per_per_in_ler_id',
265 p_base_key_value => p_base_key_value,
266 p_correction => p_correction,
267 p_update => p_update,
268 p_update_override => p_update_override,
269 p_update_change_insert => p_update_change_insert);
270 --
271 hr_utility.set_location(' Leaving:'||l_proc, 10);
272 End find_dt_upd_modes;
273 --
274 -- ----------------------------------------------------------------------------
275 -- |------------------------< upd_effective_end_date >------------------------|
276 -- ----------------------------------------------------------------------------
277 Procedure upd_effective_end_date
278 (p_effective_date in date,
279 p_base_key_value in number,
280 p_new_effective_end_date in date,
281 p_validation_start_date in date,
282 p_validation_end_date in date,
283 p_object_version_number out nocopy number) is
284 --
285 l_proc varchar2(72) := g_package||'upd_effective_end_date';
286 l_object_version_number number;
287 --
288 Begin
289 hr_utility.set_location('Entering:'||l_proc, 5);
290 --
291 -- Because we are updating a row we must get the next object
292 -- version number.
293 --
294 l_object_version_number :=
295 dt_api.get_object_version_number
296 (p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
297 p_base_key_column => 'css_rltd_per_per_in_ler_id',
298 p_base_key_value => p_base_key_value);
299 --
300 hr_utility.set_location(l_proc, 10);
301 g_api_dml := true; -- Set the api dml status
302 --
303 -- Update the specified datetrack row setting the effective
304 -- end date to the specified new effective end date.
305 --
306 update ben_css_rltd_per_per_in_ler_f t
307 set t.effective_end_date = p_new_effective_end_date,
308 t.object_version_number = l_object_version_number
309 where t.css_rltd_per_per_in_ler_id = p_base_key_value
310 and p_effective_date
311 between t.effective_start_date and t.effective_end_date;
312 --
313 g_api_dml := false; -- Unset the api dml status
314 p_object_version_number := l_object_version_number;
315 hr_utility.set_location(' Leaving:'||l_proc, 15);
316 --
317 Exception
318 When Others Then
319 g_api_dml := false; -- Unset the api dml status
320 Raise;
321 End upd_effective_end_date;
322 --
323 -- ----------------------------------------------------------------------------
324 -- |---------------------------------< lck >----------------------------------|
325 -- ----------------------------------------------------------------------------
326 Procedure lck
327 (p_effective_date in date,
328 p_datetrack_mode in varchar2,
329 p_css_rltd_per_per_in_ler_id in number,
330 p_object_version_number in number,
331 p_validation_start_date out nocopy date,
332 p_validation_end_date out nocopy date) is
333 --
334 l_proc varchar2(72) := g_package||'lck';
335 l_validation_start_date date;
336 l_validation_end_date date;
337 l_object_invalid exception;
338 l_argument varchar2(30);
339 --
340 -- Cursor C_Sel1 selects the current locked row as of session date
341 -- ensuring that the object version numbers match.
342 --
343 Cursor C_Sel1 is
344 select
345 css_rltd_per_per_in_ler_id,
346 effective_start_date,
347 effective_end_date,
348 ordr_to_prcs_num,
349 ler_id,
350 rsltg_ler_id,
351 business_group_id,
352 csr_attribute_category,
353 csr_attribute1,
354 csr_attribute2,
355 csr_attribute3,
356 csr_attribute4,
357 csr_attribute5,
358 csr_attribute6,
359 csr_attribute7,
360 csr_attribute8,
361 csr_attribute9,
362 csr_attribute10,
363 csr_attribute11,
364 csr_attribute12,
365 csr_attribute13,
366 csr_attribute14,
367 csr_attribute15,
368 csr_attribute16,
369 csr_attribute17,
370 csr_attribute18,
371 csr_attribute19,
372 csr_attribute20,
373 csr_attribute21,
374 csr_attribute22,
375 csr_attribute23,
376 csr_attribute24,
377 csr_attribute25,
378 csr_attribute26,
379 csr_attribute27,
380 csr_attribute28,
381 csr_attribute29,
382 csr_attribute30,
383 object_version_number
384 from ben_css_rltd_per_per_in_ler_f
385 where css_rltd_per_per_in_ler_id = p_css_rltd_per_per_in_ler_id
386 and p_effective_date
387 between effective_start_date and effective_end_date
388 for update nowait;
389 --
390 --
391 --
392 Begin
393 hr_utility.set_location('Entering:'||l_proc, 5);
394 --
395 -- Ensure that all the mandatory arguments are not null
396 --
397 hr_api.mandatory_arg_error(p_api_name => l_proc,
398 p_argument => 'effective_date',
399 p_argument_value => p_effective_date);
400 --
401 hr_api.mandatory_arg_error(p_api_name => l_proc,
402 p_argument => 'datetrack_mode',
403 p_argument_value => p_datetrack_mode);
404 --
405 hr_api.mandatory_arg_error(p_api_name => l_proc,
406 p_argument => 'css_rltd_per_per_in_ler_id',
407 p_argument_value => p_css_rltd_per_per_in_ler_id);
408 --
409 hr_api.mandatory_arg_error(p_api_name => l_proc,
410 p_argument => 'object_version_number',
411 p_argument_value => p_object_version_number);
412 --
413 -- Check to ensure the datetrack mode is not INSERT.
414 --
415 If (p_datetrack_mode <> 'INSERT') then
416 --
417 -- We must select and lock the current row.
418 --
419 Open C_Sel1;
420 Fetch C_Sel1 Into g_old_rec;
421 If C_Sel1%notfound then
422 Close C_Sel1;
423 --
424 -- The primary key is invalid therefore we must error
425 --
426 fnd_message.set_name('PER', 'HR_7220_INVALID_PRIMARY_KEY');
430 If (p_object_version_number <> g_old_rec.object_version_number) Then
427 fnd_message.raise_error;
428 End If;
429 Close C_Sel1;
431 fnd_message.set_name('PER', 'HR_7155_OBJECT_INVALID');
432 fnd_message.raise_error;
433 End If;
434 hr_utility.set_location(l_proc, 15);
435 --
436 --
437 -- Validate the datetrack mode mode getting the validation start
438 -- and end dates for the specified datetrack operation.
439 --
440 -- if the ler_id and rsltg_ler_id are the same, there is no need to call
441 -- the date track api with both values.
442 if g_old_rec.ler_id = g_old_rec.rsltg_ler_id then
443 dt_api.validate_dt_mode
444 (p_effective_date => p_effective_date,
445 p_datetrack_mode => p_datetrack_mode,
446 p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
447 p_base_key_column => 'css_rltd_per_per_in_ler_id',
448 p_base_key_value => p_css_rltd_per_per_in_ler_id,
449 p_parent_table_name1 => 'ben_ler_f',
450 p_parent_key_column1 => 'ler_id',
451 p_parent_key_value1 => g_old_rec.ler_id,
452 p_enforce_foreign_locking => true,
453 p_validation_start_date => l_validation_start_date,
454 p_validation_end_date => l_validation_end_date);
455 else
456 dt_api.validate_dt_mode
457 (p_effective_date => p_effective_date,
458 p_datetrack_mode => p_datetrack_mode,
459 p_base_table_name => 'ben_css_rltd_per_per_in_ler_f',
460 p_base_key_column => 'css_rltd_per_per_in_ler_id',
461 p_base_key_value => p_css_rltd_per_per_in_ler_id,
462 p_parent_table_name1 => 'ben_ler_f',
463 p_parent_key_column1 => 'ler_id',
464 p_parent_key_value1 => g_old_rec.ler_id,
465 p_parent_table_name2 => 'ben_ler_f',
466 p_parent_key_column2 => 'ler_id',
467 p_parent_key_value2 => g_old_rec.rsltg_ler_id,
468 p_enforce_foreign_locking => true,
469 p_validation_start_date => l_validation_start_date,
470 p_validation_end_date => l_validation_end_date);
471 end if;
472 Else
473 --
474 -- We are doing a datetrack 'INSERT' which is illegal within this
475 -- procedure therefore we must error (note: to lck on insert the
476 -- private procedure ins_lck should be called).
477 --
478 fnd_message.set_name('PER', 'HR_6153_ALL_PROCEDURE_FAIL');
479 fnd_message.set_token('PROCEDURE', l_proc);
480 fnd_message.set_token('STEP','20');
481 fnd_message.raise_error;
482 End If;
483 --
484 -- Set the validation start and end date OUT arguments
485 --
486 p_validation_start_date := l_validation_start_date;
487 p_validation_end_date := l_validation_end_date;
488 --
489 hr_utility.set_location(' Leaving:'||l_proc, 30);
490 --
491 -- We need to trap the ORA LOCK exception
492 --
493 Exception
494 When HR_Api.Object_Locked then
495 --
496 -- The object is locked therefore we need to supply a meaningful
497 -- error message.
498 --
499 fnd_message.set_name('PER', 'HR_7165_OBJECT_LOCKED');
500 fnd_message.set_token('TABLE_NAME', 'ben_css_rltd_per_per_in_ler_f');
501 fnd_message.raise_error;
502 When l_object_invalid then
503 --
504 -- The object doesn't exist or is invalid
505 --
506 fnd_message.set_name('PER', 'HR_7155_OBJECT_INVALID');
507 fnd_message.set_token('TABLE_NAME', 'ben_css_rltd_per_per_in_ler_f');
508 fnd_message.raise_error;
509 End lck;
510 --
511 -- ----------------------------------------------------------------------------
512 -- |-----------------------------< convert_args >-----------------------------|
513 -- ----------------------------------------------------------------------------
514 Function convert_args
515 (
516 p_css_rltd_per_per_in_ler_id in number,
517 p_effective_start_date in date,
518 p_effective_end_date in date,
519 p_ordr_to_prcs_num in number,
520 p_ler_id in number,
521 p_rsltg_ler_id in number,
522 p_business_group_id in number,
523 p_csr_attribute_category in varchar2,
524 p_csr_attribute1 in varchar2,
525 p_csr_attribute2 in varchar2,
526 p_csr_attribute3 in varchar2,
527 p_csr_attribute4 in varchar2,
528 p_csr_attribute5 in varchar2,
529 p_csr_attribute6 in varchar2,
530 p_csr_attribute7 in varchar2,
531 p_csr_attribute8 in varchar2,
532 p_csr_attribute9 in varchar2,
533 p_csr_attribute10 in varchar2,
534 p_csr_attribute11 in varchar2,
535 p_csr_attribute12 in varchar2,
536 p_csr_attribute13 in varchar2,
537 p_csr_attribute14 in varchar2,
538 p_csr_attribute15 in varchar2,
539 p_csr_attribute16 in varchar2,
540 p_csr_attribute17 in varchar2,
541 p_csr_attribute18 in varchar2,
542 p_csr_attribute19 in varchar2,
543 p_csr_attribute20 in varchar2,
544 p_csr_attribute21 in varchar2,
545 p_csr_attribute22 in varchar2,
546 p_csr_attribute23 in varchar2,
547 p_csr_attribute24 in varchar2,
548 p_csr_attribute25 in varchar2,
549 p_csr_attribute26 in varchar2,
550 p_csr_attribute27 in varchar2,
551 p_csr_attribute28 in varchar2,
555 )
552 p_csr_attribute29 in varchar2,
553 p_csr_attribute30 in varchar2,
554 p_object_version_number in number
556 Return g_rec_type is
557 --
558 l_rec g_rec_type;
559 l_proc varchar2(72) := g_package||'convert_args';
560 --
561 Begin
562 --
563 hr_utility.set_location('Entering:'||l_proc, 5);
564 --
565 -- Convert arguments into local l_rec structure.
566 --
567 l_rec.css_rltd_per_per_in_ler_id := p_css_rltd_per_per_in_ler_id;
568 l_rec.effective_start_date := p_effective_start_date;
569 l_rec.effective_end_date := p_effective_end_date;
570 l_rec.ordr_to_prcs_num := p_ordr_to_prcs_num;
571 l_rec.ler_id := p_ler_id;
572 l_rec.rsltg_ler_id := p_rsltg_ler_id;
573 l_rec.business_group_id := p_business_group_id;
574 l_rec.csr_attribute_category := p_csr_attribute_category;
575 l_rec.csr_attribute1 := p_csr_attribute1;
576 l_rec.csr_attribute2 := p_csr_attribute2;
577 l_rec.csr_attribute3 := p_csr_attribute3;
578 l_rec.csr_attribute4 := p_csr_attribute4;
579 l_rec.csr_attribute5 := p_csr_attribute5;
580 l_rec.csr_attribute6 := p_csr_attribute6;
581 l_rec.csr_attribute7 := p_csr_attribute7;
582 l_rec.csr_attribute8 := p_csr_attribute8;
583 l_rec.csr_attribute9 := p_csr_attribute9;
584 l_rec.csr_attribute10 := p_csr_attribute10;
585 l_rec.csr_attribute11 := p_csr_attribute11;
586 l_rec.csr_attribute12 := p_csr_attribute12;
587 l_rec.csr_attribute13 := p_csr_attribute13;
588 l_rec.csr_attribute14 := p_csr_attribute14;
589 l_rec.csr_attribute15 := p_csr_attribute15;
590 l_rec.csr_attribute16 := p_csr_attribute16;
591 l_rec.csr_attribute17 := p_csr_attribute17;
592 l_rec.csr_attribute18 := p_csr_attribute18;
593 l_rec.csr_attribute19 := p_csr_attribute19;
594 l_rec.csr_attribute20 := p_csr_attribute20;
595 l_rec.csr_attribute21 := p_csr_attribute21;
596 l_rec.csr_attribute22 := p_csr_attribute22;
597 l_rec.csr_attribute23 := p_csr_attribute23;
598 l_rec.csr_attribute24 := p_csr_attribute24;
599 l_rec.csr_attribute25 := p_csr_attribute25;
600 l_rec.csr_attribute26 := p_csr_attribute26;
601 l_rec.csr_attribute27 := p_csr_attribute27;
602 l_rec.csr_attribute28 := p_csr_attribute28;
603 l_rec.csr_attribute29 := p_csr_attribute29;
604 l_rec.csr_attribute30 := p_csr_attribute30;
605 l_rec.object_version_number := p_object_version_number;
606 --
607 -- Return the plsql record structure.
608 --
609 hr_utility.set_location(' Leaving:'||l_proc, 10);
610 Return(l_rec);
611 --
612 End convert_args;
613 --
614 end ben_csr_shd;