DBA Data[Home] [Help]

APPS.IGS_FI_PP_TEMPLATES_PKG SQL Statements

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

Line: 24

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-2003
  ||  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     igs_fi_pp_templates
      WHERE    rowid = x_rowid;
Line: 51

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 82

    new_references.last_updated_by                   := x_last_updated_by;
Line: 83

    new_references.last_update_login                 := x_last_update_login;
Line: 107

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

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

      SELECT   rowid
      FROM     igs_fi_pp_templates
      WHERE    payment_plan_name = x_payment_plan_name;
Line: 173

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-2003
  ||  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
  ||  smvk           06-Sep-2003     l_rowid is initialized to null.
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_payment_plan_name,
      x_payment_plan_desc,
      x_closed_flag,
      x_installment_period_code,
      x_due_day_of_month,
      x_due_end_of_month_flag,
      x_due_cutoff_day,
      x_processing_fee_type,
      x_processing_fee_amt,
      x_installment_method_flag,
      x_base_amt,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 211

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.payment_plan_name
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 222

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.payment_plan_name
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 241

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_payment_plan_name                 IN     VARCHAR2,
    x_payment_plan_desc                 IN     VARCHAR2,
    x_closed_flag                       IN     VARCHAR2,
    x_installment_period_code           IN     VARCHAR2,
    x_due_day_of_month                  IN     NUMBER,
    x_due_end_of_month_flag             IN     VARCHAR2,
    x_due_cutoff_day                    IN     NUMBER,
    x_processing_fee_type               IN     VARCHAR2,
    x_processing_fee_amt                IN     NUMBER,
    x_installment_method_flag           IN     VARCHAR2,
    x_base_amt                          IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-2003
  ||  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: 267

    x_last_updated_by            NUMBER;
Line: 268

    x_last_update_login          NUMBER;
Line: 272

    x_last_update_date := SYSDATE;
Line: 274

      x_last_updated_by := 1;
Line: 275

      x_last_update_login := 0;
Line: 277

      x_last_updated_by := fnd_global.user_id;
Line: 278

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

      x_last_update_login := fnd_global.login_id;
Line: 282

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_PP_TEMPLATES_PKG.INSERT_ROW');
Line: 293

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_payment_plan_name                 => x_payment_plan_name,
      x_payment_plan_desc                 => x_payment_plan_desc,
      x_closed_flag                       => x_closed_flag,
      x_installment_period_code           => x_installment_period_code,
      x_due_day_of_month                  => x_due_day_of_month,
      x_due_end_of_month_flag             => x_due_end_of_month_flag,
      x_due_cutoff_day                    => x_due_cutoff_day,
      x_processing_fee_type               => x_processing_fee_type,
      x_processing_fee_amt                => x_processing_fee_amt,
      x_installment_method_flag           => x_installment_method_flag,
      x_base_amt                          => x_base_amt,
      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: 313

    INSERT INTO igs_fi_pp_templates (
      payment_plan_name,
      payment_plan_desc,
      closed_flag,
      installment_period_code,
      due_day_of_month,
      due_end_of_month_flag,
      due_cutoff_day,
      processing_fee_type,
      processing_fee_amt,
      installment_method_flag,
      base_amt,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.payment_plan_name,
      new_references.payment_plan_desc,
      new_references.closed_flag,
      new_references.installment_period_code,
      new_references.due_day_of_month,
      new_references.due_end_of_month_flag,
      new_references.due_cutoff_day,
      new_references.processing_fee_type,
      new_references.processing_fee_amt,
      new_references.installment_method_flag,
      new_references.base_amt,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID INTO x_rowid;
Line: 349

  END insert_row;
Line: 376

      SELECT
        payment_plan_desc,
        closed_flag,
        installment_period_code,
        due_day_of_month,
        due_end_of_month_flag,
        due_cutoff_day,
        processing_fee_type,
        processing_fee_amt,
        installment_method_flag,
        base_amt
      FROM  igs_fi_pp_templates
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 398

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_payment_plan_name                 IN     VARCHAR2,
    x_payment_plan_desc                 IN     VARCHAR2,
    x_closed_flag                       IN     VARCHAR2,
    x_installment_period_code           IN     VARCHAR2,
    x_due_day_of_month                  IN     NUMBER,
    x_due_end_of_month_flag             IN     VARCHAR2,
    x_due_cutoff_day                    IN     NUMBER,
    x_processing_fee_type               IN     VARCHAR2,
    x_processing_fee_amt                IN     NUMBER,
    x_installment_method_flag           IN     VARCHAR2,
    x_base_amt                          IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : smvk
  ||  Created On : 24-AUG-2003
  ||  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: 455

    x_last_updated_by            NUMBER;
Line: 456

    x_last_update_login          NUMBER;
Line: 460

    x_last_update_date := SYSDATE;
Line: 462

      x_last_updated_by := 1;
Line: 463

      x_last_update_login := 0;
Line: 465

      x_last_updated_by := fnd_global.user_id;
Line: 466

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

      x_last_update_login := fnd_global.login_id;
Line: 470

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

      fnd_message.set_token ('ROUTINE', 'IGS_FI_PP_TEMPLATES_PKG.UPDATE_ROW');
Line: 481

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_payment_plan_name                 => x_payment_plan_name,
      x_payment_plan_desc                 => x_payment_plan_desc,
      x_closed_flag                       => x_closed_flag,
      x_installment_period_code           => x_installment_period_code,
      x_due_day_of_month                  => x_due_day_of_month,
      x_due_end_of_month_flag             => x_due_end_of_month_flag,
      x_due_cutoff_day                    => x_due_cutoff_day,
      x_processing_fee_type               => x_processing_fee_type,
      x_processing_fee_amt                => x_processing_fee_amt,
      x_installment_method_flag           => x_installment_method_flag,
      x_base_amt                          => x_base_amt,
      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: 501

    UPDATE igs_fi_pp_templates
      SET
        payment_plan_desc                 = new_references.payment_plan_desc,
        closed_flag                       = new_references.closed_flag,
        installment_period_code           = new_references.installment_period_code,
        due_day_of_month                  = new_references.due_day_of_month,
        due_end_of_month_flag             = new_references.due_end_of_month_flag,
        due_cutoff_day                    = new_references.due_cutoff_day,
        processing_fee_type               = new_references.processing_fee_type,
        processing_fee_amt                = new_references.processing_fee_amt,
        installment_method_flag           = new_references.installment_method_flag,
        base_amt                          = new_references.base_amt,
        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: 522

  END update_row;
Line: 543

  ||  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     igs_fi_pp_templates
      WHERE    payment_plan_name                 = x_payment_plan_name;
Line: 561

      insert_row (
        x_rowid,
        x_payment_plan_name,
        x_payment_plan_desc,
        x_closed_flag,
        x_installment_period_code,
        x_due_day_of_month,
        x_due_end_of_month_flag,
        x_due_cutoff_day,
        x_processing_fee_type,
        x_processing_fee_amt,
        x_installment_method_flag,
        x_base_amt,
        x_mode
      );
Line: 580

    update_row (
      x_rowid,
      x_payment_plan_name,
      x_payment_plan_desc,
      x_closed_flag,
      x_installment_period_code,
      x_due_day_of_month,
      x_due_end_of_month_flag,
      x_due_cutoff_day,
      x_processing_fee_type,
      x_processing_fee_amt,
      x_installment_method_flag,
      x_base_amt,
      x_mode
    );