DBA Data[Home] [Help]

APPS.WMS_CONTAINER2_PUB SQL Statements

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

Line: 15

   select to_char(sysdate,'MM/DD/YYYY HH:MM:SS') INTO l_ts from dual;
Line: 52

   SELECT 'Check for empty LPN'
     FROM DUAL
     WHERE EXISTS
     (SELECT 'Child LPN'
      FROM WMS_LICENSE_PLATE_NUMBERS
      WHERE parent_lpn_id = p_lpn_id);
Line: 59

   SELECT 'Check for empty LPN'
     FROM DUAL
     WHERE EXISTS
     (SELECT 'Non serialized items'
      FROM WMS_LPN_CONTENTS
      WHERE parent_lpn_id = p_lpn_id);
Line: 66

   SELECT 'Check for empty LPN'
     FROM DUAL
     WHERE EXISTS
     (SELECT 'Serialized items'
      FROM MTL_SERIAL_NUMBERS
      WHERE lpn_id = p_lpn_id);
Line: 140

   DELETE FROM WMS_LICENSE_PLATE_NUMBERS
     WHERE lpn_id = p_lpn_id;
Line: 143

   /* Check if the LPN history of this should be deleted or not */
   IF (p_purge_history = 1) THEN
      -- If this value is other than 1, we will just assume that no
      -- LPN history records shall be purged
      DELETE FROM WMS_LPN_HISTORIES
	WHERE lpn_id = p_lpn_id
	OR parent_lpn_id = p_lpn_id;
Line: 156

      DELETE FROM wms_lpn_histories
	WHERE (lpn_id = p_lpn_id
	       OR parent_lpn_id = p_lpn_id)
	AND (SYSDATE - creation_date >= p_del_history_days_old);
Line: 231

   SELECT lpn_id, parent_lpn_id, inventory_item_id, organization_id,
        revision, lot_number, serial_number, cost_group_id
     FROM WMS_LICENSE_PLATE_NUMBERS
     WHERE Level <= p_explosion_level
     START WITH lpn_id = p_lpn_id
     CONNECT BY parent_lpn_id = PRIOR lpn_id;
Line: 240

   SELECT lpn_id, parent_lpn_id, inventory_item_id, organization_id,
		revision, lot_number, serial_number, cost_group_id
     FROM WMS_LICENSE_PLATE_NUMBERS
     START WITH lpn_id = p_lpn_id
     CONNECT BY parent_lpn_id = PRIOR lpn_id;
Line: 248

   SELECT parent_lpn_id, inventory_item_id, item_description,
		organization_id, revision, lot_number,
		serial_number, quantity, uom_code, cost_group_id
     FROM WMS_LPN_CONTENTS
     WHERE parent_lpn_id = l_current_lpn
     AND NVL(serial_summary_entry, 2) = 2;
Line: 257

   SELECT inventory_item_id, current_organization_id, lpn_id,
		revision, lot_number, serial_number, cost_group_id
     FROM MTL_SERIAL_NUMBERS
     WHERE lpn_id = l_current_lpn;
Line: 355

	    SELECT primary_uom_code
	      INTO l_temp_uom_code
	      FROM mtl_system_items
	      WHERE inventory_item_id = v_lpn_serial_content.inventory_item_id
	      AND organization_id = v_lpn_serial_content.current_organization_id;
Line: 428

	    SELECT primary_uom_code
	      INTO l_temp_uom_code
	      FROM mtl_system_items
	      WHERE inventory_item_id = v_lpn_serial_content.inventory_item_id
	      AND organization_id = v_lpn_serial_content.current_organization_id;
Line: 564

   UPDATE WMS_LICENSE_PLATE_NUMBERS
     SET parent_lpn_id = p_lpn_id_dest
     WHERE parent_lpn_id = p_lpn_id_source;
Line: 568

   UPDATE WMS_LPN_CONTENTS
     SET parent_lpn_id = p_lpn_id_dest
     WHERE parent_lpn_id = p_lpn_id_source;
Line: 572

   UPDATE MTL_SERIAL_NUMBERS
     SET lpn_id = p_lpn_id_dest
     WHERE lpn_id = p_lpn_id_source;
Line: 657

   SELECT max_load_quantity
	FROM WSH_CONTAINER_ITEMS
	WHERE master_organization_id = p_organization_id
	AND container_item_id = p_dest_cont_item_id
	AND load_item_id = p_source_item_id;
Line: 664

	SELECT container_item_id, max_load_quantity, preferred_flag
	FROM WSH_CONTAINER_ITEMS
	WHERE master_organization_id = p_organization_id
	AND load_item_id = p_source_item_id
	AND container_item_id IN
	(SELECT inventory_item_id
	 FROM MTL_SYSTEM_ITEMS
	 WHERE mtl_transactions_enabled_flag = 'Y'
	 AND container_item_flag = 'Y'
	 AND organization_id = p_organization_id);
Line: 819

		/* Select the most constraining value for l_max_load_quantity */
		IF (l_dest_cont_item.maximum_load_weight IS NOT NULL) THEN
			-- Check that the source item's unit weight is less than or
			-- equal to the destination container item's maximum load weight
			IF (l_temp_value <= l_dest_cont_item.maximum_load_weight) THEN
				IF (l_max_load_quantity > FLOOR (l_dest_cont_item.maximum_load_weight /
							  l_temp_value)) THEN
				   l_max_load_quantity := FLOOR (l_dest_cont_item.maximum_load_weight /
							  l_temp_value);
Line: 1009

l_SelectStmt         VARCHAR2(500);
Line: 1014

   SELECT *
     FROM WMS_LICENSE_PLATE_NUMBERS
     START WITH lpn_id = p_lpn_id
     CONNECT BY lpn_id = PRIOR parent_lpn_id;
Line: 1020

   SELECT *
     FROM WMS_LICENSE_PLATE_NUMBERS
     START WITH lpn_id = l_current_lpn
     CONNECT BY lpn_id = PRIOR parent_lpn_id;
Line: 1091

      l_SelectStmt := 'SELECT PARENT_LPN_ID FROM WMS_LPN_CONTENTS WHERE ';
Line: 1092

      l_SelectStmt := l_SelectStmt || 'inventory_item_id = ' ||
	p_inventory_item_id || ' AND ';
Line: 1095

	 l_SelectStmt := l_SelectStmt || 'revision = ' ||
	   p_revision || ' AND ';
Line: 1099

	 l_SelectStmt := l_SelectStmt || 'lot_number = ' ||
	   p_lot_number || ' AND ';
Line: 1103

	 l_SelectStmt := l_SelectStmt || 'serial_number = ' ||
	   p_serial_number || ' AND ';
Line: 1108

      l_SelectStmt := l_SelectStmt || '1 = 1';
Line: 1114

      DBMS_SQL.PARSE(l_CursorID, l_SelectStmt, DBMS_SQL.V7);
Line: 1162

	    IF (x_lpn_list.COUNT = 0) THEN  -- Insert first initial record
	       x_lpn_list(l_index_2) := l_temp_table(l_index);
Line: 1264

l_SelectStmt               VARCHAR2(500);
Line: 1279

   SELECT parent_lpn_id
     FROM WMS_LPN_CONTENTS
     WHERE parent_lpn_id = l_temp_lpn
     AND NVL(serial_summary_entry, 2) = 2;
Line: 1284

   SELECT parent_lpn_id
     FROM WMS_LICENSE_PLATE_NUMBERS
     WHERE parent_lpn_id = l_temp_lpn;
Line: 1327

   l_SelectStmt := 'SELECT a.lpn_id
     FROM WMS_LICENSE_PLATE_NUMBERS a, WMS_LPN_CONTENTS b WHERE ';
Line: 1331

      l_SelectStmt := l_SelectStmt || 'a.lpn_context = ' ||
	p_lpn_context || ' AND ';
Line: 1335

      l_SelectStmt := l_SelectStmt || 'b.inventory_item_id = ' ||
	p_content_item_id || ' AND ';
Line: 1339

      l_SelectStmt := l_SelectStmt || 'b.quantity <= ' ||
	p_max_content_item_qty || ' AND ';
Line: 1343

      l_SelectStmt := l_SelectStmt || 'a.organization_id = ' ||
	p_organization_id || ' AND ';
Line: 1347

      l_SelectStmt := l_SelectStmt || 'a.subinventory_code = ' ||
	p_subinventory || ' AND ';
Line: 1351

      l_SelectStmt := l_SelectStmt || 'a.locator_id = ' ||
	p_locator_id || ' AND ';
Line: 1355

      l_SelectStmt := l_SelectStmt || 'b.revision = ' ||
	p_revision || ' AND ';
Line: 1359

      l_SelectStmt := l_SelectStmt || 'b.lot_number = ' ||
	p_lot_number || ' AND ';
Line: 1363

	 l_SelectStmt := l_SelectStmt || 'b.serial_number = ' ||
	   p_serial_number || ' AND ';
Line: 1367

      l_SelectStmt := l_SelectStmt || 'a.inventory_item_id = ' ||
	p_container_item_id || ' AND ';
Line: 1372

   l_SelectStmt := l_SelectStmt || 'a.lpn_id = b.parent_lpn_id';
Line: 1378

   DBMS_SQL.PARSE(l_CursorID, l_SelectStmt, DBMS_SQL.V7);
Line: 1431

	       SELECT *
		 INTO l_temp_record
		 FROM WMS_LICENSE_PLATE_NUMBERS
		 WHERE lpn_id = l_temp_lpn;
Line: 1529

   SELECT lpn_id,
     lpn_context,
     subinventory_code,
     locator_id
     FROM wms_license_plate_numbers
    WHERE license_plate_number = p_drop_lpn
      AND organization_id      = p_organization_id;
Line: 1538

   SELECT wda.delivery_id
     FROM wsh_delivery_assignments        wda,
          wsh_delivery_details            wdd,
          mtl_material_transactions_temp  temp
    WHERE wda.delivery_detail_id  = wdd.delivery_detail_id
      AND wdd.move_order_line_id  = temp.move_order_line_id
      AND wdd.organization_id     = temp.organization_id
      AND temp.transfer_lpn_id    = p_pick_lpn_id
      AND temp.organization_id    = p_organization_id ;
Line: 1549

   SELECT wda.delivery_id
     FROM wsh_delivery_assignments        wda,
          wsh_delivery_details            wdd,
          wms_license_plate_numbers lpn
     WHERE wda.parent_delivery_detail_id = wdd.delivery_detail_id
      AND wdd.lpn_id                     = lpn.lpn_id
      AND lpn.outermost_lpn_id           = l_lpn_id
      AND wdd.organization_id            = p_organization_id ;
Line: 1603

   /*   UPDATE wms_license_plate_numbers
         SET lpn_context = WMS_Container_PUB.LPN_CONTEXT_INV
	   WHERE lpn_id = drop_lpn_rec.lpn_id;*/
Line: 1754

   SELECT lpn_id,
          lpn_context
     FROM wms_license_plate_numbers
    WHERE license_plate_number = p_drop_lpn
      AND organization_id      = p_organization_id;
Line: 1761

   SELECT lpn_id
     FROM WMS_LICENSE_PLATE_NUMBERS
    START WITH lpn_id        = l_lpn_id
  CONNECT BY   parent_lpn_id = PRIOR lpn_id;
Line: 1768

   SELECT 'x'
     FROM dual
    WHERE EXISTS (
                  SELECT 'x'
                    FROM wsh_delivery_details
                   WHERE lpn_id           = l_lpn_id
                     AND organization_id  = p_organization_id
                 );
Line: 1778

   SELECT wda.delivery_id
     FROM wsh_delivery_assignments        wda,
          wsh_delivery_details            wdd,
          mtl_material_transactions_temp  temp
    WHERE wda.delivery_detail_id  = wdd.delivery_detail_id
      AND wdd.move_order_line_id  = temp.move_order_line_id
      AND wdd.organization_id     = temp.organization_id
      AND temp.transfer_lpn_id    = p_pick_lpn_id
      AND temp.organization_id    = p_organization_id;
Line: 1789

   SELECT wda.delivery_id
     FROM wsh_delivery_assignments        wda,
          wsh_delivery_details            wdd
    WHERE wda.parent_delivery_detail_id = wdd.delivery_detail_id
      AND wdd.lpn_id                    = l_lpn_id
      AND wdd.organization_id           = p_organization_id;
Line: 1857

      UPDATE wms_license_plate_numbers
         SET lpn_context = WMS_Container_PUB.LPN_CONTEXT_INV
       WHERE lpn_id = drop_lpn_rec.lpn_id;
Line: 2091

  SELECT wda.delivery_id
  FROM wsh_delivery_assignments        wda,
  wsh_delivery_details            wdd,
  mtl_material_transactions_temp  temp
  WHERE wda.delivery_detail_id   = wdd.delivery_detail_id
  AND wdd.move_order_line_id  = temp.move_order_line_id
  AND wdd.organization_id     = temp.organization_id
  AND temp.transfer_lpn_id    = p_pick_lpn_id
  AND temp.organization_id    = p_organization_id;
Line: 2104

  SELECT wlpn.outermost_lpn_id
  FROM wsh_delivery_assignments        wda,
  wsh_delivery_details            wdd,
  wms_license_plate_numbers       wlpn
  WHERE  wda.delivery_id               = l_delivery_id_c
  AND wda.parent_delivery_detail_id = wdd.delivery_detail_id
  AND wdd.organization_id           = p_organization_id
    AND wdd.lpn_id                    = wlpn.lpn_id
  AND wlpn.subinventory_code        = l_drop_sub_c
  AND	wlpn.locator_id               = l_drop_loc_c
  AND wlpn.lpn_context              = 11
    ORDER BY wda.CREATION_DATE DESC ;
Line: 2147

     Select transfer_subinventory, transfer_to_location into l_drop_sub,
       l_drop_loc
  from mtl_material_transactions_temp
  where transfer_lpn_id    = p_pick_lpn_id
  AND organization_id    = p_organization_id;
Line: 2180

  SELECT license_plate_number INTO x_lpn_number FROM
    wms_license_plate_numbers WHERE lpn_id = l_lpn_id;