DBA Data[Home] [Help]

APPS.CSI_INV_INTERORG_PKG SQL Statements

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

Line: 36

   l_update_instance_rec        CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 38

   l_update_dest_instance_rec   CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 100

     SELECT instance_status_id
     FROM   csi_instance_statuses
     WHERE  name = FND_PROFILE.VALUE('CSI_DEFAULT_INSTANCE_STATUS');
Line: 108

     SELECT serial_number_control_code,
            lot_control_code,
            revision_qty_control_code,
            location_control_code,
            comms_nl_trackable_flag
     FROM mtl_system_items_b
     WHERE inventory_item_id = pc_item_id
     AND organization_id = pc_org_id;
Line: 168

     l_employee_id := csi_inv_trxs_pkg.get_fnd_employee_id(l_mtl_item_tbl(i).last_updated_by);
Line: 171

       debug('The person who last updated this record: '||l_mtl_item_tbl(i).last_updated_by||' does not exist as a valid employee');
Line: 378

           l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 379

           l_update_instance_rec.inv_subinventory_name        :=  NULL;
Line: 380

           l_update_instance_rec.inv_locator_id               :=  NULL;
Line: 382

	   l_update_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 383

           l_update_instance_rec.inv_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 384

           l_update_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 385

           l_update_instance_rec.location_id                  := nvl(l_mtl_item_tbl(j).subinv_location_id,l_mtl_item_tbl(j).hr_location_id);
Line: 386

           l_update_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 387

           l_update_instance_rec.instance_usage_code          :=  l_in_transit;
Line: 388

           l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 390

           l_update_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 392

           debug('Instance Status - 4: '||l_update_instance_rec.instance_status_id);
Line: 395

           l_party_tbl.delete;
Line: 396

           l_account_tbl.delete;
Line: 397

           l_pricing_attrib_tbl.delete;
Line: 398

           l_org_assignments_tbl.delete;
Line: 399

           l_asset_assignment_tbl.delete;
Line: 401

           debug('Before Update Item Instance - 5');
Line: 403

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 421

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 423

           debug('After Update Item Instance - 6');
Line: 424

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 429

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 459

           l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 460

           l_update_instance_rec.inv_subinventory_name        :=  NULL;
Line: 461

           l_update_instance_rec.inv_locator_id               :=  NULL;
Line: 463

	   l_update_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 464

           l_update_instance_rec.inv_organization_id          :=  NULL;
Line: 465

           l_update_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 466

           l_update_instance_rec.location_id                  :=  l_def_in_transit_loc_id;
Line: 467

           l_update_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('hz_locations');
Line: 468

           l_update_instance_rec.active_end_date              :=  l_sysdate;
Line: 469

           l_update_instance_rec.instance_usage_code          :=  l_out_of_enterprise;
Line: 470

           l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 472

           l_update_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 474

           debug('Instance Status - 8: '||l_update_instance_rec.instance_status_id);
Line: 477

           l_party_tbl.delete;
Line: 478

           l_account_tbl.delete;
Line: 479

           l_pricing_attrib_tbl.delete;
Line: 480

           l_org_assignments_tbl.delete;
Line: 481

           l_asset_assignment_tbl.delete;
Line: 483

           debug('Before Update Item Instance - 9');
Line: 485

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 503

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 505

           debug('After Update Item Instance - 10');
Line: 506

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 511

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 521

         IF j = 1 THEN -- Look for IN Transit Non Serial If not there create or Update only 1 time
           l_instance_query_rec                               :=  csi_inv_trxs_pkg.init_instance_query_rec;
Line: 528

           l_update_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 659

            l_update_dest_instance_rec                          :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 660

            l_update_dest_instance_rec.instance_id              :=  l_dest_instance_header_tbl(i).instance_id;
Line: 661

            l_update_dest_instance_rec.quantity                 :=  l_dest_instance_header_tbl(i).quantity + l_quantity;
Line: 663

            l_update_dest_instance_rec.location_id              :=  nvl(l_mtl_item_tbl(j).subinv_location_id,l_mtl_item_tbl(j).hr_location_id);
Line: 664

            l_update_dest_instance_rec.location_type_code       :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 667

	    l_update_dest_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 668

            l_update_dest_instance_rec.inv_organization_id      :=  NULL;
Line: 669

            l_update_dest_instance_rec.inv_subinventory_name    :=  l_subinventory_name;
Line: 670

            l_update_dest_instance_rec.inv_locator_id           :=  l_locator_id;
Line: 671

            l_update_dest_instance_rec.instance_usage_code      :=  l_in_transit;
Line: 672

            l_update_dest_instance_rec.active_end_date          :=  NULL;
Line: 673

            l_update_dest_instance_rec.active_end_date          :=  NULL;
Line: 674

            l_update_dest_instance_rec.object_version_number    :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 676

            l_party_tbl.delete;
Line: 677

            l_account_tbl.delete;
Line: 678

            l_pricing_attrib_tbl.delete;
Line: 679

            l_org_assignments_tbl.delete;
Line: 680

            l_asset_assignment_tbl.delete;
Line: 682

               l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 684

               debug('Before Update Item Instance-16');
Line: 685

               debug('Instance Status-11: '||l_update_dest_instance_rec.instance_status_id);
Line: 687

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 705

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 707

             debug('After Update Item Instance-17');
Line: 708

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 766

           IF l_neg_code = 1 THEN -- Negative Records Allowed so Create/Update

             debug('No records were found and Inventory Allows Negative Quantities so create a new Source Instance Record - 8');
Line: 848

             debug('You will update instance: '||l_src_instance_header_tbl(i).instance_id);
Line: 850

             l_upd_src_dest_instance_rec                        :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 856

             l_party_tbl.delete;
Line: 857

             l_account_tbl.delete;
Line: 858

             l_pricing_attrib_tbl.delete;
Line: 859

             l_org_assignments_tbl.delete;
Line: 860

             l_asset_assignment_tbl.delete;
Line: 862

             debug('Before Update Source Item Instance - 13');
Line: 868

             csi_item_instance_pub.update_item_instance(l_api_version,
                                                        l_commit,
                                                        l_init_msg_list,
                                                        l_validation_level,
                                                        l_upd_src_dest_instance_rec,
                                                        l_ext_attrib_values_tbl,
                                                        l_party_tbl,
                                                        l_account_tbl,
                                                        l_pricing_attrib_tbl,
                                                        l_org_assignments_tbl,
                                                        l_asset_assignment_tbl,
                                                        l_txn_rec,
                                                        l_instance_id_lst,
                                                        l_return_status,
                                                        l_msg_count,
                                                        l_msg_data);
Line: 888

             debug('After Update Item Instance - 14');
Line: 894

               debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 1048

             l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 1049

             l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 1050

             l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 1051

             l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 1052

             l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 1054

             l_party_tbl.delete;
Line: 1055

             l_account_tbl.delete;
Line: 1056

             l_pricing_attrib_tbl.delete;
Line: 1057

             l_org_assignments_tbl.delete;
Line: 1058

             l_asset_assignment_tbl.delete;
Line: 1060

             l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 1062

             debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 1063

             debug('Before Update Item Instance - 23');
Line: 1065

             csi_item_instance_pub.update_item_instance(l_api_version,
                                                        l_commit,
                                                        l_init_msg_list,
                                                        l_validation_level,
                                                        l_update_dest_instance_rec,
                                                        l_ext_attrib_values_tbl,
                                                        l_party_tbl,
                                                        l_account_tbl,
                                                        l_pricing_attrib_tbl,
                                                        l_org_assignments_tbl,
                                                        l_asset_assignment_tbl,
                                                        l_txn_rec,
                                                        l_instance_id_lst,
                                                        l_return_status,
                                                        l_msg_count,
                                                        l_msg_data);
Line: 1083

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 1085

             debug('After Update Item Instance - 24');
Line: 1086

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 1148

       x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;
Line: 1185

        x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;
Line: 1213

   l_update_instance_rec        CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 1215

   l_update_dest_instance_rec   CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 1290

     SELECT instance_status_id
     FROM   csi_instance_statuses
     WHERE  name = FND_PROFILE.VALUE('CSI_DEFAULT_INSTANCE_STATUS');
Line: 1298

     SELECT serial_number_control_code,
            lot_control_code,
            revision_qty_control_code,
            location_control_code,
            comms_nl_trackable_flag
     FROM mtl_system_items_b
     WHERE inventory_item_id = pc_item_id
     AND organization_id = pc_org_id;
Line: 1353

     l_employee_id := csi_inv_trxs_pkg.get_fnd_employee_id(l_mtl_item_tbl(i).last_updated_by);
Line: 1356

          debug('The person who last updated this record: '||l_mtl_item_tbl(i).last_updated_by||' does not exist as a valid employee');
Line: 1613

             debug('Instance being updated: '||l_src_instance_header_tbl(i).instance_id);
Line: 1615

             l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 1617

	     l_update_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 1618

             l_update_instance_rec.inv_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1619

             l_update_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1620

             l_update_instance_rec.inv_subinventory_name        :=  l_mtl_item_tbl(j).subinventory_code;
Line: 1621

             l_update_instance_rec.inv_locator_id               :=  l_mtl_item_tbl(j).locator_id;
Line: 1622

             l_update_instance_rec.location_id                  :=  nvl(l_mtl_item_tbl(j).subinv_location_id,l_mtl_item_tbl(j).hr_location_id);
Line: 1623

             l_update_instance_rec.in_transit_order_line_id     :=  NULL;
Line: 1624

             l_update_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 1625

             l_update_instance_rec.instance_usage_code          :=  l_in_inventory;
Line: 1626

             l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 1629

               l_update_instance_rec.lot_number                   :=  NULL;
Line: 1632

               l_update_instance_rec.lot_number                   :=  l_mtl_item_tbl(j).lot_number;
Line: 1635

               l_update_instance_rec.lot_number                   :=  l_mtl_item_tbl(j).lot_number;
Line: 1640

             debug('After you initialize the Update Record Values - 2');
Line: 1644

           l_party_tbl.delete;
Line: 1645

           l_account_tbl.delete;
Line: 1646

           l_pricing_attrib_tbl.delete;
Line: 1647

           l_org_assignments_tbl.delete;
Line: 1648

           l_asset_assignment_tbl.delete;
Line: 1650

           debug('Before Update Item Instance - 4');
Line: 1652

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 1670

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 1672

           debug('After Update Item Instance - 5');
Line: 1673

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 1678

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 1697

          IF j = 1 THEN -- Update Source Since its Non Serialized 1 Time

           debug('Update Source 1 time with Transaction Quantity');
Line: 1700

           debug('Instance being updated: '||l_src_instance_header_tbl(i).instance_id);
Line: 1702

           l_upd_src_dest_instance_rec                        :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 1707

           l_party_tbl.delete;
Line: 1708

           l_account_tbl.delete;
Line: 1709

           l_pricing_attrib_tbl.delete;
Line: 1710

           l_org_assignments_tbl.delete;
Line: 1711

           l_asset_assignment_tbl.delete;
Line: 1713

           debug('Before Update Item Instance - 6');
Line: 1715

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_upd_src_dest_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 1735

           debug('After Update Item Instance - 7');
Line: 1741

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 1750

         END IF; -- End of J = 1 If to update Source 1 time
Line: 1885

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 1886

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 1887

               l_update_dest_instance_rec.quantity                :=  1;
Line: 1888

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 1889

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 1893

	l_update_dest_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 1894

	l_update_dest_instance_rec.inv_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1895

	l_update_dest_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1896

	l_update_dest_instance_rec.inv_subinventory_name        :=  l_mtl_item_tbl(j).subinventory_code;
Line: 1897

	l_update_dest_instance_rec.lot_number                   :=  l_mtl_item_tbl(j).lot_number;
Line: 1898

	l_update_dest_instance_rec.inv_locator_id               :=  l_mtl_item_tbl(j).locator_id;
Line: 1899

	l_update_dest_instance_rec.location_id                  :=  nvl(l_mtl_item_tbl(j).subinv_location_id,l_mtl_item_tbl(j).hr_location_id);
Line: 1900

	l_update_dest_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 1901

	l_update_dest_instance_rec.instance_usage_code          :=  l_in_inventory;
Line: 1904

	debug('Usage: '||l_update_dest_instance_rec.instance_usage_code);
Line: 1905

	debug('VLD Org: '||l_update_dest_instance_rec.vld_organization_id);
Line: 1906

	debug('INV Org: '||l_update_dest_instance_rec.inv_organization_id);
Line: 1907

	debug('Subinv Code: '||l_update_dest_instance_rec.inv_subinventory_name);
Line: 1910

               l_party_tbl.delete;
Line: 1911

               l_account_tbl.delete;
Line: 1912

               l_pricing_attrib_tbl.delete;
Line: 1913

               l_org_assignments_tbl.delete;
Line: 1914

               l_asset_assignment_tbl.delete;
Line: 1916

		     l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 1918

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 1919

               debug('Before Update Item Instance - 13');
Line: 1921

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 1939

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 1941

             debug('After Update Item Instance - 14');
Line: 1942

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 1960

               debug('Update Serialized Item which is :'||l_dest_instance_header_tbl(i).instance_usage_code);
Line: 1963

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 1964

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 1965

               l_update_dest_instance_rec.quantity                :=  1;
Line: 1966

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 1967

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 1971

	l_update_dest_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 1972

	l_update_dest_instance_rec.inv_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1973

	l_update_dest_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).organization_id;
Line: 1974

	l_update_dest_instance_rec.inv_subinventory_name        :=  l_mtl_item_tbl(j).subinventory_code;
Line: 1975

	l_update_dest_instance_rec.lot_number                   :=  l_mtl_item_tbl(j).lot_number;
Line: 1976

	l_update_dest_instance_rec.inv_locator_id               :=  l_mtl_item_tbl(j).locator_id;
Line: 1977

	l_update_dest_instance_rec.location_id                  :=  nvl(l_mtl_item_tbl(j).subinv_location_id,l_mtl_item_tbl(j).hr_location_id);
Line: 1978

	l_update_dest_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 1979

	l_update_dest_instance_rec.instance_usage_code          :=  l_in_inventory;
Line: 1982

	debug('Usage: '||l_update_dest_instance_rec.instance_usage_code);
Line: 1983

	debug('VLD Org: '||l_update_dest_instance_rec.vld_organization_id);
Line: 1984

	debug('INV Org: '||l_update_dest_instance_rec.inv_organization_id);
Line: 1985

	debug('Subinv Code: '||l_update_dest_instance_rec.inv_subinventory_name);
Line: 2052

           l_account_tbl.delete;
Line: 2053

           l_pricing_attrib_tbl.delete;
Line: 2054

           l_org_assignments_tbl.delete;
Line: 2055

           l_asset_assignment_tbl.delete;
Line: 2058

	l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 2060

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 2061

               debug('Before Update Item Instance - 13');
Line: 2063

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 2081

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 2083

             debug('After update of Out of Enterprise Item Instance');
Line: 2084

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 2085

             debug('After Update Item Instance - 14');
Line: 2126

             debug('Instance being updated: '||l_src_instance_header_tbl(k).instance_id);
Line: 2128

             l_update_instance_rec                              :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2129

             l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 2130

             l_update_instance_rec.quantity                     :=  l_src_instance_header_tbl(i).quantity - abs(l_mtl_item_tbl(j).primary_quantity);
Line: 2131

             l_update_instance_rec.active_end_date              :=  l_sysdate;
Line: 2132

             l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 2134

             debug('After you initialize the Update Record Values');
Line: 2135

             debug('Instance Updated: '||l_update_instance_rec.instance_id);
Line: 2136

             debug('End Date Passed in: '||to_char(l_update_instance_rec.active_end_date,'DD-MON-YYYY HH24:MI:SS'));
Line: 2137

             debug('Object Version: '||l_update_instance_rec.object_version_number);
Line: 2138

             debug('After you initialize the Update Record Values - 19');
Line: 2140

           l_party_tbl.delete;
Line: 2141

           l_account_tbl.delete;
Line: 2142

           l_pricing_attrib_tbl.delete;
Line: 2143

           l_org_assignments_tbl.delete;
Line: 2144

           l_asset_assignment_tbl.delete;
Line: 2146

           debug('Before Update Item Instance - 21');
Line: 2148

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 2166

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 2168

           debug('After Update Item Instance - 22');
Line: 2169

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 2170

           debug('You are updating Serial Number: '||l_update_instance_rec.serial_number);
Line: 2175

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 2307

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2308

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 2309

               l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 2310

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 2311

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 2313

               l_party_tbl.delete;
Line: 2314

               l_account_tbl.delete;
Line: 2315

               l_pricing_attrib_tbl.delete;
Line: 2316

               l_org_assignments_tbl.delete;
Line: 2317

               l_asset_assignment_tbl.delete;
Line: 2319

	       l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 2321

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 2322

               debug('Before Update Item Instance - 29');
Line: 2325

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 2343

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 2345

             debug('After Update Item Instance - 30');
Line: 2346

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 2380

             debug('Instance being updated: '||l_src_instance_header_tbl(k).instance_id);
Line: 2382

             l_update_instance_rec                              :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2383

             l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(k).instance_id;
Line: 2384

             l_update_instance_rec.active_end_date              :=  l_sysdate;
Line: 2385

             l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(k).object_version_number;
Line: 2387

             debug('After you initialize the Update Record Values');
Line: 2388

             debug('Instance Updated: '||l_update_instance_rec.instance_id);
Line: 2389

             debug('End Date Passed in: '||to_char(l_update_instance_rec.active_end_date,'DD-MON-YYYY HH24:MI:SS'));
Line: 2390

             debug('Object Version: '||l_update_instance_rec.object_version_number);
Line: 2391

             debug('After you initialize the Update Record Values - 19');
Line: 2393

           l_party_tbl.delete;
Line: 2394

           l_account_tbl.delete;
Line: 2395

           l_pricing_attrib_tbl.delete;
Line: 2396

           l_org_assignments_tbl.delete;
Line: 2397

           l_asset_assignment_tbl.delete;
Line: 2399

           debug('Before Update Item Instance - 21');
Line: 2401

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 2419

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 2421

           debug('After Update Item Instance - 22');
Line: 2422

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 2423

           debug('You are updating Serial Number: '||l_update_instance_rec.serial_number);
Line: 2428

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 2562

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2563

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 2564

               l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 2565

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 2566

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 2568

               l_party_tbl.delete;
Line: 2569

               l_account_tbl.delete;
Line: 2570

               l_pricing_attrib_tbl.delete;
Line: 2571

               l_org_assignments_tbl.delete;
Line: 2572

               l_asset_assignment_tbl.delete;
Line: 2574

	       l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 2576

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 2577

               debug('Before Update Item Instance - 29');
Line: 2580

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 2598

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 2600

             debug('After Update Item Instance - 30');
Line: 2601

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 2634

           debug('Instance being updated: '||l_src_instance_header_tbl(i).instance_id);
Line: 2636

           l_upd_src_dest_instance_rec                        :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2641

           l_party_tbl.delete;
Line: 2642

           l_account_tbl.delete;
Line: 2643

           l_pricing_attrib_tbl.delete;
Line: 2644

           l_org_assignments_tbl.delete;
Line: 2645

           l_asset_assignment_tbl.delete;
Line: 2647

           debug('Before Update Item Instance - 35');
Line: 2649

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_upd_src_dest_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 2669

           debug('After Update Item Instance - 36');
Line: 2675

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 2806

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 2807

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 2808

               l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 2809

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 2810

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 2812

               l_party_tbl.delete;
Line: 2813

               l_account_tbl.delete;
Line: 2814

               l_pricing_attrib_tbl.delete;
Line: 2815

               l_org_assignments_tbl.delete;
Line: 2816

               l_asset_assignment_tbl.delete;
Line: 2818

		     l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 2820

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 2821

               debug('Before Update Item Instance - 42');
Line: 2823

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 2841

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 2843

             debug('After Update Item Instance - 43');
Line: 2844

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 2931

       x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;
Line: 2966

        x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;
Line: 2994

   l_update_instance_rec        CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 2996

   l_update_dest_instance_rec   CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
Line: 3060

     SELECT instance_status_id
     FROM   csi_instance_statuses
     WHERE  name = FND_PROFILE.VALUE('CSI_DEFAULT_INSTANCE_STATUS');
Line: 3072

      SELECT transfer_transaction_id,
             transaction_action_id,
             transaction_type_id,
             transaction_source_type_id,
             transaction_quantity
	 FROM mtl_material_transactions
	 WHERE transaction_id = p_transaction_id;
Line: 3084

     SELECT serial_number_control_code,
            lot_control_code,
            revision_qty_control_code,
            location_control_code,
            comms_nl_trackable_flag
     FROM mtl_system_items_b
     WHERE inventory_item_id = pc_item_id
     AND organization_id = pc_org_id;
Line: 3097

    SELECT haou.location_id hr_location_id,
           msi.location_id  subinv_location_id
    FROM hr_all_organization_units haou,
         mtl_secondary_inventories msi
    WHERE haou.organization_id = pc_org_id
    AND msi.organization_id = pc_org_id
    AND msi.secondary_inventory_name = pc_subinv_name;
Line: 3156

     l_employee_id := csi_inv_trxs_pkg.get_fnd_employee_id(l_mtl_item_tbl(i).last_updated_by);
Line: 3159

       debug('The person who last updated this record: '||l_mtl_item_tbl(i).last_updated_by||' does not exist as a valid employee');
Line: 3379

          debug('Instance being updated: '||l_src_instance_header_tbl(i).instance_id);
Line: 3381

          l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 3383

	  l_update_instance_rec.inv_master_organization_id   :=  l_master_organization_id;
Line: 3384

          l_update_instance_rec.inv_organization_id          :=  l_mtl_item_tbl(j).transfer_organization_id;
Line: 3385

          l_update_instance_rec.vld_organization_id          :=  l_mtl_item_tbl(j).transfer_organization_id;
Line: 3386

          l_update_instance_rec.inv_subinventory_name        :=  l_mtl_item_tbl(j).transfer_subinventory;
Line: 3387

          l_update_instance_rec.inv_locator_id               :=  l_mtl_item_tbl(j).transfer_locator_id;
Line: 3388

          l_update_instance_rec.location_id                  :=  nvl(r_loc_ids.subinv_location_id,r_loc_ids.hr_location_id);
Line: 3389

          l_update_instance_rec.location_type_code           :=  csi_inv_trxs_pkg.get_location_type_code('Inventory');
Line: 3390

          l_update_instance_rec.instance_usage_code          :=  l_in_inventory;
Line: 3391

          l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 3394

          debug('After the update for Direct Shipment is set.');
Line: 3395

          debug('Transfer Org: '||l_update_instance_rec.inv_organization_id);
Line: 3398

          l_party_tbl.delete;
Line: 3399

          l_account_tbl.delete;
Line: 3400

          l_pricing_attrib_tbl.delete;
Line: 3401

          l_org_assignments_tbl.delete;
Line: 3402

          l_asset_assignment_tbl.delete;
Line: 3404

          debug('Before Update Item Instance - 3');
Line: 3406

          csi_item_instance_pub.update_item_instance(l_api_version,
                                                     l_commit,
                                                     l_init_msg_list,
                                                     l_validation_level,
                                                     l_update_instance_rec,
                                                     l_ext_attrib_values_tbl,
                                                     l_party_tbl,
                                                     l_account_tbl,
                                                     l_pricing_attrib_tbl,
                                                     l_org_assignments_tbl,
                                                     l_asset_assignment_tbl,
                                                     l_txn_rec,
                                                     l_instance_id_lst,
                                                     l_return_status,
                                                     l_msg_count,
                                                     l_msg_data);
Line: 3424

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 3426

           debug('After Update Item Instance - 4');
Line: 3427

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 3432

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 3544

           debug('Source Recs found so update or unexpire existing Non Serial Instance ');
Line: 3548

           debug('You will update instance: '||l_src_instance_header_tbl(i).instance_id);
Line: 3550

           l_upd_src_dest_instance_rec                        :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 3556

           l_party_tbl.delete;
Line: 3557

           l_account_tbl.delete;
Line: 3558

           l_pricing_attrib_tbl.delete;
Line: 3559

           l_org_assignments_tbl.delete;
Line: 3560

           l_asset_assignment_tbl.delete;
Line: 3562

           debug('Before Update Source Item Instance - 10');
Line: 3564

           debug('Before Update Source Item Instance - 11');
Line: 3568

           debug('Before Update Source Item Instance - 11');
Line: 3573

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_upd_src_dest_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 3593

           debug('After Update Item Instance - 11');
Line: 3599

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 3742

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 3743

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 3744

               l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 3745

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 3746

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 3748

               l_party_tbl.delete;
Line: 3749

               l_account_tbl.delete;
Line: 3750

               l_pricing_attrib_tbl.delete;
Line: 3751

               l_org_assignments_tbl.delete;
Line: 3752

               l_asset_assignment_tbl.delete;
Line: 3754

	       l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 3756

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 3757

               debug('Before Update Item Instance - 19');
Line: 3760

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 3778

             l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 3780

             debug('After Update Item Instance - 20');
Line: 3781

             debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 3821

             debug('Instance being updated: '||l_src_instance_header_tbl(i).instance_id);
Line: 3823

             l_update_instance_rec.instance_id                  :=  l_src_instance_header_tbl(i).instance_id;
Line: 3824

             l_update_instance_rec.active_end_date              :=  l_sysdate;
Line: 3825

             l_update_instance_rec.object_version_number        :=  l_src_instance_header_tbl(i).object_version_number;
Line: 3827

             debug('After you initialize the Update Record Values');
Line: 3830

           l_party_tbl.delete;
Line: 3831

           l_account_tbl.delete;
Line: 3832

           l_pricing_attrib_tbl.delete;
Line: 3833

           l_org_assignments_tbl.delete;
Line: 3834

           l_asset_assignment_tbl.delete;
Line: 3836

              debug('Before Update Item Instance - 25');
Line: 3838

           csi_item_instance_pub.update_item_instance(l_api_version,
                                                      l_commit,
                                                      l_init_msg_list,
                                                      l_validation_level,
                                                      l_update_instance_rec,
                                                      l_ext_attrib_values_tbl,
                                                      l_party_tbl,
                                                      l_account_tbl,
                                                      l_pricing_attrib_tbl,
                                                      l_org_assignments_tbl,
                                                      l_asset_assignment_tbl,
                                                      l_txn_rec,
                                                      l_instance_id_lst,
                                                      l_return_status,
                                                      l_msg_count,
                                                      l_msg_data);
Line: 3856

           l_upd_error_instance_id := l_update_instance_rec.instance_id;
Line: 3858

           debug('After Update Item Instance - 26');
Line: 3859

           debug('You are updating Instance: '||l_update_instance_rec.instance_id);
Line: 3860

           debug('You are updating Serial Number: '||l_update_instance_rec.serial_number);
Line: 3865

             debug('You encountered an error in the csi_item_instance_pub.update_item_instance API '||l_msg_data);
Line: 3998

               l_update_dest_instance_rec                         :=  csi_inv_trxs_pkg.init_instance_update_rec;
Line: 3999

               l_update_dest_instance_rec.instance_id             :=  l_dest_instance_header_tbl(i).instance_id;
Line: 4000

               l_update_dest_instance_rec.quantity                :=  l_dest_instance_header_tbl(i).quantity + abs(l_mtl_item_tbl(j).primary_quantity);
Line: 4001

               l_update_dest_instance_rec.active_end_date         :=  NULL;
Line: 4002

               l_update_dest_instance_rec.object_version_number   :=  l_dest_instance_header_tbl(i).object_version_number;
Line: 4004

               l_party_tbl.delete;
Line: 4005

               l_account_tbl.delete;
Line: 4006

               l_pricing_attrib_tbl.delete;
Line: 4007

               l_org_assignments_tbl.delete;
Line: 4008

               l_asset_assignment_tbl.delete;
Line: 4010

		     l_update_dest_instance_rec.instance_status_id := nvl(csi_inv_trxs_pkg.get_default_status_id(l_txn_rec.transaction_type_id),r_id.instance_status_id);
Line: 4012

               debug('Instance Status Id: '||l_update_dest_instance_rec.instance_status_id);
Line: 4013

               debug('Before Update Item Instance - 32');
Line: 4015

               csi_item_instance_pub.update_item_instance(l_api_version,
                                                          l_commit,
                                                          l_init_msg_list,
                                                          l_validation_level,
                                                          l_update_dest_instance_rec,
                                                          l_ext_attrib_values_tbl,
                                                          l_party_tbl,
                                                          l_account_tbl,
                                                          l_pricing_attrib_tbl,
                                                          l_org_assignments_tbl,
                                                          l_asset_assignment_tbl,
                                                          l_txn_rec,
                                                          l_instance_id_lst,
                                                          l_return_status,
                                                          l_msg_count,
                                                          l_msg_data);
Line: 4033

              l_upd_error_instance_id := l_update_dest_instance_rec.instance_id;
Line: 4035

              debug('After Update Item Instance - 33');
Line: 4036

              debug('You are updating Instance: '||l_update_dest_instance_rec.instance_id);
Line: 4129

       x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;
Line: 4164

        x_trx_error_rec.error_stage          := csi_inv_trxs_pkg.g_ib_update;