DBA Data[Home] [Help]

APPS.INV_MWB_QUERY_MANAGER SQL Statements

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

Line: 99

  FUNCTION build_insert(p_columns IN SelectColumnTabType) RETURN VARCHAR2 IS
     l_insert_str     inv_mwb_globals.long_str;
Line: 106

     l_procedure_name := 'BUILD_INSERT';
Line: 108

     l_insert_str := 'INSERT INTO mtl_mwb_gtmp (';
Line: 118

        l_insert_str := l_insert_str||l_temp;
Line: 122

     l_insert_str := l_insert_str || ' ) ';
Line: 125

     RETURN l_insert_str;
Line: 127

  END build_insert;
Line: 130

                 p_select_columns IN SelectColumnTabType
                ,p_from_clause    IN SQLClauseTabType
                ,p_where_clause   IN SQLClauseTabType
                ,p_group_clause   IN SQLClauseTabType
                   ) RETURN VARCHAR2 IS
     l_query_str      inv_mwb_globals.very_long_str;
Line: 148

     IF p_select_columns.COUNT > 0 THEN

        i := p_select_columns.FIRST;
Line: 153

           IF i = p_select_columns.FIRST THEN
              l_query_str := 'SELECT ';
Line: 155

              l_temp := p_select_columns(i).column_value||' '||p_select_columns(i).column_name;
Line: 157

              l_temp := ' , '||p_select_columns(i).column_value||' '||p_select_columns(i).column_name;
Line: 162

           i := p_select_columns.NEXT(i);
Line: 235

                          Select instr(upper(l_query_str),'MTL_SERIAL_NUMBERS',1)
                            into l_if_msn
                            from dual;
Line: 405

/*     delete from rtest1;
Line: 406

     insert into rtest1 values(l_query_str);
Line: 417

     post_query; -- Updates id to names.
Line: 445

          l_query_str := build_insert(g_onhand_select);
Line: 447

                                              g_onhand_select,
                                              g_onhand_from,
                                              g_onhand_where,
                                              g_onhand_group
                                              );
Line: 471

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                         'moqd.subinventory_code';
Line: 473

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                         'moqd.locator_id';
Line: 475

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.REVISION).column_value :=
                         'moqd.revision';
Line: 491

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 500

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 511

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 513

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 538

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 540

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 542

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LPN_ID).column_value :=
                      'moqd.lpn_id';
Line: 544

	              inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.CG_ID).column_value :=
                      'moqd.cost_group_id';
Line: 555

                      SELECT revision_qty_control_code,
                             lot_control_code,
                             serial_number_control_code
                      INTO   l_rev_control,
                             l_lot_control,
                             l_serial_control
                      FROM mtl_system_items
                      WHERE inventory_item_id = inv_mwb_globals.g_tree_item_id
                      AND organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 565

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.CG_ID).column_value :=
                      'moqd.cost_group_id';
Line: 567

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 569

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 571

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LPN_ID).column_value :=
                      'moqd.lpn_id';
Line: 596

                        inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.STATUS_ID).column_value :=
                        'moqd.status_id';
Line: 665

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.revision).column_value :=
                         'moqd.revision';
Line: 671

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                         'moqd.lot_number';
Line: 690

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 692

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 694

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 696

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.CG_ID).column_value :=
                      'moqd.cost_group_id';
Line: 698

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LPN_ID).column_value :=
                      'moqd.lpn_id';
Line: 700

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.REVISION).column_value :=
                      'moqd.revision';
Line: 727

                        inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.STATUS_ID).column_value :=
                        'moqd.status_id';
Line: 770

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 772

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 774

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LPN_ID).column_value :=
                      'moqd.lpn_id';
Line: 776

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.CG_ID).column_value :=
                      'moqd.cost_group_id';
Line: 789

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.REVISION).column_value :=
                      'moqd.revision';
Line: 791

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
                      'moqd.subinventory_code';
Line: 793

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
                      'moqd.locator_id';
Line: 795

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LPN_ID).column_value :=
                      'moqd.lpn_id';
Line: 797

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.CG_ID).column_value :=
                      'moqd.cost_group_id';
Line: 799

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 822

                        inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.STATUS_ID).column_value :=
                        'moqd.status_id';
Line: 867

                                              g_onhand_select,
                                              g_onhand_from,
                                              g_onhand_where,
                                              g_onhand_group
                                              );
Line: 889

                      SELECT revision_qty_control_code,
                             lot_control_code,
                             serial_number_control_code
                      INTO   l_rev_control,
                             l_lot_control,
                             l_serial_control
                      FROM   mtl_system_items
                      WHERE  inventory_item_id = inv_mwb_globals.g_tree_item_id
                      AND    organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 909

                              inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.revision).column_value :=
                              'moqd.revision';
Line: 914

                              inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                              'moqd.lot_number';
Line: 946

		      SELECT lot_control_code,
                             serial_number_control_code
                      INTO   l_lot_control,
                             l_serial_control
                      FROM   mtl_system_items
                      WHERE  inventory_item_id = inv_mwb_globals.g_tree_item_id
                      AND    organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 956

		      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.revision).column_value :=
                      'moqd.revision';
Line: 963

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                                       'moqd.lot_number';
Line: 985

                      SELECT revision_qty_control_code,
                             serial_number_control_code
                      INTO   l_rev_control,
                             l_serial_control
                      FROM   mtl_system_items
                      WHERE  organization_id = inv_mwb_globals.g_tree_organization_id
                      AND    inventory_item_id = inv_mwb_globals.g_tree_item_id;
Line: 996

                           inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.revision).column_value :=
                                          'moqd.revision';
Line: 1001

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 1024

                                              g_onhand_select,
                                              g_onhand_from,
                                              g_onhand_where,
                                              g_onhand_group
                                              );
Line: 1085

                                              g_onhand_select,
                                              g_onhand_from,
                                              g_onhand_where,
                                              g_onhand_group
                                              );
Line: 1110

                      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 1129

		      SELECT revision_qty_control_code,
                             serial_number_control_code
                      INTO   l_rev_control,
                             l_serial_control
                      FROM   mtl_system_items
                      WHERE  organization_id = inv_mwb_globals.g_tree_organization_id
                      AND    inventory_item_id = inv_mwb_globals.g_tree_item_id;
Line: 1139

		      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 1142

                         inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.revision).column_value :=
                         'moqd.revision';
Line: 1188

		      inv_mwb_query_manager.g_onhand_select(inv_mwb_query_manager.LOT).column_value :=
                      'moqd.lot_number';
Line: 1220

                                              g_onhand_select,
                                              g_onhand_from,
                                              g_onhand_where,
                                              g_onhand_group
                                              );
Line: 1238

                                                 g_onhand_1_select,
                                                 g_onhand_1_from,
                                                 g_onhand_1_where,
                                                 g_onhand_1_group
                                                 );
Line: 1251

             l_query_str := build_insert(g_inbound_select);
Line: 1253

                                                 g_inbound_select,
                                                 g_inbound_from,
                                                 g_inbound_where,
                                                 g_inbound_group
                                                 );
Line: 1264

                                                 g_inbound_1_select,
                                                 g_inbound_1_from,
                                                 g_inbound_1_where,
                                                 g_inbound_1_group
                                                 );
Line: 1277

             l_query_str := build_insert(g_receiving_select);
Line: 1279

                                                 g_receiving_select,
                                                 g_receiving_from,
                                                 g_receiving_where,
                                                 g_receiving_group
                                                 );
Line: 1291

                                                 g_receiving_1_select,
                                                 g_receiving_1_from,
                                                 g_receiving_1_where,
                                                 g_receiving_1_group
                                                 );
Line: 1301

        l_query_str := build_insert(g_union_select);
Line: 1303

                                            g_union_select,
                                            g_null_clause,
                                            g_null_clause,
                                            g_null_clause
                                            );
Line: 1313

                                               g_onhand_select,
                                               g_onhand_from,
                                               g_onhand_where,
                                               g_onhand_group
                                              );
Line: 1325

                                               g_inbound_select,
                                               g_inbound_from,
                                               g_inbound_where,
                                               g_inbound_group
                                              );
Line: 1340

                                               g_receiving_select,
                                               g_receiving_from,
                                               g_receiving_where,
                                               g_receiving_group
                                              );
Line: 1350

                                          g_null_select,
                                          g_null_clause,
                                          g_null_clause,
                                          g_union_group
                                          );
Line: 1364

     SELECT ROWID
           ,MATURITY_DATE
           ,HOLD_DATE
           ,SUPPLIER_LOT
           ,PARENT_LOT
           ,DOCUMENT_TYPE
           ,DOCUMENT_TYPE_ID
           ,DOCUMENT_NUMBER
           ,DOCUMENT_LINE_NUMBER
           ,RELEASE_NUMBER
           ,PO_RELEASE_ID
           ,RELEASE_LINE_NUMBER
           ,SHIPMENT_NUMBER
           ,SHIPMENT_HEADER_ID_INTERORG
           ,ASN
           ,SHIPMENT_HEADER_ID_ASN
           ,TRADING_PARTNER
           ,VENDOR_ID
           ,TRADING_PARTNER_SITE
           ,VENDOR_SITE_ID
           ,FROM_ORG
           ,FROM_ORG_ID
           ,TO_ORG
           ,TO_ORG_ID
           ,EXPECTED_RECEIPT_DATE
           ,SHIPPED_DATE
           ,OWNING_ORG
           ,OWNING_ORG_ID
           ,REQ_HEADER_ID
           ,OE_HEADER_ID
           ,PO_HEADER_ID
           ,ORIGINATION_DATE
           ,ACTION_CODE
           ,ACTION_DATE
           ,RETEST_DATE
           ,LOT
           ,SERIAL
           ,UNIT_NUMBER
           ,LOT_EXPIRY_DATE
           ,ORIGINATION_TYPE
           ,ORGANIZATION_CODE
           ,ORG_ID
           ,ITEM
           ,ITEM_DESCRIPTION
           ,ITEM_ID
           ,REVISION
           ,PRIMARY_UOM_CODE
           ,ONHAND
           ,RECEIVING
           ,INBOUND
           ,UNPACKED
           ,PACKED
           ,SECONDARY_UOM_CODE
           ,SECONDARY_ONHAND
           ,SECONDARY_RECEIVING
           ,SECONDARY_INBOUND
           ,SECONDARY_UNPACKED
           ,SECONDARY_PACKED
           ,SUBINVENTORY_CODE
           ,LOCATOR
           ,LOCATOR_ID
           ,LPN
           ,LPN_ID
           ,COST_GROUP
           ,CG_ID
           ,GRADE_CODE
           ,LOADED
           ,PLANNING_PARTY
           ,PLANNING_PARTY_ID
           ,OWNING_PARTY
           ,OWNING_PARTY_ID
	   ,OWNING_ORGANIZATION_ID
	   ,PLANNING_ORGANIZATION_ID
	   ,PLANNING_TP_TYPE
	   ,OWNING_TP_TYPE
	   ,PROJECT_ID
	   ,TASK_ID
           ,STATUS_ID -- Onhand Material Status Support
     FROM  MTL_MWB_GTMP;
Line: 1497

        SELECT meaning BULK COLLECT
        INTO   document_type_meaning
        FROM   mfg_lookups
        WHERE  lookup_type = 'MTL_DOCUMENT_TYPES'
        ORDER BY lookup_code;
Line: 1505

     SELECT meaning BULK COLLECT
       INTO lpn_context_meaning
       FROM mfg_lookups
      WHERE lookup_type = 'WMS_LPN_CONTEXT';
Line: 1518

            UPDATE MTL_MWB_GTMP
               SET organization_code = inv_mwb_globals.g_organization_code;
Line: 1527

                 SELECT organization_code
                   INTO l_to_org
                   FROM mtl_parameters
                  WHERE organization_id = rec.org_id;
Line: 1532

                 UPDATE MTL_MWB_GTMP
                    SET organization_code = l_to_org
                      , to_org = l_to_org
                  WHERE org_id = rec.org_id;
Line: 1545

             UPDATE MTL_MWB_GTMP
                SET SUBINVENTORY_CODE = inv_mwb_globals.g_subinventory_code;
Line: 1555

             UPDATE MTL_MWB_GTMP
                SET owning_org = (SELECT organization_code
                                  FROM mtl_parameters
                                 WHERE organization_id = rec.owning_org_id)
             WHERE owning_org_id = rec.owning_org_id;
Line: 1568

            SELECT organization_code
            INTO l_from_org_code
            FROM mtl_parameters
            WHERE organization_id = rec.from_org_id;
Line: 1573

            UPDATE MTL_MWB_GTMP
            SET from_org = l_from_org_code
            WHERE from_org_id = rec.from_org_id;
Line: 1579

            SELECT organization_code
            INTO l_to_org_code
            FROM mtl_parameters
            WHERE organization_id = rec.to_org_id;
Line: 1584

            UPDATE MTL_MWB_GTMP
            SET to_org = l_to_org_code
            WHERE to_org_id = rec.to_org_id;
Line: 1594

               UPDATE MTL_MWB_GTMP
               SET lpn = (SELECT license_plate_number
                           FROM wms_license_plate_numbers
                          WHERE lpn_id = rec.lpn_id)
               WHERE lpn_id = rec.lpn_id;
Line: 1600

               UPDATE MTL_MWB_GTMP
               SET loaded = (SELECT 1
                             FROM mtl_material_transactions_temp mmtt, wms_dispatched_tasks wdt
                            WHERE wdt.status = 4
                              AND wdt.task_type <> 2
                              AND wdt.transaction_temp_id = mmtt.transaction_temp_id
                              AND (mmtt.content_lpn_id = rec.lpn_id
                                   OR mmtt.lpn_id = rec.lpn_id)
							  AND rownum<2)                 -- Added for bug#13575081
               WHERE lpn_id = rec.lpn_id;
Line: 1613

                  UPDATE MTL_MWB_GTMP
                  SET LOADED = 1
                  WHERE lpn_id = rec.lpn_id;
Line: 1625

             UPDATE MTL_MWB_GTMP
                SET cost_group = inv_mwb_globals.g_cost_group;
Line: 1634

                UPDATE MTL_MWB_GTMP
                SET cost_group = (SELECT distinct cost_group
                            FROM cst_cost_groups
                           WHERE cost_group_id = rec.cg_id)
                WHERE cg_id = rec.cg_id;
Line: 1654

              UPDATE MTL_MWB_GTMP
               SET   (
                 ITEM
               , ITEM_DESCRIPTION
               , PRIMARY_UOM_CODE
               , SECONDARY_UOM_CODE
               ) = (
              SELECT
	         l_item_name									-- Bug 6350236
               , DESCRIPTION
               , PRIMARY_UOM_CODE
               , SECONDARY_UOM_CODE
              FROM mtl_system_items_vl --Bug 7691371
              WHERE inventory_item_id = rec.item_id
              AND organization_id = rec.org_id)
              WHERE item_id = rec.item_id
              AND org_id = rec.org_id;  --Bug 12633111
Line: 1682

             UPDATE MTL_MWB_GTMP
             SET locator = substr(inv_mwb_globals.g_locator_name, 1, 100),--Bug6595049: truncating the locator to 100 chars
                 locator_id = inv_mwb_globals.g_locator_id; -- Bug 7408480
Line: 1694

                  UPDATE MTL_MWB_GTMP
                  SET locator = substr((SELECT concatenated_segments
                                  FROM mtl_item_locations_kfv
                                 WHERE inventory_location_id = rec.locator_id and ORGANIZATION_ID = rec.org_id), 1, 100)  -- Bug 6595049: truncating the locator to 100 chars.  + Bug 15847437: Add ORGANIZATION_ID into where clause
                  WHERE locator_id = rec.locator_id;
Line: 1702

                 /* Bug # 9288054 : Added extra condition in where clause "locator IS NULL" in below update
		     to improve the performance. We should be upldating only those records
		     which were not already updated for locator field. FP of bug 9209775 */

                  UPDATE MTL_MWB_GTMP
                  SET LOCATOR = substr(INV_PROJECT.GET_LOCATOR(REC.LOCATOR_ID, REC.ORG_ID), 1, 100) -- Bug 6595049: truncating the locator to 100 chars
                  WHERE locator IS NULL AND
		  locator_id = rec.locator_id;
Line: 1711

                  SELECT project_id
                       , task_id
                  INTO l_project_id
                     , l_task_id
                  FROM mtl_item_locations_kfv
                  WHERE inventory_location_id = rec.locator_id
                  AND organization_id = rec.org_id;
Line: 1725

                     /* Added project_name in following update statements for bug 13465952 */
                  IF inv_mwb_globals.g_project_number IS NOT NULL THEN
                    UPDATE MTL_MWB_GTMP
                        SET project_number = inv_mwb_globals.g_project_number
                        , (project_id, project_name)= (SELECT project_id, project_name
                                                   FROM pjm_projects_all_ou_v  --Bug 14751814,also display closed project
                                                  WHERE project_number =  inv_mwb_globals.g_project_number);
Line: 1735

                        UPDATE MTL_MWB_GTMP
                        SET (project_number, project_name) = (SELECT project_number, project_name
                                                   FROM pjm_projects_all_ou_v  --Bug 14751814,also display closed project
                                                  WHERE project_id =  l_project_id) ,
                          project_id =  l_project_id
                         WHERE locator_id = rec.locator_id;
Line: 1746

		       UPDATE MTL_MWB_GTMP
                       SET task_number = inv_mwb_globals.g_task_number,
                        task_id = (SELECT task_id
                                                   FROM pjm_tasks_v
                                                  WHERE task_number =  inv_mwb_globals.g_task_number
                                                  AND project_number = inv_mwb_globals.g_project_number);
Line: 1755

                        UPDATE MTL_MWB_GTMP
                           SET task_number = (SELECT task_number
                                                FROM pjm_tasks_v
                                               WHERE task_id =  l_task_id) ,
                         task_id =  l_task_id
                         WHERE locator_id = rec.locator_id;
Line: 1776

               SELECT shipment_num, shipped_date
                 INTO l_shipment_num, l_shipped_date
                 FROM rcv_shipment_headers rsh
                WHERE rsh.shipment_header_id = rec.shipment_header_id_asn;
Line: 1781

               UPDATE mtl_mwb_gtmp
                  SET document_number = l_shipment_num
                    , shipped_date    = l_shipped_date
                    , document_type   = l_mtl_location
		              , document_type_id = 4
                WHERE shipment_header_id_asn = rec.shipment_header_id_asn;
Line: 1789

                  UPDATE mtl_mwb_gtmp
                     SET document_line_number = (SELECT line_num
                                                   FROM rcv_shipment_lines rsl
                                                  WHERE rsl.shipment_line_id = rec.document_line_number)
                   WHERE shipment_header_id_asn = rec.shipment_header_id_asn
                     AND document_line_number = rec.document_line_number;
Line: 1798

               UPDATE mtl_mwb_gtmp
                  SET document_number = (SELECT segment1
                                           FROM po_headers_trx_v pha -- CLM project, bug 9403291
                                          WHERE pha.po_header_id = rec.po_header_id)
                                              , document_type = l_mtl_location
                                              , document_type_id = 1
                WHERE po_header_id = rec.po_header_id;
Line: 1807

                  UPDATE mtl_mwb_gtmp
                     SET document_line_number = (SELECT to_char(line_num)
                                                   FROM po_lines_trx_v pla  -- CLM project, bug 9403291
                                                  WHERE pla.po_line_id = rec.document_line_number)
                   WHERE po_header_id = rec.po_header_id
                     AND document_line_number = rec.document_line_number;
Line: 1817

            UPDATE mtl_mwb_gtmp
               SET document_number = (SELECT segment1
                                        FROM po_req_headers_trx_v prha  -- CLM project, bug 9403291
                                       WHERE prha.requisition_header_id = rec.req_header_id)
                 , document_type = l_mtl_location
 	              , document_type_id = 2
             WHERE req_header_id = rec.req_header_id;
Line: 1826

               UPDATE mtl_mwb_gtmp
                  SET document_line_number = (SELECT line_num
                                                FROM po_req_lines_trx_v prla  -- CLM project,  bug 9403291
                                               WHERE prla.requisition_line_id = rec.document_line_number)
                WHERE req_header_id = rec.req_header_id
                  AND document_line_number = rec.document_line_number;
Line: 1836

            UPDATE mtl_mwb_gtmp
               SET document_number = (SELECT shipment_num
                                        FROM rcv_shipment_headers rsh
                                       WHERE rsh.shipment_header_id = rec.shipment_header_id_asn)
                 , document_type = l_mtl_location
		           , document_type_id = 3
             WHERE shipment_header_id_asn = rec.shipment_header_id_asn;
Line: 1845

               UPDATE mtl_mwb_gtmp
                  SET document_line_number = (SELECT line_num
                                                FROM rcv_shipment_lines rsl
                                               WHERE rsl.shipment_line_id = rec.document_line_number)
                WHERE shipment_header_id_asn = rec.shipment_header_id_asn
                  AND document_line_number = rec.document_line_number;
Line: 1860

            SELECT vendor_id
                 , vendor_site_id
              INTO l_vendor_id
                 , l_vendor_site_id
              FROM po_headers_all
             WHERE po_header_id = rec.po_header_id;
Line: 1867

            UPDATE mtl_mwb_gtmp
               SET vendor_id = l_vendor_id
                 , vendor_site_id = l_vendor_site_id
             WHERE po_header_id = rec.po_header_id;
Line: 1875

            UPDATE mtl_mwb_gtmp
               SET trading_partner = (SELECT vendor_name
                                        FROM po_vendors
                                       WHERE vendor_id = l_vendor_id)
             WHERE vendor_id = l_vendor_id;
Line: 1883

               UPDATE mtl_mwb_gtmp
                  SET trading_partner_site = (SELECT vendor_site_code
                                                FROM po_vendor_sites_all
                                               WHERE vendor_site_id = l_vendor_site_id)
                WHERE vendor_id = l_vendor_id
                  AND vendor_site_id = l_vendor_site_id;
Line: 1903

               UPDATE mtl_mwb_gtmp
                  SET LPN_CONTEXT = lpn_context_meaning(3)
                WHERE lpn_id = rec.lpn_id;
Line: 1909

               SELECT lpn_context
                 INTO l_lpn_context_id
                 FROM wms_license_plate_numbers
                WHERE lpn_id = rec.lpn_id;
Line: 1914

               UPDATE mtl_mwb_gtmp
                 SET LPN_CONTEXT = (SELECT meaning
                                      FROM mfg_lookups
                                     WHERE lookup_type = 'WMS_LPN_CONTEXT'
                 AND lookup_code = l_lpn_context_id)
               WHERE lpn_id = rec.lpn_id;
Line: 1924

            UPDATE mtl_mwb_gtmp
               SET document_type = document_type_meaning(4)
                 , document_type_id = 4
             WHERE shipment_header_id_asn = rec.shipment_header_id_asn;
Line: 1933

               UPDATE mtl_mwb_gtmp
                 SET planning_party = inv_mwb_globals.g_planning_party;
Line: 1936

               UPDATE mtl_mwb_gtmp
                 SET planning_party = (SELECT vendor_name || '-' || vendor_site_code
                                         FROM po_vendor_sites_all ps, po_vendors pv
                                        WHERE pv.vendor_id = ps.vendor_id
                                          AND ps.vendor_site_id = rec.planning_organization_id)
                 WHERE planning_organization_id = rec.planning_organization_id;
Line: 1949

               UPDATE mtl_mwb_gtmp
                  SET owning_party = inv_mwb_globals.g_owning_party;
Line: 1952

               UPDATE mtl_mwb_gtmp
               SET owning_party = (SELECT vendor_name || '-' || vendor_site_code
                                     FROM po_vendor_sites_all ps, po_vendors pv
                                    WHERE pv.vendor_id = ps.vendor_id
                                      AND ps.vendor_site_id = rec.owning_organization_id)
               WHERE owning_organization_id = rec.owning_organization_id;
Line: 1973

            UPDATE MTL_MWB_GTMP
            SET   (
              ORIGINATION_TYPE
            , ORIGINATION_DATE
            , ACTION_DATE
            , ACTION_CODE
            , RETEST_DATE
            , PARENT_LOT
            , MATURITY_DATE
            , HOLD_DATE
            , SUPPLIER_LOT
            , LOT_EXPIRY_DATE
             ) = (
               SELECT
                    mfg.meaning     /* Bug 5417041  */
                  , mln.origination_date
                  , mln.expiration_action_date
                  , mln.expiration_action_code
                  , mln.retest_date
                  , mln.parent_lot_number
                  , mln.maturity_date
                  , mln.hold_date
                  , mln.supplier_lot_number
                  , mln.expiration_date
               FROM
                    mtl_lot_numbers  mln
                  , mfg_lookups mfg
               WHERE lot_number = rec.lot
                 AND mln.inventory_item_id = rec.item_id
                 AND mln.organization_id = rec.org_id
                 AND mfg.lookup_type(+) = 'MTL_LOT_ORIGINATION_TYPE'
                 AND mfg.lookup_code(+) = mln.origination_type)
            WHERE item_id = rec.item_id
              AND lot = rec.lot;
Line: 2011

            UPDATE MTL_MWB_GTMP
               SET (
                   GRADE_CODE
                 , LOT_EXPIRY_DATE
                   ) = (
                        SELECT grade_code
                             , expiration_date
                          FROM mtl_lot_numbers
                         WHERE lot_number = rec.lot
                           AND inventory_item_id = rec.item_id
                           AND organization_id = rec.org_id
                       )
            WHERE LOT = rec.lot and ITEM_ID = rec.item_id;--Bug 9252616
Line: 2037

             SELECT tracking_quantity_ind
               INTO l_tracking_qty_ind
               FROM mtl_system_items
              WHERE organization_id = rec.org_id
                AND inventory_item_id = rec.item_id;
Line: 2044

                UPDATE mtl_mwb_gtmp
                SET SECONDARY_ONHAND = NULL
                  , SECONDARY_UNPACKED = NULL
                  , SECONDARY_PACKED = NULL
                  , SECONDARY_UOM_CODE = NULL
                WHERE org_id = rec.org_id
                AND item_id = rec.item_id;
Line: 2061

            UPDATE MTL_MWB_GTMP
               SET LOT = inv_mwb_globals.g_lot_from;
Line: 2066

            UPDATE MTL_MWB_GTMP
              SET SERIAL = inv_mwb_globals.g_serial_from;
Line: 2083

                select status_id
                into rec.status_id
                from mtl_serial_numbers
                where inventory_item_id = rec.item_id
                and serial_number = rec.SERIAL;
Line: 2091

                UPDATE MTL_MWB_GTMP
                SET   status_id = rec.status_id
                WHERE item_id = rec.item_id
                and serial = rec.SERIAL;
Line: 2101

              SELECT status_code
              INTO   l_status_name
              FROM   mtl_material_statuses_vl
              WHERE  status_id = rec.status_id;
Line: 2108

	      UPDATE MTL_MWB_GTMP
              SET   status = l_status_name
              WHERE status_id = rec.status_id;
Line: 2123

            SELECT DECODE(wms_enabled_flag, 'Y', 1, 0)
            INTO inv_mwb_globals.g_wms_enabled_flag
            FROM mtl_parameters
            WHERE organization_id = NVL(inv_mwb_globals.g_tree_organization_id, inv_mwb_globals.g_organization_id);
Line: 2136

               select nvl(sum(wlqv.quantity),0)
               into packed_loaded_qty
               from WMS_LOADED_QUANTITIES_V wlqv,wms_license_plate_numbers wlpn
               where wlqv.inventory_item_id = rec.item_id
               and wlqv.organization_id = rec.org_id
               and wlqv.containerized_flag = 1
               and (rec.subinventory_code is null or wlqv.subinventory_code = rec.subinventory_code)
               and (wlqv.subinventory_code = nvl(inv_mwb_globals.g_subinventory_code,wlqv.subinventory_code))
               and (rec.lot is null or wlqv.lot_number = rec.lot)
               and (nvl(wlqv.lot_number,'X@@X') >= nvl(inv_mwb_globals.g_lot_from,nvl(wlqv.lot_number,'X@@X')))
               and (nvl(wlqv.lot_number,'X@@X') <= nvl(inv_mwb_globals.g_lot_to,nvl(wlqv.lot_number,'X@@X')))
               and (rec.locator_id is null or wlqv.locator_id = rec.locator_id)
               and (nvl(wlqv.locator_id,-1) = nvl(inv_mwb_globals.g_locator_id,nvl(wlqv.locator_id,-1)))
               and (rec.revision is null or wlqv.revision = rec.revision)
               and (nvl(wlqv.revision,'X@@X') = nvl(inv_mwb_globals.g_revision,nvl(wlqv.revision,'X@@X')))
               and (rec.lpn_id is null or nvl(wlqv.content_lpn_id,wlqv.lpn_id) = rec.lpn_id)--bug13478665,content_lpn not lpn populated for the partial lpn picked
               and wlqv.lpn_id = wlpn.lpn_id
               and wlpn.license_plate_number >= nvl(inv_mwb_globals.g_lpn_from,wlpn.license_plate_number)
               and wlpn.license_plate_number <= nvl(inv_mwb_globals.g_lpn_to,wlpn.license_plate_number);
Line: 2156

               select nvl(sum(wlqv.quantity),0)
               into unpacked_loaded_qty
               from WMS_LOADED_QUANTITIES_V wlqv,wms_license_plate_numbers wlpn
               where wlqv.inventory_item_id = rec.item_id
               and wlqv.organization_id = rec.org_id
               and wlqv.containerized_flag = 2
               and (rec.subinventory_code is null or wlqv.subinventory_code = rec.subinventory_code)
               and (wlqv.subinventory_code = nvl(inv_mwb_globals.g_subinventory_code,wlqv.subinventory_code))
               and (rec.lot is null or wlqv.lot_number = rec.lot)
               and (nvl(wlqv.lot_number,'X@@X') >= nvl(inv_mwb_globals.g_lot_from,nvl(wlqv.lot_number,'X@@X')))
               and (nvl(wlqv.lot_number,'X@@X') <= nvl(inv_mwb_globals.g_lot_to,nvl(wlqv.lot_number,'X@@X')))
               and (rec.locator_id is null or wlqv.locator_id = rec.locator_id)
               and (nvl(wlqv.locator_id,-1) = nvl(inv_mwb_globals.g_locator_id,nvl(wlqv.locator_id,-1)))
               and (rec.revision is null or wlqv.revision = rec.revision)
               and (nvl(wlqv.revision,'X@@X') = nvl(inv_mwb_globals.g_revision,nvl(wlqv.revision,'X@@X')))
               and (rec.lpn_id is null or nvl(wlqv.content_lpn_id,wlqv.lpn_id) = rec.lpn_id)--bug13478665,content_lpn not lpn populated for the partial lpn picked
               and wlqv.lpn_id = wlpn.lpn_id
               and wlpn.license_plate_number >= nvl(inv_mwb_globals.g_lpn_from,wlpn.license_plate_number)
               and wlpn.license_plate_number <= nvl(inv_mwb_globals.g_lpn_to,wlpn.license_plate_number);
Line: 2177

               select nvl(sum(quantity),0)
               into packed_loaded_qty
               from WMS_LOADED_QUANTITIES_V
               where inventory_item_id = rec.item_id
               and organization_id = rec.org_id
               and containerized_flag = 1
               and (rec.subinventory_code is null or subinventory_code = rec.subinventory_code)
               and (subinventory_code = nvl(inv_mwb_globals.g_subinventory_code,subinventory_code))
               and (rec.lot is null or lot_number = rec.lot)
               and (nvl(lot_number,'X@@X') >= nvl(inv_mwb_globals.g_lot_from,nvl(lot_number,'X@@X')))
               and (nvl(lot_number,'X@@X') <= nvl(inv_mwb_globals.g_lot_to,nvl(lot_number,'X@@X')))
               and (rec.locator_id is null or locator_id = rec.locator_id)
               and (nvl(locator_id,-1) = nvl(inv_mwb_globals.g_locator_id,nvl(locator_id,-1)))
               and (rec.revision is null or revision = rec.revision)
               and (nvl(revision,'X@@X') = nvl(inv_mwb_globals.g_revision,nvl(revision,'X@@X')))
               and (rec.lpn_id is null or nvl(content_lpn_id,lpn_id) = rec.lpn_id);--bug13478665,content_lpn not lpn populated for the partial lpn picked
Line: 2194

               select nvl(sum(quantity),0)
               into unpacked_loaded_qty
               from WMS_LOADED_QUANTITIES_V
               where inventory_item_id = rec.item_id
               and organization_id = rec.org_id
               and containerized_flag = 2
               and (rec.subinventory_code is null or subinventory_code = rec.subinventory_code)
               and (subinventory_code = nvl(inv_mwb_globals.g_subinventory_code,subinventory_code))
               and (rec.lot is null or lot_number = rec.lot)
               and (nvl(lot_number,'X@@X') >= nvl(inv_mwb_globals.g_lot_from,nvl(lot_number,'X@@X')))
               and (nvl(lot_number,'X@@X') <= nvl(inv_mwb_globals.g_lot_to,nvl(lot_number,'X@@X')))
               and (rec.locator_id is null or locator_id = rec.locator_id)
               and (nvl(locator_id,-1) = nvl(inv_mwb_globals.g_locator_id,nvl(locator_id,-1)))
               and (rec.revision is null or revision = rec.revision)
               and (nvl(revision,'X@@X') = nvl(inv_mwb_globals.g_revision,nvl(revision,'X@@X')))
               and (rec.lpn_id is null or nvl(content_lpn_id,lpn_id) = rec.lpn_id);--bug13478665,content_lpn not lpn populated for the partial lpn picked
Line: 2218

                  select 1 into l_serial_loaded
                  from dual
                  where exists (select 1 from WMS_LOADED_QUANTITIES_V wlqv, mtl_serial_numbers_temp msnt
                                where wlqv.transaction_temp_id IS NOT NULL
                                and wlqv.transaction_temp_id = msnt.transaction_temp_id
                                and wlqv.inventory_item_id = rec.item_id
                                and rec.serial between msnt.fm_serial_number and msnt.to_serial_number
                                union
                                select 1 from WMS_LOADED_QUANTITIES_V wlqv, mtl_serial_numbers_temp msnt
                                where wlqv.serial_transaction_temp_id IS NOT NULL
                                and wlqv.serial_transaction_temp_id = msnt.transaction_temp_id
                                and wlqv.inventory_item_id = rec.item_id
                                and rec.serial between msnt.fm_serial_number and msnt.to_serial_number);
Line: 2261

                  update mtl_mwb_gtmp
                     set onhand = (onhand - onhand),
                         unpacked = (unpacked - unpacked),
                         packed = (packed - packed),
                         loaded_quantity = 0
                  where  rowid = rec.rowid;
Line: 2268

                  update mtl_mwb_gtmp
                     set onhand = (onhand - packed_loaded_qty - unpacked_loaded_qty),
                         unpacked = (unpacked - unpacked_loaded_qty),
                         packed = (packed - packed_loaded_qty),
                         loaded_quantity = 0
                  where  rowid = rec.rowid;
Line: 2277

                  update mtl_mwb_gtmp
                     set loaded_quantity = 1
                  where  rowid = rec.rowid;
Line: 2281

                  update mtl_mwb_gtmp
                     set loaded_quantity = (packed_loaded_qty + unpacked_loaded_qty)
                  where  rowid = rec.rowid;
Line: 2287

            update mtl_mwb_gtmp
            set loaded_quantity = 0
            where  rowid = rec.rowid;
Line: 2533

              add_where_clause(' EXISTS ( SELECT 1 FROM org_access_view oav WHERE oav.organization_id = moqd.organization_id AND oav.responsibility_id   = :responsibility_id AND oav.resp_application_id = :resp_application_id ) ', 'ONHAND');
Line: 2551

              add_where_clause('moqd.inventory_item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :onh_client_code) ', 'ONHAND');
Line: 2587

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :onh_organization_id '
                                || ' and category_set_id = :onh_category_set_id '
                                || ' and category_id = nvl(:onh_category_id, category_id)) ', 'ONHAND');
Line: 2885

              add_where_clause(' EXISTS ( SELECT 1 FROM org_access_view oav WHERE oav.organization_id = msn.current_organization_id AND oav.responsibility_id   = :responsibility_id AND oav.resp_application_id = :resp_application_id ) ', 'ONHAND');
Line: 2903

              add_where_clause('msn.inventory_item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :onh_client_code) ', 'ONHAND');
Line: 2926

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :onh_organization_id '
                                || ' and category_set_id = :onh_category_set_id '
                                || ' and category_id = nvl(:onh_category_id, category_id)) ', 'ONHAND');
Line: 3161

         SELECT serial_number_control_code
         INTO   l_serial_control
         FROM   mtl_system_items
         WHERE  inventory_item_id = inv_mwb_globals.g_tree_item_id
         AND    organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 3279

        add_where_clause('wlc.inventory_item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :client_code) ', p_mat_loc);
Line: 3302

                            || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                            || ' where organization_id = :to_organization_id '
                            || ' and category_set_id = :category_set_id '
                            || ' and category_id = nvl(:category_id, category_id))', p_mat_loc);
Line: 3452

        SELECT lot_control_code,
               serial_number_control_code
        INTO   l_lot_control,
               l_serial_control
        FROM   mtl_system_items
        WHERE  inventory_item_id = inv_mwb_globals.g_tree_item_id
        AND    organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 3489

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.RECEIVING).column_value :=
                        'SUM(rls.primary_quantity)';
Line: 3492

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.UNPACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, rls.primary_quantity, 0))';
Line: 3494

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.PACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, 0, rls.primary_quantity))';
Line: 3496

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.SECONDARY_RECEIVING).column_value :=
                        'SUM(rls.secondary_quantity)'; -- 8687440
Line: 3498

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.SECONDARY_UNPACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, rls.secondary_quantity, 0))'; -- 8687440
Line: 3500

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.SECONDARY_PACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, 0, rls.secondary_quantity))';                  -- 8687440
Line: 3512

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.RECEIVING).column_value :=
                        'SUM(rls.primary_quantity)';
Line: 3515

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.UNPACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, rls.primary_quantity, 0))';
Line: 3517

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.PACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, 0, rls.primary_quantity))';
Line: 3529

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.RECEIVING).column_value :=
                        'SUM(rls.primary_quantity)';
Line: 3532

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.UNPACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, rls.primary_quantity, 0))';
Line: 3534

                      inv_mwb_query_manager.g_receiving_select(inv_mwb_query_manager.PACKED).column_value :=
                        'SUM(DECODE (rs.lpn_id, null, 0, rls.primary_quantity))';
Line: 3583

            add_where_clause(' EXISTS ( SELECT 1 FROM org_access_view oav WHERE oav.organization_id = rs.to_organization_id AND oav.responsibility_id   = :responsibility_id AND oav.resp_application_id = :resp_application_id ) ', 'RECEIVING');
Line: 3601

            add_where_clause('rs.item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :rcv_client_code) ', 'RECEIVING');
Line: 3632

                                 || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                 || ' where organization_id = :rcv_to_organization_id '
                                 || ' and category_set_id = :rcv_category_set_id '
                                 || ' and category_id = nvl(:rcv_category_id, category_id))', 'RECEIVING');
Line: 3679

            add_where_clause(' EXISTS ( SELECT 1 FROM org_access_view oav WHERE oav.organization_id = msn.current_organization_id AND oav.responsibility_id   = :responsibility_id AND oav.resp_application_id = :resp_application_id ) ', 'RECEIVING');
Line: 3697

            add_where_clause('msn.inventory_item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :rcv_client_code) ', 'RECEIVING');
Line: 3728

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :rcv_to_organization_id '
                                || ' and category_set_id = :rcv_category_set_id '
                                || ' and category_id = nvl(:rcv_category_id, category_id))', 'RECEIVING');
Line: 3843

            add_where_clause(' EXISTS ( SELECT 1 FROM org_access_view oav WHERE oav.organization_id = rs.to_organization_id AND oav.responsibility_id   = :responsibility_id AND oav.resp_application_id = :resp_application_id ) ', 'RECEIVING');
Line: 3861

            add_where_clause('rs.item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :rcv_client_code) ', 'RECEIVING');
Line: 3888

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :rcv_to_organization_id '
                                || ' and category_set_id = :rcv_category_set_id '
                                || ' and category_id = nvl(:rcv_category_id, category_id))', 'RECEIVING');
Line: 4005

         SELECT revision_qty_control_code,
                lot_control_code,
                serial_number_control_code
           INTO l_rev_control,
                l_lot_control,
                l_serial_control
           FROM mtl_system_items
          WHERE inventory_item_id = inv_mwb_globals.g_tree_item_id
            AND organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 4104

            add_where_clause('ms.item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :inb_client_code) ', 'INBOUND');
Line: 4122

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :inb_to_organization_id '
                                || ' and category_set_id = :inb_category_set_id '
                                || ' and category_id = nvl(:inb_category_id, category_id))', 'INBOUND');
Line: 4290

            add_where_clause('ms.item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :inb_client_code) ', 'INBOUND');
Line: 4313

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :inb_to_organization_id '
                                || ' and category_set_id = :inb_category_set_id '
                                || ' and category_id = nvl(:inb_category_id, category_id))', 'INBOUND');
Line: 4484

            add_where_clause('ms.item_id in (select DISTINCT inventory_item_id from mtl_system_items_b where wms_deploy.get_client_code(inventory_item_id) = :inb_client_code) ', 'INBOUND');
Line: 4507

                                || ' (select DISTINCT inventory_item_id from mtl_item_categories '
                                || ' where organization_id = :inb_to_organization_id '
                                || ' and category_set_id = :inb_category_set_id '
                                || ' and category_id = nvl(:inb_category_id, category_id))', 'INBOUND');
Line: 4713

                          g_onhand_select,
                          g_onhand_from,
                          g_onhand_where,
                          g_onhand_group
                          );
Line: 4759

     l_temp_rec       SelectColumnRecType;
Line: 4764

     g_onhand_select.DELETE;
Line: 4765

     g_onhand_where.DELETE;
Line: 4766

     g_onhand_from.DELETE;
Line: 4767

     g_onhand_group.DELETE;
Line: 4775

     g_onhand_select(PO_RELEASE_ID) := l_temp_rec;
Line: 4779

     g_onhand_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 4783

     g_onhand_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 4787

     g_onhand_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 4791

     g_onhand_select(ASN) := l_temp_rec;
Line: 4795

     g_onhand_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 4799

     g_onhand_select(TRADING_PARTNER) := l_temp_rec;
Line: 4803

     g_onhand_select(VENDOR_ID) := l_temp_rec;
Line: 4807

     g_onhand_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 4811

     g_onhand_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 4815

     g_onhand_select(FROM_ORG) := l_temp_rec;
Line: 4819

     g_onhand_select(FROM_ORG_ID) := l_temp_rec;
Line: 4823

     g_onhand_select(TO_ORG) := l_temp_rec;
Line: 4827

     g_onhand_select(TO_ORG_ID) := l_temp_rec;
Line: 4831

     g_onhand_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 4835

     g_onhand_select(SHIPPED_DATE) := l_temp_rec;
Line: 4839

     g_onhand_select(OWNING_ORG) := l_temp_rec;
Line: 4843

     g_onhand_select(OWNING_ORG_ID) := l_temp_rec;
Line: 4847

     g_onhand_select(REQ_HEADER_ID) := l_temp_rec;
Line: 4851

     g_onhand_select(OE_HEADER_ID) := l_temp_rec;
Line: 4855

     g_onhand_select(PO_HEADER_ID) := l_temp_rec;
Line: 4859

     g_onhand_select(MATURITY_DATE) := l_temp_rec;
Line: 4863

     g_onhand_select(HOLD_DATE) := l_temp_rec;
Line: 4867

     g_onhand_select(SUPPLIER_LOT) := l_temp_rec;
Line: 4871

     g_onhand_select(PARENT_LOT) := l_temp_rec;
Line: 4875

     g_onhand_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 4879

     g_onhand_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 4883

     g_onhand_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 4887

     g_onhand_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 4891

     g_onhand_select(RELEASE_NUMBER) := l_temp_rec;
Line: 4895

     g_onhand_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 4899

     g_onhand_select(ORIGINATION_DATE) := l_temp_rec;
Line: 4903

     g_onhand_select(ACTION_CODE) := l_temp_rec;
Line: 4907

     g_onhand_select(ACTION_DATE) := l_temp_rec;
Line: 4911

     g_onhand_select(RETEST_DATE) := l_temp_rec;
Line: 4915

     g_onhand_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 4919

     g_onhand_select(SECONDARY_PACKED) := l_temp_rec;
Line: 4923

     g_onhand_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 4927

     g_onhand_select(LOCATOR) := l_temp_rec;
Line: 4931

     g_onhand_select(LOCATOR_ID) := l_temp_rec;
Line: 4935

     g_onhand_select(LPN) := l_temp_rec;
Line: 4939

     g_onhand_select(LPN_ID) := l_temp_rec;
Line: 4943

     g_onhand_select(COST_GROUP) := l_temp_rec;
Line: 4947

     g_onhand_select(GRADE_CODE) := l_temp_rec;
Line: 4951

     g_onhand_select(CG_ID) := l_temp_rec;
Line: 4955

     g_onhand_select(LOADED) := l_temp_rec;
Line: 4959

     g_onhand_select(PLANNING_PARTY) := l_temp_rec;
Line: 4963

     g_onhand_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 4967

     g_onhand_select(OWNING_PARTY) := l_temp_rec;
Line: 4971

     g_onhand_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 4975

     g_onhand_select(LOT) := l_temp_rec;
Line: 4980

     g_onhand_select(SERIAL) := l_temp_rec;
Line: 4984

     g_onhand_select(UNIT_NUMBER) := l_temp_rec;
Line: 4988

     g_onhand_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 4992

     g_onhand_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 4996

     g_onhand_select(ORG_ID) := l_temp_rec;
Line: 5000

     g_onhand_select(ITEM) := l_temp_rec;
Line: 5004

     g_onhand_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 5008

     g_onhand_select(ITEM_ID) := l_temp_rec;
Line: 5012

     g_onhand_select(REVISION) := l_temp_rec;
Line: 5016

     g_onhand_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 5020

     g_onhand_select(ONHAND) := l_temp_rec;
Line: 5024

     g_onhand_select(RECEIVING) := l_temp_rec;
Line: 5028

     g_onhand_select(INBOUND) := l_temp_rec;
Line: 5032

     g_onhand_select(UNPACKED) := l_temp_rec;
Line: 5036

     g_onhand_select(PACKED) := l_temp_rec;
Line: 5040

     g_onhand_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 5044

     g_onhand_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 5048

     g_onhand_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 5052

     g_onhand_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 5056

     g_onhand_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5060

     g_onhand_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5064

     g_onhand_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 5068

     g_onhand_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 5073

     g_onhand_select(STATUS) := l_temp_rec;
Line: 5077

     g_onhand_select(STATUS_ID) := l_temp_rec;
Line: 5084

     l_temp_rec       SelectColumnRecType;
Line: 5089

     g_onhand_1_select.DELETE;
Line: 5090

     g_onhand_1_where.DELETE;
Line: 5091

     g_onhand_1_from.DELETE;
Line: 5092

     g_onhand_1_group.DELETE;
Line: 5100

     g_onhand_1_select(PO_RELEASE_ID) := l_temp_rec;
Line: 5104

     g_onhand_1_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 5108

     g_onhand_1_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 5112

     g_onhand_1_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 5116

     g_onhand_1_select(ASN) := l_temp_rec;
Line: 5120

     g_onhand_1_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 5124

     g_onhand_1_select(TRADING_PARTNER) := l_temp_rec;
Line: 5128

     g_onhand_1_select(VENDOR_ID) := l_temp_rec;
Line: 5132

     g_onhand_1_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 5136

     g_onhand_1_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 5140

     g_onhand_1_select(FROM_ORG) := l_temp_rec;
Line: 5144

     g_onhand_1_select(FROM_ORG_ID) := l_temp_rec;
Line: 5148

     g_onhand_1_select(TO_ORG) := l_temp_rec;
Line: 5152

     g_onhand_1_select(TO_ORG_ID) := l_temp_rec;
Line: 5156

     g_onhand_1_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 5160

     g_onhand_1_select(SHIPPED_DATE) := l_temp_rec;
Line: 5164

     g_onhand_1_select(OWNING_ORG) := l_temp_rec;
Line: 5168

     g_onhand_1_select(OWNING_ORG_ID) := l_temp_rec;
Line: 5172

     g_onhand_1_select(REQ_HEADER_ID) := l_temp_rec;
Line: 5176

     g_onhand_1_select(OE_HEADER_ID) := l_temp_rec;
Line: 5180

     g_onhand_1_select(PO_HEADER_ID) := l_temp_rec;
Line: 5184

     g_onhand_1_select(MATURITY_DATE) := l_temp_rec;
Line: 5188

     g_onhand_1_select(HOLD_DATE) := l_temp_rec;
Line: 5192

     g_onhand_1_select(SUPPLIER_LOT) := l_temp_rec;
Line: 5196

     g_onhand_1_select(PARENT_LOT) := l_temp_rec;
Line: 5200

     g_onhand_1_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 5204

     g_onhand_1_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 5208

     g_onhand_1_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 5212

     g_onhand_1_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 5216

     g_onhand_1_select(RELEASE_NUMBER) := l_temp_rec;
Line: 5220

     g_onhand_1_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 5224

     g_onhand_1_select(ORIGINATION_DATE) := l_temp_rec;
Line: 5228

     g_onhand_1_select(ACTION_CODE) := l_temp_rec;
Line: 5232

     g_onhand_1_select(ACTION_DATE) := l_temp_rec;
Line: 5236

     g_onhand_1_select(RETEST_DATE) := l_temp_rec;
Line: 5240

     g_onhand_1_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 5244

     g_onhand_1_select(SECONDARY_PACKED) := l_temp_rec;
Line: 5248

     g_onhand_1_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 5252

     g_onhand_1_select(LOCATOR) := l_temp_rec;
Line: 5256

     g_onhand_1_select(LOCATOR_ID) := l_temp_rec;
Line: 5260

     g_onhand_1_select(LPN) := l_temp_rec;
Line: 5264

     g_onhand_1_select(LPN_ID) := l_temp_rec;
Line: 5268

     g_onhand_1_select(COST_GROUP) := l_temp_rec;
Line: 5272

     g_onhand_1_select(GRADE_CODE) := l_temp_rec;
Line: 5276

     g_onhand_1_select(CG_ID) := l_temp_rec;
Line: 5280

     g_onhand_1_select(LOADED) := l_temp_rec;
Line: 5284

     g_onhand_1_select(PLANNING_PARTY) := l_temp_rec;
Line: 5288

     g_onhand_1_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 5292

     g_onhand_1_select(OWNING_PARTY) := l_temp_rec;
Line: 5296

     g_onhand_1_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 5300

     g_onhand_1_select(LOT) := l_temp_rec;
Line: 5305

     g_onhand_1_select(SERIAL) := l_temp_rec;
Line: 5309

     g_onhand_1_select(UNIT_NUMBER) := l_temp_rec;
Line: 5313

     g_onhand_1_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 5317

     g_onhand_1_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 5321

     g_onhand_1_select(ORG_ID) := l_temp_rec;
Line: 5325

     g_onhand_1_select(ITEM) := l_temp_rec;
Line: 5329

     g_onhand_1_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 5333

     g_onhand_1_select(ITEM_ID) := l_temp_rec;
Line: 5337

     g_onhand_1_select(REVISION) := l_temp_rec;
Line: 5341

     g_onhand_1_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 5345

     g_onhand_1_select(ONHAND) := l_temp_rec;
Line: 5349

     g_onhand_1_select(RECEIVING) := l_temp_rec;
Line: 5353

     g_onhand_1_select(INBOUND) := l_temp_rec;
Line: 5357

     g_onhand_1_select(UNPACKED) := l_temp_rec;
Line: 5361

     g_onhand_1_select(PACKED) := l_temp_rec;
Line: 5365

     g_onhand_1_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 5369

     g_onhand_1_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 5373

     g_onhand_1_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 5377

     g_onhand_1_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 5381

     g_onhand_1_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5385

     g_onhand_1_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5389

     g_onhand_1_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 5393

     g_onhand_1_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 5398

     g_onhand_1_select(STATUS) := l_temp_rec;
Line: 5402

     g_onhand_1_select(STATUS_ID) := l_temp_rec;
Line: 5410

     l_temp_rec       SelectColumnRecType;
Line: 5415

     g_inbound_select.DELETE;
Line: 5416

     g_inbound_from.DELETE;
Line: 5417

     g_inbound_where.DELETE;
Line: 5418

     g_inbound_group.DELETE;
Line: 5426

     g_inbound_select(PO_RELEASE_ID) := l_temp_rec;
Line: 5430

     g_inbound_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 5434

     g_inbound_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 5438

     g_inbound_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 5442

     g_inbound_select(ASN) := l_temp_rec;
Line: 5446

     g_inbound_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 5450

     g_inbound_select(TRADING_PARTNER) := l_temp_rec;
Line: 5454

     g_inbound_select(VENDOR_ID) := l_temp_rec;
Line: 5458

     g_inbound_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 5462

     g_inbound_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 5466

     g_inbound_select(FROM_ORG) := l_temp_rec;
Line: 5470

     g_inbound_select(FROM_ORG_ID) := l_temp_rec;
Line: 5474

     g_inbound_select(TO_ORG) := l_temp_rec;
Line: 5478

     g_inbound_select(TO_ORG_ID) := l_temp_rec;
Line: 5482

     g_inbound_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 5486

     g_inbound_select(SHIPPED_DATE) := l_temp_rec;
Line: 5490

     g_inbound_select(OWNING_ORG) := l_temp_rec;
Line: 5494

     g_inbound_select(OWNING_ORG_ID) := l_temp_rec;
Line: 5498

     g_inbound_select(REQ_HEADER_ID) := l_temp_rec;
Line: 5502

     g_inbound_select(OE_HEADER_ID) := l_temp_rec;
Line: 5506

     g_inbound_select(PO_HEADER_ID) := l_temp_rec;
Line: 5510

     g_inbound_select(MATURITY_DATE) := l_temp_rec;
Line: 5514

     g_inbound_select(HOLD_DATE) := l_temp_rec;
Line: 5518

     g_inbound_select(SUPPLIER_LOT) := l_temp_rec;
Line: 5522

     g_inbound_select(PARENT_LOT) := l_temp_rec;
Line: 5526

     g_inbound_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 5530

     g_inbound_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 5534

     g_inbound_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 5538

     g_inbound_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 5542

     g_inbound_select(RELEASE_NUMBER) := l_temp_rec;
Line: 5546

     g_inbound_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 5550

     g_inbound_select(ORIGINATION_DATE) := l_temp_rec;
Line: 5554

     g_inbound_select(ACTION_CODE) := l_temp_rec;
Line: 5558

     g_inbound_select(ACTION_DATE) := l_temp_rec;
Line: 5562

     g_inbound_select(RETEST_DATE) := l_temp_rec;
Line: 5566

     g_inbound_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 5570

     g_inbound_select(SECONDARY_PACKED) := l_temp_rec;
Line: 5574

     g_inbound_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 5578

     g_inbound_select(LOCATOR) := l_temp_rec;
Line: 5582

     g_inbound_select(LOCATOR_ID) := l_temp_rec;
Line: 5586

     g_inbound_select(LPN) := l_temp_rec;
Line: 5590

     g_inbound_select(LPN_ID) := l_temp_rec;
Line: 5594

     g_inbound_select(COST_GROUP) := l_temp_rec;
Line: 5598

     g_inbound_select(GRADE_CODE) := l_temp_rec;
Line: 5602

     g_inbound_select(CG_ID) := l_temp_rec;
Line: 5606

     g_inbound_select(LOADED) := l_temp_rec;
Line: 5610

     g_inbound_select(PLANNING_PARTY) := l_temp_rec;
Line: 5614

     g_inbound_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 5618

     g_inbound_select(OWNING_PARTY) := l_temp_rec;
Line: 5622

     g_inbound_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 5626

     g_inbound_select(LOT) := l_temp_rec;
Line: 5631

     g_inbound_select(SERIAL) := l_temp_rec;
Line: 5635

     g_inbound_select(UNIT_NUMBER) := l_temp_rec;
Line: 5639

     g_inbound_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 5643

     g_inbound_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 5647

     g_inbound_select(ORG_ID) := l_temp_rec;
Line: 5651

     g_inbound_select(ITEM) := l_temp_rec;
Line: 5655

     g_inbound_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 5659

     g_inbound_select(ITEM_ID) := l_temp_rec;
Line: 5663

     g_inbound_select(REVISION) := l_temp_rec;
Line: 5667

     g_inbound_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 5671

     g_inbound_select(ONHAND) := l_temp_rec;
Line: 5675

     g_inbound_select(RECEIVING) := l_temp_rec;
Line: 5679

     g_inbound_select(INBOUND) := l_temp_rec;
Line: 5683

     g_inbound_select(UNPACKED) := l_temp_rec;
Line: 5687

     g_inbound_select(PACKED) := l_temp_rec;
Line: 5691

     g_inbound_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 5695

     g_inbound_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 5699

     g_inbound_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 5703

     g_inbound_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 5707

     g_inbound_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5711

     g_inbound_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 5715

     g_inbound_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 5719

     g_inbound_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 5724

     g_inbound_select(STATUS) := l_temp_rec;
Line: 5728

     g_inbound_select(STATUS_ID) := l_temp_rec;
Line: 5734

     l_temp_rec       SelectColumnRecType;
Line: 5739

     g_inbound_1_select.DELETE;
Line: 5740

     g_inbound_1_from.DELETE;
Line: 5741

     g_inbound_1_where.DELETE;
Line: 5742

     g_inbound_1_group.DELETE;
Line: 5750

     g_inbound_1_select(PO_RELEASE_ID) := l_temp_rec;
Line: 5754

     g_inbound_1_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 5758

     g_inbound_1_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 5762

     g_inbound_1_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 5766

     g_inbound_1_select(ASN) := l_temp_rec;
Line: 5770

     g_inbound_1_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 5774

     g_inbound_1_select(TRADING_PARTNER) := l_temp_rec;
Line: 5778

     g_inbound_1_select(VENDOR_ID) := l_temp_rec;
Line: 5782

     g_inbound_1_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 5786

     g_inbound_1_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 5790

     g_inbound_1_select(FROM_ORG) := l_temp_rec;
Line: 5794

     g_inbound_1_select(FROM_ORG_ID) := l_temp_rec;
Line: 5798

     g_inbound_1_select(TO_ORG) := l_temp_rec;
Line: 5802

     g_inbound_1_select(TO_ORG_ID) := l_temp_rec;
Line: 5806

     g_inbound_1_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 5810

     g_inbound_1_select(SHIPPED_DATE) := l_temp_rec;
Line: 5814

     g_inbound_1_select(OWNING_ORG) := l_temp_rec;
Line: 5818

     g_inbound_1_select(OWNING_ORG_ID) := l_temp_rec;
Line: 5822

     g_inbound_1_select(REQ_HEADER_ID) := l_temp_rec;
Line: 5826

     g_inbound_1_select(OE_HEADER_ID) := l_temp_rec;
Line: 5830

     g_inbound_1_select(PO_HEADER_ID) := l_temp_rec;
Line: 5834

     g_inbound_1_select(MATURITY_DATE) := l_temp_rec;
Line: 5838

     g_inbound_1_select(HOLD_DATE) := l_temp_rec;
Line: 5842

     g_inbound_1_select(SUPPLIER_LOT) := l_temp_rec;
Line: 5846

     g_inbound_1_select(PARENT_LOT) := l_temp_rec;
Line: 5850

     g_inbound_1_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 5854

     g_inbound_1_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 5858

     g_inbound_1_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 5862

     g_inbound_1_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 5866

     g_inbound_1_select(RELEASE_NUMBER) := l_temp_rec;
Line: 5870

     g_inbound_1_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 5874

     g_inbound_1_select(ORIGINATION_DATE) := l_temp_rec;
Line: 5878

     g_inbound_1_select(ACTION_CODE) := l_temp_rec;
Line: 5882

     g_inbound_1_select(ACTION_DATE) := l_temp_rec;
Line: 5886

     g_inbound_1_select(RETEST_DATE) := l_temp_rec;
Line: 5890

     g_inbound_1_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 5894

     g_inbound_1_select(SECONDARY_PACKED) := l_temp_rec;
Line: 5898

     g_inbound_1_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 5902

     g_inbound_1_select(LOCATOR) := l_temp_rec;
Line: 5906

     g_inbound_1_select(LOCATOR_ID) := l_temp_rec;
Line: 5910

     g_inbound_1_select(LPN) := l_temp_rec;
Line: 5914

     g_inbound_1_select(LPN_ID) := l_temp_rec;
Line: 5918

     g_inbound_1_select(COST_GROUP) := l_temp_rec;
Line: 5922

     g_inbound_1_select(GRADE_CODE) := l_temp_rec;
Line: 5926

     g_inbound_1_select(CG_ID) := l_temp_rec;
Line: 5930

     g_inbound_1_select(LOADED) := l_temp_rec;
Line: 5934

     g_inbound_1_select(PLANNING_PARTY) := l_temp_rec;
Line: 5938

     g_inbound_1_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 5942

     g_inbound_1_select(OWNING_PARTY) := l_temp_rec;
Line: 5946

     g_inbound_1_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 5950

     g_inbound_1_select(LOT) := l_temp_rec;
Line: 5955

     g_inbound_1_select(SERIAL) := l_temp_rec;
Line: 5959

     g_inbound_1_select(UNIT_NUMBER) := l_temp_rec;
Line: 5963

     g_inbound_1_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 5967

     g_inbound_1_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 5971

     g_inbound_1_select(ORG_ID) := l_temp_rec;
Line: 5975

     g_inbound_1_select(ITEM) := l_temp_rec;
Line: 5979

     g_inbound_1_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 5983

     g_inbound_1_select(ITEM_ID) := l_temp_rec;
Line: 5987

     g_inbound_1_select(REVISION) := l_temp_rec;
Line: 5991

     g_inbound_1_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 5995

     g_inbound_1_select(ONHAND) := l_temp_rec;
Line: 5999

     g_inbound_1_select(RECEIVING) := l_temp_rec;
Line: 6003

     g_inbound_1_select(INBOUND) := l_temp_rec;
Line: 6007

     g_inbound_1_select(UNPACKED) := l_temp_rec;
Line: 6011

     g_inbound_1_select(PACKED) := l_temp_rec;
Line: 6015

     g_inbound_1_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 6019

     g_inbound_1_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 6023

     g_inbound_1_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 6027

     g_inbound_1_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 6031

     g_inbound_1_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6035

     g_inbound_1_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6039

     g_inbound_1_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 6043

     g_inbound_1_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 6048

     g_inbound_1_select(STATUS) := l_temp_rec;
Line: 6052

     g_inbound_1_select(STATUS_ID) := l_temp_rec;
Line: 6058

     l_temp_rec       SelectColumnRecType;
Line: 6063

     g_receiving_select.DELETE;
Line: 6064

     g_receiving_from.DELETE;
Line: 6065

     g_receiving_where.DELETE;
Line: 6066

     g_receiving_group.DELETE;
Line: 6074

     g_receiving_select(PO_RELEASE_ID) := l_temp_rec;
Line: 6078

     g_receiving_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 6082

     g_receiving_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 6086

     g_receiving_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 6090

     g_receiving_select(ASN) := l_temp_rec;
Line: 6094

     g_receiving_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 6098

     g_receiving_select(TRADING_PARTNER) := l_temp_rec;
Line: 6102

     g_receiving_select(VENDOR_ID) := l_temp_rec;
Line: 6106

     g_receiving_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 6110

     g_receiving_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 6114

     g_receiving_select(FROM_ORG) := l_temp_rec;
Line: 6118

     g_receiving_select(FROM_ORG_ID) := l_temp_rec;
Line: 6122

     g_receiving_select(TO_ORG) := l_temp_rec;
Line: 6126

     g_receiving_select(TO_ORG_ID) := l_temp_rec;
Line: 6130

     g_receiving_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 6134

     g_receiving_select(SHIPPED_DATE) := l_temp_rec;
Line: 6138

     g_receiving_select(OWNING_ORG) := l_temp_rec;
Line: 6142

     g_receiving_select(OWNING_ORG_ID) := l_temp_rec;
Line: 6146

     g_receiving_select(REQ_HEADER_ID) := l_temp_rec;
Line: 6150

     g_receiving_select(OE_HEADER_ID) := l_temp_rec;
Line: 6154

     g_receiving_select(PO_HEADER_ID) := l_temp_rec;
Line: 6158

     g_receiving_select(MATURITY_DATE) := l_temp_rec;
Line: 6162

     g_receiving_select(HOLD_DATE) := l_temp_rec;
Line: 6166

     g_receiving_select(SUPPLIER_LOT) := l_temp_rec;
Line: 6170

     g_receiving_select(PARENT_LOT) := l_temp_rec;
Line: 6174

     g_receiving_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 6178

     g_receiving_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 6182

     g_receiving_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 6186

     g_receiving_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 6190

     g_receiving_select(RELEASE_NUMBER) := l_temp_rec;
Line: 6194

     g_receiving_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 6198

     g_receiving_select(ORIGINATION_DATE) := l_temp_rec;
Line: 6202

     g_receiving_select(ACTION_CODE) := l_temp_rec;
Line: 6206

     g_receiving_select(ACTION_DATE) := l_temp_rec;
Line: 6210

     g_receiving_select(RETEST_DATE) := l_temp_rec;
Line: 6214

     g_receiving_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 6218

     g_receiving_select(SECONDARY_PACKED) := l_temp_rec;
Line: 6222

     g_receiving_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 6226

     g_receiving_select(LOCATOR) := l_temp_rec;
Line: 6230

     g_receiving_select(LOCATOR_ID) := l_temp_rec;
Line: 6234

     g_receiving_select(LPN) := l_temp_rec;
Line: 6238

     g_receiving_select(LPN_ID) := l_temp_rec;
Line: 6242

     g_receiving_select(COST_GROUP) := l_temp_rec;
Line: 6246

     g_receiving_select(GRADE_CODE) := l_temp_rec;
Line: 6250

     g_receiving_select(CG_ID) := l_temp_rec;
Line: 6254

     g_receiving_select(LOADED) := l_temp_rec;
Line: 6258

     g_receiving_select(PLANNING_PARTY) := l_temp_rec;
Line: 6262

     g_receiving_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 6266

     g_receiving_select(OWNING_PARTY) := l_temp_rec;
Line: 6270

     g_receiving_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 6274

     g_receiving_select(LOT) := l_temp_rec;
Line: 6279

     g_receiving_select(SERIAL) := l_temp_rec;
Line: 6283

     g_receiving_select(UNIT_NUMBER) := l_temp_rec;
Line: 6287

     g_receiving_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 6291

     g_receiving_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 6295

     g_receiving_select(ORG_ID) := l_temp_rec;
Line: 6299

     g_receiving_select(ITEM) := l_temp_rec;
Line: 6303

     g_receiving_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 6307

     g_receiving_select(ITEM_ID) := l_temp_rec;
Line: 6311

     g_receiving_select(REVISION) := l_temp_rec;
Line: 6315

     g_receiving_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 6319

     g_receiving_select(ONHAND) := l_temp_rec;
Line: 6323

     g_receiving_select(RECEIVING) := l_temp_rec;
Line: 6327

     g_receiving_select(INBOUND) := l_temp_rec;
Line: 6331

     g_receiving_select(UNPACKED) := l_temp_rec;
Line: 6335

     g_receiving_select(PACKED) := l_temp_rec;
Line: 6339

     g_receiving_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 6343

     g_receiving_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 6347

     g_receiving_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 6351

     g_receiving_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 6355

     g_receiving_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6359

     g_receiving_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6363

     g_receiving_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 6367

     g_receiving_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 6372

     g_receiving_select(STATUS) := l_temp_rec;
Line: 6376

     g_receiving_select(STATUS_ID) := l_temp_rec;
Line: 6382

     l_temp_rec       SelectColumnRecType;
Line: 6387

     g_receiving_1_select.DELETE;
Line: 6388

     g_receiving_1_from.DELETE;
Line: 6389

     g_receiving_1_where.DELETE;
Line: 6390

     g_receiving_1_group.DELETE;
Line: 6398

     g_receiving_1_select(PO_RELEASE_ID) := l_temp_rec;
Line: 6402

     g_receiving_1_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 6406

     g_receiving_1_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 6410

     g_receiving_1_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 6414

     g_receiving_1_select(ASN) := l_temp_rec;
Line: 6418

     g_receiving_1_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 6422

     g_receiving_1_select(TRADING_PARTNER) := l_temp_rec;
Line: 6426

     g_receiving_1_select(VENDOR_ID) := l_temp_rec;
Line: 6430

     g_receiving_1_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 6434

     g_receiving_1_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 6438

     g_receiving_1_select(FROM_ORG) := l_temp_rec;
Line: 6442

     g_receiving_1_select(FROM_ORG_ID) := l_temp_rec;
Line: 6446

     g_receiving_1_select(TO_ORG) := l_temp_rec;
Line: 6450

     g_receiving_1_select(TO_ORG_ID) := l_temp_rec;
Line: 6454

     g_receiving_1_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 6458

     g_receiving_1_select(SHIPPED_DATE) := l_temp_rec;
Line: 6462

     g_receiving_1_select(OWNING_ORG) := l_temp_rec;
Line: 6466

     g_receiving_1_select(OWNING_ORG_ID) := l_temp_rec;
Line: 6470

     g_receiving_1_select(REQ_HEADER_ID) := l_temp_rec;
Line: 6474

     g_receiving_1_select(OE_HEADER_ID) := l_temp_rec;
Line: 6478

     g_receiving_1_select(PO_HEADER_ID) := l_temp_rec;
Line: 6482

     g_receiving_1_select(MATURITY_DATE) := l_temp_rec;
Line: 6486

     g_receiving_1_select(HOLD_DATE) := l_temp_rec;
Line: 6490

     g_receiving_1_select(SUPPLIER_LOT) := l_temp_rec;
Line: 6494

     g_receiving_1_select(PARENT_LOT) := l_temp_rec;
Line: 6498

     g_receiving_1_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 6502

     g_receiving_1_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 6506

     g_receiving_1_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 6510

     g_receiving_1_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 6514

     g_receiving_1_select(RELEASE_NUMBER) := l_temp_rec;
Line: 6518

     g_receiving_1_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 6522

     g_receiving_1_select(ORIGINATION_DATE) := l_temp_rec;
Line: 6526

     g_receiving_1_select(ACTION_CODE) := l_temp_rec;
Line: 6530

     g_receiving_1_select(ACTION_DATE) := l_temp_rec;
Line: 6534

     g_receiving_1_select(RETEST_DATE) := l_temp_rec;
Line: 6538

     g_receiving_1_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 6542

     g_receiving_1_select(SECONDARY_PACKED) := l_temp_rec;
Line: 6546

     g_receiving_1_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 6550

     g_receiving_1_select(LOCATOR) := l_temp_rec;
Line: 6554

     g_receiving_1_select(LOCATOR_ID) := l_temp_rec;
Line: 6558

     g_receiving_1_select(LPN) := l_temp_rec;
Line: 6562

     g_receiving_1_select(LPN_ID) := l_temp_rec;
Line: 6566

     g_receiving_1_select(COST_GROUP) := l_temp_rec;
Line: 6570

     g_receiving_1_select(GRADE_CODE) := l_temp_rec;
Line: 6574

     g_receiving_1_select(CG_ID) := l_temp_rec;
Line: 6578

     g_receiving_1_select(LOADED) := l_temp_rec;
Line: 6582

     g_receiving_1_select(PLANNING_PARTY) := l_temp_rec;
Line: 6586

     g_receiving_1_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 6590

     g_receiving_1_select(OWNING_PARTY) := l_temp_rec;
Line: 6594

     g_receiving_1_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 6598

     g_receiving_1_select(LOT) := l_temp_rec;
Line: 6603

     g_receiving_1_select(SERIAL) := l_temp_rec;
Line: 6607

     g_receiving_1_select(UNIT_NUMBER) := l_temp_rec;
Line: 6611

     g_receiving_1_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 6615

     g_receiving_1_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 6619

     g_receiving_1_select(ORG_ID) := l_temp_rec;
Line: 6623

     g_receiving_1_select(ITEM) := l_temp_rec;
Line: 6627

     g_receiving_1_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 6631

     g_receiving_1_select(ITEM_ID) := l_temp_rec;
Line: 6635

     g_receiving_1_select(REVISION) := l_temp_rec;
Line: 6639

     g_receiving_1_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 6643

     g_receiving_1_select(ONHAND) := l_temp_rec;
Line: 6647

     g_receiving_1_select(RECEIVING) := l_temp_rec;
Line: 6651

     g_receiving_1_select(INBOUND) := l_temp_rec;
Line: 6655

     g_receiving_1_select(UNPACKED) := l_temp_rec;
Line: 6659

     g_receiving_1_select(PACKED) := l_temp_rec;
Line: 6663

     g_receiving_1_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 6667

     g_receiving_1_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 6671

     g_receiving_1_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 6675

     g_receiving_1_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 6679

     g_receiving_1_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6683

     g_receiving_1_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 6687

     g_receiving_1_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 6691

     g_receiving_1_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 6696

     g_receiving_1_select(STATUS) := l_temp_rec;
Line: 6700

     g_receiving_1_select(STATUS_ID) := l_temp_rec;
Line: 6706

     l_temp_rec       SelectColumnRecType;
Line: 6711

     g_date_bind_tab.DELETE;
Line: 6712

     g_number_bind_tab.DELETE;
Line: 6713

     g_varchar_bind_tab.DELETE;
Line: 6715

     g_union_select.DELETE;
Line: 6716

     g_union_group.DELETE;
Line: 6720

     g_union_select(PO_RELEASE_ID) := l_temp_rec;
Line: 6724

     g_union_select(RELEASE_LINE_NUMBER) := l_temp_rec;
Line: 6728

     g_union_select(SHIPMENT_NUMBER) := l_temp_rec;
Line: 6732

     g_union_select(SHIPMENT_HEADER_ID_INTERORG) := l_temp_rec;
Line: 6736

     g_union_select(ASN) := l_temp_rec;
Line: 6740

     g_union_select(SHIPMENT_HEADER_ID_ASN) := l_temp_rec;
Line: 6744

     g_union_select(TRADING_PARTNER) := l_temp_rec;
Line: 6748

     g_union_select(VENDOR_ID) := l_temp_rec;
Line: 6752

     g_union_select(TRADING_PARTNER_SITE) := l_temp_rec;
Line: 6756

     g_union_select(VENDOR_SITE_ID) := l_temp_rec;
Line: 6760

     g_union_select(FROM_ORG) := l_temp_rec;
Line: 6764

     g_union_select(FROM_ORG_ID) := l_temp_rec;
Line: 6768

     g_union_select(TO_ORG) := l_temp_rec;
Line: 6772

     g_union_select(TO_ORG_ID) := l_temp_rec;
Line: 6776

     g_union_select(EXPECTED_RECEIPT_DATE) := l_temp_rec;
Line: 6780

     g_union_select(SHIPPED_DATE) := l_temp_rec;
Line: 6784

     g_union_select(OWNING_ORG) := l_temp_rec;
Line: 6788

     g_union_select(OWNING_ORG_ID) := l_temp_rec;
Line: 6792

     g_union_select(REQ_HEADER_ID) := l_temp_rec;
Line: 6796

     g_union_select(OE_HEADER_ID) := l_temp_rec;
Line: 6800

     g_union_select(PO_HEADER_ID) := l_temp_rec;
Line: 6804

     g_union_select(MATURITY_DATE) := l_temp_rec;
Line: 6808

     g_union_select(HOLD_DATE) := l_temp_rec;
Line: 6812

     g_union_select(SUPPLIER_LOT) := l_temp_rec;
Line: 6816

     g_union_select(PARENT_LOT) := l_temp_rec;
Line: 6820

     g_union_select(DOCUMENT_TYPE) := l_temp_rec;
Line: 6824

     g_union_select(DOCUMENT_TYPE_ID) := l_temp_rec;
Line: 6828

     g_union_select(DOCUMENT_NUMBER) := l_temp_rec;
Line: 6832

     g_union_select(DOCUMENT_LINE_NUMBER) := l_temp_rec;
Line: 6836

     g_union_select(RELEASE_NUMBER) := l_temp_rec;
Line: 6840

     g_union_select(ORIGINATION_TYPE) := l_temp_rec;
Line: 6844

     g_union_select(ORIGINATION_DATE) := l_temp_rec;
Line: 6848

     g_union_select(ACTION_CODE) := l_temp_rec;
Line: 6852

     g_union_select(ACTION_DATE) := l_temp_rec;
Line: 6856

     g_union_select(RETEST_DATE) := l_temp_rec;
Line: 6860

     g_union_select(SECONDARY_UNPACKED) := l_temp_rec;
Line: 6864

     g_union_select(SECONDARY_PACKED) := l_temp_rec;
Line: 6868

     g_union_select(SUBINVENTORY_CODE) := l_temp_rec;
Line: 6872

     g_union_select(LOCATOR) := l_temp_rec;
Line: 6876

     g_union_select(LOCATOR_ID) := l_temp_rec;
Line: 6880

     g_union_select(LPN) := l_temp_rec;
Line: 6884

     g_union_select(LPN_ID) := l_temp_rec;
Line: 6888

     g_union_select(COST_GROUP) := l_temp_rec;
Line: 6892

     g_union_select(CG_ID) := l_temp_rec;
Line: 6896

     g_union_select(LOADED) := l_temp_rec;
Line: 6900

     g_union_select(PLANNING_PARTY) := l_temp_rec;
Line: 6904

     g_union_select(PLANNING_PARTY_ID) := l_temp_rec;
Line: 6908

     g_union_select(OWNING_PARTY) := l_temp_rec;
Line: 6912

     g_union_select(OWNING_PARTY_ID) := l_temp_rec;
Line: 6916

     g_union_select(LOT) := l_temp_rec;
Line: 6921

     g_union_select(SERIAL) := l_temp_rec;
Line: 6925

     g_union_select(UNIT_NUMBER) := l_temp_rec;
Line: 6929

     g_union_select(LOT_EXPIRY_DATE) := l_temp_rec;
Line: 6933

     g_union_select(ORGANIZATION_CODE) := l_temp_rec;
Line: 6937

     g_union_select(ORG_ID) := l_temp_rec;
Line: 6941

     g_union_select(ITEM) := l_temp_rec;
Line: 6945

     g_union_select(ITEM_DESCRIPTION) := l_temp_rec;
Line: 6949

     g_union_select(ITEM_ID) := l_temp_rec;
Line: 6953

     g_union_select(REVISION) := l_temp_rec;
Line: 6957

     g_union_select(PRIMARY_UOM_CODE) := l_temp_rec;
Line: 6961

     g_union_select(ONHAND) := l_temp_rec;
Line: 6965

     g_union_select(RECEIVING) := l_temp_rec;
Line: 6969

     g_union_select(INBOUND) := l_temp_rec;
Line: 6973

     g_union_select(UNPACKED) := l_temp_rec;
Line: 6977

     g_union_select(PACKED) := l_temp_rec;
Line: 6981

     g_union_select(SECONDARY_UOM_CODE) := l_temp_rec;
Line: 6985

     g_union_select(SECONDARY_ONHAND) := l_temp_rec;
Line: 6989

     g_union_select(SECONDARY_RECEIVING) := l_temp_rec;
Line: 6993

     g_union_select(SECONDARY_INBOUND) := l_temp_rec;
Line: 6997

     g_union_select(OWNING_ORGANIZATION_ID) := l_temp_rec;
Line: 7001

     g_union_select(PLANNING_ORGANIZATION_ID) := l_temp_rec;
Line: 7005

     g_union_select(OWNING_TP_TYPE) := l_temp_rec;
Line: 7009

     g_union_select(PLANNING_TP_TYPE) := l_temp_rec;
Line: 7014

     g_union_select(STATUS) := l_temp_rec;
Line: 7018

     g_union_select(STATUS_ID) := l_temp_rec;
Line: 7098

      SELECT count(*)
        INTO l_count
        FROM wms_license_plate_numbers wlpn
       WHERE wlpn.parent_lpn_id = inv_mwb_globals.g_tree_parent_lpn_id
         AND wlpn.organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 7112

      g_onhand_1_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
         'wlpn.subinventory_code';
Line: 7114

      g_onhand_1_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
         'wlpn.locator_id';
Line: 7116

      g_onhand_1_select(inv_mwb_query_manager.LPN).column_value :=
         'wlpn.license_plate_number';
Line: 7118

      g_onhand_1_select(inv_mwb_query_manager.ORG_ID).column_value :=
         'wlpn.organization_id';
Line: 7120

	  g_onhand_1_select(inv_mwb_query_manager.LPN_ID).column_value :=
         'wlpn.lpn_id';  -- 12984304
Line: 7140

      SELECT count(*)
        INTO l_count
        FROM wms_license_plate_numbers wlpn
       WHERE wlpn.parent_lpn_id = inv_mwb_globals.g_tree_parent_lpn_id
         AND wlpn.organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 7154

      g_receiving_1_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
         'wlpn.subinventory_code';
Line: 7156

      g_receiving_1_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
         'wlpn.locator_id';
Line: 7158

      g_receiving_1_select(inv_mwb_query_manager.LPN).column_value :=
         'wlpn.license_plate_number';
Line: 7160

      g_receiving_1_select(inv_mwb_query_manager.ORG_ID).column_value :=
         'wlpn.organization_id';
Line: 7179

      SELECT count(*)
        INTO l_count
        FROM wms_license_plate_numbers wlpn
       WHERE wlpn.parent_lpn_id = inv_mwb_globals.g_tree_parent_lpn_id
         AND wlpn.organization_id = inv_mwb_globals.g_tree_organization_id;
Line: 7194

      g_inbound_1_select(inv_mwb_query_manager.SUBINVENTORY_CODE).column_value :=
         'wlpn.subinventory_code';
Line: 7196

      g_inbound_1_select(inv_mwb_query_manager.LOCATOR_ID).column_value :=
         'wlpn.locator_id';
Line: 7198

      g_inbound_1_select(inv_mwb_query_manager.LPN).column_value :=
         'wlpn.license_plate_number';
Line: 7200

      g_inbound_1_select(inv_mwb_query_manager.ORG_ID).column_value :=
         'wlpn.organization_id';