DBA Data[Home] [Help]

APPS.GR_INGRED_CONC_DETAILS_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_ingredient_item_id IN NUMBER,
				  p_source_item_id IN NUMBER,
				  p_level_hierarchy_code IN NUMBER,
				  p_work_concentration IN NUMBER,
				  p_uom IN VARCHAR2,
				  p_quantity 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: 43

   SAVEPOINT Insert_Row;
Line: 82

   INSERT INTO gr_ingredient_conc_details
   		  	 (organization_id,
			  inventory_item_id,
			  ingredient_item_id,
			  source_item_id,
			  level_hierarchy_code,
			  work_concentration,
			  uom,
			  quantity)
          VALUES
		         (p_organization_id,
			  p_inventory_item_id,
			  p_ingredient_item_id,
			  p_source_item_id,
			  p_level_hierarchy_code,
			  p_work_concentration,
			  p_uom,
			  p_quantity);
Line: 101

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

   Check_Primary_Key
   	   	   		 (p_organization_id,
				  p_inventory_item_id,
				  p_ingredient_item_id,
				  p_source_item_id,
				  'F',
				  l_rowid,
				  l_key_exists);
Line: 127

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 142

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 158

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 163

                           'GR_NO_RECORD_INSERTED');
Line: 174

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 190

END Insert_Row;
Line: 192

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_ingredient_item_id IN NUMBER,
				  p_source_item_id IN NUMBER,
				  p_level_hierarchy_code IN NUMBER,
				  p_work_concentration IN NUMBER,
				  p_uom IN VARCHAR2,
				  p_quantity 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: 228

   SAVEPOINT Update_Row;
Line: 252

      UPDATE gr_ingredient_conc_details
	  SET	 organization_id       = p_organization_id,
	         inventory_item_id     = p_inventory_item_id,
		 ingredient_item_id    = p_ingredient_item_id,
		 source_item_id        = p_source_item_id,
	  	 level_hierarchy_code  = p_level_hierarchy_code,
		 work_concentration    = p_work_concentration,
		 uom		       = p_uom,
		 quantity	       = p_quantity
	  WHERE  rowid = p_rowid;
Line: 276

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 291

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 295

                           'GR_NO_RECORD_INSERTED');
Line: 306

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 321

END Update_Row;
Line: 360

   SELECT	*
   FROM		gr_ingredient_conc_details
   WHERE	rowid = p_rowid
   FOR UPDATE NOWAIT;
Line: 435

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_ingredient_item_id IN NUMBER,
				  p_source_item_id IN NUMBER,
				  p_level_hierarchy_code IN NUMBER,
				  p_work_concentration IN NUMBER,
				  p_uom IN VARCHAR2,
				  p_quantity 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: 472

   SAVEPOINT Delete_Row;
Line: 498

   DELETE FROM gr_ingredient_conc_details
   WHERE  rowid = p_rowid;
Line: 510

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 520

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 535

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 551

END Delete_Row;
Line: 553

PROCEDURE Delete_Rows
	             (p_commit IN VARCHAR2,
				  p_called_by_form IN VARCHAR2,
                                  p_organization_id IN NUMBER,
				  p_inventory_item_id 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: 579

   SAVEPOINT Delete_Rows;
Line: 585

   DELETE FROM gr_ingredient_conc_details
   WHERE  organization_id = p_organization_id
   AND    inventory_item_id = p_inventory_item_id;
Line: 596

      ROLLBACK TO SAVEPOINT Delete_Rows;
Line: 611

END Delete_Rows;
Line: 755

   SELECT icd.rowid
   FROM	  gr_ingredient_conc_details icd
   WHERE  icd.organization_id    = p_organization_id
   AND    icd.inventory_item_id  = p_inventory_item_id
   AND	  icd.ingredient_item_id = p_ingredient_item_id
   AND	  icd.source_item_id     = p_source_item_id;