DBA Data[Home] [Help]

APPS.PAY_KR_REPORT_PKG SQL Statements

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

Line: 50

  select legislation_code
  from   per_business_groups_perf
  where  business_group_id = p_business_group_id;
Line: 78

  select
          pbt.balance_name         balance_name,
          pbd.dimension_name       dimension_name,
          pdb.defined_balance_id   defined_balance_id,
          fue.user_entity_id       user_entity_id
  from    ff_user_entities         fue,
          pay_balance_dimensions   pbd,
          pay_defined_balances     pdb,
          pay_balance_types        pbt
  where   decode(pbt.business_group_id, null, g_business_group_id, pbt.business_group_id) = g_business_group_id
  and     decode(pbt.legislation_code, null, g_legislation_code, pbt.legislation_code) = g_legislation_code
  and     pdb.balance_type_id = pbt.balance_type_id
  and     pbd.balance_dimension_id = pdb.balance_dimension_id
  and     decode(pbd.business_group_id, null, g_business_group_id, pbd.business_group_id) = g_business_group_id
  and     decode(pbd.legislation_code, null, g_legislation_code, pbd.legislation_code) = g_legislation_code
  and     fue.user_entity_name = 'A_'||pbt.balance_name||pbd.dimension_name
  and     fue.user_entity_name like 'A%'
  and     fue.creator_type = 'X';
Line: 102

    g_pre_get_balance_value.balance_name.delete;
Line: 103

    g_pre_get_balance_value.dimension_name.delete;
Line: 104

    g_pre_get_balance_value.defined_balance_id.delete;
Line: 105

    g_pre_get_balance_value.user_entity_id.delete;
Line: 124

  select
         fue.user_entity_id	user_entity_id,
         fue.user_entity_name   user_entity_name,
         xfue.user_entity_id	xuser_entity_id,
         xfue.user_entity_name	xuser_entity_name,
         fdi.user_name          user_name
  from   ff_database_items      fdi,
         ff_user_entities       xfue,
         ff_user_entities       fue
  where  nvl(fue.business_group_id,g_business_group_id) = g_business_group_id
  and    nvl(fue.legislation_code,g_legislation_code) = g_legislation_code
  and    xfue.user_entity_name = 'A_'||fue.user_entity_name
  and    xfue.user_entity_name like 'A_%'
  and    nvl(xfue.business_group_id,g_business_group_id) = g_business_group_id
  and    nvl(xfue.legislation_code,g_legislation_code) = g_legislation_code
  and    fdi.user_entity_id = fue.user_entity_id
  and    xfue.creator_type = 'X';
Line: 147

    g_pre_get_dbitem_value.user_entity_id.delete;
Line: 148

    g_pre_get_dbitem_value.user_entity_name.delete;
Line: 149

    g_pre_get_dbitem_value.xuser_entity_id.delete;
Line: 150

    g_pre_get_dbitem_value.xuser_entity_name.delete;
Line: 151

    g_pre_get_dbitem_value.user_name.delete;
Line: 175

  select  pdb.defined_balance_id  defined_balance_id
  from    pay_balance_dimensions pbd,
          pay_defined_balances   pdb,
          pay_balance_types      pbt
  where   pbt.balance_name = p_balance_name
  and     nvl(pbt.business_group_id, g_business_group_id) = g_business_group_id
  and     nvl(pbt.legislation_code, g_legislation_code) = g_legislation_code
  and     pdb.balance_type_id = pbt.balance_type_id
  and     pbd.balance_dimension_id = pdb.balance_dimension_id
  and     pbd.dimension_name = p_dimension_name
  and     nvl(pbd.business_group_id, g_business_group_id) = g_business_group_id
  and     nvl(pbd.legislation_code, g_legislation_code) = g_legislation_code;
Line: 195

    g_pre_get_balance_value.balance_name.delete;
Line: 196

    g_pre_get_balance_value.dimension_name.delete;
Line: 197

    g_pre_get_balance_value.defined_balance_id.delete;
Line: 198

    g_pre_get_balance_value.user_entity_id.delete;
Line: 240

  select fue.user_entity_id  user_entity_id
  from   ff_user_entities       fue,
         pay_balance_dimensions pbd,
         pay_balance_types      pbt,
         pay_defined_balances   pdb
  where  pdb.defined_balance_id = p_defined_balance_id
  and    pbt.balance_type_id = pdb.balance_type_id
  and    pbd.balance_dimension_id = pdb.balance_dimension_id
  /* If creator_id is same as source user_entity_id, it might be simple. */
  and    fue.user_entity_name = 'A_'||pbt.balance_name||pbd.dimension_name
  and    fue.creator_type = 'X';
Line: 257

    g_pre_get_balance_value.balance_name.delete;
Line: 258

    g_pre_get_balance_value.dimension_name.delete;
Line: 259

    g_pre_get_balance_value.defined_balance_id.delete;
Line: 260

    g_pre_get_balance_value.user_entity_id.delete;
Line: 308

  select fue.user_entity_id  user_entity_id
  from   ff_user_entities       fue,
         ff_database_items      fdi
  where  fdi.user_name = p_user_name
  and    fue.user_entity_id = fdi.user_entity_id
  and    nvl(fue.business_group_id,g_business_group_id) = g_business_group_id
  and    nvl(fue.legislation_code,g_legislation_code) = g_legislation_code;
Line: 321

    g_pre_get_dbitem_value.user_entity_id.delete;
Line: 322

    g_pre_get_dbitem_value.user_entity_name.delete;
Line: 323

    g_pre_get_dbitem_value.xuser_entity_id.delete;
Line: 324

    g_pre_get_dbitem_value.xuser_entity_name.delete;
Line: 325

    g_pre_get_dbitem_value.user_name.delete;
Line: 366

  select xfue.user_entity_id  xuser_entity_id
  from   ff_user_entities       xfue,
         ff_user_entities       fue
  where  fue.user_entity_id = p_user_entity_id
  and    xfue.user_entity_name = 'A_'||fue.user_entity_name
  and    nvl(xfue.business_group_id,g_business_group_id) = g_business_group_id
  and    nvl(xfue.legislation_code,g_legislation_code) = g_legislation_code
  and    xfue.creator_type = 'X';
Line: 380

    g_pre_get_dbitem_value.user_entity_id.delete;
Line: 381

    g_pre_get_dbitem_value.user_entity_name.delete;
Line: 382

    g_pre_get_dbitem_value.xuser_entity_id.delete;
Line: 383

    g_pre_get_dbitem_value.xuser_entity_name.delete;
Line: 384

    g_pre_get_dbitem_value.user_name.delete;
Line: 436

  select run_type_id
  from   pay_run_types_f
  where  run_type_name = p_type
  and    g_effective_date
         between effective_start_date and effective_end_date
  and    nvl(business_group_id, g_business_group_id) = g_business_group_id
  and    nvl(legislation_code, g_legislation_code) = g_legislation_code;
Line: 448

  select	assignment_action_id
  from 		pay_assignment_actions paa
  where 	paa.assignment_id = p_assignment_id
  and  		paa.run_type_id = l_run_type_id
  and 		paa.action_sequence =
  		(
                	select 	max(paa2.action_sequence)
                	from   	pay_payroll_actions    ppa2,
                        	pay_assignment_actions paa2
                	where  	paa2.assignment_id = p_assignment_id
                	and    	paa2.run_type_id = l_run_type_id
                	and    	paa2.action_status in ('C', 'S') -- Bug 4442484: Include 'S'kipped assacts
                	and    	ppa2.payroll_action_id = paa2.payroll_action_id
                	and    	ppa2.effective_date
                        	between p_effective_date_from and p_effective_date_to
                	and    	ppa2.action_type in ('R','Q','I','V','B')
		) ;
Line: 469

  select paa.assignment_action_id
  from   pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_id = p_assignment_id
  and    paa.run_type_id is null
  and    paa.action_status in ('C', 'S') -- Bug 4442484: Include 'S'kipped assacts
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    ppa.effective_date
         between p_effective_date_from and p_effective_date_to
  and    ppa.action_type = 'B'
  and    ppa.report_type = decode(substr(lpad(p_type,4),2,4),'HIA','HIA','YEA')
  and    ppa.report_category = decode(substr(lpad(p_type,4),1,1),'I','I','R','R','N')
  and    ppa.report_qualifier = 'KR'
  and    not exists(
                select  null
                from    pay_payroll_actions    ppa2,
                        pay_assignment_actions paa2
                where   paa2.assignment_id = paa.assignment_id
                and     paa2.run_type_id is null
                and     paa2.action_status in ('C', 'S') -- Bug 4442484: Include 'S'kipped assacts
                and     ppa2.payroll_action_id = paa2.payroll_action_id
                and     ppa2.effective_date
                        between p_effective_date_from and p_effective_date_to
                and     ppa2.action_type = 'B'
                and     ppa2.report_type = decode(substr(lpad(p_type,4),2,4),'HIA','HIA','YEA')
                and     ppa2.report_category = decode(substr(lpad(p_type,4),1,1),'I','I','R','R','N')
                and     ppa2.report_qualifier = 'KR'
                and     paa2.action_sequence > paa.action_sequence);
Line: 501

      select  effective_date
      into    g_effective_date
      from    fnd_sessions
      where   session_id = userenv('sessionid');
Line: 542

  select
         nvl(sum(fnd_number.canonical_to_number(prrv.result_value) * pbf.scale),0)   value
  from   pay_balance_feeds_f    pbf,
         pay_run_result_values  prrv,
         pay_run_results        prr,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    prr.assignment_action_id = paa.assignment_action_id
  and    prr.status in ('P','PA')
  and    prrv.run_result_id = prr.run_result_id
  and    nvl(prrv.result_value,'0') <> '0'
  and    pbf.input_value_id = prrv.input_value_id
  and    pbf.balance_type_id = p_balance_type_id
  and    ppa.effective_date
         between pbf.effective_start_date and pbf.effective_end_date;
Line: 584

  select fai.user_entity_id,
         fai.value
  from   ff_archive_items       fai
  where  fai.context1 = p_assignment_action_id
  and    fai.value is not null;
Line: 612

    g_archive_item_value_tbl.delete;
Line: 668

  select ppa.business_group_id,
         paa.assignment_action_id,
         nvl(xpaa.assignment_action_id,-1)
  from   pay_payroll_actions    xppa,
         pay_assignment_actions xpaa,
         pay_action_interlocks  pai,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    pai.locked_action_id (+) = paa.assignment_action_id
  and    xpaa.assignment_action_id (+) = pai.locking_action_id
  and    xpaa.action_status (+) in ('C', 'S') -- Bug 4442484: Include 'S'kipped assacts
  and    xppa.payroll_action_id (+) = xpaa.payroll_action_id
  and    xppa.action_type (+) = 'X';
Line: 756

  select ppa.business_group_id,
         paa.assignment_action_id
  from   pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id;
Line: 833

  select ppa.business_group_id,
         paa.assignment_action_id,
         nvl(xpaa.assignment_action_id,-1)
  from   pay_payroll_actions    xppa,
         pay_assignment_actions xpaa,
         pay_action_interlocks  pai,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    pai.locked_action_id (+) = paa.assignment_action_id
  and    xpaa.assignment_action_id (+) = pai.locking_action_id
  and    xpaa.action_status (+) in ('C', 'S') -- Bug 4442484: Include 'S'kipped assacts
  and    xppa.payroll_action_id (+) = xpaa.payroll_action_id
  and    xppa.action_type (+) = 'X';
Line: 854

  select ppa.payroll_id        payroll_id,
         ppa.payroll_action_id payroll_action_id,
         paa.assignment_id     assignment_id,
         ppa.date_earned       date_earned,
         paa.tax_unit_id       tax_unit_id,
         fdi.user_name	       user_name
  from   ff_database_items      fdi,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = g_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    fdi.user_entity_id = p_user_entity_id;
Line: 957

  select ppa.business_group_id,
         paa.assignment_action_id
  from   pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id;
Line: 1026

  select pet.element_type_id,
         piv.input_value_id
  from   pay_input_values_f     piv,
         pay_element_types_f    pet,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    pet.element_name = p_element_type_name
  and    nvl(pet.business_group_id, g_business_group_id) = g_business_group_id
  and    nvl(pet.legislation_code, g_legislation_code) = g_legislation_code
  and    ppa.effective_date
         between pet.effective_start_date and pet.effective_end_date
  and    piv.element_type_id = pet.element_type_id
  and    piv.name = p_input_value_name
  and    ppa.effective_date
         between piv.effective_start_date and piv.effective_end_date;
Line: 1080

  select
         fnd_date.canonical_to_date(prrv.result_value)	value
  from   pay_run_result_values  prrv,
         pay_run_results        prr,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    prr.assignment_action_id = paa.assignment_action_id
  and    prr.status in ('P','PA')
  and    prr.element_type_id = p_element_type_id
  and    prrv.run_result_id = prr.run_result_id
  and    prrv.input_value_id = p_input_value_id;
Line: 1127

  select pet.element_type_id,
         piv.input_value_id
  from   pay_input_values_f     piv,
         pay_element_types_f    pet,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    pet.element_name = p_element_type_name
  and    nvl(pet.business_group_id, g_business_group_id) = g_business_group_id
  and    nvl(pet.legislation_code, g_legislation_code) = g_legislation_code
  and    ppa.effective_date
         between pet.effective_start_date and pet.effective_end_date
  and    piv.element_type_id = pet.element_type_id
  and    piv.name = p_input_value_name
  and    ppa.effective_date
         between piv.effective_start_date and piv.effective_end_date;
Line: 1181

  select
         fnd_number.canonical_to_number(prrv.result_value)	value
  from   pay_run_result_values  prrv,
         pay_run_results        prr,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    prr.assignment_action_id = paa.assignment_action_id
  and    prr.status in ('P','PA')
  and    prr.element_type_id = p_element_type_id
  and    prrv.run_result_id = prr.run_result_id
  and    prrv.input_value_id = p_input_value_id;
Line: 1228

  select pet.element_type_id,
         piv.input_value_id
  from   pay_input_values_f     piv,
         pay_element_types_f    pet,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    pet.element_name = p_element_type_name
  and    nvl(pet.business_group_id, g_business_group_id) = g_business_group_id
  and    nvl(pet.legislation_code, g_legislation_code) = g_legislation_code
  and    ppa.effective_date
         between pet.effective_start_date and pet.effective_end_date
  and    piv.element_type_id = pet.element_type_id
  and    piv.name = p_input_value_name
  and    ppa.effective_date
         between piv.effective_start_date and piv.effective_end_date;
Line: 1282

  select
         prrv.result_value	value
  from   pay_run_result_values  prrv,
         pay_run_results        prr,
         pay_payroll_actions    ppa,
         pay_assignment_actions paa
  where  paa.assignment_action_id = p_assignment_action_id
  and    ppa.payroll_action_id = paa.payroll_action_id
  and    prr.assignment_action_id = paa.assignment_action_id
  and    prr.status in ('P','PA')
  and    prr.element_type_id = p_element_type_id
  and    prrv.run_result_id = prr.run_result_id
  and    prrv.input_value_id = p_input_value_id;
Line: 1324

		select	result_value
		from 	pay_run_result_values
		where 	run_result_id = p_run_result_id
			and input_value_id = p_input_value_id ;