DBA Data[Home] [Help]

APPS.IGI_IAC_DET_BALANCES_PKG SQL Statements

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

Line: 16

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_adjustment_id                     IN     NUMBER,
    x_asset_id                          IN     NUMBER,
    x_distribution_id                   IN     NUMBER,
    x_book_type_code                    IN     VARCHAR2,
    x_period_counter                    IN     NUMBER,
    x_adjustment_cost                   IN     NUMBER,
    x_net_book_value                    IN     NUMBER,
    x_reval_reserve_cost                IN     NUMBER,
    x_reval_reserve_backlog             IN     NUMBER,
    x_reval_reserve_gen_fund            IN     NUMBER,
    x_reval_reserve_net                 IN     NUMBER,
    x_operating_acct_cost               IN     NUMBER,
    x_operating_acct_backlog            IN     NUMBER,
    x_operating_acct_net                IN     NUMBER,
    x_operating_acct_ytd                IN     NUMBER,
    x_deprn_period                      IN     NUMBER,
    x_deprn_ytd                         IN     NUMBER,
    x_deprn_reserve                     IN     NUMBER,
    x_deprn_reserve_backlog             IN     NUMBER,
    x_general_fund_per                  IN     NUMBER,

    x_general_fund_acc                  IN     NUMBER,
    x_last_reval_date                   IN     DATE,
    x_current_reval_factor              IN     NUMBER,
    x_cumulative_reval_factor           IN     NUMBER,
    x_active_flag                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 14-APR-2002
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */


    x_last_update_date           DATE;
Line: 58

    x_last_updated_by            NUMBER;
Line: 59

    x_last_update_login          NUMBER;
Line: 63

    l_path 			 VARCHAR2(100) := g_path||'insert_row';
Line: 67

      SELECT   rowid
      FROM     igi_iac_det_balances
      WHERE    adjustment_id = x_adjustment_id
      AND      asset_id      = x_asset_id
      AND      distribution_id = x_distribution_id
      AND      book_type_code  = x_book_type_code
      AND      period_counter  = x_period_counter;
Line: 79

      x_last_update_date := SYSDATE;
Line: 85

      x_last_updated_by := fnd_global.user_id;
Line: 86

      IF (x_last_updated_by IS NULL) THEN

         x_last_updated_by := -1;
Line: 90

          x_last_update_login := fnd_global.login_id;
Line: 91

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 101

    INSERT INTO igi_iac_det_balances (
      adjustment_id,
      asset_id,
      distribution_id,
      book_type_code,
      period_counter,
      adjustment_cost,
      net_book_value,
      reval_reserve_cost,
      reval_reserve_backlog,
      reval_reserve_gen_fund,

      reval_reserve_net,
      operating_acct_cost,
      operating_acct_backlog,
      operating_acct_net,
      operating_acct_ytd,
      deprn_period,
      deprn_ytd,
      deprn_reserve,
      deprn_reserve_backlog,
      general_fund_per,
      general_fund_acc,
      last_reval_date,
      current_reval_factor,
      cumulative_reval_factor,
      active_flag,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      x_adjustment_id,
      x_asset_id,

      x_distribution_id,
      x_book_type_code,
      x_period_counter,
      x_adjustment_cost,
      x_net_book_value,
      x_reval_reserve_cost,
      x_reval_reserve_backlog,
      x_reval_reserve_gen_fund,
      x_reval_reserve_net,
      x_operating_acct_cost,
      x_operating_acct_backlog,
      x_operating_acct_net,
      x_operating_acct_ytd,
      x_deprn_period,
      x_deprn_ytd,
      x_deprn_reserve,
      x_deprn_reserve_backlog,
      x_general_fund_per,
      x_general_fund_acc,
      x_last_reval_date,
      x_current_reval_factor,
      x_cumulative_reval_factor,
      x_active_flag,

      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 176

  END insert_row;
Line: 179

  PROCEDURE Update_Row (
    x_adjustment_id                     IN     NUMBER,
    x_asset_id                          IN     NUMBER,
    x_distribution_id                   IN     NUMBER,
    x_book_type_code                    IN     VARCHAR2,
    x_period_counter                    IN     NUMBER,
    x_adjustment_cost                   IN     NUMBER,
    x_net_book_value                    IN     NUMBER,
    x_reval_reserve_cost                IN     NUMBER,
    x_reval_reserve_backlog             IN     NUMBER,
    x_reval_reserve_gen_fund            IN     NUMBER,
    x_reval_reserve_net                 IN     NUMBER,
    x_operating_acct_cost               IN     NUMBER,
    x_operating_acct_backlog            IN     NUMBER,
    x_operating_acct_net                IN     NUMBER,
    x_operating_acct_ytd                IN     NUMBER,
    x_deprn_period                      IN     NUMBER,
    x_deprn_ytd                         IN     NUMBER,
    x_deprn_reserve                     IN     NUMBER,
    x_deprn_reserve_backlog             IN     NUMBER,
    x_general_fund_per                  IN     NUMBER,
    x_general_fund_acc                  IN     NUMBER,
    x_last_reval_date                   IN     DATE,
    x_current_reval_factor              IN     NUMBER,
    x_cumulative_reval_factor           IN     NUMBER,
    x_active_flag                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS

  /*
  ||  Created By :
  ||  Created On : 14-APR-2002
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 218

    x_last_updated_by            NUMBER;
Line: 219

    x_last_update_login          NUMBER;
Line: 221

    l_path 			 VARCHAR2(100) := g_path||'Update_Row';
Line: 224

      x_last_update_date := SYSDATE;
Line: 226

        x_last_updated_by := fnd_global.user_id;
Line: 228

      IF x_last_updated_by IS NULL THEN

        x_last_updated_by := -1;
Line: 232

        x_last_update_login := fnd_global.login_id;
Line: 233

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 242

    UPDATE igi_iac_det_balances SET
      adjustment_cost           = x_adjustment_cost,
      net_book_value            = x_net_book_value,
      reval_reserve_cost        = x_reval_reserve_cost,
      reval_reserve_backlog     = x_reval_reserve_backlog,
      reval_reserve_gen_fund    = x_reval_reserve_gen_fund,
      reval_reserve_net         = x_reval_reserve_net,
      operating_acct_cost       = x_operating_acct_cost,
      operating_acct_backlog    = x_operating_acct_backlog,
      operating_acct_net        = x_operating_acct_net,
      operating_acct_ytd        = x_operating_acct_ytd,
      deprn_period              = x_deprn_period,
      deprn_ytd                 = x_deprn_ytd,
      deprn_reserve             = x_deprn_reserve,
      deprn_reserve_backlog     = x_deprn_reserve_backlog,
      general_fund_per          = x_general_fund_per,
      general_fund_acc          = x_general_fund_acc,
      last_reval_date           = x_last_reval_date,
      current_reval_factor      = x_current_reval_factor,
      cumulative_reval_factor   = x_cumulative_reval_factor,
      active_flag               = x_active_flag,
      last_update_date          = x_last_update_date,
      last_updated_by           = x_last_updated_by,
      last_update_login         = x_last_update_login
    WHERE    adjustment_id = x_adjustment_id
    AND      asset_id      = x_asset_id
    AND      distribution_id = x_distribution_id
    AND      book_type_code  = x_book_type_code
    AND      period_counter  = x_period_counter;
Line: 273

  END Update_Row;
Line: 276

  PROCEDURE delete_row (
    x_adjustment_id                     IN     NUMBER,

    x_asset_id                          IN     NUMBER,
    x_distribution_id                   IN     NUMBER,
    x_book_type_code                    IN     VARCHAR2,
    x_period_counter                    IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 14-APR-2002
  ||  Purpose : Handles the DELETE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    DELETE FROM igi_iac_det_balances
    WHERE    adjustment_id = x_adjustment_id
    AND      asset_id      = x_asset_id
    AND      distribution_id = x_distribution_id
    AND      book_type_code  = x_book_type_code
    AND      period_counter  = x_period_counter;
Line: 309

  END delete_row;