DBA Data[Home] [Help]

APPS.IGS_FI_P_SA_NOTES_PKG SQL Statements

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

Line: 17

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  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)
  ||  vvutukur   20-Sep-2002    Enh#2564643.Removed references to subaccount_id.also removed DEFAULT
  ||                            clause from package body to avoid gscc warnings.
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGS_FI_P_SA_NOTES
      WHERE    rowid = x_rowid;
Line: 46

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 70

    new_references.last_updated_by                   := x_last_updated_by;
Line: 71

    new_references.last_update_login                 := x_last_update_login;
Line: 117

      SELECT   rowid
      FROM     hz_parties
      WHERE    party_id = new_references.party_id
      FOR UPDATE NOWAIT;
Line: 136

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

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

      SELECT   rowid
      FROM     igs_fi_p_sa_notes
      WHERE    party_sa_notes_id = x_party_sa_notes_id
      FOR UPDATE NOWAIT;
Line: 207

      SELECT   rowid
      FROM     igs_fi_p_sa_notes
      WHERE    party_id = x_party_id
      AND      effective_date = x_effective_date
      AND      reference_number = x_reference_number
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 246

      SELECT   rowid
      FROM     igs_fi_p_sa_notes
      WHERE   ((reference_number = x_reference_number));
Line: 277

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  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)
  ||  vvutukur    20-Sep-2002   Enh#2564643.Removed references to subaccount_id.Also removed DEFAULT
  ||                            clause from package body to avoid gscc warnings listed for File.Pkg.22.
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_party_sa_notes_id,
      x_party_id,
      x_effective_date,
      x_reference_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 309

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

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

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

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 343

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_party_sa_notes_id                 IN OUT NOCOPY NUMBER,
    x_party_id                          IN     NUMBER,
    x_effective_date                    IN     DATE,
    x_reference_number                  IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  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)
  ||  vvutukur   20-Sep-2002   Enh#2564643.Removed references to subaccount_id.also removed DEFAULT
  ||                           from package body to avoid gscc warnings.
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_fi_p_sa_notes
      WHERE    party_sa_notes_id                 = x_party_sa_notes_id;
Line: 367

    x_last_update_date           DATE;
Line: 368

    x_last_updated_by            NUMBER;
Line: 369

    x_last_update_login          NUMBER;
Line: 373

    x_last_update_date := SYSDATE;
Line: 375

      x_last_updated_by := 1;
Line: 376

      x_last_update_login := 0;
Line: 378

      x_last_updated_by := fnd_global.user_id;
Line: 379

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

      x_last_update_login := fnd_global.login_id;
Line: 383

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

    SELECT    igs_fi_p_sa_notes_s.NEXTVAL
    INTO      x_party_sa_notes_id
    FROM      dual;
Line: 397

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_party_sa_notes_id                 => x_party_sa_notes_id,
      x_party_id                          => x_party_id,
      x_effective_date                    => x_effective_date,
      x_reference_number                  => x_reference_number,
      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: 410

    INSERT INTO igs_fi_p_sa_notes (
      party_sa_notes_id,
      party_id,
      effective_date,
      reference_number,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.party_sa_notes_id,
      new_references.party_id,
      new_references.effective_date,
      new_references.reference_number,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 440

  END insert_row;
Line: 461

      SELECT
        party_id,
        effective_date,
        reference_number
      FROM  igs_fi_p_sa_notes
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 476

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

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_party_sa_notes_id                 IN     NUMBER,
    x_party_id                          IN     NUMBER,
    x_effective_date                    IN     DATE,
    x_reference_number                  IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  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)
  ||  vvutukur   20-Sep-2002   Enh#2564643.Removed references to subaccount_id.also removed DEFAULT
  ||                           clause to avoid gscc warnings listed.
  */
    x_last_update_date           DATE ;
Line: 521

    x_last_updated_by            NUMBER;
Line: 522

    x_last_update_login          NUMBER;
Line: 526

    x_last_update_date := SYSDATE;
Line: 528

      x_last_updated_by := 1;
Line: 529

      x_last_update_login := 0;
Line: 531

      x_last_updated_by := fnd_global.user_id;
Line: 532

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

      x_last_update_login := fnd_global.login_id;
Line: 536

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_party_sa_notes_id                 => x_party_sa_notes_id,
      x_party_id                          => x_party_id,
      x_effective_date                    => x_effective_date,
      x_reference_number                  => x_reference_number,
      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: 559

    UPDATE igs_fi_p_sa_notes
      SET
        party_id                          = new_references.party_id,
        effective_date                    = new_references.effective_date,
        reference_number                  = new_references.reference_number,
        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: 573

  END update_row;
Line: 587

  ||  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)
  ||  vvutukur   20-Sep-2002   Enh#2564643.Removed references to subaccount_id.Also removed DEFAULT
  ||                           clause to avoid gscc warnings.
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_fi_p_sa_notes
      WHERE    party_sa_notes_id                 = x_party_sa_notes_id;
Line: 607

      insert_row (
        x_rowid,
        x_party_sa_notes_id,
        x_party_id,
        x_effective_date,
        x_reference_number,
        x_mode
      );
Line: 619

    update_row (
      x_rowid,
      x_party_sa_notes_id,
      x_party_id,
      x_effective_date,
      x_reference_number,
      x_mode
    );
Line: 631

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : BDEVARAK
  ||  Created On : 26-APR-2001
  ||  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: 650

    DELETE FROM igs_fi_p_sa_notes
    WHERE rowid = x_rowid;
Line: 657

  END delete_row;