DBA Data[Home] [Help]

APPS.BEN_CCT_INS SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 57

Procedure dt_insert_dml
	(p_rec 			 in out nocopy ben_cct_shd.g_rec_type,
	 p_effective_date	 in	date,
	 p_datetrack_mode	 in	varchar2,
	 p_validation_start_date in	date,
	 p_validation_end_date	 in	date) is
--
-- Cursor to select 'old' created AOL who column values
--
  Cursor C_Sel1 Is
    select t.created_by,
           t.creation_date
    from   ben_cm_typ_f t
    where  t.cm_typ_id       = p_rec.cm_typ_id
    and    t.effective_start_date =
             ben_cct_shd.g_old_rec.effective_start_date
    and    t.effective_end_date   = (p_validation_start_date - 1);
Line: 75

  l_proc		varchar2(72) := g_package||'dt_insert_dml';
Line: 78

  l_last_update_date   	ben_cm_typ_f.last_update_date%TYPE;
Line: 79

  l_last_updated_by     ben_cm_typ_f.last_updated_by%TYPE;
Line: 80

  l_last_update_login   ben_cm_typ_f.last_update_login%TYPE;
Line: 102

  If (p_datetrack_mode <> 'INSERT') then
    hr_utility.set_location(l_proc, 10);
Line: 124

    l_last_update_date   := sysdate;
Line: 125

    l_last_updated_by    := fnd_global.user_id;
Line: 126

    l_last_update_login  := fnd_global.login_id;
Line: 133

  insert into ben_cm_typ_f
  (	cm_typ_id,
	effective_start_date,
	effective_end_date,
	name,
	desc_txt,
	cm_typ_rl,
	cm_usg_cd,
	whnvr_trgrd_flag,
	shrt_name,
	pc_kit_cd,
	trk_mlg_flag,
	mx_num_avlbl_val,
	to_be_sent_dt_cd,
	to_be_sent_dt_rl,
	inspn_rqd_flag,
	inspn_rqd_rl,
	rcpent_cd,
	parnt_cm_typ_id,
	business_group_id,
	cct_attribute_category,
	cct_attribute1,
	cct_attribute10,
	cct_attribute11,
	cct_attribute12,
	cct_attribute13,
	cct_attribute14,
	cct_attribute15,
	cct_attribute16,
	cct_attribute17,
	cct_attribute18,
	cct_attribute19,
	cct_attribute2,
	cct_attribute20,
	cct_attribute21,
	cct_attribute22,
	cct_attribute23,
	cct_attribute24,
	cct_attribute25,
	cct_attribute26,
	cct_attribute27,
	cct_attribute28,
	cct_attribute29,
	cct_attribute3,
	cct_attribute30,
	cct_attribute4,
	cct_attribute5,
	cct_attribute6,
	cct_attribute7,
	cct_attribute8,
	cct_attribute9,
	object_version_number
   	, created_by,
   	creation_date,
   	last_update_date,
   	last_updated_by,
   	last_update_login
  )
  Values
  (	p_rec.cm_typ_id,
	p_rec.effective_start_date,
	p_rec.effective_end_date,
	p_rec.name,
	p_rec.desc_txt,
	p_rec.cm_typ_rl,
	p_rec.cm_usg_cd,
	p_rec.whnvr_trgrd_flag,
	p_rec.shrt_name,
	p_rec.pc_kit_cd,
	p_rec.trk_mlg_flag,
	p_rec.mx_num_avlbl_val,
	p_rec.to_be_sent_dt_cd,
	p_rec.to_be_sent_dt_rl,
	p_rec.inspn_rqd_flag,
	p_rec.inspn_rqd_rl,
	p_rec.rcpent_cd,
	p_rec.parnt_cm_typ_id,
	p_rec.business_group_id,
	p_rec.cct_attribute_category,
	p_rec.cct_attribute1,
	p_rec.cct_attribute10,
	p_rec.cct_attribute11,
	p_rec.cct_attribute12,
	p_rec.cct_attribute13,
	p_rec.cct_attribute14,
	p_rec.cct_attribute15,
	p_rec.cct_attribute16,
	p_rec.cct_attribute17,
	p_rec.cct_attribute18,
	p_rec.cct_attribute19,
	p_rec.cct_attribute2,
	p_rec.cct_attribute20,
	p_rec.cct_attribute21,
	p_rec.cct_attribute22,
	p_rec.cct_attribute23,
	p_rec.cct_attribute24,
	p_rec.cct_attribute25,
	p_rec.cct_attribute26,
	p_rec.cct_attribute27,
	p_rec.cct_attribute28,
	p_rec.cct_attribute29,
	p_rec.cct_attribute3,
	p_rec.cct_attribute30,
	p_rec.cct_attribute4,
	p_rec.cct_attribute5,
	p_rec.cct_attribute6,
	p_rec.cct_attribute7,
	p_rec.cct_attribute8,
	p_rec.cct_attribute9,
	p_rec.object_version_number
	, l_created_by,
   	l_creation_date,
   	l_last_update_date,
   	l_last_updated_by,
   	l_last_update_login
  );
Line: 252

    insert into ben_cm_typ_f_tl (
    cm_typ_id,
    effective_start_date,
    effective_end_date,
    shrt_name,
    name,
    language,
    source_lang,
    last_update_date,
    last_updated_by,
    last_update_login,
    created_by,
    creation_date
  )
  select
    p_rec.cm_typ_id,
    p_rec.effective_start_date,
    p_rec.effective_end_date,
    p_rec.shrt_name,
    p_rec.name,
    l.language_code,
    userenv('LANG'),
    l_last_update_date,
    l_last_updated_by,
    l_last_update_login,
    fnd_global.user_id,
    sysdate
  from fnd_languages l
  where l.installed_flag in ('I', 'B')
  and not exists
    (select null
    from ben_cm_typ_f_tl t
    where t.cm_typ_id = p_rec.cm_typ_id
    and   t.effective_start_date = p_rec.effective_start_date
    and   t.language = l.language_code);
Line: 305

End dt_insert_dml;
Line: 310

Procedure insert_dml
	(p_rec 			 in out nocopy ben_cct_shd.g_rec_type,
	 p_effective_date	 in	date,
	 p_datetrack_mode	 in	varchar2,
	 p_validation_start_date in	date,
	 p_validation_end_date	 in	date) is
--
  l_proc	varchar2(72) := g_package||'insert_dml';
Line: 322

  dt_insert_dml(p_rec			=> p_rec,
		p_effective_date	=> p_effective_date,
		p_datetrack_mode	=> p_datetrack_mode,
       		p_validation_start_date	=> p_validation_start_date,
		p_validation_end_date	=> p_validation_end_date);
Line: 329

End insert_dml;
Line: 370

Procedure pre_insert
	(p_rec  			in out nocopy ben_cct_shd.g_rec_type,
	 p_effective_date		in date,
	 p_datetrack_mode		in varchar2,
	 p_validation_start_date	in date,
	 p_validation_end_date		in date) is
--
  l_proc	varchar2(72) := g_package||'pre_insert';
Line: 379

  Cursor C_Sel1 is select ben_cm_typ_s.nextval from sys.dual;
Line: 393

End pre_insert;
Line: 427

Procedure post_insert
	(p_rec 			 in ben_cct_shd.g_rec_type,
	 p_effective_date	 in date,
	 p_datetrack_mode	 in varchar2,
	 p_validation_start_date in date,
	 p_validation_end_date	 in date) is
--
  l_proc	varchar2(72) := g_package||'post_insert';
Line: 444

    ben_cct_rki.after_insert
      (p_cm_typ_id                     =>p_rec.cm_typ_id
      ,p_effective_start_date          =>p_rec.effective_start_date
      ,p_effective_end_date            =>p_rec.effective_end_date
      ,p_name                          =>p_rec.name
      ,p_desc_txt                      =>p_rec.desc_txt
      ,p_cm_typ_rl                     =>p_rec.cm_typ_rl
      ,p_cm_usg_cd                     =>p_rec.cm_usg_cd
      ,p_whnvr_trgrd_flag              =>p_rec.whnvr_trgrd_flag
      ,p_shrt_name                     =>p_rec.shrt_name
      ,p_pc_kit_cd                     =>p_rec.pc_kit_cd
      ,p_trk_mlg_flag                  =>p_rec.trk_mlg_flag
      ,p_mx_num_avlbl_val              =>p_rec.mx_num_avlbl_val
      ,p_to_be_sent_dt_cd              =>p_rec.to_be_sent_dt_cd
      ,p_to_be_sent_dt_rl              =>p_rec.to_be_sent_dt_rl
      ,p_inspn_rqd_flag                =>p_rec.inspn_rqd_flag
      ,p_inspn_rqd_rl                  =>p_rec.inspn_rqd_rl
      ,p_rcpent_cd                     =>p_rec.rcpent_cd
      ,p_parnt_cm_typ_id               =>p_rec.parnt_cm_typ_id
      ,p_business_group_id             =>p_rec.business_group_id
      ,p_cct_attribute_category        =>p_rec.cct_attribute_category
      ,p_cct_attribute1                =>p_rec.cct_attribute1
      ,p_cct_attribute10               =>p_rec.cct_attribute10
      ,p_cct_attribute11               =>p_rec.cct_attribute11
      ,p_cct_attribute12               =>p_rec.cct_attribute12
      ,p_cct_attribute13               =>p_rec.cct_attribute13
      ,p_cct_attribute14               =>p_rec.cct_attribute14
      ,p_cct_attribute15               =>p_rec.cct_attribute15
      ,p_cct_attribute16               =>p_rec.cct_attribute16
      ,p_cct_attribute17               =>p_rec.cct_attribute17
      ,p_cct_attribute18               =>p_rec.cct_attribute18
      ,p_cct_attribute19               =>p_rec.cct_attribute19
      ,p_cct_attribute2                =>p_rec.cct_attribute2
      ,p_cct_attribute20               =>p_rec.cct_attribute20
      ,p_cct_attribute21               =>p_rec.cct_attribute21
      ,p_cct_attribute22               =>p_rec.cct_attribute22
      ,p_cct_attribute23               =>p_rec.cct_attribute23
      ,p_cct_attribute24               =>p_rec.cct_attribute24
      ,p_cct_attribute25               =>p_rec.cct_attribute25
      ,p_cct_attribute26               =>p_rec.cct_attribute26
      ,p_cct_attribute27               =>p_rec.cct_attribute27
      ,p_cct_attribute28               =>p_rec.cct_attribute28
      ,p_cct_attribute29               =>p_rec.cct_attribute29
      ,p_cct_attribute3                =>p_rec.cct_attribute3
      ,p_cct_attribute30               =>p_rec.cct_attribute30
      ,p_cct_attribute4                =>p_rec.cct_attribute4
      ,p_cct_attribute5                =>p_rec.cct_attribute5
      ,p_cct_attribute6                =>p_rec.cct_attribute6
      ,p_cct_attribute7                =>p_rec.cct_attribute7
      ,p_cct_attribute8                =>p_rec.cct_attribute8
      ,p_cct_attribute9                =>p_rec.cct_attribute9
      ,p_object_version_number         =>p_rec.object_version_number
      ,p_effective_date                =>p_effective_date
      ,p_validation_start_date         =>p_validation_start_date
      ,p_validation_end_date           =>p_validation_end_date);
Line: 514

End post_insert;
Line: 602

  l_datetrack_mode		varchar2(30) := 'INSERT';
Line: 620

  ben_cct_bus.insert_validate
	(p_rec			 => p_rec,
	 p_effective_date	 => p_effective_date,
	 p_datetrack_mode	 => l_datetrack_mode,
	 p_validation_start_date => l_validation_start_date,
	 p_validation_end_date	 => l_validation_end_date);
Line: 629

  pre_insert
 	(p_rec			 => p_rec,
	 p_effective_date	 => p_effective_date,
	 p_datetrack_mode	 => l_datetrack_mode,
	 p_validation_start_date => l_validation_start_date,
	 p_validation_end_date	 => l_validation_end_date);
Line: 638

  insert_dml
 	(p_rec			 => p_rec,
	 p_effective_date	 => p_effective_date,
	 p_datetrack_mode	 => l_datetrack_mode,
	 p_validation_start_date => l_validation_start_date,
	 p_validation_end_date	 => l_validation_end_date);
Line: 647

  post_insert
 	(p_rec			 => p_rec,
	 p_effective_date	 => p_effective_date,
	 p_datetrack_mode	 => l_datetrack_mode,
	 p_validation_start_date => l_validation_start_date,
	 p_validation_end_date	 => l_validation_end_date);