DBA Data[Home] [Help]

APPS.AP_CARDS_PKG SQL Statements

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

Line: 4

  PROCEDURE Insert_Row(X_Rowid                   IN OUT NOCOPY VARCHAR2,
                       X_Employee_Id                    NUMBER,
                       X_Card_Number                    VARCHAR2,
	               X_Card_Expiration_Date           DATE,
                       X_Card_Id                        IN OUT NOCOPY NUMBER,
                       X_Limit_Override_Amount          NUMBER,
                       X_Trx_Limit_Override_Amount      NUMBER,
                       X_Profile_Id                     NUMBER,
                       X_Cardmember_Name                VARCHAR2,
                       X_Department_Name                VARCHAR2,
                       X_Physical_Card_Flag             VARCHAR2,
                       X_Paper_Statement_Req_Flag       VARCHAR2,
                       X_Location_Id                    NUMBER,
   -- 		       X_Mothers_Maiden_Name            VARCHAR2,Commented for bug 2928064
                       X_Description                    VARCHAR2,
                       X_Org_Id                         NUMBER,
                       X_Inactive_Date                  DATE,
                       X_Last_Update_Date               DATE,
                       X_Last_Updated_By                NUMBER,
                       X_Last_Update_Login              NUMBER,
                       X_Creation_Date                  DATE,
                       X_Created_By                     NUMBER,
                       X_Attribute_Category             VARCHAR2,
                       X_Attribute1                     VARCHAR2,
                       X_Attribute2                     VARCHAR2,
                       X_Attribute3                     VARCHAR2,
                       X_Attribute4                     VARCHAR2,
                       X_Attribute5                     VARCHAR2,
                       X_Attribute6                     VARCHAR2,
                       X_Attribute7                     VARCHAR2,
                       X_Attribute8                     VARCHAR2,
                       X_Attribute9                     VARCHAR2,
                       X_Attribute10                    VARCHAR2,
                       X_Attribute11                    VARCHAR2,
                       X_Attribute12                    VARCHAR2,
                       X_Attribute13                    VARCHAR2,
                       X_Attribute14                    VARCHAR2,
                       X_Attribute15                    VARCHAR2,
                       X_Attribute16                    VARCHAR2,
                       X_Attribute17                    VARCHAR2,
                       X_Attribute18                    VARCHAR2,
                       X_Attribute19                    VARCHAR2,
                       X_Attribute20                    VARCHAR2,
                       X_Attribute21                    VARCHAR2,
                       X_Attribute22                    VARCHAR2,
                       X_Attribute23                    VARCHAR2,
                       X_Attribute24                    VARCHAR2,
                       X_Attribute25                    VARCHAR2,
                       X_Attribute26                    VARCHAR2,
                       X_Attribute27                    VARCHAR2,
                       X_Attribute28                    VARCHAR2,
                       X_Attribute29                    VARCHAR2,
                       X_Attribute30                    VARCHAR2,
                       X_CardProgramId                  NUMBER,
                       X_CardReferenceId                NUMBER,
                       X_paycardreferenceid             NUMBER
  ) IS
    CURSOR C IS SELECT rowid FROM ap_cards
                 WHERE card_id = X_Card_Id;
Line: 63

      CURSOR C2 IS SELECT ap_cards_s.nextval FROM sys.dual;
Line: 71

       INSERT INTO ap_cards(
              employee_id,
              card_number,
	          card_expiration_date,
              card_id,
              limit_override_amount,
              trx_limit_override_amount,
              profile_id,
              cardmember_name,
              department_name,
              physical_card_flag,
              paper_statement_req_flag,
              location_id,
   --         mothers_maiden_name, Commented for bug 2928064
              description,
              inactive_date,
              last_update_date,
              last_updated_by,
              last_update_login,
              creation_date,
              created_by,
              attribute_category,
              attribute1,
              attribute2,
              attribute3,
              attribute4,
              attribute5,
              attribute6,
              attribute7,
              attribute8,
              attribute9,
              attribute10,
              attribute11,
              attribute12,
              attribute13,
              attribute14,
              attribute15,
              attribute16,
              attribute17,
              attribute18,
              attribute19,
              attribute20,
              attribute21,
              attribute22,
              attribute23,
              attribute24,
              attribute25,
              attribute26,
              attribute27,
              attribute28,
              attribute29,
              attribute30,
              card_program_id,
              card_reference_id,
              org_id,
              paycard_reference_id
             ) VALUES (

              X_Employee_Id,
              X_Card_Number,
              X_Card_Expiration_Date,
              X_Card_Id,
              X_Limit_Override_Amount,
              X_Trx_Limit_Override_Amount,
              X_Profile_Id,
              X_Cardmember_Name,
              X_Department_Name,
              X_Physical_Card_Flag,
              X_Paper_Statement_Req_Flag,
              X_Location_Id,
  --          X_Mothers_Maiden_Name,Commented for bug 2928064
              X_Description,
              X_Inactive_Date,
              X_Last_Update_Date,
              X_Last_Updated_By,
              X_Last_Update_Login,
              X_Creation_Date,
              X_Created_By,
              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_Attribute16,
              X_Attribute17,
              X_Attribute18,
              X_Attribute19,
              X_Attribute20,
              X_Attribute21,
              X_Attribute22,
              X_Attribute23,
              X_Attribute24,
              X_Attribute25,
              X_Attribute26,
              X_Attribute27,
              X_Attribute28,
              X_Attribute29,
              X_Attribute30,
              X_CardProgramId,
              X_CardReferenceId,
              X_Org_Id,
              X_paycardreferenceid
             );
Line: 194

  END Insert_Row;
Line: 247

        SELECT *
        FROM   ap_cards
        WHERE  rowid = X_Rowid
        FOR UPDATE of Card_Id NOWAIT;
Line: 258

      FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_DELETED');
Line: 412

  PROCEDURE Update_Row(X_Rowid                          VARCHAR2,
                       X_Employee_Id                    NUMBER,
                       X_Card_Expiration_Date		DATE,
                       X_Card_Id                        NUMBER,
                       X_Limit_Override_Amount          NUMBER,
                       X_Trx_Limit_Override_Amount      NUMBER,
                       X_Profile_Id                     NUMBER,
                       X_Cardmember_Name                VARCHAR2,
                       X_Department_Name                VARCHAR2,
                       X_Physical_Card_Flag             VARCHAR2,
                       X_Paper_Statement_Req_Flag       VARCHAR2,
                       X_Location_Id                    NUMBER,
   --                  X_Mothers_Maiden_Name            VARCHAR2,Commented for bug 2928064
                       X_Description                    VARCHAR2,
                       X_Org_Id                         NUMBER,
                       X_Inactive_Date                  DATE,
                       X_Last_Update_Date               DATE,
                       X_Last_Updated_By                NUMBER,
                       X_Last_Update_Login              NUMBER,
                       X_Attribute_Category             VARCHAR2,
                       X_Attribute1                     VARCHAR2,
                       X_Attribute2                     VARCHAR2,
                       X_Attribute3                     VARCHAR2,
                       X_Attribute4                     VARCHAR2,
                       X_Attribute5                     VARCHAR2,
                       X_Attribute6                     VARCHAR2,
                       X_Attribute7                     VARCHAR2,
                       X_Attribute8                     VARCHAR2,
                       X_Attribute9                     VARCHAR2,
                       X_Attribute10                    VARCHAR2,
                       X_Attribute11                    VARCHAR2,
                       X_Attribute12                    VARCHAR2,
                       X_Attribute13                    VARCHAR2,
                       X_Attribute14                    VARCHAR2,
                       X_Attribute15                    VARCHAR2,
                       X_Attribute16                    VARCHAR2,
                       X_Attribute17                    VARCHAR2,
                       X_Attribute18                    VARCHAR2,
                       X_Attribute19                    VARCHAR2,
                       X_Attribute20                    VARCHAR2,
                       X_Attribute21                    VARCHAR2,
                       X_Attribute22                    VARCHAR2,
                       X_Attribute23                    VARCHAR2,
                       X_Attribute24                    VARCHAR2,
                       X_Attribute25                    VARCHAR2,
                       X_Attribute26                    VARCHAR2,
                       X_Attribute27                    VARCHAR2,
                       X_Attribute28                    VARCHAR2,
                       X_Attribute29                    VARCHAR2,
                       X_Attribute30                    VARCHAR2,
                       X_CardProgramId                  NUMBER


  ) IS
  BEGIN
    UPDATE ap_cards
    SET
       employee_id                     =     X_Employee_Id,
       card_expiration_date	           =     X_Card_Expiration_Date,
       card_id                         =     X_Card_Id,
       limit_override_amount           =     X_Limit_Override_Amount,
       trx_limit_override_amount       =     X_Trx_Limit_Override_Amount,
       profile_id                      =     X_Profile_Id,
       cardmember_name                 =     X_Cardmember_Name,
       department_name                 =     X_Department_Name,
       physical_card_flag              =     X_Physical_Card_Flag,
       paper_statement_req_flag        =     X_Paper_Statement_Req_Flag,
       location_id                     =     X_Location_Id,
--     mothers_maiden_name             =     X_Mothers_Maiden_Name,Commented for bug 2928064
       description                     =     X_Description,
       inactive_date                   =     X_Inactive_Date,
       last_update_date                =     X_Last_Update_Date,
       last_updated_by                 =     X_Last_Updated_By,
       last_update_login               =     X_Last_Update_Login,
       attribute_category              =     X_Attribute_Category,
       attribute1                      =     X_Attribute1,
       attribute2                      =     X_Attribute2,
       attribute3                      =     X_Attribute3,
       attribute4                      =     X_Attribute4,
       attribute5                      =     X_Attribute5,
       attribute6                      =     X_Attribute6,
       attribute7                      =     X_Attribute7,
       attribute8                      =     X_Attribute8,
       attribute9                      =     X_Attribute9,
       attribute10                     =     X_Attribute10,
       attribute11                     =     X_Attribute11,
       attribute12                     =     X_Attribute12,
       attribute13                     =     X_Attribute13,
       attribute14                     =     X_Attribute14,
       attribute15                     =     X_Attribute15,
       attribute16                     =     X_Attribute16,
       attribute17                     =     X_Attribute17,
       attribute18                     =     X_Attribute18,
       attribute19                     =     X_Attribute19,
       attribute20                     =     X_Attribute20,
       attribute21                     =     X_Attribute21,
       attribute22                     =     X_Attribute22,
       attribute23                     =     X_Attribute23,
       attribute24                     =     X_Attribute24,
       attribute25                     =     X_Attribute25,
       attribute26                     =     X_Attribute26,
       attribute27                     =     X_Attribute27,
       attribute28                     =     X_Attribute28,
       attribute29                     =     X_Attribute29,
       attribute30                     =     X_Attribute30,
       card_program_id                 =     X_CardProgramId
    WHERE rowid = X_Rowid;
Line: 523

  END Update_Row;
Line: 524

  PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
  BEGIN
    DELETE FROM ap_cards
    WHERE rowid = X_Rowid;
Line: 532

  END Delete_Row;
Line: 534

 PROCEDURE Supplier_Insert_Row( x_Card_Id NUMBER,
                               X_Vendor_id NUMBER,
                               X_Vendor_Site_id NUMBER,
                               X_Last_Updated_By NUMBER,
                               X_Last_Update_Login NUMBER,
                               X_Last_Update_Date DATE,
                               X_Created_By NUMBER,
                               X_Creation_Date DATE,
                               X_Org_Id NUMBER,
                               X_Rowid IN OUT NOCOPY VARCHAR2 ) IS

  CURSOR Fetch_Row_Id_Cur IS
    SELECT row_id
    FROM   Ap_Card_Suppliers_V
    WHERE  Card_Id = x_card_id
      AND  Vendor_Id = x_vendor_id
      AND  Vendor_Site_Id = x_vendor_site_id;
Line: 554

  INSERT INTO Ap_Card_Suppliers_V( Card_Id,
                                   Vendor_Id,
                                   Vendor_Site_Id,
                                   last_update_date,
                                   last_updated_by,
                                   last_update_login,
                                   creation_date,
                                   created_by,
                                   org_id)
  VALUES
  ( x_card_id,
    x_vendor_id,
    x_vendor_site_id,
    x_last_update_date,
    x_last_updated_by,
    x_last_update_login,
    x_creation_date,
    x_created_by,
    x_org_id );
Line: 582

END Supplier_Insert_Row;
Line: 584

PROCEDURE Supplier_Update_Row( x_Card_Id NUMBER,
                               X_Vendor_id NUMBER,
                               X_Vendor_Site_id NUMBER,
                               X_Last_Updated_By NUMBER,
                               X_Last_Update_Login NUMBER,
                               X_Last_Update_Date DATE,
                               X_Rowid VARCHAR2 ) IS
BEGIN

  UPDATE Ap_Card_Suppliers_V
  SET    Vendor_Site_Id = x_vendor_site_id,
         Last_Updated_By = x_last_updated_by,
         Last_Update_Login = x_last_update_login,
         Last_Update_Date = x_last_update_date
  WHERE  Row_Id = x_rowid;
Line: 604

END Supplier_Update_Row;
Line: 610

        SELECT *
        FROM   ap_card_suppliers_v
        WHERE  rowid = X_Rowid
        FOR UPDATE of Card_Id NOWAIT;
Line: 622

      FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_DELETED');
Line: 638

PROCEDURE Supplier_Delete_Row ( x_rowid IN VARCHAR2 ) IS
BEGIN
  DELETE FROM Ap_Card_Suppliers_V
  WHERE rowid = X_Rowid;
Line: 647

END Supplier_Delete_Row;