DBA Data[Home] [Help]

APPS.GME_MOVE_ORDERS_PVT SQL Statements

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

Line: 13

/*  update_move_order_lines procedure modified material line and send to the inv api             */
/*  to process the move order line.
/* Swapna K 11-OCT-2007 Bug#6446877                                                              */
/* update_move_order_lines procedure is changed to fetch the alloc uom of the material           */
/* line and send to the inv api to process the move order line.                                  */

-- G. Muratore       16-OCT-2009  Bug 9028327
--    Add code to update primary and secondary if necessary.
--    PROCEDURE update_move_order_lines

-- S. Kommineni      17-OCT-2009  Bug 9028327/9030411
--    Add same code as previous fix to update UOM, primary and secondary if necessary.
--    PROCEDURE update_move_order_lines

-- G. Muratore       04-FEB-2010  Bug 9268209
--    Populate carton grouping id for wms orgs for real move orders only.
--    PROCEDURE create_move_order_lines

-- G. Muratore       31-AUG-2010  Bug 9941121
--    Populate grouping_rule_id, in move order record, with the value passed into the new parameter.
--    PROCEDURE create_move_order_hdr

-- G. Muratore       02-DEC-2011  Bug 13076579
--    The code was changed to pass back the total quantity already detailed not the overall quantity
--    of the move order. This procedure name is misleading. This only gets called by get_open_qty.
--    get_open_qty then uses the value returned to subtract it from the plan or wip plan.
--    PROCEDURE get_pending_move_order_qty
/*************************************************************************************************/
   PROCEDURE create_move_order_hdr (
      p_organization_id        IN              NUMBER
     ,p_move_order_type        IN              NUMBER
     ,p_grouping_rule_id       IN              NUMBER DEFAULT 0
     ,x_move_order_header_id   OUT NOCOPY      NUMBER
     ,x_return_status          OUT NOCOPY      VARCHAR2)
   IS
      l_api_name    CONSTANT VARCHAR2 (30)         := 'create_move_order_hdr';
Line: 71

      l_in_trohdr_rec.last_update_date := gme_common_pvt.g_timestamp;
Line: 72

      l_in_trohdr_rec.last_updated_by := gme_common_pvt.g_user_ident;
Line: 160

         SELECT mtl_transactions_enabled_flag, secondary_uom_code, segment1
           FROM mtl_system_items_b
          WHERE organization_id = v_org_id
            AND inventory_item_id = v_inventory_item_id;
Line: 168

         SELECT wms_enabled_flag
	 FROM   mtl_parameters
	 WHERE  organization_id = v_org_id;
Line: 218

               l_in_trolin_tbl (l_count).last_update_date :=
                                                   gme_common_pvt.g_timestamp;
Line: 220

               l_in_trolin_tbl (l_count).last_updated_by :=
                                                  gme_common_pvt.g_user_ident;
Line: 243

                     select WSH_DELIVERY_GROUP_S.nextval into
                     l_in_trolin_tbl (l_count).carton_grouping_id from dual;
Line: 396

         SELECT mtl_transactions_enabled_flag, concatenated_segments, primary_uom_code
           FROM mtl_system_items_kfv
          WHERE inventory_item_id = v_inventory_item_id
            AND organization_id = v_org_id;
Line: 592

         SELECT   l.*
             FROM mtl_txn_request_lines l, mtl_txn_request_headers h
            WHERE l.organization_id = p_organization_id
              AND transaction_source_type_id =
                                              gme_common_pvt.g_txn_source_type
              AND l.txn_source_id = p_batch_id
              AND l.txn_source_line_id = p_material_detail_id
              AND l.line_status NOT IN (5, 6)
              AND h.header_id = l.header_id
              AND h.move_order_type NOT IN
                     (gme_common_pvt.g_invis_move_order_type
                     ,inv_globals.g_move_order_put_away)
         ORDER BY l.header_id, l.line_id;
Line: 638

   PROCEDURE delete_move_order_lines (
      p_organization_id        IN              NUMBER
     ,p_batch_id               IN              NUMBER
     ,p_material_detail_id     IN              NUMBER
     ,p_invis_move_line_id     IN              NUMBER DEFAULT NULL
     ,p_invis_move_header_id   IN              NUMBER DEFAULT NULL
     ,x_return_status          OUT NOCOPY      VARCHAR2)
   IS
      l_api_name    CONSTANT VARCHAR2 (30)       := 'delete_move_order_lines';
Line: 661

      delete_mo_line_err     EXCEPTION;
Line: 662

      delete_mo_hdr_err      EXCEPTION;
Line: 667

         SELECT COUNT (1)
           FROM mtl_txn_request_lines
          WHERE header_id = v_header_id;
Line: 689

         l_trolin_tbl (i).operation := inv_globals.g_opr_delete;
Line: 696

         l_trolin_tbl (l_row).operation := inv_globals.g_opr_delete;
Line: 703

          gme_debug.put_line('No move order lines to delete');
Line: 726

         RAISE delete_mo_line_err;
Line: 743

                  l_trohdr_rec.operation := inv_globals.g_opr_delete;
Line: 766

                     RAISE delete_mo_hdr_err;
Line: 779

      WHEN delete_mo_line_err THEN
         IF (g_debug IS NOT NULL) THEN
            gme_debug.put_line
                    (   'inv_move_order_pub.process_move_order_line returns '
                     || l_return_status);
Line: 788

      WHEN delete_mo_hdr_err THEN
         IF (g_debug IS NOT NULL) THEN
            gme_debug.put_line
                         (   'inv_move_order_pub.process_move_order returns '
                          || l_return_status);
Line: 809

   END delete_move_order_lines;
Line: 812

   PROCEDURE update_move_order_lines (
      p_batch_id             IN              NUMBER
     ,p_material_detail_id   IN              NUMBER
     ,p_new_qty              IN              NUMBER := NULL
     ,p_new_date             IN              DATE := NULL
     ,p_invis_move_line_id   IN              NUMBER DEFAULT NULL
     ,x_return_status        OUT NOCOPY      VARCHAR2)
   IS
      l_api_name   CONSTANT VARCHAR2 (30)        := 'update_move_order_lines';
Line: 833

         SELECT   l.*
             FROM mtl_txn_request_lines l, mtl_txn_request_headers h
            WHERE transaction_source_type_id =
                                             gme_common_pvt.g_txn_source_type
              AND l.txn_source_id = p_batch_id
              AND l.txn_source_line_id = p_material_detail_id
              AND l.line_status NOT IN (5, 6)
              AND h.header_id = l.header_id
              AND h.move_order_type NOT IN
                     (gme_common_pvt.g_invis_move_order_type
                     ,inv_globals.g_move_order_put_away)
         ORDER BY l.creation_date DESC;
Line: 852

         SELECT primary_uom_code, secondary_uom_code, tracking_quantity_ind
           FROM mtl_system_items_b
          WHERE organization_id = v_org_id
            AND inventory_item_id = v_inventory_item_id;
Line: 867

           select dtl_um, inventory_item_id, organization_id
           from gme_material_details
           where material_detail_id = p_material_detail_id;
Line: 890

         l_trolin_tbl (1).operation := inv_globals.g_opr_update;
Line: 966

                                                     inv_globals.g_opr_delete;
Line: 973

                                                     inv_globals.g_opr_update;
Line: 1028

               l_trolin_tbl (1).operation := inv_globals.g_opr_update;
Line: 1085

                  l_trolin_tbl (l_cnt).operation := inv_globals.g_opr_update;
Line: 1141

   END update_move_order_lines;
Line: 1158

         SELECT 1
                     FROM mtl_txn_request_lines l, mtl_txn_request_headers h
                    WHERE l.txn_source_id = p_batch_id
                      AND l.txn_source_line_id = p_material_detail_id
                      AND l.organization_id = p_organization_id
                      AND l.line_status NOT IN (5, 6)
                      AND h.header_id = l.header_id
                      AND h.move_order_type = gme_common_pvt.g_move_order_type
                      AND ROWNUM = 1;
Line: 1221

         SELECT primary_uom_code, secondary_uom_code, concatenated_segments
           FROM mtl_system_items_kfv
          WHERE organization_id = v_org_id
            AND inventory_item_id = v_inventory_item_id;
Line: 1315

   PROCEDURE delete_batch_move_orders (
      p_organization_id   IN              NUMBER
     ,p_batch_id          IN              NUMBER
     ,p_delete_invis      IN              VARCHAR2 := 'F'
     ,x_return_status     OUT NOCOPY      VARCHAR2)
   IS
      l_api_name   CONSTANT VARCHAR2 (30) := 'delete_batch_move_orders';
Line: 1325

         SELECT h.batch_id, h.move_order_header_id, d.material_detail_id
               ,d.move_order_line_id
           FROM gme_batch_header h, gme_material_details d
          WHERE h.organization_id = p_organization_id
            AND h.batch_id = p_batch_id
            AND d.batch_id = h.batch_id
            AND d.line_type = gme_common_pvt.g_line_type_ing;
Line: 1357

         IF (p_delete_invis = fnd_api.g_true) THEN
            l_invis_line_id := l_lines_tbl (i).move_order_line_id;
Line: 1362

         delete_move_order_lines
                   (p_organization_id           => p_organization_id
                   ,p_batch_id                  => l_lines_tbl (i).batch_id
                   ,p_material_detail_id        => l_lines_tbl (i).material_detail_id
                   ,p_invis_move_line_id        => l_invis_line_id
                   ,p_invis_move_header_id      => l_invis_header_id
                   ,x_return_status             => l_return_status);
Line: 1393

   END delete_batch_move_orders;