DBA Data[Home] [Help]

APPS.PER_APPLICANT_PKG SQL Statements

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

Line: 36

  select p.working_hours,
	 p.frequency,
	 p.time_normal_start,
	 p.time_normal_finish,
	 p.probation_period,
	 p.probation_period_unit_cd probation_period_units
  from   hr_all_positions p
  where  p.position_id = p_position_id ;
Line: 46

  select fnd_number.canonical_to_number(o.working_hours),
	 o.frequency,
	 o.default_start_time,
	 o.default_end_time
  from   per_all_organization_units o
  where  o.organization_id = p_organization_id ;
Line: 54

  select fnd_number.canonical_to_number(b.working_hours),
	 b.frequency,
	 b.default_start_time,
	 b.default_end_time
  from   per_business_groups b
  where  b.business_group_id = p_business_group_id ;
Line: 140

procedure insert_row ( p_rowid        in out nocopy VARCHAR2
,p_business_group_id NUMBER
,p_person_type_id                     in out nocopy NUMBER
,p_person_id 			      in out nocopy NUMBER
,p_effective_start_date DATE
,p_effective_end_date DATE
,p_last_name VARCHAR2
,p_first_name VARCHAR2
,p_title VARCHAR2
,p_full_name VARCHAR2
,p_sex VARCHAR2
,p_work_telephone VARCHAR2
,p_applicant_number 		      in out nocopy VARCHAR2
,p_assignment_status_type_id NUMBER
,p_request_id NUMBER
,p_program_application_id NUMBER
,p_program_id NUMBER
,p_program_update_date DATE
,p_attribute_category VARCHAR2
,p_attribute1 VARCHAR2
,p_attribute2 VARCHAR2
,p_attribute3 VARCHAR2
,p_attribute4 VARCHAR2
,p_attribute5 VARCHAR2
,p_attribute6 VARCHAR2
,p_attribute7 VARCHAR2
,p_attribute8 VARCHAR2
,p_attribute9 VARCHAR2
,p_attribute10 VARCHAR2
,p_attribute11 VARCHAR2
,p_attribute12 VARCHAR2
,p_attribute13 VARCHAR2
,p_attribute14 VARCHAR2
,p_attribute15 VARCHAR2
,p_attribute16 VARCHAR2
,p_attribute17 VARCHAR2
,p_attribute18 VARCHAR2
,p_attribute19 VARCHAR2
,p_attribute20 VARCHAR2
,p_attribute21 VARCHAR2
,p_attribute22 VARCHAR2
,p_attribute23 VARCHAR2
,p_attribute24 VARCHAR2
,p_attribute25 VARCHAR2
,p_attribute26 VARCHAR2
,p_attribute27 VARCHAR2
,p_attribute28 VARCHAR2
,p_attribute29 VARCHAR2
,p_attribute30 VARCHAR2
,p_per_information_category VARCHAR2
,p_per_information1 VARCHAR2
,p_per_information2 VARCHAR2
,p_per_information3 VARCHAR2
,p_per_information4 VARCHAR2
,p_per_information5 VARCHAR2
,p_per_information6 VARCHAR2
,p_per_information7 VARCHAR2
,p_per_information8 VARCHAR2
,p_per_information9 VARCHAR2
,p_per_information10 VARCHAR2
,p_per_information11 VARCHAR2
,p_per_information12 VARCHAR2
,p_per_information13 VARCHAR2
,p_per_information14 VARCHAR2
,p_per_information15 VARCHAR2
,p_per_information16 VARCHAR2
,p_per_information17 VARCHAR2
,p_per_information18 VARCHAR2
,p_per_information19 VARCHAR2
,p_per_information20 VARCHAR2
,p_per_information21 VARCHAR2
,p_per_information22 VARCHAR2
,p_per_information23 VARCHAR2
,p_per_information24 VARCHAR2
,p_per_information25 VARCHAR2
,p_per_information26 VARCHAR2
,p_per_information27 VARCHAR2
,p_per_information28 VARCHAR2
,p_per_information29 VARCHAR2
,p_per_information30 VARCHAR2
,p_style VARCHAR2
,p_address_line1 VARCHAR2
,p_address_line2 VARCHAR2
,p_address_line3 VARCHAR2
,p_address_type VARCHAR2
,p_country VARCHAR2
,p_postal_code VARCHAR2
,p_region_1 VARCHAR2
,p_region_2 VARCHAR2
,p_region_3 VARCHAR2
,p_telephone_number_1 VARCHAR2
,p_telephone_number_2 VARCHAR2
,p_telephone_number_3 VARCHAR2
,p_town_or_city VARCHAR2
,p_addr_attribute_category VARCHAR2
,p_addr_attribute1 VARCHAR2
,p_addr_attribute2 VARCHAR2
,p_addr_attribute3 VARCHAR2
,p_addr_attribute4 VARCHAR2
,p_addr_attribute5 VARCHAR2
,p_addr_attribute6 VARCHAR2
,p_addr_attribute7 VARCHAR2
,p_addr_attribute8 VARCHAR2
,p_addr_attribute9 VARCHAR2
,p_addr_attribute10 VARCHAR2
,p_addr_attribute11 VARCHAR2
,p_addr_attribute12 VARCHAR2
,p_addr_attribute13 VARCHAR2
,p_addr_attribute14 VARCHAR2
,p_addr_attribute15 VARCHAR2
,p_addr_attribute16 VARCHAR2
,p_addr_attribute17 VARCHAR2
,p_addr_attribute18 VARCHAR2
,p_addr_attribute19 VARCHAR2
,p_addr_attribute20 VARCHAR2
-- ***** Start new code for bug 2711964 **************
,p_add_information13           VARCHAR2
,p_add_information14           VARCHAR2
,p_add_information15           VARCHAR2
,p_add_information16           VARCHAR2
,p_add_information17           VARCHAR2
,p_add_information18           VARCHAR2
,p_add_information19           VARCHAR2
,p_add_information20           VARCHAR2
-- ***** End new code for bug 2711964 ***************
,p_date_received DATE
,p_current_employer VARCHAR2
,p_appl_attribute_category VARCHAR2
,p_appl_attribute1 VARCHAR2
,p_appl_attribute2 VARCHAR2
,p_appl_attribute3 VARCHAR2
,p_appl_attribute4 VARCHAR2
,p_appl_attribute5 VARCHAR2
,p_appl_attribute6 VARCHAR2
,p_appl_attribute7 VARCHAR2
,p_appl_attribute8 VARCHAR2
,p_appl_attribute9 VARCHAR2
,p_appl_attribute10 VARCHAR2
,p_appl_attribute11 VARCHAR2
,p_appl_attribute12 VARCHAR2
,p_appl_attribute13 VARCHAR2
,p_appl_attribute14 VARCHAR2
,p_appl_attribute15 VARCHAR2
,p_appl_attribute16 VARCHAR2
,p_appl_attribute17 VARCHAR2
,p_appl_attribute18 VARCHAR2
,p_appl_attribute19 VARCHAR2
,p_appl_attribute20 VARCHAR2
,p_recruitment_activity_id NUMBER
,p_source_organization_id NUMBER
,p_person_referred_by_id NUMBER
,p_vacancy_id NUMBER
,p_recruiter_id NUMBER
,p_organization_id NUMBER
,p_people_group_id NUMBER
,p_people_group_name VARCHAR2
,p_job_id NUMBER
,p_position_id NUMBER
,p_grade_id NUMBER
,p_location_id NUMBER
,p_location_code                     in out nocopy VARCHAR2
,p_source_type VARCHAR2
,p_ass_attribute_category VARCHAR2
,p_ass_attribute1 VARCHAR2
,p_ass_attribute2 VARCHAR2
,p_ass_attribute3 VARCHAR2
,p_ass_attribute4 VARCHAR2
,p_ass_attribute5 VARCHAR2
,p_ass_attribute6 VARCHAR2
,p_ass_attribute7 VARCHAR2
,p_ass_attribute8 VARCHAR2
,p_ass_attribute9 VARCHAR2
,p_ass_attribute10 VARCHAR2
,p_ass_attribute11 VARCHAR2
,p_ass_attribute12 VARCHAR2
,p_ass_attribute13 VARCHAR2
,p_ass_attribute14 VARCHAR2
,p_ass_attribute15 VARCHAR2
,p_ass_attribute16 VARCHAR2
,p_ass_attribute17 VARCHAR2
,p_ass_attribute18 VARCHAR2
,p_ass_attribute19 VARCHAR2
,p_ass_attribute20   VARCHAR2
,p_ass_attribute21 VARCHAR2
,p_ass_attribute22 VARCHAR2
,p_ass_attribute23 VARCHAR2
,p_ass_attribute24 VARCHAR2
,p_ass_attribute25 VARCHAR2
,p_ass_attribute26 VARCHAR2
,p_ass_attribute27 VARCHAR2
,p_ass_attribute28 VARCHAR2
,p_ass_attribute29 VARCHAR2
,p_ass_attribute30   VARCHAR2
,p_per_system_status VARCHAR2
,p_address_set       BOOLEAN
,p_method_of_apl_num_gen VARCHAR2
,p_party_id  NUMBER
,p_date_of_birth        DATE
,p_known_as             VARCHAR2
,p_marital_status       VARCHAR2
,p_middle_names         VARCHAR2
,p_nationality          VARCHAR2
,p_blood_type            VARCHAR2
,p_correspondence_language VARCHAR2
,p_honors                 VARCHAR2
,p_pre_name_adjunct       VARCHAR2
,p_rehire_authorizor      VARCHAR2
,p_rehire_recommendation  VARCHAR2
,p_resume_exists          VARCHAR2
,p_resume_last_updated    DATE
,p_second_passport_exists VARCHAR2
,p_student_status     VARCHAR2
,p_suffix             VARCHAR2
,p_date_of_death      DATE
,p_uses_tobacco_flag  VARCHAR2
,p_town_of_birth      VARCHAR2
,p_region_of_birth    VARCHAR2
,p_country_of_birth   VARCHAR2
,p_fast_path_employee VARCHAR2
,p_email_address   VARCHAR2
,p_fte_capacity    VARCHAR2
,p_national_identifier VARCHAR2 ) is
--
l_proc           varchar2(10) := 'insert_row';
Line: 387

cursor c1 is select per_people_s.nextval
             from sys.dual;
Line: 400

  select person_type_id
  from   per_person_types
  where  business_group_id  = p_business_group_id
  and    system_person_type = 'EX_APL'
  and    active_flag        = 'Y'
  and    default_flag       = 'Y' ;
Line: 498

    per_people_pkg.insert_row(
		   p_rowid                        => p_rowid,
		   p_person_id                    => p_person_id ,
		   p_effective_start_date         => p_effective_start_date,
		   p_effective_end_date           => p_effective_end_date,
		   p_business_group_id            => p_business_group_id  ,
		   p_person_type_id               => p_person_type_id ,
		   p_last_name                    => p_last_name,
		   p_start_date                   => p_date_received,
		   p_applicant_number             => p_applicant_number ,
		   p_comment_id                   => null ,
		   p_current_applicant_flag       => 'Y' ,
		   p_current_emp_or_apl_flag      => 'Y' ,
		   p_current_employee_flag        => NULL,
		   p_date_employee_data_verified  => NULL,
		   p_date_of_birth                => p_date_of_birth,
		   p_email_address  		  => p_email_address,
		   p_employee_number              => l_dummy_varchar2 ,
		   p_expense_check_send_to_addr   => NULL ,
		   p_first_name  		  => p_first_name,
		   p_full_name                    => p_full_name        ,
		   p_known_as  			  => p_known_as,
		   p_marital_status               => p_marital_status,
		   p_middle_names  		  => p_middle_names,
		   p_nationality  		  => p_nationality,
		   p_national_identifier 	  => p_national_identifier,
		   p_previous_last_name           => NULL,
		   p_registered_disabled_flag     => NULL,
		   p_sex  			  => p_sex ,
		   p_title 			  => p_title ,
		   p_suffix			  => p_suffix,
		   p_vendor_id 			  => NULL,
		   p_work_telephone 		  => p_work_telephone  ,
		   p_request_id  		  => p_request_id ,
		   p_program_application_id       => p_program_application_id,
		   p_program_id                   => p_program_id ,
		   p_program_update_date          => p_program_update_date ,
		   p_a_cat 			  => p_attribute_category ,
		   p_a1  			  => p_attribute1,
		   p_a2 			  => p_attribute2,
		   p_a3 			  => p_attribute3,
		   p_a4  			  => p_attribute4,
		   p_a5                           => p_attribute5,
		   p_a6  		          => p_attribute6,
		   p_a7  			  => p_attribute7,
		   p_a8  			  => p_attribute8,
		   p_a9  			  => p_attribute9,
		   p_a10  			  => p_attribute10,
		   p_a11  			  => p_attribute11,
		   p_a12  			  => p_attribute12,
		   p_a13  			  => p_attribute13,
		   p_a14  			  => p_attribute14,
		   p_a15  			  => p_attribute15,
		   p_a16  			  => p_attribute16,
		   p_a17  			  => p_attribute17,
		   p_a18  			  => p_attribute18,
		   p_a19  			  => p_attribute19,
		   p_a20  			  => p_attribute20,
		   p_a21  			  => p_attribute21,
		   p_a22  			  => p_attribute22,
		   p_a23  			  => p_attribute23,
		   p_a24  			  => p_attribute24,
		   p_a25  			  => p_attribute25,
		   p_a26  			  => p_attribute26,
		   p_a27  			  => p_attribute27,
		   p_a28  			  => p_attribute28,
		   p_a29  			  => p_attribute29,
		   p_a30  			  => p_attribute30,
		   p_last_update_date  		  => null ,
		   p_last_updated_by  		  => null ,
		   p_last_update_login 	          => null,
		   p_created_by 		  => null,
		   p_creation_date 		  => null,
		   p_i_cat        		  => p_per_information_category ,
		   p_i1  			  => p_per_information1 ,
		   p_i2  			  => p_per_information2,
		   p_i3  			  => p_per_information3,
		   p_i4  			  => p_per_information4,
		   p_i5  			  => p_per_information5,
		   p_i6  			  => p_per_information6,
		   p_i7  			  => p_per_information7,
		   p_i8  			  => p_per_information8,
		   p_i9  			  => p_per_information9,
		   p_i10 			  => p_per_information10,
		   p_i11 			  => p_per_information11,
		   p_i12 			  => p_per_information12,
		   p_i13 			  => p_per_information13,
		   p_i14 			  => p_per_information14,
		   p_i15 			  => p_per_information15,
		   p_i16 			  => p_per_information16,
		   p_i17 			  => p_per_information17,
		   p_i18 			  => p_per_information18,
		   p_i19 			  => p_per_information19,
		   p_i20 			  => p_per_information20,
		   p_i21 			  => p_per_information21,
		   p_i22 			  => p_per_information22,
		   p_i23 			  => p_per_information23,
		   p_i24 			  => p_per_information24,
		   p_i25 			  => p_per_information25,
		   p_i26 			  => p_per_information26,
		   p_i27 			  => p_per_information27,
		   p_i28 			  => p_per_information28,
		   p_i29 			  => p_per_information29,
		   p_i30 			  => p_per_information30,
		   p_app_ass_status_type_id 	  => NULL,
		   p_emp_ass_status_type_id       => NULL,
		   p_create_defaults_for          => NULL,
                   p_party_id                     => p_party_id,
                   p_blood_type => p_blood_type
                  ,p_correspondence_language => p_correspondence_language
                  ,p_honors   => p_honors
                  ,p_pre_name_adjunct    =>p_pre_name_adjunct
                  ,p_rehire_authorizor   =>p_rehire_authorizor
                  ,p_rehire_recommendation=>p_rehire_recommendation
                  ,p_resume_exists         =>p_resume_exists
                  ,p_resume_last_updated   =>p_resume_last_updated
                  ,p_second_passport_exists=>p_second_passport_exists
                  ,p_student_status    =>p_student_status
                  ,p_date_of_death     =>p_date_of_death
                  ,p_uses_tobacco_flag =>p_uses_tobacco_flag
                  ,p_town_of_birth     =>p_town_of_birth
                  ,p_region_of_birth   =>p_region_of_birth
                  ,p_country_of_birth  =>p_country_of_birth
                  ,p_fast_path_employee=>p_fast_path_employee
                  ,p_fte_capacity      =>p_fte_capacity ) ;
Line: 632

    per_people_pkg.insert_row(
		   p_rowid                        => p_rowid,
		   p_person_id                    => p_person_id ,
		   p_effective_start_date         => p_effective_start_date + 1,
		   p_effective_end_date           => hr_general.end_of_time,
		   p_business_group_id            => p_business_group_id  ,
		   p_person_type_id               => p_person_type_id ,
		   p_last_name                    => p_last_name,
		   p_start_date                   => p_date_received,
		   p_applicant_number             => p_applicant_number ,
		   p_comment_id                   => null ,
		   p_current_applicant_flag       => 'Y' ,
		   p_current_emp_or_apl_flag      => 'Y' ,
		   p_current_employee_flag        => NULL,
		   p_date_employee_data_verified  => NULL,
		   p_date_of_birth                => NULL,
		   p_email_address  		  => NULL,
		   p_employee_number              => l_dummy_varchar2 ,
		   p_expense_check_send_to_addr   => NULL ,
		   p_first_name  		  => p_first_name,
		   p_full_name                    => NULL        ,
		   p_known_as  			  => NULL,
		   p_marital_status               => NULL,
		   p_middle_names  		  => NULL,
		   p_nationality  		  => NULL,
		   p_national_identifier 	  => p_national_identifier,
		   p_previous_last_name           => NULL,
		   p_registered_disabled_flag     => NULL,
		   p_sex  			  => p_sex ,
		   p_title 			  => p_title ,
		   p_suffix			  => NULL,
		   p_vendor_id 			  => NULL,
		   p_work_telephone 		  => p_work_telephone  ,
		   p_request_id  		  => p_request_id ,
		   p_program_application_id       => p_program_application_id,
		   p_program_id                   => p_program_id ,
		   p_program_update_date          => p_program_update_date ,
		   p_a_cat 			  => p_attribute_category ,
		   p_a1  			  => p_attribute1,
		   p_a2 			  => p_attribute2,
		   p_a3 			  => p_attribute3,
		   p_a4  			  => p_attribute4,
		   p_a5                           => p_attribute5,
		   p_a6  		          => p_attribute6,
		   p_a7  			  => p_attribute7,
		   p_a8  			  => p_attribute8,
		   p_a9  			  => p_attribute9,
		   p_a10  			  => p_attribute10,
		   p_a11  			  => p_attribute11,
		   p_a12  			  => p_attribute12,
		   p_a13  			  => p_attribute13,
		   p_a14  			  => p_attribute14,
		   p_a15  			  => p_attribute15,
		   p_a16  			  => p_attribute16,
		   p_a17  			  => p_attribute17,
		   p_a18  			  => p_attribute18,
		   p_a19  			  => p_attribute19,
		   p_a20  			  => p_attribute20,
		   p_a21  			  => p_attribute21,
		   p_a22  			  => p_attribute22,
		   p_a23  			  => p_attribute23,
		   p_a24  			  => p_attribute24,
		   p_a25  			  => p_attribute25,
		   p_a26  			  => p_attribute26,
		   p_a27  			  => p_attribute27,
		   p_a28  			  => p_attribute28,
		   p_a29  			  => p_attribute29,
		   p_a30  			  => p_attribute30,
		   p_last_update_date  		  => null ,
		   p_last_updated_by  		  => null ,
		   p_last_update_login 	          => null,
		   p_created_by 		  => null,
		   p_creation_date 		  => null,
		   p_i_cat        		  => p_per_information_category ,
		   p_i1  			  => p_per_information1 ,
		   p_i2  			  => p_per_information2,
		   p_i3  			  => p_per_information3,
		   p_i4  			  => p_per_information4,
		   p_i5  			  => p_per_information5,
		   p_i6  			  => p_per_information6,
		   p_i7  			  => p_per_information7,
		   p_i8  			  => p_per_information8,
		   p_i9  			  => p_per_information9,
		   p_i10 			  => p_per_information10,
		   p_i11 			  => p_per_information11,
		   p_i12 			  => p_per_information12,
		   p_i13 			  => p_per_information13,
		   p_i14 			  => p_per_information14,
		   p_i15 			  => p_per_information15,
		   p_i16 			  => p_per_information16,
		   p_i17 			  => p_per_information17,
		   p_i18 			  => p_per_information18,
		   p_i19 			  => p_per_information19,
		   p_i20 			  => p_per_information20,
		   p_i21 			  => p_per_information21,
		   p_i22 			  => p_per_information22,
		   p_i23 			  => p_per_information23,
		   p_i24 			  => p_per_information24,
		   p_i25 			  => p_per_information25,
		   p_i26 			  => p_per_information26,
		   p_i27 			  => p_per_information27,
		   p_i28 			  => p_per_information28,
		   p_i29 			  => p_per_information29,
		   p_i30 			  => p_per_information30,
		   p_app_ass_status_type_id 	  => NULL,
		   p_emp_ass_status_type_id       => NULL,
		   p_create_defaults_for          => NULL,
                   p_party_id                     => p_party_id
                  ,p_blood_type => p_blood_type
                  ,p_correspondence_language => p_correspondence_language
                  ,p_honors   => p_honors
                  ,p_pre_name_adjunct    =>p_pre_name_adjunct
                  ,p_rehire_authorizor   =>p_rehire_authorizor
                  ,p_rehire_recommendation=>p_rehire_recommendation
                  ,p_resume_exists         =>p_resume_exists
                  ,p_resume_last_updated   =>p_resume_last_updated
                  ,p_second_passport_exists=>p_second_passport_exists
                  ,p_student_status    =>p_student_status
                  ,p_date_of_death     =>p_date_of_death
                  ,p_uses_tobacco_flag =>p_uses_tobacco_flag
                  ,p_town_of_birth     =>p_town_of_birth
                  ,p_region_of_birth   =>p_region_of_birth
                  ,p_country_of_birth  =>p_country_of_birth
                  ,p_fast_path_employee=>p_fast_path_employee
                  ,p_fte_capacity      =>p_fte_capacity
                  ) ;
Line: 805

    hr_utility.set_location('PER_APPLICANT_PKG.INSERT_ROW' , 2 ) ;
Line: 806

	per_addresses_pkg.insert_row(
	     p_row_id                  => l_dummy_varchar2
	    ,p_address_id              => l_dummy_number
	    ,p_business_group_id       => p_business_group_id
	    ,p_person_id               => p_person_id
	    ,p_date_from               => p_date_received
	    ,p_primary_flag            => 'Y'
	    ,p_style                   => p_style
	    ,p_address_line1           => p_address_line1
	    ,p_address_line2           => p_address_line2
	    ,p_address_line3           =>  p_address_line3
	    ,p_address_type            => p_address_type
	    ,p_comments                => NULL
	    ,p_country                 => p_country
	    ,p_date_to                 => NULL
	    ,p_postal_code             => p_postal_code
	    ,p_region_1                => p_region_1
	    ,p_region_2                => p_region_2
	    ,p_region_3                => p_region_3
	    ,p_telephone_number_1      => p_telephone_number_1
	    ,p_telephone_number_2      => p_telephone_number_2
	    ,p_telephone_number_3      => p_telephone_number_3
	    ,p_town_or_city            => p_town_or_city
	    ,p_request_id              => p_request_id
	    ,p_program_application_id  => p_program_application_id
	    ,p_program_id              => p_program_id
	    ,p_program_update_date     => p_program_update_date
	    ,p_addr_attribute_category => p_addr_attribute_category
	    ,p_addr_attribute1         => p_addr_attribute1
	    ,p_addr_attribute2         => p_addr_attribute2
	    ,p_addr_attribute3         => p_addr_attribute3
	    ,p_addr_attribute4         => p_addr_attribute4
	    ,p_addr_attribute5         => p_addr_attribute5
	    ,p_addr_attribute6         => p_addr_attribute6
	    ,p_addr_attribute7         => p_addr_attribute7
	    ,p_addr_attribute8         => p_addr_attribute8
	    ,p_addr_attribute9         => p_addr_attribute9
	    ,p_addr_attribute10        => p_addr_attribute10
	    ,p_addr_attribute11        => p_addr_attribute11
	    ,p_addr_attribute12        => p_addr_attribute12
	    ,p_addr_attribute13        => p_addr_attribute13
	    ,p_addr_attribute14        => p_addr_attribute14
	    ,p_addr_attribute15        => p_addr_attribute15
	    ,p_addr_attribute16        => p_addr_attribute16
	    ,p_addr_attribute17        => p_addr_attribute17
	    ,p_addr_attribute18        => p_addr_attribute18
	    ,p_addr_attribute19        => p_addr_attribute19
	    ,p_addr_attribute20        => p_addr_attribute20
        -- ***** Start commented code for bug 2711964 ********
        -- ,p_add_information17       => null
        -- ,p_add_information18       => null
        -- ,p_add_information19       => null
        -- ,p_add_information20       => null
        -- ***** End commented code for bug 2711964 **********
        -- ***** Start new code for bug 2711964 **************
        ,p_add_information13       => p_add_information13
        ,p_add_information14       => p_add_information14
        ,p_add_information15       => p_add_information15
        ,p_add_information16       => p_add_information16
        ,p_add_information17       => p_add_information17
        ,p_add_information18       => p_add_information18
        ,p_add_information19       => p_add_information19
        ,p_add_information20       => p_add_information20
        -- ***** End new code for bug 2711964 ***************
       ,p_end_of_time	       => hr_general.end_of_time
	);
Line: 890

    hr_utility.set_location('PER_APPLICANT_PKG.INSERT_ROW' , 3 ) ;
Line: 891

    per_applications_pkg.Insert_Row(p_Rowid    => l_dummy_varchar2,
                     p_Application_Id          => l_application_id,
                     p_Business_Group_Id       => p_business_group_id,
                     p_Person_Id               => p_person_id,
                     p_Date_Received           => p_date_received,
                     p_Comments                => NULL,
                     p_Current_Employer        => p_current_employer,
                     p_Date_End                => l_apl_date_end,
                     p_Projected_Hire_Date     => NULL,
                     p_Successful_Flag         => NULL,
                     p_Termination_Reason      => NULL,
                     p_Appl_Attribute_Category => p_appl_attribute_category,
                     p_Appl_Attribute1         => p_appl_attribute1,
                     p_Appl_Attribute2         => p_appl_attribute2,
                     p_Appl_Attribute3         => p_appl_attribute3,
                     p_Appl_Attribute4         => p_appl_attribute4,
                     p_Appl_Attribute5         => p_appl_attribute5,
                     p_Appl_Attribute6         => p_appl_attribute6,
                     p_Appl_Attribute7         => p_appl_attribute7,
                     p_Appl_Attribute8         => p_appl_attribute8,
                     p_Appl_Attribute9         => p_appl_attribute9,
                     p_Appl_Attribute10        => p_appl_attribute10,
                     p_Appl_Attribute11        => p_appl_attribute11,
                     p_Appl_Attribute12        => p_appl_attribute12,
                     p_Appl_Attribute13        => p_appl_attribute13,
                     p_Appl_Attribute14        => p_appl_attribute14,
                     p_Appl_Attribute15        => p_appl_attribute15,
                     p_Appl_Attribute16        => p_appl_attribute16,
                     p_Appl_Attribute17        => p_appl_attribute17,
                     p_Appl_Attribute18        => p_appl_attribute18,
                     p_Appl_Attribute19        => p_appl_attribute19,
                     p_Appl_Attribute20        => p_appl_attribute20,
                     p_Last_Update_Date        => null,
                     p_Last_Updated_By         => null,
                     p_Last_Update_Login       => null,
                     p_Created_By              => null,
                     p_Creation_Date           => null ) ;
Line: 938

    hr_utility.set_location('PER_APPLICANT_PKG.INSERT_ROW' , 4 ) ;
Line: 987

    per_assignments_f_pkg.insert_row(
	p_row_id			   => l_dummy_varchar2,
	p_assignment_id                    => l_assignment_id,
	p_effective_start_date             => p_date_received,
	p_effective_end_date               => l_asg_end_date,
	p_business_group_id                => p_business_group_id,
	p_recruiter_id                     => p_recruiter_id,
	p_grade_id                         => p_grade_id,
	p_position_id                      => p_position_id,
	p_job_id                           => p_job_id,
	p_assignment_status_type_id        => p_assignment_status_type_id,
	p_payroll_id                       => NULL,
	p_location_id                      => p_location_id,
	p_person_referred_by_id            => p_person_referred_by_id,
	p_supervisor_id                    => NULL,
	p_special_ceiling_step_id          => NULL,
	p_person_id                        => p_person_id,
	p_recruitment_activity_id          => p_recruitment_activity_id,
	p_source_organization_id           => p_source_organization_id,
	p_organization_id                  => nvl(p_organization_id,p_business_group_id
),

	p_people_group_id                  => p_people_group_id,
	p_soft_coding_keyflex_id           => NULL,
	p_vacancy_id                       => p_vacancy_id,
	p_assignment_sequence              => 1,
	p_assignment_type                  => 'A',
	p_primary_flag                     => 'N',
	p_application_id                   => l_application_id,
	p_assignment_number                => NULL,
	p_change_reason                    => NULL,
	p_comment_id                       => NULL,
	p_date_probation_end               => l_date_probation_end,
	p_default_code_comb_id             => NULL,
	p_frequency                        => l_freq,
	p_internal_address_line            => NULL,
	p_manager_flag                     => 'N',
	p_normal_hours                     => l_hours,
	p_period_of_service_id             => NULL,
	p_probation_period                 => l_probation_period,
	p_probation_unit                   => l_probation_unit,
	p_set_of_books_id                  => NULL,
	p_source_type                      => p_source_type,
	p_time_normal_finish               => l_finish,
	p_time_normal_start                => l_start,
	p_request_id                       => NULL,
	p_program_application_id           => NULL,
	p_program_id                       => NULL,
	p_program_update_date              => NULL,
	p_ass_attribute_category           => p_ass_attribute_category,
	p_ass_attribute1                   => p_ass_attribute1,
	p_ass_attribute2                   => p_ass_attribute2,
	p_ass_attribute3                   => p_ass_attribute3,
	p_ass_attribute4                   => p_ass_attribute4,
	p_ass_attribute5                   => p_ass_attribute5,
	p_ass_attribute6                   => p_ass_attribute6,
	p_ass_attribute7                   => p_ass_attribute7,
	p_ass_attribute8                   => p_ass_attribute8,
	p_ass_attribute9                   => p_ass_attribute9,
	p_ass_attribute10                  => p_ass_attribute10,
	p_ass_attribute11                  => p_ass_attribute11,
	p_ass_attribute12                  => p_ass_attribute12,
	p_ass_attribute13                  => p_ass_attribute13,
	p_ass_attribute14                  => p_ass_attribute14,
	p_ass_attribute15                  => p_ass_attribute15,
	p_ass_attribute16                  => p_ass_attribute16,
	p_ass_attribute17                  => p_ass_attribute17,
	p_ass_attribute18                  => p_ass_attribute18,
	p_ass_attribute19                  => p_ass_attribute19,
	p_ass_attribute20                  => p_ass_attribute20,
	p_ass_attribute21                  => p_ass_attribute21,
	p_ass_attribute22                  => p_ass_attribute22,
	p_ass_attribute23                  => p_ass_attribute23,
	p_ass_attribute24                  => p_ass_attribute24,
	p_ass_attribute25                  => p_ass_attribute25,
	p_ass_attribute26                  => p_ass_attribute26,
	p_ass_attribute27                  => p_ass_attribute27,
	p_ass_attribute28                  => p_ass_attribute28,
	p_ass_attribute29                  => p_ass_attribute29,
	p_ass_attribute30                  => p_ass_attribute30,
	p_sal_review_period                => NULL,
	p_sal_review_period_frequency      => NULL,
	p_perf_review_period               => NULL,
	p_perf_review_period_frequency     => NULL,
	p_pay_basis_id                     => NULL,
	p_employment_category		   => NULL,
        p_bargaining_unit_code             => NULL,
        p_labour_union_member_flag         => NULL,
	p_hourly_salaried_code             => NULL
) ;
Line: 1107

    update_group ( p_people_group_id,
		   p_people_group_name ) ;
Line: 1131

end insert_row ;
Line: 1345

procedure delete_row ( p_person_id    in number,
		       p_session_date in date  ) is
begin
--
   check_delete_allowed ( p_person_id    => p_person_id,
			  p_session_date => p_session_date ) ;
Line: 1352

   hr_person.applicant_default_deletes( p_person_id => p_person_id,
					p_form_call => TRUE);
Line: 1355

end delete_row ;
Line: 1366

  select location_code
  from   hr_locations
  where  location_id = p_location_id ;
Line: 1454

select person_type_id,
       system_person_type
from   per_person_types
where  business_group_id  = p_business_group_id
and    system_person_type = 'APL'
and    active_flag        = 'Y'
and    default_flag       = 'Y' ;
Line: 1463

select a.assignment_status_type_id
,      nvl(btl.user_status,atl.user_status)
,      a.per_system_status
from   per_assignment_status_types_tl atl
,      per_assignment_status_types a
,      per_ass_status_type_amends_tl btl
,      per_ass_status_type_amends b
where  b.assignment_status_type_id(+)  = a.assignment_status_type_id
and    b.business_group_id(+) + 0   = p_business_group_id
and    nvl(a.business_group_id,p_business_group_id) = p_business_group_id
and    nvl(a.legislation_code,p_legislation_code)   = p_legislation_code
and    nvl(b.active_flag,a.active_flag)             = 'Y'
and    nvl(b.default_flag,a.default_flag)    	    = 'Y'
and    nvl(b.per_system_status,a.per_system_status) = 'ACTIVE_APL'
and    b.ass_status_type_amend_id      = btl.ass_status_type_amend_id (+)
and    decode(btl.ass_status_type_amend_id, null, '1', userenv('LANG')) =
              decode(btl.ass_status_type_amend_id, null, '1', btl.LANGUAGE)
and    a.assignment_status_type_id = atl.assignment_status_type_id
and    atl.LANGUAGE = userenv('LANG');
Line: 1487

  select descriptive_flex_context_name, descriptive_flex_context_code
  from fnd_descr_flex_contexts_vl
  where (descriptive_flex_context_code = p_legislation_code
    or (p_legislation_code = descriptive_flex_context_code
    and p_legislation_code in ('CA','US')
    and hr_general.chk_geocodes_installed = 'Y'))
    and descriptive_flexfield_name = 'Address Structure'
    and application_id = 800 	-- Bug fix 3648715
    and enabled_flag = 'Y';
Line: 1501

select descriptive_flex_context_name,descriptive_flex_context_code
from fnd_descr_flex_contexts_vl
where substr(descriptive_flex_context_code,1,2)= p_legislation_code
and descriptive_flexfield_name = 'Address Structure'
and application_id = 800	-- Bug Fix 3648715
and enabled_flag = 'Y';
Line: 1509

  select  l1.meaning,
          l2.meaning
  from    hr_lookups l1,
	  hr_lookups l2
  where   l1.lookup_type = 'YES_NO'
  and     l2.lookup_type = 'YES_NO'
  and     l1.lookup_code = 'Y'
  and     l2.lookup_code = 'N' ;
Line: 1519

  select pbg.name,
	 pbg.location_id,
	fnd_number.canonical_to_number(pbg.working_hours),
	 pbg.frequency,
	 pbg.default_start_time,
	 pbg.default_end_time,
	 pbg.people_group_structure,
	 pbg.method_of_generation_apl_num
  from   per_business_groups pbg
  where  business_group_id = p_business_group_id ;
Line: 1617

  select 1
  from   per_recruitment_activity_for
  where  recruitment_activity_id = p_recruitment_activity_id
  and    vacancy_id		 = p_vacancy_id ;
Line: 1648

 select min(r.vacancy_id)
 from   per_recruitment_activity_for r,
	per_all_vacancies x
 where  r.recruitment_activity_id = p_recruitment_activity_id
 and    r.vacancy_id              = x.vacancy_id
 and    p_date_received between x.date_from
	and nvl(x.date_to,p_date_received)
 group by r.recruitment_activity_id
 having count(r.vacancy_id) = 1 ;
Line: 1759

  select x.name,
	 x.organization_id,
	 x.people_group_id,
	 x.job_id,
	 x.position_id,
	 x.grade_id,
	 x.location_id,
	 x.recruiter_id,
         x.manager_id -- added for bug 8678206
  from   per_all_vacancies x
  where  x.vacancy_id = p_vacancy_id ;
Line: 1772

  select xtl.name
  from   hr_all_organization_units_tl xtl,
         hr_all_organization_units x
  where  xtl.organization_id = p_org_id
  and    x.organization_id = xtl.organization_id
  and    xtl.LANGUAGE = userenv('LANG');
Line: 1780

  select per.full_name
        ,per.employee_number
  from   per_all_people per
  where  per.person_id = p_recruiter_id;
Line: 1786

  select x.name
  from   per_jobs_vl x
  where  x.job_id = p_job_id ;
Line: 1793

  select x.name
  from   hr_all_positions x
  where  x.position_id = p_pos_id ;
Line: 1798

  select x.name
  from   per_grades_vl x
  where  x.grade_id = p_grade_id ;
Line: 1803

  select l.location_code
  from   hr_locations l
  where  l.location_id = p_location_id ;
Line: 1809

  select per.full_name
        ,per.employee_number
  from   per_all_people per
  where  per.person_id = p_manager_id;
Line: 2120

SELECT 1
FROM   HR_ALL_POSITIONS P
WHERE  P.JOB_ID          = p_job_id
AND    P.ORGANIZATION_ID = p_org_id
AND    P.POSITION_ID     = p_pos_id
AND    P.DATE_EFFECTIVE <= p_date_received
AND    ((P.DATE_END IS NULL)
OR      (P.DATE_END >= p_date_received )) ;
Line: 2149

procedure update_group( p_pg_id         number,
			p_group_name    varchar2) is

begin
   if p_pg_id <> -1 then
   --
   -- This is an existing desc flex record, update group_name held on
   -- combinations table.
      update pay_people_groups
      set     group_name      = P_GROUP_NAME
      where   people_group_id = P_PG_ID
      and P_GROUP_NAME is not null; -- 4103321
Line: 2164

        fnd_message.set_token('PROCEDURE','PER_APPLICANT_PKG.UPDATE_GROUP');
Line: 2169

end update_group ;
Line: 2182

SELECT 1
FROM   SYS.DUAL
WHERE  EXISTS
      (SELECT NULL
       FROM   PER_VALID_GRADES
       WHERE  business_group_id + 0 = p_business_group_id
       AND    DATE_FROM        <= p_date_received
       AND  ((DATE_TO IS NULL)
              OR    (DATE_TO   >= p_date_received))
       AND    JOB_ID            = p_job_id ) ;
Line: 2194

SELECT 1
FROM   SYS.DUAL
WHERE  EXISTS
      (SELECT NULL
       FROM   PER_VALID_GRADES
       WHERE  business_group_id + 0 = p_business_group_id
       AND    DATE_FROM        <= p_date_received
       AND  ((DATE_TO IS NULL)
              OR    (DATE_TO   >= p_date_received))
       AND    POSITION_ID       = p_pos_id) ;
Line: 2234

  SELECT 1
  FROM   PER_ALL_PEOPLE_F
  WHERE  APPLICANT_NUMBER  = p_applicant_number
  AND    business_group_id + 0 = p_business_group_id ;
Line: 2251

procedure check_delete_allowed ( p_person_id    in number,
				 p_session_date in date ) is
--
l_dummy_number number := NULL ;
Line: 2256

  select 1
  from   per_all_people_f
  where  person_id = p_person_id
  group  by person_id having count(*) > 1 ;
Line: 2262

  select 1
  from   per_addresses
  where  person_id = p_person_id
  group by person_id having count(*) > 1 ;
Line: 2300

end check_delete_allowed ;
Line: 2315

    insert into per_assignment_budget_values_f
	    (assignment_budget_value_id,
             effective_start_date,
             effective_end_date,
	     business_group_id,
	     assignment_id,
	     unit,
	     value)
    select per_assignment_budget_values_s.nextval,
           p_effective_start_date,
           p_effective_end_date,
	   p_business_group_id,
	   p_assignment_id,
	   d.unit,
	   d.value
    from   per_default_budget_values d
    where  d.business_group_id + 0 = p_business_group_id ;
Line: 2351

  select 1
  from   per_letter_gen_statuses s
  where  s.business_group_id + 0         = p_business_group_id
  and    s.assignment_status_type_id = p_assignment_status_type_id
  and    s.enabled_flag              = 'Y' ;
Line: 2360

SELECT 1
FROM  PER_LETTER_REQUESTS PLR,
      PER_LETTER_GEN_STATUSES PLGS
WHERE PLGS.business_group_id + 0 = p_business_group_id
AND   PLR.business_group_id +0 = p_business_group_id
AND   PLGS.assignment_status_type_id = p_assignment_status_type_id
AND   PLR.letter_type_id = PLGS.letter_type_id
AND   PLR.auto_or_manual = 'MANUAL';
Line: 2415

  insert into per_letter_requests
  (   letter_request_id,
      business_group_id,
      letter_type_id,
      request_status,
      auto_or_manual,
      date_from,
      vacancy_id)
  select  per_letter_requests_s.nextval,
          p_business_group_id,
          s.letter_type_id,
          'PENDING',
          'AUTO',
          p_effective_start_date,
          p_vacancy_id
  from    PER_LETTER_GEN_STATUSES s
  where   s.business_group_id + 0     = p_business_group_id
  and     s.assignment_status_type_id = p_assignment_status_type_id
  and     s.enabled_flag              = 'Y'
  and not exists ( select null
		   from   per_letter_requests r
		   where  r.letter_type_id        = s.letter_type_id
		   and    r.business_group_id + 0 = p_business_group_id
		   and    r.business_group_id + 0 = s.business_group_id + 0
                   and    nvl(r.vacancy_id,-1) 	  = nvl(p_vacancy_id,-1)
		   and    r.request_status        = 'PENDING'
		   and    r.auto_or_manual        = 'AUTO' ) ;
Line: 2452

   insert into per_letter_request_lines
      (letter_request_line_id,
       business_group_id,
       letter_request_id,
       person_id,
       assignment_id,
       assignment_status_type_id,
       date_from )
   select  per_letter_request_lines_s.nextval,
           p_business_group_id,
           r.letter_request_id,
           p_person_id,
           p_assignment_id,
           p_assignment_status_type_id,
           p_validation_start_date
   from    per_letter_requests r
   where   exists
           (select null
            from    per_letter_gen_statuses s
            where   s.letter_type_id            = r.letter_type_id
            and     s.business_group_id + 0     = r.business_group_id + 0
            and     s.assignment_status_type_id= p_assignment_status_type_id
            and     s.enabled_flag = 'Y')
   and   not exists
            (select l.assignment_id
            from    per_letter_request_lines l
            where   l.letter_request_id = r.letter_request_id
            and     l.assignment_id     = p_assignment_id
            and     l.business_group_id + 0 = r.business_group_id + 0
            and     l.date_from         = p_validation_start_date)
   and    r.request_status        = 'PENDING'
   and    r.business_group_id  = p_business_group_id   -- bug fix 3648715
   and    nvl(r.vacancy_id,-1)    = nvl(p_vacancy_id,-1);
Line: 2493

   insert into per_letter_requests
     (letter_request_id,
      business_group_id,
      letter_type_id,
      request_status,
      auto_or_manual,
      date_from)
   select
      per_letter_requests_s.nextval,
      p_business_group_id,
      s.letter_type_id,
      'PENDING',
      'AUTO',
      p_effective_start_date
   from    PER_LETTER_GEN_STATUSES s
   where   s.business_group_id + 0     = p_business_group_id
   and     s.assignment_status_type_id = p_assignment_status_type_id
   and     s.enabled_flag              = 'Y'
   and not exists ( select null
                   from   per_letter_requests r
                   where  r.letter_type_id = s.letter_type_id
                   and    r.business_group_id + 0 = p_business_group_id
                   and    r.business_group_id + 0 = s.business_group_id + 0
                   and    r.request_status        = 'PENDING'
                   and    r.auto_or_manual        = 'AUTO' ) ;
Line: 2529

    insert into per_letter_request_lines
      (letter_request_line_id,
       business_group_id,
       letter_request_id,
       person_id,
       assignment_id,
       assignment_status_type_id,
       date_from )
   select
       per_letter_request_lines_s.nextval,
       p_business_group_id,
       r.letter_request_id,
       p_person_id,
       p_assignment_id,
       p_assignment_status_type_id,
       p_validation_start_date
   from    per_letter_requests r
   where   exists
           (select null
            from    per_letter_gen_statuses s
            where   s.letter_type_id            = r.letter_type_id
            and     s.business_group_id + 0     = r.business_group_id + 0
            and     s.assignment_status_type_id = p_assignment_status_type_id
            and     s.enabled_flag              = 'Y')
   and not exists
           (select l.assignment_id
            from    per_letter_request_lines l
            where   l.letter_request_id = r.letter_request_id
            and     l.assignment_id     = p_assignment_id
            and     l.business_group_id + 0 = r.business_group_id + 0
            and     l.date_from         = p_validation_start_date)
   and r.request_status        = 'PENDING'
   and r.business_group_id  = p_business_group_id ;  -- bug fix 3648715
Line: 2572

procedure pre_update ( p_rowid              in varchar2,
		       p_person_id	    in number,
		       p_business_group_id  in number,
		       p_date_received      in date,
		       p_old_date_received  in out nocopy date ) is
l_system_person_type varchar2(30) ;
Line: 2579

  select date_received
  from   per_applications
  where  rowid = p_rowid  ;
Line: 2584

  select ppt.system_person_type
  from   per_people_f     per,
	 per_person_types ppt
  where  per.person_id      = p_person_id
  and    per.person_type_id = ppt.person_type_id ;
Line: 2607

end pre_update ;
Line: 2614

  select territory_short_name
  from fnd_territories_vl
  where territory_code = p_territory_code ;
Line: 2634

  select descriptive_flex_context_name
  from fnd_descr_flex_contexts_vl
  where descriptive_flex_context_code = p_style;