DBA Data[Home] [Help]

APPS.GR_INV_ITEM_PROPERTIES_PKG SQL Statements

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

Line: 3

PROCEDURE Insert_Row
	   			 (p_commit             IN VARCHAR2,
				  p_called_by_form     IN VARCHAR2,
                                  p_organization_id    IN NUMBER,
                                  p_inventory_item_id  IN NUMBER,
				  p_sequence_number    IN NUMBER,
				  p_property_id        IN VARCHAR2,
				  p_label_code         IN VARCHAR2,
				  p_number_value       IN NUMBER,
				  p_alpha_value        IN VARCHAR2,
				  p_date_value         IN DATE,
				  p_created_by         IN NUMBER,
				  p_creation_date      IN DATE,
				  p_last_updated_by    IN NUMBER,
				  p_last_update_date   IN DATE,
				  p_last_update_login  IN NUMBER,
				  x_rowid             OUT NOCOPY VARCHAR2,
				  x_return_status     OUT NOCOPY VARCHAR2,
				  x_oracle_error      OUT NOCOPY NUMBER,
				  x_msg_data          OUT NOCOPY VARCHAR2)
	IS
/*   Alpha Variables */

L_RETURN_STATUS VARCHAR2(1) := 'S';
Line: 48

   SAVEPOINT Insert_Row;
Line: 84

   INSERT INTO gr_inv_item_properties
   		  	         (organization_id,
   		  	          inventory_item_id,
				  sequence_number,
				  property_id,
   		  	          label_code,
				  number_value,
				  alpha_value,
				  date_value,
				  created_by,
				  creation_date,
				  last_updated_by,
				  last_update_date,
				  last_update_login)
          VALUES
		                 (p_organization_id,
		                  p_inventory_item_id,
				  p_sequence_number,
				  p_property_id,
		                  p_label_code,
				  p_number_value,
				  p_alpha_value,
				  p_date_value,
				  p_created_by,
				  p_creation_date,
				  p_last_updated_by,
				  p_last_update_date,
				  p_last_update_login);
Line: 113

/*   Now get the row id of the inserted record */

   Check_Primary_Key
   	   	   		 (p_organization_id,
   	   	   		  p_inventory_item_id,
   	   	   		  p_label_code,
				  p_property_id,
				  'F',
				  l_rowid,
				  l_key_exists);
Line: 139

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 154

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 170

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 175

                           'GR_NO_RECORD_INSERTED');
Line: 186

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 202

END Insert_Row;
Line: 204

PROCEDURE Update_Row
	   			 (p_commit             IN VARCHAR2,
				  p_called_by_form     IN VARCHAR2,
				  p_rowid              IN VARCHAR2,
                                  p_organization_id    IN NUMBER,
                                  p_inventory_item_id  IN NUMBER,
				  p_sequence_number    IN NUMBER,
				  p_property_id        IN VARCHAR2,
				  p_label_code         IN VARCHAR2,
				  p_number_value       IN NUMBER,
				  p_alpha_value        IN VARCHAR2,
				  p_date_value         IN DATE,
				  p_created_by         IN NUMBER,
				  p_creation_date      IN DATE,
				  p_last_updated_by    IN NUMBER,
				  p_last_update_date   IN DATE,
				  p_last_update_login  IN NUMBER,
				  x_return_status     OUT NOCOPY VARCHAR2,
				  x_oracle_error      OUT NOCOPY NUMBER,
				  x_msg_data          OUT NOCOPY VARCHAR2)
   IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 246

   SAVEPOINT Update_Row;
Line: 272

	select count(*) into l_count from gr_inv_item_properties where rowid = p_rowid;
Line: 274

      UPDATE gr_inv_item_properties
	  SET	 organization_id                 = p_organization_id,
	         inventory_item_id				 = p_inventory_item_id,
	         sequence_number				 = p_sequence_number,
			 property_id					 = p_property_id,
	  		 label_code		 	 	 	 	 = p_label_code,
	  		 number_value					 = p_number_value,
			 alpha_value				 	 = p_alpha_value,
			 date_value					 	 = p_date_value,
                  -- Bug 4510201 Start
			 --created_by						 = p_created_by,
			 --creation_date					 = p_creation_date,
                  -- Bug 4510201 End
			 last_updated_by				 = p_last_updated_by,
			 last_update_date				 = p_last_update_date,
			 last_update_login				 = p_last_update_login
	  WHERE  rowid = p_rowid;
Line: 308

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 323

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 327

                           'GR_NO_RECORD_INSERTED');
Line: 338

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 353

END Update_Row;
Line: 369

				  p_last_updated_by    IN NUMBER,
				  p_last_update_date   IN DATE,
				  p_last_update_login  IN NUMBER,
				  x_return_status     OUT NOCOPY VARCHAR2,
				  x_oracle_error      OUT NOCOPY NUMBER,
				  x_msg_data          OUT NOCOPY VARCHAR2)
   IS

/*  Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 397

   SELECT	*
   FROM		gr_inv_item_properties
   WHERE	rowid = p_rowid
   FOR UPDATE NOWAIT;
Line: 473

PROCEDURE Delete_Row
	   			 (p_commit            IN VARCHAR2,
				  p_called_by_form    IN VARCHAR2,
				  p_rowid             IN VARCHAR2,
				  p_organization_id   IN NUMBER,
				  p_inventory_item_id IN NUMBER,
				  p_sequence_number   IN NUMBER,
				  p_property_id       IN VARCHAR2,
				  p_label_code        IN VARCHAR2,
				  p_number_value      IN NUMBER,
				  p_alpha_value       IN VARCHAR2,
				  p_date_value        IN DATE,
				  p_created_by        IN NUMBER,
				  p_creation_date     IN DATE,
				  p_last_updated_by   IN NUMBER,
				  p_last_update_date  IN DATE,
				  p_last_update_login IN NUMBER,
				  x_return_status    OUT NOCOPY VARCHAR2,
				  x_oracle_error     OUT NOCOPY NUMBER,
				  x_msg_data         OUT NOCOPY VARCHAR2)
   IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 516

   SAVEPOINT Delete_Row;
Line: 542

   DELETE FROM gr_inv_item_properties
   WHERE  	   rowid = p_rowid;
Line: 554

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 564

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 579

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 595

END Delete_Row;
Line: 597

PROCEDURE Delete_Rows
    (p_commit            IN VARCHAR2,
     p_called_by_form    IN VARCHAR2,
     p_delete_option     IN VARCHAR2,
     p_organization_id   IN NUMBER,
     p_inventory_item_id IN NUMBER,
     p_label_code        IN VARCHAR2,
     x_return_status    OUT NOCOPY VARCHAR2,
     x_oracle_error     OUT NOCOPY NUMBER,
     x_msg_data         OUT NOCOPY VARCHAR2)
  IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 620

NULL_DELETE_OPTION_ERROR	EXCEPTION;
Line: 628

   SAVEPOINT Delete_Rows;
Line: 634

**		p delete option has one of three values
**		'I' - Delete all rows for the specified item.
**		'L' - Delete all rows for the specified label.
**		'B' - Delete all rows using the item and label
**			  combination.
*/
   IF p_delete_option = 'I' THEN
      IF p_organization_id IS NULL AND p_inventory_item_id IS NULL THEN
	     l_msg_token := 'Organization ID' || ' Item Inventory Id';
Line: 643

	     RAISE Null_Delete_Option_Error;
Line: 647

         DELETE FROM  gr_inv_item_properties
         WHERE organization_id   = p_organization_id
		 AND   inventory_item_id = p_inventory_item_id;
Line: 651

   ELSIF p_delete_option = 'L' THEN
      IF p_label_code IS NULL THEN
	     l_msg_token := 'Label Code';
Line: 654

		 RAISE Null_Delete_Option_Error;
Line: 658

         DELETE FROM	gr_inv_item_properties
         WHERE			label_code = p_label_code;
Line: 661

   ELSIF p_delete_option = 'B' THEN
      IF (p_organization_id IS NULL AND p_inventory_item_id IS NULL)  OR
	     (p_label_code IS NULL) THEN
		 l_msg_token := 'Organization ID, Item or Label Code';
Line: 665

		 RAISE Null_Delete_Option_Error;
Line: 669

		 DELETE FROM	gr_inv_item_properties
		 WHERE	organization_id   = p_organization_id
		 AND    inventory_item_id = p_inventory_item_id
		 AND	label_code        = p_label_code;
Line: 682

   WHEN Null_Delete_Option_Error THEN
	  x_return_status := 'E';
Line: 697

      ROLLBACK TO SAVEPOINT Delete_Rows;
Line: 712

END Delete_Rows;
Line: 746

SELECT organization_id, inventory_item_id
FROM   mtl_system_items_b
WHERE  organization_id   = p_organization_id
AND    inventory_item_id = p_inventory_item_id;
Line: 918

   SELECT ip.rowid
   FROM	  gr_inv_item_properties ip
   WHERE  ip.organization_id   = p_organization_id
   AND    ip.inventory_item_id = p_inventory_item_id
   AND	  ip.label_code        = p_label_code
   AND	  ip.property_id       = p_property_id;