DBA Data[Home] [Help]

APPS.BEN_CCT_SHD SQL Statements

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

Line: 69

    select
	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
    from	ben_cm_typ_f
    where	cm_typ_id = p_cm_typ_id
    and		p_effective_date
    between	effective_start_date and effective_end_date;
Line: 184

	 p_delete	 out nocopy boolean,
	 p_future_change out nocopy boolean,
	 p_delete_next_change out nocopy boolean) is
--
  l_proc 		varchar2(72) 	:= g_package||'find_dt_del_modes';
Line: 193

    select  t.parnt_cm_typ_id
    from    ben_cm_typ_f t
    where   t.cm_typ_id = p_base_key_value
    and     p_effective_date
    between t.effective_start_date and t.effective_end_date;
Line: 223

	 p_delete		=> p_delete,
	 p_future_change	=> p_future_change,
	 p_delete_next_change	=> p_delete_next_change);
Line: 237

	 p_update	 out nocopy boolean,
	 p_update_override out nocopy boolean,
	 p_update_change_insert out nocopy boolean) is
--
  l_proc 	varchar2(72) := g_package||'find_dt_upd_modes';
Line: 254

	 p_update		=> p_update,
	 p_update_override	=> p_update_override,
	 p_update_change_insert	=> p_update_change_insert);
Line: 293

  update  ben_cm_typ_f t
  set	  t.effective_end_date	  = p_new_effective_end_date,
	  t.object_version_number = l_object_version_number
  where	  t.cm_typ_id	  = p_base_key_value
  and	  p_effective_date
  between t.effective_start_date and t.effective_end_date;
Line: 300

  update  ben_cm_typ_f_tl t
  set	  t.effective_end_date	  = p_new_effective_end_date,
          t.last_update_date = sysdate,
          t.last_updated_by = fnd_global.user_id,
          t.last_update_login = fnd_global.login_id
  where	  t.cm_typ_id	  = p_base_key_value
  and	  p_effective_date
  between t.effective_start_date and t.effective_end_date;
Line: 340

    select
	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
    from    ben_cm_typ_f
    where   cm_typ_id         = p_cm_typ_id
    and	    p_effective_date
    between effective_start_date and effective_end_date
    for update nowait;
Line: 423

  If (p_datetrack_mode <> 'INSERT') then
    --
    -- We must select and lock the current row.
    --
    Open  C_Sel1;
Line: 641

  delete from ben_cm_typ_f_tl t
  where not exists
    (select null
    from ben_cm_typ_f_tl b
    where b.cm_typ_id = t.cm_typ_id
    and b.effective_start_date = t.effective_start_date
    );
Line: 649

  update ben_cm_typ_f_tl t set (
      shrt_name,
      name
    ) = (select
      b.shrt_name,
      b.name
    from ben_cm_typ_f_tl b
    where b.cm_typ_id = t.cm_typ_id
    and b.effective_start_date = t.effective_start_date
    and b.language = t.source_lang)
  where (
      t.cm_typ_id,
      t.effective_start_date,
      t.language
  ) in (select
      subt.cm_typ_id,
      subt.effective_start_date,
      subt.language
    from ben_cm_typ_f_tl subb, ben_cm_typ_f_tl subt
    where subb.cm_typ_id = subt.cm_typ_id
    and   subb.effective_start_date = subt.effective_start_date
    and   subb.language = subt.source_lang
    and (subb.name <> subt.name
         or subb.shrt_name <> subt.shrt_name
  ));
Line: 675

  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
    b.cm_typ_id,
    b.effective_start_date,
    b.effective_end_date,
    b.shrt_name,
    b.name,
    l.language_code,
    b.source_lang,
    b.last_update_date,
    b.last_updated_by,
    b.last_update_login,
    b.created_by,
    b.creation_date
  from ben_cm_typ_f_tl b, fnd_languages l
  where l.installed_flag in ('I', 'B')
  and b.language = userenv('LANG')
  and not exists
    (select null
    from ben_cm_typ_f_tl t
    where t.cm_typ_id = b.cm_typ_id
    and   t.effective_start_date = b.effective_start_date
    and   t.language = l.language_code);