DBA Data[Home] [Help]

APPS.PQP_ATD_INS SQL Statements

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

Line: 53

Procedure insert_dml(p_rec in out nocopy pqp_atd_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'insert_dml';
Line: 65

  insert into pqp_alien_transaction_data
  (     alien_transaction_id,
        person_id,
        data_source_type,
        tax_year,
        income_code,
        withholding_rate,
        income_code_sub_type,
        exemption_code,
        maximum_benefit_amount,
        retro_lose_ben_amt_flag,
        date_benefit_ends,
        retro_lose_ben_date_flag,
        current_residency_status,
        nra_to_ra_date,
        target_departure_date,
        tax_residence_country_code,
        treaty_info_update_date,
        nra_exempt_from_fica,
        student_exempt_from_fica,
        addl_withholding_flag,
        addl_withholding_amt,
        addl_wthldng_amt_period_type,
        personal_exemption,
        addl_exemption_allowed,
        number_of_days_in_usa,
        wthldg_allow_eligible_flag,
        treaty_ben_allowed_flag,
        treaty_benefits_start_date,
        ra_effective_date,
        state_code,
        state_honors_treaty_flag,
        ytd_payments,
        ytd_w2_payments,
        ytd_w2_withholding,
        ytd_withholding_allowance,
        ytd_treaty_payments,
        ytd_treaty_withheld_amt,
        record_source,
        visa_type,
        j_sub_type,
        primary_activity,
        non_us_country_code,
        citizenship_country_code,
        constant_addl_tax,
        date_8233_signed,
        date_w4_signed,
        error_indicator,
        prev_er_treaty_benefit_amt,
        error_text,
        object_version_number,
        current_analysis,
        forecast_income_code
  )
  Values
  (        p_rec.alien_transaction_id,
        p_rec.person_id,
        p_rec.data_source_type,
        p_rec.tax_year,
        p_rec.income_code,
        p_rec.withholding_rate,
        p_rec.income_code_sub_type,
        p_rec.exemption_code,
        p_rec.maximum_benefit_amount,
        p_rec.retro_lose_ben_amt_flag,
        p_rec.date_benefit_ends,
        p_rec.retro_lose_ben_date_flag,
        p_rec.current_residency_status,
        p_rec.nra_to_ra_date,
        p_rec.target_departure_date,
        p_rec.tax_residence_country_code,
        p_rec.treaty_info_update_date,
        p_rec.nra_exempt_from_fica,
        p_rec.student_exempt_from_fica,
        p_rec.addl_withholding_flag,
        p_rec.addl_withholding_amt,
        p_rec.addl_wthldng_amt_period_type,
        p_rec.personal_exemption,
        p_rec.addl_exemption_allowed,
        p_rec.number_of_days_in_usa,
        p_rec.wthldg_allow_eligible_flag,
        p_rec.treaty_ben_allowed_flag,
        p_rec.treaty_benefits_start_date,
        p_rec.ra_effective_date,
        p_rec.state_code,
        p_rec.state_honors_treaty_flag,
        p_rec.ytd_payments,
        p_rec.ytd_w2_payments,
        p_rec.ytd_w2_withholding,
        p_rec.ytd_withholding_allowance,
        p_rec.ytd_treaty_payments,
        p_rec.ytd_treaty_withheld_amt,
        p_rec.record_source,
        p_rec.visa_type,
        p_rec.j_sub_type,
        p_rec.primary_activity,
        p_rec.non_us_country_code,
        p_rec.citizenship_country_code,
        p_rec.constant_addl_tax,
        p_rec.date_8233_signed,
        p_rec.date_w4_signed,
        p_rec.error_indicator,
        p_rec.prev_er_treaty_benefit_amt,
        p_rec.error_text,
        p_rec.object_version_number,
        p_rec.current_analysis,
        p_rec.forecast_income_code
  );
Line: 196

End insert_dml;
Line: 235

Procedure pre_insert(p_rec  in out nocopy pqp_atd_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'pre_insert';
Line: 239

  Cursor C_Sel1 is select pqp_alien_transaction_data_s.nextval from sys.dual;
Line: 252

End pre_insert;
Line: 286

Procedure post_insert(
p_effective_date in date,p_rec in pqp_atd_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'post_insert';
Line: 299

    pqp_atd_rki.after_insert
      (
  p_alien_transaction_id          =>p_rec.alien_transaction_id
 ,p_person_id                     =>p_rec.person_id
 ,p_data_source_type              =>p_rec.data_source_type
 ,p_tax_year                      =>p_rec.tax_year
 ,p_income_code                   =>p_rec.income_code
 ,p_withholding_rate              =>p_rec.withholding_rate
 ,p_income_code_sub_type          =>p_rec.income_code_sub_type
 ,p_exemption_code                =>p_rec.exemption_code
 ,p_maximum_benefit_amount        =>p_rec.maximum_benefit_amount
 ,p_retro_lose_ben_amt_flag       =>p_rec.retro_lose_ben_amt_flag
 ,p_date_benefit_ends             =>p_rec.date_benefit_ends
 ,p_retro_lose_ben_date_flag      =>p_rec.retro_lose_ben_date_flag
 ,p_current_residency_status      =>p_rec.current_residency_status
 ,p_nra_to_ra_date                =>p_rec.nra_to_ra_date
 ,p_target_departure_date         =>p_rec.target_departure_date
 ,p_tax_residence_country_code    =>p_rec.tax_residence_country_code
 ,p_treaty_info_update_date       =>p_rec.treaty_info_update_date
 ,p_nra_exempt_from_fica          =>p_rec.nra_exempt_from_fica
 ,p_student_exempt_from_fica      =>p_rec.student_exempt_from_fica
 ,p_addl_withholding_flag         =>p_rec.addl_withholding_flag
 ,p_addl_withholding_amt          =>p_rec.addl_withholding_amt
 ,p_addl_wthldng_amt_period_type  =>p_rec.addl_wthldng_amt_period_type
 ,p_personal_exemption            =>p_rec.personal_exemption
 ,p_addl_exemption_allowed        =>p_rec.addl_exemption_allowed
 ,p_number_of_days_in_usa         =>p_rec.number_of_days_in_usa
 ,p_wthldg_allow_eligible_flag    =>p_rec.wthldg_allow_eligible_flag
 ,p_treaty_ben_allowed_flag       =>p_rec.treaty_ben_allowed_flag
 ,p_treaty_benefits_start_date    =>p_rec.treaty_benefits_start_date
 ,p_ra_effective_date             =>p_rec.ra_effective_date
 ,p_state_code                    =>p_rec.state_code
 ,p_state_honors_treaty_flag      =>p_rec.state_honors_treaty_flag
 ,p_ytd_payments                  =>p_rec.ytd_payments
 ,p_ytd_w2_payments               =>p_rec.ytd_w2_payments
 ,p_ytd_w2_withholding            =>p_rec.ytd_w2_withholding
 ,p_ytd_withholding_allowance     =>p_rec.ytd_withholding_allowance
 ,p_ytd_treaty_payments           =>p_rec.ytd_treaty_payments
 ,p_ytd_treaty_withheld_amt       =>p_rec.ytd_treaty_withheld_amt
 ,p_record_source                 =>p_rec.record_source
 ,p_visa_type                     =>p_rec.visa_type
 ,p_j_sub_type                    =>p_rec.j_sub_type
 ,p_primary_activity              =>p_rec.primary_activity
 ,p_non_us_country_code           =>p_rec.non_us_country_code
 ,p_citizenship_country_code      =>p_rec.citizenship_country_code
 ,p_constant_addl_tax             =>p_rec.constant_addl_tax
 ,p_date_8233_signed              =>p_rec.date_8233_signed
 ,p_date_w4_signed                =>p_rec.date_w4_signed
 ,p_error_indicator               =>p_rec.error_indicator
 ,p_prev_er_treaty_benefit_amt    =>p_rec.prev_er_treaty_benefit_amt
 ,p_error_text                    =>p_rec.error_text
 ,p_object_version_number         =>p_rec.object_version_number
 ,p_effective_date                =>p_effective_date
 ,p_current_analysis              =>p_rec.current_analysis
 ,p_forecast_income_code          =>p_rec.forecast_income_code
      );
Line: 370

End post_insert;
Line: 388

  pqp_atd_bus.insert_validate(p_rec            ,
                                       p_effective_date );
Line: 403

  pre_insert(p_rec);
Line: 407

  insert_dml(p_rec);
Line: 411

  post_insert(
p_effective_date,p_rec);
Line: 437

  p_treaty_info_update_date      in date             default null,
  p_nra_exempt_from_fica         in varchar2         default null,
  p_student_exempt_from_fica     in varchar2         default null,
  p_addl_withholding_flag        in varchar2         default null,
  p_addl_withholding_amt         in number           default null,
  p_addl_wthldng_amt_period_type in varchar2         default null,
  p_personal_exemption           in number           default null,
  p_addl_exemption_allowed       in number           default null,
  p_number_of_days_in_usa        in number           default null,
  p_wthldg_allow_eligible_flag   in varchar2         default null,
  p_treaty_ben_allowed_flag      in varchar2         default null,
  p_treaty_benefits_start_date   in date             default null,
  p_ra_effective_date            in date             default null,
  p_state_code                   in varchar2         default null,
  p_state_honors_treaty_flag     in varchar2         default null,
  p_ytd_payments                 in number           default null,
  p_ytd_w2_payments              in number           default null,
  p_ytd_w2_withholding           in number           default null,
  p_ytd_withholding_allowance    in number           default null,
  p_ytd_treaty_payments          in number           default null,
  p_ytd_treaty_withheld_amt      in number           default null,
  p_record_source                in varchar2         default null,
  p_visa_type                    in varchar2         default null,
  p_j_sub_type                   in varchar2         default null,
  p_primary_activity             in varchar2         default null,
  p_non_us_country_code          in varchar2         default null,
  p_citizenship_country_code     in varchar2         default null,
  p_constant_addl_tax            in number           default null,
  p_date_8233_signed             in date             default null,
  p_date_w4_signed               in date             default null,
  p_error_indicator              in varchar2         default null,
  p_prev_er_treaty_benefit_amt   in number           default null,
  p_error_text                   in varchar2         default null,
  p_object_version_number        out nocopy number,
  p_current_analysis             in varchar2         default null,
  p_forecast_income_code         in varchar2         default null
  ) is
--
  l_rec          pqp_atd_shd.g_rec_type;
Line: 503

  p_treaty_info_update_date,
  p_nra_exempt_from_fica,
  p_student_exempt_from_fica,
  p_addl_withholding_flag,
  p_addl_withholding_amt,
  p_addl_wthldng_amt_period_type,
  p_personal_exemption,
  p_addl_exemption_allowed,
  p_number_of_days_in_usa,
  p_wthldg_allow_eligible_flag,
  p_treaty_ben_allowed_flag,
  p_treaty_benefits_start_date,
  p_ra_effective_date,
  p_state_code,
  p_state_honors_treaty_flag,
  p_ytd_payments,
  p_ytd_w2_payments,
  p_ytd_w2_withholding,
  p_ytd_withholding_allowance,
  p_ytd_treaty_payments,
  p_ytd_treaty_withheld_amt,
  p_record_source,
  p_visa_type,
  p_j_sub_type,
  p_primary_activity,
  p_non_us_country_code,
  p_citizenship_country_code,
  p_constant_addl_tax,
  p_date_8233_signed,
  p_date_w4_signed,
  p_error_indicator,
  p_prev_er_treaty_benefit_amt,
  p_error_text,
  null,
  p_current_analysis,
  p_forecast_income_code
  );