DBA Data[Home] [Help]

APPS.PER_OTHERBG_APL_API SQL Statements

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

Line: 17

 select papf.person_id,papf.object_version_number,papf.business_group_id,paaf.object_version_number
 from per_all_people_f papf, per_all_assignments_f paaf
 where paaf.assignment_id = l_apl_asg_id
 and l_effective_date between nvl(paaf.effective_start_date,l_effective_date) and nvl(paaf.effective_end_date,l_effective_date)
 and l_effective_date between nvl(papf.effective_start_date,l_effective_date) and nvl(papf.effective_end_date,l_effective_date)
 and papf.person_id = paaf.person_id;
Line: 25

 select assignment_status_type_id
 from per_assignment_status_types
 where  PER_SYSTEM_STATUS= 'ACTIVE_ASG_IN_OTH_BG'
 and ACTIVE_FLAG ='Y' and DEFAULT_FLAG='Y';
Line: 33

 select assignment_status_type_id
 from per_assignment_status_types
 where  PER_SYSTEM_STATUS= 'TERM_APL'
 and ACTIVE_FLAG ='Y' and DEFAULT_FLAG='Y'
 and (business_group_id is null or
     business_group_id = bg_id);
Line: 42

 select 1
 from per_all_assignments_f
 where person_id = l_person_id
 and l_effective_date +1 between nvl(effective_start_date,l_effective_date)
 and nvl(effective_end_date,l_effective_date)
 and assignment_id <> l_apl_asg_id
 and assignment_type = 'A';
Line: 52

select max(effective_end_date)
from per_all_assignments_f
 where person_id = l_person_id
 and  assignment_id <> l_apl_asg_id
 and assignment_type = 'A';
Line: 173

 select src_apl_asg_id
 from per_vac_linked_assignments
 where tgt_apl_asg_id = l_tgt_assignment_id
 and l_effective_date between trunc(nvl(start_date,l_effective_date)) and trunc(nvl(end_date,l_effective_date)) ;
Line: 205

 select tgt_apl_asg_id
 from per_vac_linked_assignments
 where src_apl_asg_id = l_src_assignment_id
 and l_effective_date between trunc(nvl(start_date,l_effective_date)) and trunc(nvl(end_date,l_effective_date))
 and tgt_apl_asg_id <> apl_assignment_id;
Line: 270

 select src_apl_asg_id
 from per_vac_linked_assignments
 where tgt_apl_asg_id = l_tgt_assignment_id;
Line: 321

 select SRC_APL_ASG_ID
 from  PER_VAC_LINKED_ASSIGNMENTS
 where TGT_APL_ASG_ID = apl_assignment_id;
Line: 326

 select TGT_APL_ASG_ID
 from  PER_VAC_LINKED_ASSIGNMENTS
 where SRC_APL_ASG_ID = apl_assignment_id;
Line: 369

    select papf.person_id, papf.application_id, papf.business_group_id, papf.effective_end_date
    from per_all_assignments_f papf
    where papf.assignment_id = apl_assignment_id;
Line: 375

select   ptu.effective_start_date
from  per_person_type_usages_f ptu
       ,per_person_types ppt
where    ptu.person_id = l_person_id
and   ptu.effective_start_date > l_date_received
and   ptu.person_type_id = ppt.person_type_id
and     ppt.system_person_type = 'EX_APL'
order by ptu.effective_start_date;
Line: 400

 select assignment_status_type_id
 from per_assignment_status_types
 where  PER_SYSTEM_STATUS= 'ACTIVE_ASG_IN_OTH_BG'
 and ACTIVE_FLAG ='Y' and DEFAULT_FLAG='Y'
 and (business_group_id is null or
     business_group_id = bg_id);
Line: 409

       select iass.assignment_status_id, iass.object_version_number
         from irc_assignment_statuses iass
        where iass.assignment_status_id =
              (select max(iass.assignment_status_id)
                 from irc_assignment_statuses iass
                where iass.assignment_id = apl_assignment_id
                  and iass.assignment_status_type_id = l_asg_status_type_id);
Line: 429

 select 1
 from per_all_assignments_f
 where person_id = l_person_id
 and l_effective_date + 1 between nvl(effective_start_date,l_effective_date)
 and nvl(effective_end_date,l_effective_date)  -- added 1 to the date for bug#12593632 fix
 and assignment_id <> l_apl_asg_id
 and assignment_type = 'A'
 and business_group_id =l_apl_bg_id;-- added new
Line: 460

select distinct business_group_id into l_apl_bg_id
from per_all_assignments_f
where assignment_id = apl_assignment_id;
Line: 464

select max(effective_end_date) into l_asg_end_date
from per_all_assignments_f
where assignment_id = apl_assignment_id;
Line: 478

       per_app_asg_pkg.pre_delete_validation
        ( p_business_group_id     => l_business_group_id,
          p_assignment_id         => apl_assignment_id,
          p_application_id        => l_application_id,
          p_person_id             => l_person_id,
          p_session_date          => l_date_end - 1 ,  --this should be close date - 1
          p_validation_start_date => l_date_end + 1,  --This would be close date + 1
          p_validation_end_date   => l_end_of_time,     --This is end of time
          p_delete_mode  => 'DELETE_NEXT_CHANGE',
          p_new_end_date  => l_new_end_date ) ;      -- This parameter need to check once
Line: 489

      delete_row1
      (p_assignment_id       => apl_assignment_id,
       p_new_end_date       =>  null,
       p_effective_end_date  => l_date_end ,       --  this is close date
       p_validation_end_date => l_end_of_time,       -- this is end of time
       p_session_date        => l_date_end - 1,                  --  this should be close date - 1
       p_delete_mode         => 'DELETE_NEXT_CHANGE') ;
Line: 501

          select legislation_code into l_legislation_code
            from per_business_groups
            where business_group_id in
                                      (select business_group_id
                                       from per_all_assignments_f
                                       where assignment_id = apl_assignment_id);
Line: 530

                              P_last_updated_by         => fnd_global.user_id(),
                              P_last_update_login       => fnd_global.login_id(),
                              P_end_of_time             => l_end_of_time);
Line: 540

                                         p_last_updated_by    => fnd_global.user_id(),
                                         p_last_update_login  => fnd_global.login_id(),
                                         p_person_id          => l_person_id);
Line: 558

     IRC_ASG_STATUS_API.delete_irc_asg_status
         (p_assignment_status_id  => l_asg_status_id
         ,p_object_version_number => l_asg_status_ovn);
Line: 567

                 per_applications_pkg.cancel_update_assigns_obg(
                                p_person_id           => l_person_id,
                                p_business_group_id   => l_business_group_id,
                                P_date_end            => l_date_end,
                                P_application_id      => l_application_id,
                                p_legislation_code    => l_legislation_code,
                                P_end_of_time         => l_end_of_time,
                                P_last_updated_by     => fnd_global.user_id(),
                                p_last_update_login   => fnd_global.login_id(),
				p_assignment_id       => apl_assignment_id);
Line: 590

             UPDATE PER_APPLICATIONS
             SET  date_end  =  null
             where application_id = l_application_id;
Line: 596

      select date_received into l_date_received
      from per_applications
      where application_id = l_application_id;
Line: 624

	update	per_assignments_f a
	set	a.effective_end_date	= p_new_end_date
	where	a.assignment_id		= p_assignment_id
	and	a.effective_end_date	= (
		select	max(a2.effective_end_date)
		from	per_assignments_f a2
		where	a2.assignment_id = a.assignment_id);
Line: 634

procedure delete_child ( p_assignment_id  in number,
			  p_delete_mode    in varchar2) is

  p_del_flag VARCHAR2(1) := 'N';
Line: 645

      select 'Y'
      into   p_del_flag
      from   sys.dual
      where exists (
       select null
       from   per_assignment_budget_values_f
              where  assignment_id = p_assignment_id
       and    p_delete_mode = 'ZAP');
Line: 659

      p_delete_mode     = 'ZAP'  THEN

      Delete per_assignment_budget_values_f
      where assignment_id = p_assignment_id;
Line: 666

END delete_child;
Line: 670

  procedure delete_row1(p_assignment_id       number,
		     p_new_end_date        date,
		     p_effective_end_date  date,
		     p_validation_end_date date,
		     p_session_date	   date,
		     p_delete_mode         varchar2 ) is

     l_cost_warning boolean;
Line: 680

        hr_utility.set_location ( 'PER_APP_ASG_PKG.delete_row1' , 5 ) ;
Line: 684

       hr_utility.set_location('p_delete_mode      :'|| p_delete_mode, 200);
Line: 687

       delete_child ( p_assignment_id  ,p_delete_mode);
Line: 695

      delete from per_assignments_f   a
      where  assignment_id	= p_assignment_id;
Line: 712

              update per_all_assignments_f
              set effective_end_date = hr_api.g_eot     -- to_date('31-Dec-4712','DD-MON-YYYY')
              where assignment_id = p_assignment_id;
Line: 716

		      hr_utility.set_location ( 'PER_APP_ASG_PKG.delete_row1' , 15 ) ;
Line: 726

            hr_utility.set_location ( 'PER_APP_ASG_PKG.delete_row1' , 20 ) ;
Line: 733

	   hr_utility.set_location ( 'PER_APP_ASG_PKG.delete_row' , 25 ) ;
Line: 739

end   delete_row1;