DBA Data[Home] [Help]

APPS.IGI_EXP_TUS_PKG SQL Statements

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

Line: 51

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 16-APR-2002
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     igi_exp_tus_all
      WHERE    rowid = x_rowid;
Line: 77

    IF ((cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT'))) THEN
      CLOSE cur_old_ref_values;
Line: 79

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 121

    IF (p_action = 'UPDATE') THEN
      new_references.creation_date                   := old_references.creation_date;
Line: 129

    new_references.last_update_date                  := x_last_update_date;
Line: 130

    new_references.last_updated_by                   := x_last_updated_by;
Line: 131

    new_references.last_update_login                 := x_last_update_login;
Line: 154

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 169

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 212

      SELECT   rowid
      FROM     igi_exp_tus_all
      WHERE    tu_id = x_tu_id
      FOR UPDATE NOWAIT;
Line: 247

      SELECT   rowid
      FROM     igi_exp_tus_all
      WHERE   ((apprv_profile_id = x_apprv_profile_id));
Line: 259

      fnd_message.set_name ('FND', 'FND-CANNOT DELETE MASTER');
Line: 286

      SELECT   rowid
      FROM     igi_exp_tus_all
      WHERE   ((tu_type_header_id = x_tu_type_header_id));
Line: 298

      fnd_message.set_name ('FND', 'FND-CANNOT DELETE MASTER');
Line: 346

    x_last_update_date                  IN     DATE        ,
    x_last_updated_by                   IN     NUMBER      ,
    x_last_update_login                 IN     NUMBER      ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 16-APR-2002
  ||  Purpose : Initialises the columns, Checks Constraints, Calls the
  ||            Trigger Handlers for the table, before any DML operation.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_tu_id,
      x_tu_type_header_id,
      x_tu_order_number,
      x_tu_legal_number,
      x_tu_description,
      x_tu_status,
      x_tu_currency_code,
      x_tu_amount,
      x_apprv_profile_id,
      x_next_approver_user_id,
      x_tu_fiscal_year,
      x_tu_by_user_id,
      x_tu_date,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 400

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.tu_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 415

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      check_parent_existance;
Line: 418

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.tu_id
           )
         ) THEN
        fnd_message.set_name('IGI','IGI_EXP_DUP_ROW');
Line: 437

  PROCEDURE insert_row (
    x_org_id                            IN     NUMBER,
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_tu_id                             IN OUT NOCOPY NUMBER,
    x_tu_type_header_id                 IN     NUMBER,
    x_tu_order_number                   IN     VARCHAR2,
    x_tu_legal_number                   IN     VARCHAR2,
    x_tu_description                    IN     VARCHAR2,
    x_tu_status                         IN     VARCHAR2,
    x_tu_currency_code                  IN     VARCHAR2,
    x_tu_amount                         IN     NUMBER,
    x_apprv_profile_id                  IN     NUMBER,
    x_next_approver_user_id             IN     NUMBER,
    x_tu_fiscal_year                    IN     NUMBER,
    x_tu_by_user_id                     IN     NUMBER,
    x_tu_date                           IN     DATE,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 16-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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igi_exp_tus_all
      WHERE    tu_id                             = x_tu_id;
Line: 484

    x_last_update_date           DATE;
Line: 485

    x_last_updated_by            NUMBER;
Line: 486

    x_last_update_login          NUMBER;
Line: 490

    x_last_update_date := SYSDATE;
Line: 492

      x_last_updated_by := 1;
Line: 493

      x_last_update_login := 0;
Line: 495

      x_last_updated_by := fnd_global.user_id;
Line: 496

      IF (x_last_updated_by IS NULL) THEN
        x_last_updated_by := -1;
Line: 499

      x_last_update_login := fnd_global.login_id;
Line: 500

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

          FND_LOG.MESSAGE (l_error_level , 'igi.plsql.igiexpzb.IGI_EXP_TUS_PKG.insert_row',FALSE);
Line: 513

    SELECT    igi_exp_tus_s1.NEXTVAL
    INTO      x_tu_id
    FROM      dual;
Line: 520

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_tu_id                             => x_tu_id,
      x_tu_type_header_id                 => x_tu_type_header_id,
      x_tu_order_number                   => x_tu_order_number,
      x_tu_legal_number                   => x_tu_legal_number,
      x_tu_description                    => x_tu_description,
      x_tu_status                         => x_tu_status,
      x_tu_currency_code                  => x_tu_currency_code,
      x_tu_amount                         => x_tu_amount,
      x_apprv_profile_id                  => x_apprv_profile_id,
      x_next_approver_user_id             => x_next_approver_user_id,
      x_tu_fiscal_year                    => x_tu_fiscal_year,
      x_tu_by_user_id                     => x_tu_by_user_id,
      x_tu_date                           => x_tu_date,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login
    );
Line: 558

    INSERT INTO igi_exp_tus_all (
      tu_id,
      tu_type_header_id,
      tu_order_number,
      tu_legal_number,
      tu_description,
      tu_status,
      tu_currency_code,
      tu_amount,
      apprv_profile_id,
      next_approver_user_id,
      tu_fiscal_year,
      tu_by_user_id,
      tu_date,
      org_id,
      attribute_category,
      attribute1,
      attribute2,
      attribute3,
      attribute4,
      attribute5,
      attribute6,
      attribute7,
      attribute8,
      attribute9,
      attribute10,
      attribute11,
      attribute12,
      attribute13,
      attribute14,
      attribute15,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.tu_id,
      new_references.tu_type_header_id,
      new_references.tu_order_number,
      new_references.tu_legal_number,
      new_references.tu_description,
      new_references.tu_status,
      new_references.tu_currency_code,
      new_references.tu_amount,
      new_references.apprv_profile_id,
      new_references.next_approver_user_id,
      new_references.tu_fiscal_year,
      new_references.tu_by_user_id,
      new_references.tu_date,
      new_references.org_id,
      new_references.attribute_category,
      new_references.attribute1,
      new_references.attribute2,
      new_references.attribute3,
      new_references.attribute4,
      new_references.attribute5,
      new_references.attribute6,
      new_references.attribute7,
      new_references.attribute8,
      new_references.attribute9,
      new_references.attribute10,
      new_references.attribute11,
      new_references.attribute12,
      new_references.attribute13,
      new_references.attribute14,
      new_references.attribute15,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 640

  END insert_row;
Line: 685

      SELECT
        tu_type_header_id,
        tu_order_number,
        tu_legal_number,
        tu_description,
        tu_status,
        tu_currency_code,
        tu_amount,
        apprv_profile_id,
        next_approver_user_id,
        tu_fiscal_year,
        tu_by_user_id,
        tu_date,
        attribute_category,
        attribute1,
        attribute2,
        attribute3,
        attribute4,
        attribute5,
        attribute6,
        attribute7,
        attribute8,
        attribute9,
        attribute10,
        attribute11,
        attribute12,
        attribute13,
        attribute14,
        attribute15
      FROM  igi_exp_tus_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 725

      fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
Line: 783

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_tu_id                             IN     NUMBER,
    x_tu_type_header_id                 IN     NUMBER,
    x_tu_order_number                   IN     VARCHAR2,
    x_tu_legal_number                   IN     VARCHAR2,
    x_tu_description                    IN     VARCHAR2,
    x_tu_status                         IN     VARCHAR2,
    x_tu_currency_code                  IN     VARCHAR2,
    x_tu_amount                         IN     NUMBER,
    x_apprv_profile_id                  IN     NUMBER,
    x_next_approver_user_id             IN     NUMBER,
    x_tu_fiscal_year                    IN     NUMBER,
    x_tu_by_user_id                     IN     NUMBER,
    x_tu_date                           IN     DATE,
    x_attribute_category                IN     VARCHAR2,
    x_attribute1                        IN     VARCHAR2,
    x_attribute2                        IN     VARCHAR2,
    x_attribute3                        IN     VARCHAR2,
    x_attribute4                        IN     VARCHAR2,
    x_attribute5                        IN     VARCHAR2,
    x_attribute6                        IN     VARCHAR2,
    x_attribute7                        IN     VARCHAR2,
    x_attribute8                        IN     VARCHAR2,
    x_attribute9                        IN     VARCHAR2,
    x_attribute10                       IN     VARCHAR2,
    x_attribute11                       IN     VARCHAR2,
    x_attribute12                       IN     VARCHAR2,
    x_attribute13                       IN     VARCHAR2,
    x_attribute14                       IN     VARCHAR2,
    x_attribute15                       IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 16-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: 825

    x_last_updated_by            NUMBER;
Line: 826

    x_last_update_login          NUMBER;
Line: 830

    x_last_update_date := SYSDATE;
Line: 832

      x_last_updated_by := 1;
Line: 833

      x_last_update_login := 0;
Line: 835

      x_last_updated_by := fnd_global.user_id;
Line: 836

      IF x_last_updated_by IS NULL THEN
        x_last_updated_by := -1;
Line: 839

      x_last_update_login := fnd_global.login_id;
Line: 840

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

          FND_LOG.MESSAGE (l_error_level , 'igi.plsql.igiexpzb.IGI_EXP_TUS_PKG.update_row',FALSE);
Line: 854

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_tu_id                             => x_tu_id,
      x_tu_type_header_id                 => x_tu_type_header_id,
      x_tu_order_number                   => x_tu_order_number,
      x_tu_legal_number                   => x_tu_legal_number,
      x_tu_description                    => x_tu_description,
      x_tu_status                         => x_tu_status,
      x_tu_currency_code                  => x_tu_currency_code,
      x_tu_amount                         => x_tu_amount,
      x_apprv_profile_id                  => x_apprv_profile_id,
      x_next_approver_user_id             => x_next_approver_user_id,
      x_tu_fiscal_year                    => x_tu_fiscal_year,
      x_tu_by_user_id                     => x_tu_by_user_id,
      x_tu_date                           => x_tu_date,
      x_attribute_category                => x_attribute_category,
      x_attribute1                        => x_attribute1,
      x_attribute2                        => x_attribute2,
      x_attribute3                        => x_attribute3,
      x_attribute4                        => x_attribute4,
      x_attribute5                        => x_attribute5,
      x_attribute6                        => x_attribute6,
      x_attribute7                        => x_attribute7,
      x_attribute8                        => x_attribute8,
      x_attribute9                        => x_attribute9,
      x_attribute10                       => x_attribute10,
      x_attribute11                       => x_attribute11,
      x_attribute12                       => x_attribute12,
      x_attribute13                       => x_attribute13,
      x_attribute14                       => x_attribute14,
      x_attribute15                       => x_attribute15,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login
    );
Line: 892

    UPDATE igi_exp_tus_all
      SET
        tu_type_header_id                 = new_references.tu_type_header_id,
        tu_order_number                   = new_references.tu_order_number,
        tu_legal_number                   = new_references.tu_legal_number,
        tu_description                    = new_references.tu_description,
        tu_status                         = new_references.tu_status,
        tu_currency_code                  = new_references.tu_currency_code,
        tu_amount                         = new_references.tu_amount,
        apprv_profile_id                  = new_references.apprv_profile_id,
        next_approver_user_id             = new_references.next_approver_user_id,
        tu_fiscal_year                    = new_references.tu_fiscal_year,
        tu_by_user_id                     = new_references.tu_by_user_id,
        tu_date                           = new_references.tu_date,
        attribute_category                = new_references.attribute_category,
        attribute1                        = new_references.attribute1,
        attribute2                        = new_references.attribute2,
        attribute3                        = new_references.attribute3,
        attribute4                        = new_references.attribute4,
        attribute5                        = new_references.attribute5,
        attribute6                        = new_references.attribute6,
        attribute7                        = new_references.attribute7,
        attribute8                        = new_references.attribute8,
        attribute9                        = new_references.attribute9,
        attribute10                       = new_references.attribute10,
        attribute11                       = new_references.attribute11,
        attribute12                       = new_references.attribute12,
        attribute13                       = new_references.attribute13,
        attribute14                       = new_references.attribute14,
        attribute15                       = new_references.attribute15,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login
      WHERE rowid = x_rowid;
Line: 931

  END update_row;
Line: 970

  ||  Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igi_exp_tus_all
      WHERE    tu_id                             = x_tu_id;
Line: 988

      insert_row (
        x_org_id,
        x_rowid,
        x_tu_id,
        x_tu_type_header_id,
        x_tu_order_number,
        x_tu_legal_number,
        x_tu_description,
        x_tu_status,
        x_tu_currency_code,
        x_tu_amount,
        x_apprv_profile_id,
        x_next_approver_user_id,
        x_tu_fiscal_year,
        x_tu_by_user_id,
        x_tu_date,
        x_attribute_category,
        x_attribute1,
        x_attribute2,
        x_attribute3,
        x_attribute4,
        x_attribute5,
        x_attribute6,
        x_attribute7,
        x_attribute8,
        x_attribute9,
        x_attribute10,
        x_attribute11,
        x_attribute12,
        x_attribute13,
        x_attribute14,
        x_attribute15,
        x_mode
      );
Line: 1026

    update_row (
      x_rowid,
      x_tu_id,
      x_tu_type_header_id,
      x_tu_order_number,
      x_tu_legal_number,
      x_tu_description,
      x_tu_status,
      x_tu_currency_code,
      x_tu_amount,
      x_apprv_profile_id,
      x_next_approver_user_id,
      x_tu_fiscal_year,
      x_tu_by_user_id,
      x_tu_date,
      x_attribute_category,
      x_attribute1,
      x_attribute2,
      x_attribute3,
      x_attribute4,
      x_attribute5,
      x_attribute6,
      x_attribute7,
      x_attribute8,
      x_attribute9,
      x_attribute10,
      x_attribute11,
      x_attribute12,
      x_attribute13,
      x_attribute14,
      x_attribute15,
      x_mode
    );
Line: 1063

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 16-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

    before_dml (
      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 1083

    DELETE FROM igi_exp_tus_all
    WHERE rowid = x_rowid;
Line: 1090

  END delete_row;
Line: 1096

    SELECT
 NVL ( TO_NUMBER ( DECODE ( SUBSTRB ( USERENV ('CLIENT_INFO' ), 1, 1  ), ' ', NULL,  SUBSTRB (USERENV ('CLIENT_INFO'),1,10)  )   ), NULL  ) org_id FROM dual;