DBA Data[Home] [Help]

APPS.IGI_IAC_REVAL_INIT_STRUCT SQL Statements

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

Line: 85

    fp_reval_input_asset.last_update_login    := 0;
Line: 86

    fp_reval_input_asset.last_update_date     := null;
Line: 87

    fp_reval_input_asset.last_updated_by      := 0;
Line: 111

 fp_reval_asset_rules.selected_for_reval_flag   := null;
Line: 112

 fp_reval_asset_rules.selected_for_calc_flag    := null;
Line: 115

 fp_reval_asset_rules.last_update_login         := 0;
Line: 116

 fp_reval_asset_rules.last_update_date          := null;
Line: 117

 fp_reval_asset_rules.last_updated_by           := 0;
Line: 118

 fp_reval_asset_rules.allow_prof_update         := null;
Line: 159

    fp_Reval_Rates.last_update_login         := 0;
Line: 160

    fp_Reval_Rates.last_update_date          := null;
Line: 161

    fp_Reval_Rates.last_updated_by           := 0;
Line: 263

/* update or populate the  reval_control record */
     l_reval_params.reval_control.revaluation_mode := fp_revaluation_mode;
Line: 268

        select dd.*
        into   l_reval_params.reval_asset_rules
        from   igi_iac_reval_asset_rules dd
        where  dd.asset_id       = fp_asset_id
          and  dd.book_type_code = fp_book_type_code
          and  dd.revaluation_id = fp_revaluation_id
          ;
Line: 275

        select h.revaluation_date
        into   l_reval_params.reval_asset_params.revaluation_date
        from   igi_iac_revaluations      h
        where  h.revaluation_id = fp_revaluation_id
        ;
Line: 332

        select nvl(max(period_counter),0)
        into   l_max_period_counter
        from   igi_iac_asset_balances
        where  asset_id   = fp_asset_id
        and    book_type_code = fp_book_type_code
        and    period_counter <= fp_period_counter
        ;
Line: 358

           l_reval_params.reval_input_asset.last_update_login       := g_who_login_id ;
Line: 359

           l_reval_params.reval_input_asset.last_update_date        := g_who_date ;
Line: 360

           l_reval_params.reval_input_asset.last_updated_by         := g_who_user_id;
Line: 363

               select *
               into   l_reval_params.reval_input_asset
               from   igi_iac_asset_balances
               where  asset_id   = fp_asset_id
               and    book_type_code = fp_book_type_code
               and    period_counter = l_max_period_counter
               ;
Line: 399

      select *
      into   l_reval_params.reval_prev_rate_info
      from   igi_iac_revaluation_rates
      where  asset_id       = fp_asset_id
        and  period_counter <= fp_period_counter
        and  book_type_code = fp_book_type_code
        and  reval_type     in ( 'O','P')
        and  nvl(latest_record,'X')  = 'Y'
        ;
Line: 422

            l_reval_params.reval_prev_rate_info.last_update_login   :=      g_who_login_id;
Line: 423

            l_reval_params.reval_prev_rate_info.last_update_date    :=      g_who_date;
Line: 424

            l_reval_params.reval_prev_rate_info.last_updated_by     :=      g_who_user_id;
Line: 437

           select  fb.cost
                , fb.adjusted_cost
                , fb.original_cost
                , fb.salvage_value
                , fb.life_in_months
                , fb.rate_adjustment_factor
                , fb.period_counter_fully_reserved
                , fb.adjusted_recoverable_cost
                , fb.recoverable_cost
                , fb.date_placed_in_service
                , fb.deprn_start_date
                , fb.depreciate_flag
                , fbc.last_period_counter
                , fbc.gl_posting_allowed_flag
                , fds.ytd_deprn
                , fds.deprn_reserve
                , fds.deprn_amount
                , fadd.asset_category_id
          from  fa_books fb
                , fa_book_controls fbc
                , fa_deprn_summary fds
                , fa_additions fadd
          where  fb.book_type_code = fbc.book_type_code
            and  fb.book_type_code = fp_book_type_code
            -- and  fbc.last_period_counter = fp_period_counter
            and  fadd.asset_id           = fp_asset_id
            and  fb.asset_id             = fp_asset_id
            and  fb.transaction_header_id_out is null
            and  fds.book_type_code      = fp_book_type_code
            and  fds.asset_id            = fp_asset_id
            and  fds.period_counter      = ( select max(period_counter)
                                             from   fa_deprn_summary
                                             where  asset_id = fp_asset_id
                                              and   book_type_code = fp_book_type_code
                                              and   period_counter <= fp_period_counter
                                            )
            -- this should fail with asset with deprn = no, need to verify this later on...
            ;
Line: 604

/* update or populate the  reval_control record */
     l_reval_params.reval_control.revaluation_mode := fp_revaluation_mode;
Line: 607

        select dd.*
        into   l_reval_params.reval_asset_rules
        from   igi_iac_reval_asset_rules dd
        where  dd.asset_id       = fp_asset_id
          and  dd.book_type_code = fp_book_type_code
          and  dd.revaluation_id = fp_revaluation_id
          ;
Line: 614

        select h.revaluation_date
        into   l_reval_params.reval_asset_params.revaluation_date
        from   igi_iac_revaluations      h
        where  h.revaluation_id = fp_revaluation_id
        ;
Line: 655

        select nvl(max(period_counter),0)
        into   l_max_period_counter
        from   igi_iac_asset_balances
        where  asset_id   = fp_asset_id
        and    book_type_code = fp_book_type_code
        and    period_counter <= fp_period_counter
        ;
Line: 681

           l_reval_params.reval_input_asset.last_update_login       := g_who_login_id ;
Line: 682

           l_reval_params.reval_input_asset.last_update_date        := g_who_date ;
Line: 683

           l_reval_params.reval_input_asset.last_updated_by         := g_who_user_id;
Line: 686

               select *
               into   l_reval_params.reval_input_asset
               from   igi_iac_asset_balances
               where  asset_id   = fp_asset_id
               and    book_type_code = fp_book_type_code
               and    period_counter = l_max_period_counter
               ;
Line: 733

    l_reval_params.reval_prev_rate_info.last_update_login           :=      g_who_login_id;
Line: 734

    l_reval_params.reval_prev_rate_info.last_update_date            :=      g_who_date;
Line: 735

    l_reval_params.reval_prev_rate_info.last_updated_by             :=      g_who_user_id;
Line: 741

           select  fb.cost
                , fb.adjusted_cost
                , fb.original_cost
                , fb.salvage_value
                , fb.life_in_months
                , fb.rate_adjustment_factor
                , fb.period_counter_fully_reserved
                , fb.adjusted_recoverable_cost
                , fb.recoverable_cost
                , fb.date_placed_in_service
                , fb.deprn_start_date
                , fb.depreciate_flag
                , fbc.last_period_counter
                , fbc.gl_posting_allowed_flag
                , fds.ytd_deprn
                , fds.deprn_reserve
                , fds.deprn_amount
                , fadd.asset_category_id
          from  fa_books fb
                , fa_book_controls fbc
                , fa_deprn_summary fds
                , fa_additions fadd
          where  fb.book_type_code = fbc.book_type_code
            and  fb.book_type_code = fp_book_type_code
            and  fadd.asset_id           = fp_asset_id
            and  fb.asset_id             = fp_asset_id
            and  fb.transaction_header_id_out is null
            and  fds.book_type_code      = fp_book_type_code
            and  fds.asset_id            = fp_asset_id
            and  fds.period_counter      = ( select max(period_counter)
                                             from   fa_deprn_summary
                                             where  asset_id = fp_asset_id
                                              and   book_type_code = fp_book_type_code
                                              and   period_counter <= fp_period_counter
                                            )
            -- this should fail with asset with deprn = no, need to verify this later on...
            ;