DBA Data[Home] [Help]

APPS.ENG_LAUNCH_ECO_OI_PK SQL Statements

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

Line: 78

      SELECT attribute7, attribute8, attribute9, attribute10, attribute11,
             attribute12, attribute13, attribute14, attribute15, request_id,
             program_application_id, program_id, program_update_date,
             approval_status_type, approval_date, approval_list_id,
             change_order_type_id, responsible_organization_id,
             approval_request_date, requestor_user_name, assignee_name,
             change_notice, organization_id, last_update_date, last_updated_by,
             creation_date, created_by, last_update_login, description,
             status_type, initiation_date, implementation_date,
             cancellation_date, cancellation_comments, priority_code,
             reason_code, estimated_eng_cost, estimated_mfg_cost, requestor_id,
             attribute_category, attribute1, attribute2, attribute3,
             attribute4, attribute5, attribute6, process_flag,
             transaction_id, APPROVAL_LIST_NAME, CHANGE_ORDER_TYPE,
             change_mgmt_type_name, project_name, task_number, ORGANIZATION_CODE,
             RESPONSIBLE_ORG_CODE, transaction_type, ENG_CHANGES_IFCE_KEY, change_name ,status_name, --Bug 2908248
             pk1_name ,pk2_name , pk3_name ,plm_or_erp_change --11.5.10
             , Approval_status_name -- bug 3587304
             ,ORGANIZATION_HIERARCHY  -- 4967902
             , employee_number -- 4402842
             , source_type_name
             , source_name
             , need_by_date
             , eco_department_name
        FROM eng_eng_changes_interface
       WHERE process_flag = 1
         AND (g_all_org = 1
              OR
             (g_all_org = 2 AND organization_id = g_org_id));
Line: 111

      SELECT attribute11, attribute12, attribute13, attribute14,
             attribute15, program_application_id, program_id, program_update_date,
             request_id, revision_id, change_notice, organization_id, revision,
             last_update_date, last_updated_by, creation_date,created_by,
             last_update_login, comments,attribute_category, attribute1,
             attribute2, attribute3, attribute4, attribute5, attribute6,
             attribute7, attribute8, attribute9, attribute10, new_revision,
             process_flag, transaction_id,transaction_type, ORGANIZATION_CODE,
             eng_changes_ifce_key
        FROM eng_eco_revisions_interface
       WHERE eng_changes_ifce_key = g_ECO_ifce_key
         AND process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 131

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM eng_eco_revisions_interface
       WHERE process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 141

      SELECT attribute11, attribute12, attribute13, attribute14,
             attribute15, program_application_id, program_id, program_update_date,
             request_id, revision_id, change_notice, organization_id, revision,
             last_update_date, last_updated_by, creation_date,created_by,
             last_update_login, comments,attribute_category, attribute1,
             attribute2, attribute3, attribute4, attribute5, attribute6,
             attribute7, attribute8, attribute9, attribute10, new_revision,
             process_flag, transaction_id,transaction_type, ORGANIZATION_CODE,
             eng_changes_ifce_key, eng_eco_revisions_ifce_key
        FROM eng_eco_revisions_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 162

      SELECT  change_notice             ,
        organization_id           ,
        revised_item_id           ,
        last_update_date          ,
        last_updated_by           ,
        creation_date             ,
        created_by                ,
        last_update_login         ,
        implementation_date       ,
        cancellation_date         ,
        cancel_comments           ,
        disposition_type          ,
        new_item_revision         ,
        early_schedule_date       ,
        attribute_category        ,
        attribute2                ,
        attribute3                ,
        attribute4                ,
        attribute5                ,
        attribute7                ,
        attribute8                ,
        attribute9                ,
        attribute11               ,
        attribute12               ,
        attribute13               ,
        attribute14               ,
        attribute15               ,
        status_type               ,
        scheduled_date            ,
        bill_sequence_id          ,
        mrp_active                ,
        request_id                ,
        program_application_id    ,
        program_id                ,
        program_update_date       ,
        update_wip                ,
        use_up                    ,
        use_up_item_id            ,
        revised_item_sequence_id  ,
        use_up_plan_name          ,
        descriptive_text          ,
        auto_implement_date       ,
        attribute1                ,
        attribute6                ,
        attribute10               ,
        requestor_id              ,
        comments                  ,
        process_flag              ,
        transaction_id            ,
        organization_code         ,
        revised_item_number       ,
        new_rtg_revision          ,
        use_up_item_number        ,
        alternate_bom_designator  ,
        transaction_type          ,
        ENG_REVISED_ITEMS_IFCE_KEY,
        eng_changes_ifce_key      ,
        parent_revised_item_name  ,
        parent_alternate_name     ,
        updated_item_revision     ,
        New_scheduled_date     -- Bug 3432944
        ,
        from_item_revision -- 11.5.10E
        ,
        new_revision_label        ,
        New_Revised_Item_Rev_Desc ,
        new_revision_reason       ,
        from_end_item_unit_number
        /*Bug 6377841*/
FROM    eng_revised_items_interface
WHERE   eng_changes_ifce_key = g_ECO_ifce_key
    AND process_flag         = 1
    AND (g_all_org           = 1
     OR (g_all_org           = 2
    AND organization_id      = g_org_id))
ORDER BY parent_revised_item_name desc ;
Line: 243

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM eng_revised_items_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 254

        SELECT  change_notice             ,
                organization_id           ,
                revised_item_id           ,
                last_update_date          ,
                last_updated_by           ,
                creation_date             ,
                created_by                ,
                last_update_login         ,
                implementation_date       ,
                cancellation_date         ,
                cancel_comments           ,
                disposition_type          ,
                new_item_revision         ,
                early_schedule_date       ,
                attribute_category        ,
                attribute2                ,
                attribute3                ,
                attribute4                ,
                attribute5                ,
                attribute7                ,
                attribute8                ,
                attribute9                ,
                attribute11               ,
                attribute12               ,
                attribute13               ,
                attribute14               ,
                attribute15               ,
                status_type               ,
                scheduled_date            ,
                bill_sequence_id          ,
                mrp_active                ,
                request_id                ,
                program_application_id    ,
                program_id                ,
                program_update_date       ,
                update_wip                ,
                use_up                    ,
                use_up_item_id            ,
                revised_item_sequence_id  ,
                use_up_plan_name          ,
                descriptive_text          ,
                auto_implement_date       ,
                attribute1                ,
                attribute6                ,
                attribute10               ,
                requestor_id              ,
                comments                  ,
                process_flag              ,
                transaction_id            ,
                organization_code         ,
                revised_item_number       ,
                new_rtg_revision          ,
                use_up_item_number        ,
                alternate_bom_designator  ,
                transaction_type          ,
                ENG_REVISED_ITEMS_IFCE_KEY,
                eng_changes_ifce_key      ,
                parent_revised_item_name  ,
                parent_alternate_name     ,
                updated_item_revision     ,
                New_scheduled_date    -- Bug 3432944
                ,
                from_item_revision -- 11.5.10E
                ,
                new_revision_label        ,
                New_Revised_Item_Rev_Desc ,
                new_revision_reason       ,
                from_end_item_unit_number
                /*Bug 6377841*/
        FROM    eng_revised_items_interface
        WHERE   process_flag    = 1
            AND (g_all_org      = 1
             OR (g_all_org      = 2
            AND organization_id = g_org_id))
        ORDER BY parent_revised_item_name desc ;
Line: 334

        SELECT  supply_subinventory         ,
                operation_lead_time_percent ,
                revised_item_sequence_id    ,
                cost_factor                 ,
                required_for_revenue        ,
                high_quantity               ,
                component_sequence_id       ,
                program_application_id      ,
                wip_supply_type             ,
                supply_locator_id           ,
                bom_item_type               ,
                operation_seq_num           ,
                component_item_id           ,
                last_update_date            ,
                last_updated_by             ,
                creation_date               ,
                created_by                  ,
                last_update_login           ,
                item_num                    ,
                component_quantity          ,
                component_yield_factor      ,
                component_remarks           ,
                revised_item_number         ,
                effectivity_date            ,
                change_notice               ,
                implementation_date         ,
                disable_date                ,
                attribute_category          ,
                attribute1                  ,
                attribute2                  ,
                attribute3                  ,
                attribute4                  ,
                attribute5                  ,
                attribute6                  ,
                attribute7                  ,
                attribute8                  ,
                attribute9                  ,
                attribute10                 ,
                attribute11                 ,
                attribute12                 ,
                attribute13                 ,
                attribute14                 ,
                attribute15                 ,
                planning_factor             ,
                quantity_related            ,
                so_basis                    ,
                optional                    ,
                mutually_exclusive_options  ,
                include_in_cost_rollup      ,
                check_atp                   ,
                shipping_allowed            ,
                required_to_ship            ,
                include_on_ship_docs        ,
                include_on_bill_docs        ,
                low_quantity                ,
                acd_type                    ,
                old_component_sequence_id   ,
                bill_sequence_id            ,
                request_id                  ,
                program_id                  ,
                program_update_date         ,
                pick_components             ,
                assembly_type               ,
                interface_entity_type       ,
                reference_designator        ,
                new_effectivity_date        ,
                old_effectivity_date        ,
                substitute_comp_id          ,
                new_operation_seq_num       ,
                old_operation_seq_num       ,
                process_flag                ,
                transaction_id              ,
                SUBSTITUTE_COMP_NUMBER      ,
                ORGANIZATION_CODE           ,
                ASSEMBLY_ITEM_NUMBER        ,
                COMPONENT_ITEM_NUMBER       ,
                LOCATION_NAME               ,
                ORGANIZATION_ID             ,
                ASSEMBLY_ITEM_ID            ,
                ALTERNATE_BOM_DESIGNATOR    ,
                transaction_type            ,
                BOM_INVENTORY_COMPS_IFCE_KEY,
                eng_changes_ifce_key        ,
                eng_revised_items_ifce_key
                --Bug 3396529: Added New_revised_Item_Revision
                ,
                New_revised_Item_Revision,
                basis_type               ,
                from_end_item_unit_number, /*Bug 6377841*/
                to_end_item_unit_number
                /*Bug 6377841*/
        FROM    bom_inventory_comps_interface
        WHERE   eng_changes_ifce_key  = g_ECO_ifce_key
            AND interface_entity_type = 'ECO'
            AND process_flag          = 1
            AND (g_all_org            = 1
             OR (g_all_org            = 2
            AND organization_id       = g_org_id));
Line: 437

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM bom_inventory_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 448

        SELECT  supply_subinventory         ,
                operation_lead_time_percent ,
                revised_item_sequence_id    ,
                cost_factor                 ,
                required_for_revenue        ,
                high_quantity               ,
                component_sequence_id       ,
                program_application_id      ,
                wip_supply_type             ,
                supply_locator_id           ,
                bom_item_type               ,
                operation_seq_num           ,
                component_item_id           ,
                last_update_date            ,
                last_updated_by             ,
                creation_date               ,
                created_by                  ,
                last_update_login           ,
                item_num                    ,
                component_quantity          ,
                component_yield_factor      ,
                component_remarks           ,
                effectivity_date            ,
                change_notice               ,
                implementation_date         ,
                disable_date                ,
                attribute_category          ,
                attribute1                  ,
                attribute2                  ,
                attribute3                  ,
                attribute4                  ,
                attribute5                  ,
                attribute6                  ,
                attribute7                  ,
                attribute8                  ,
                attribute9                  ,
                attribute10                 ,
                attribute11                 ,
                attribute12                 ,
                attribute13                 ,
                attribute14                 ,
                attribute15                 ,
                planning_factor             ,
                quantity_related            ,
                so_basis                    ,
                optional                    ,
                mutually_exclusive_options  ,
                include_in_cost_rollup      ,
                check_atp                   ,
                shipping_allowed            ,
                required_to_ship            ,
                include_on_ship_docs        ,
                include_on_bill_docs        ,
                low_quantity                ,
                acd_type                    ,
                old_component_sequence_id   ,
                bill_sequence_id            ,
                request_id                  ,
                program_id                  ,
                program_update_date         ,
                pick_components             ,
                assembly_type               ,
                interface_entity_type       ,
                reference_designator        ,
                new_effectivity_date        ,
                old_effectivity_date        ,
                substitute_comp_id          ,
                new_operation_seq_num       ,
                old_operation_seq_num       ,
                process_flag                ,
                transaction_id              ,
                SUBSTITUTE_COMP_NUMBER      ,
                ORGANIZATION_CODE           ,
                ASSEMBLY_ITEM_NUMBER        ,
                COMPONENT_ITEM_NUMBER       ,
                LOCATION_NAME               ,
                ORGANIZATION_ID             ,
                ASSEMBLY_ITEM_ID            ,
                ALTERNATE_BOM_DESIGNATOR    ,
                transaction_type            ,
                BOM_INVENTORY_COMPS_IFCE_KEY,
                eng_changes_ifce_key        ,
                eng_revised_items_ifce_key
                --Bug 3396529: Added New_revised_Item_Revision
                ,
                New_revised_Item_Revision,
                basis_type               ,
                from_end_item_unit_number,
                /*Bug 6377841*/
                to_end_item_unit_number
                /*Bug 6377841*/
        FROM    bom_inventory_comps_interface
        WHERE   eng_revised_items_ifce_key = g_revised_item_ifce_key
            AND interface_entity_type      = 'ECO'
            AND process_flag               = 1
            AND (g_all_org                 = 1
             OR (g_all_org                 = 2
            AND organization_id            = g_org_id));
Line: 551

      SELECT DISTINCT(ENG_REVISED_ITEMS_IFCE_KEY) item_ifce_key
        FROM bom_inventory_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 562

        SELECT  supply_subinventory         ,
                operation_lead_time_percent ,
                revised_item_sequence_id    ,
                cost_factor                 ,
                required_for_revenue        ,
                high_quantity               ,
                component_sequence_id       ,
                program_application_id      ,
                wip_supply_type             ,
                supply_locator_id           ,
                bom_item_type               ,
                operation_seq_num           ,
                component_item_id           ,
                last_update_date            ,
                last_updated_by             ,
                creation_date               ,
                created_by                  ,
                last_update_login           ,
                item_num                    ,
                component_quantity          ,
                component_yield_factor      ,
                component_remarks           ,
                effectivity_date            ,
                change_notice               ,
                implementation_date         ,
                disable_date                ,
                attribute_category          ,
                attribute1                  ,
                attribute2                  ,
                attribute3                  ,
                attribute4                  ,
                attribute5                  ,
                attribute6                  ,
                attribute7                  ,
                attribute8                  ,
                attribute9                  ,
                attribute10                 ,
                attribute11                 ,
                attribute12                 ,
                attribute13                 ,
                attribute14                 ,
                attribute15                 ,
                planning_factor             ,
                quantity_related            ,
                so_basis                    ,
                optional                    ,
                mutually_exclusive_options  ,
                include_in_cost_rollup      ,
                check_atp                   ,
                shipping_allowed            ,
                required_to_ship            ,
                include_on_ship_docs        ,
                include_on_bill_docs        ,
                low_quantity                ,
                acd_type                    ,
                old_component_sequence_id   ,
                bill_sequence_id            ,
                request_id                  ,
                program_id                  ,
                program_update_date         ,
                pick_components             ,
                assembly_type               ,
                interface_entity_type       ,
                reference_designator        ,
                new_effectivity_date        ,
                old_effectivity_date        ,
                substitute_comp_id          ,
                new_operation_seq_num       ,
                old_operation_seq_num       ,
                process_flag                ,
                transaction_id              ,
                SUBSTITUTE_COMP_NUMBER      ,
                ORGANIZATION_CODE           ,
                ASSEMBLY_ITEM_NUMBER        ,
                COMPONENT_ITEM_NUMBER       ,
                LOCATION_NAME               ,
                ORGANIZATION_ID             ,
                ASSEMBLY_ITEM_ID            ,
                ALTERNATE_BOM_DESIGNATOR    ,
                transaction_type            ,
                BOM_INVENTORY_COMPS_IFCE_KEY,
                eng_changes_ifce_key        ,
                eng_revised_items_ifce_key
                --Bug 3396529: Added New_revised_Item_Revision
                ,
                New_revised_Item_Revision,
                basis_type               ,
                from_end_item_unit_number, /*Bug 6377841*/
                to_end_item_unit_number
                /*Bug 6377841*/
        FROM    bom_inventory_comps_interface
        WHERE   interface_entity_type = 'ECO'
            AND process_flag          = 1
            AND (g_all_org            = 1
             OR (g_all_org            = 2
            AND organization_id       = g_org_id));
Line: 662

      SELECT COMPONENT_REFERENCE_DESIGNATOR,last_update_date,last_update_login,
             ref_designator_comment, change_notice, component_sequence_id,acd_type,
             request_id, program_application_id, program_id, program_update_date,
             attribute_category, attribute1, attribute2, attribute3, attribute4,
             attribute5, attribute6, attribute7, attribute8, attribute9, attribute10,
             attribute11, attribute12, attribute13, attribute14, attribute15,
             new_designator, process_flag, transaction_id, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, ORGANIZATION_CODE, ORGANIZATION_ID,last_updated_by,
             creation_date, created_by, ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR,
             COMPONENT_ITEM_ID, BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_ref_desgs_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_ref_desgs_interface
       WHERE eng_changes_ifce_key = g_ECO_ifce_key
             and process_flag = 1
             AND (g_all_org = 1
                  OR
                 (g_all_org = 2 AND organization_id = g_org_id));
Line: 688

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM bom_ref_desgs_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 698

      SELECT COMPONENT_REFERENCE_DESIGNATOR,last_update_date,last_update_login,
             last_updated_by, creation_date,created_by, ref_designator_comment,
             change_notice, component_sequence_id,acd_type, request_id,
             program_application_id, program_id, program_update_date,
             attribute_category, attribute1, attribute2, attribute3, attribute4,
             attribute5, attribute6, attribute7, attribute8, attribute9, attribute10,
             attribute11, attribute12, attribute13, attribute14, attribute15,
             new_designator, process_flag, transaction_id, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, ORGANIZATION_CODE, ORGANIZATION_ID,
             ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR, COMPONENT_ITEM_ID,
             BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_ref_desgs_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_ref_desgs_interface
       WHERE eng_revised_items_ifce_key = g_revised_item_ifce_key
         AND interface_entity_type = 'ECO'
         AND process_flag = 1
         AND (g_all_org = 1
             OR
             (g_all_org = 2 AND organization_id = g_org_id));
Line: 726

      SELECT DISTINCT(eng_revised_items_ifce_key) item_ifce_key
        FROM bom_ref_desgs_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 736

      SELECT COMPONENT_REFERENCE_DESIGNATOR,last_update_date,last_update_login,
             last_updated_by, creation_date,created_by, ref_designator_comment,
             change_notice, component_sequence_id,acd_type, request_id,
             program_application_id, program_id, program_update_date,
             attribute_category, attribute1, attribute2, attribute3, attribute4,
             attribute5, attribute6, attribute7, attribute8, attribute9, attribute10,
             attribute11, attribute12, attribute13, attribute14, attribute15,
             new_designator, process_flag, transaction_id, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, ORGANIZATION_CODE, ORGANIZATION_ID,
             ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR, COMPONENT_ITEM_ID,
             BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_ref_desgs_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_ref_desgs_interface
       WHERE bom_inventory_comps_ifce_key = g_revised_comp_ifce_key
         AND interface_entity_type = 'ECO'
         AND process_flag = 1
         AND (g_all_org = 1
             OR
             (g_all_org = 2 AND organization_id = g_org_id));
Line: 764

      SELECT DISTINCT(bom_inventory_comps_ifce_key) comp_ifce_key
        FROM bom_ref_desgs_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 774

      SELECT COMPONENT_REFERENCE_DESIGNATOR,last_update_date,last_update_login,
             last_updated_by, creation_date,created_by, ref_designator_comment,
             change_notice, component_sequence_id,acd_type, request_id,
             program_application_id, program_id, program_update_date,
             attribute_category, attribute1, attribute2, attribute3, attribute4,
             attribute5, attribute6, attribute7, attribute8, attribute9, attribute10,
             attribute11, attribute12, attribute13, attribute14, attribute15,
             new_designator, process_flag, transaction_id, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, ORGANIZATION_CODE, ORGANIZATION_ID,
             ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR, COMPONENT_ITEM_ID,
             BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_ref_desgs_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_ref_desgs_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                 (g_all_org = 2 AND organization_id = g_org_id));
Line: 799

      SELECT substitute_component_id, last_update_date, last_updated_by, creation_date,
             created_by, last_update_login, substitute_item_quantity,
             component_sequence_id, acd_type, change_notice, request_id,
             program_application_id, program_update_date, attribute_category, attribute1,
             attribute2, attribute4, attribute5, attribute6, attribute8, attribute9,
             attribute10, attribute12, attribute13, attribute14, attribute15, program_id,
             attribute3, attribute7, attribute11, new_sub_comp_id, process_flag,
             transaction_id, NEW_SUB_COMP_NUMBER, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, SUBSTITUTE_COMP_NUMBER, ORGANIZATION_CODE,
             ORGANIZATION_ID, ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR,
             COMPONENT_ITEM_ID, BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_sub_comps_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_sub_comps_interface
       WHERE eng_changes_ifce_key = g_ECO_ifce_key
             and process_flag = 1
             AND (g_all_org = 1
                  OR
                 (g_all_org = 2 AND organization_id = g_org_id));
Line: 826

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM bom_sub_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 836

      SELECT substitute_component_id, last_update_date, last_updated_by, creation_date,
             created_by, last_update_login, substitute_item_quantity,
             component_sequence_id, acd_type, change_notice, request_id,
             program_application_id, program_update_date, attribute_category, attribute1,
             attribute2, attribute4, attribute5, attribute6, attribute8, attribute9,
             attribute10, attribute12, attribute13, attribute14, attribute15, program_id,
             attribute3, attribute7, attribute11, new_sub_comp_id, process_flag,
             transaction_id, NEW_SUB_COMP_NUMBER, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, SUBSTITUTE_COMP_NUMBER, ORGANIZATION_CODE,
             ORGANIZATION_ID, ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR,
             COMPONENT_ITEM_ID, BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_sub_comps_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_sub_comps_interface
       WHERE eng_revised_items_ifce_key = g_revised_item_ifce_key
         AND interface_entity_type = 'ECO'
         AND process_flag = 1
         AND (g_all_org = 1
             OR
             (g_all_org = 2 AND organization_id = g_org_id));
Line: 864

      SELECT DISTINCT(eng_revised_items_ifce_key) item_ifce_key
        FROM bom_sub_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 874

      SELECT substitute_component_id, last_update_date, last_updated_by, creation_date,
             created_by, last_update_login, substitute_item_quantity,
             component_sequence_id, acd_type, change_notice, request_id,
             program_application_id, program_update_date, attribute_category, attribute1,
             attribute2, attribute4, attribute5, attribute6, attribute8, attribute9,
             attribute10, attribute12, attribute13, attribute14, attribute15, program_id,
             attribute3, attribute7, attribute11, new_sub_comp_id, process_flag,
             transaction_id, NEW_SUB_COMP_NUMBER, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, SUBSTITUTE_COMP_NUMBER, ORGANIZATION_CODE,
             ORGANIZATION_ID, ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR,
             COMPONENT_ITEM_ID, BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_sub_comps_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_sub_comps_interface
       WHERE bom_inventory_comps_ifce_key = g_revised_comp_ifce_key
         AND interface_entity_type = 'ECO'
         AND process_flag = 1
         AND (g_all_org = 1
             OR
             (g_all_org = 2 AND organization_id = g_org_id));
Line: 902

      SELECT DISTINCT(bom_inventory_comps_ifce_key) comp_ifce_key
        FROM bom_sub_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                  (g_all_org = 2 AND organization_id = g_org_id));
Line: 912

      SELECT substitute_component_id, last_update_date, last_updated_by, creation_date,
             created_by, last_update_login, substitute_item_quantity,
             component_sequence_id, acd_type, change_notice, request_id,
             program_application_id, program_update_date, attribute_category, attribute1,
             attribute2, attribute4, attribute5, attribute6, attribute8, attribute9,
             attribute10, attribute12, attribute13, attribute14, attribute15, program_id,
             attribute3, attribute7, attribute11, new_sub_comp_id, process_flag,
             transaction_id, NEW_SUB_COMP_NUMBER, ASSEMBLY_ITEM_NUMBER,
             COMPONENT_ITEM_NUMBER, SUBSTITUTE_COMP_NUMBER, ORGANIZATION_CODE,
             ORGANIZATION_ID, ASSEMBLY_ITEM_ID, ALTERNATE_BOM_DESIGNATOR,
             COMPONENT_ITEM_ID, BILL_SEQUENCE_ID, OPERATION_SEQ_NUM, EFFECTIVITY_DATE,
             interface_entity_type, transaction_type, eng_changes_ifce_key,
             eng_revised_items_ifce_key, bom_inventory_comps_ifce_key,
             bom_sub_comps_ifce_key
             --Bug 3396529: Added New_revised_Item_Revision
             , New_revised_Item_Revision
        FROM bom_sub_comps_interface
       WHERE process_flag = 1
             AND (g_all_org = 1
                  OR
                 (g_all_org = 2 AND organization_id = g_org_id));
Line: 939

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM bom_op_resources_interface
       WHERE process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 950

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key
        FROM bom_op_sequences_interface
       WHERE process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 961

      SELECT DISTINCT(eng_changes_ifce_key) eco_ifce_key -- Bug 4033384
        FROM eng_change_lines_interface
       WHERE process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 969

PROCEDURE Update_Interface_Tables(p_return_status VARCHAR2)
IS
  l_process_flag  NUMBER;
Line: 979

  UPDATE eng_eng_changes_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 983

  UPDATE eng_eco_revisions_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 987

  UPDATE eng_change_lines_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 991

  UPDATE eng_revised_items_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 995

  UPDATE bom_inventory_comps_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 999

  UPDATE bom_sub_comps_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 1003

  UPDATE bom_ref_desgs_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 1007

  UPDATE bom_op_resources_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 1011

  UPDATE bom_op_sequences_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 1015

  UPDATE bom_sub_op_resources_interface
  SET PROCESS_FLAG = l_process_flag
  WHERE ENG_CHANGES_IFCE_KEY = g_ECO_ifce_key;
Line: 1023

END Update_Interface_Tables;
Line: 1026

PROCEDURE Update_Eco_Interface (
    p_eco_rec           ENG_Eco_PUB.Eco_Rec_Type
) IS
BEGIN
         UPDATE eng_eng_changes_interface
            SET ATTRIBUTE7                 = p_eco_rec.attribute7
    ,       ATTRIBUTE8                     = p_eco_rec.attribute8
    ,       ATTRIBUTE9                     = p_eco_rec.attribute9
    ,       ATTRIBUTE10                    = p_eco_rec.attribute10
    ,       ATTRIBUTE11                    = p_eco_rec.attribute11
    ,       ATTRIBUTE12                    = p_eco_rec.attribute12
    ,       ATTRIBUTE13                    = p_eco_rec.attribute13
    ,       ATTRIBUTE14                    = p_eco_rec.attribute14
    ,       ATTRIBUTE15                    = p_eco_rec.attribute15
--    ,       REQUEST_ID                     = p_eco_rec.request_id
--    ,       PROGRAM_APPLICATION_ID         = p_eco_rec.program_application_id
--    ,       PROGRAM_ID                     = p_eco_rec.program_id
--    ,       PROGRAM_UPDATE_DATE            = p_eco_rec.program_update_date
--    ,       APPROVAL_STATUS_TYPE           = p_eco_rec.approval_status_type
    ,       APPROVAL_DATE                  = p_eco_rec.approval_date
--    ,       APPROVAL_LIST_ID               = p_eco_rec.approval_list_id
--    ,       CHANGE_ORDER_TYPE_ID           = p_eco_rec.change_order_type_id
--    ,       RESPONSIBLE_ORGANIZATION_ID    = p_eco_rec.responsible_org_id
    ,       APPROVAL_REQUEST_DATE          = p_eco_rec.approval_request_date
--    ,       CHANGE_NOTICE                  = p_eco_rec.change_notice
--    ,       ORGANIZATION_ID                = p_eco_rec.organization_id
--    ,       LAST_UPDATE_DATE               = p_eco_rec.last_update_date
--    ,       LAST_UPDATED_BY                = p_eco_rec.last_updated_by
--    ,       CREATION_DATE                  = p_eco_rec.creation_date
--    ,       CREATED_BY                     = p_eco_rec.created_by
--    ,       LAST_UPDATE_LOGIN              = p_eco_rec.last_update_login
    ,       DESCRIPTION                    = p_eco_rec.description
--    ,       STATUS_TYPE                    = p_eco_rec.status_type
--    ,       INITIATION_DATE                = p_eco_rec.initiation_date
--    ,       IMPLEMENTATION_DATE            = p_eco_rec.implementation_date
--    ,       CANCELLATION_DATE              = p_eco_rec.cancellation_date
    ,       CANCELLATION_COMMENTS          = p_eco_rec.cancellation_comments
    ,       PRIORITY_CODE                  = p_eco_rec.priority_code
    ,       REASON_CODE                    = p_eco_rec.reason_code
--    ,       ESTIMATED_ENG_COST             = p_eco_rec.estimated_eng_cost
--    ,       ESTIMATED_MFG_COST             = p_eco_rec.estimated_mfg_cost
--    ,       REQUESTOR_ID                   = p_eco_rec.requestor_id
    ,       ATTRIBUTE_CATEGORY             = p_eco_rec.attribute_category
    ,       ATTRIBUTE1                     = p_eco_rec.attribute1
    ,       ATTRIBUTE2                     = p_eco_rec.attribute2
    ,       ATTRIBUTE3                     = p_eco_rec.attribute3
    ,       ATTRIBUTE4                     = p_eco_rec.attribute4
    ,       ATTRIBUTE5                     = p_eco_rec.attribute5
    ,       ATTRIBUTE6                     = p_eco_rec.attribute6
    ,       process_flag                       = G_PF_SUCCESS   --, p_eco_rec.process_flag
    ,       APPROVAL_LIST_NAME             = p_eco_rec.approval_list_name
--    ,     CHANGE_ORDER_TYPE              = p_eco_rec.change_order_type
    ,       ORGANIZATION_CODE              = p_eco_rec.organization_code
--    ,     RESPONSIBLE_ORG_CODE           = p_eco_rec.responsible_org_code
    WHERE   transaction_id = p_eco_rec.transaction_id
    ;
Line: 1082

END Update_Eco_Interface;
Line: 1085

PROCEDURE Update_Eco_Revisions_Interface (
    p_rev_tbl           ENG_Eco_PUB.Eco_Revision_Tbl_Type
) IS
BEGIN
   FOR i IN 1..p_rev_tbl.COUNT LOOP
      UPDATE eng_eco_revisions_interface SET
        attribute11             = p_rev_tbl(i).attribute11,
        attribute12             = p_rev_tbl(i).attribute12,
        attribute13             = p_rev_tbl(i).attribute13,
        attribute14             = p_rev_tbl(i).attribute14,
        attribute15             = p_rev_tbl(i).attribute15,
--        revision_id           = p_rev_tbl(i).revision_id,
        comments                = p_rev_tbl(i).comments,
--      program_application_id  = p_rev_tbl(i).program_application_id,
--      program_id              = p_rev_tbl(i).program_id,
--      program_update_date     = p_rev_tbl(i).program_update_date,
--      request_id              = p_rev_tbl(i).request_id,
--      change_notice           = p_rev_tbl(i).change_notice,
--      organization_id         = p_rev_tbl(i).organization_id,
--      revision                = p_rev_tbl(i).rev,
--      last_update_date        = p_rev_tbl(i).last_update_date,
--      last_updated_by         = p_rev_tbl(i).last_updated_by,
--      creation_date           = p_rev_tbl(i).creation_date,
--      created_by              = p_rev_tbl(i).created_by,
--      last_update_login       = p_rev_tbl(i).last_update_login,
        attribute_category      = p_rev_tbl(i).attribute_category,
        attribute1              = p_rev_tbl(i).attribute1,
        attribute2              = p_rev_tbl(i).attribute2,
        attribute3              = p_rev_tbl(i).attribute3,
        attribute4              = p_rev_tbl(i).attribute4,
        attribute5              = p_rev_tbl(i).attribute5,
        attribute6              = p_rev_tbl(i).attribute6,
        attribute7              = p_rev_tbl(i).attribute7,
        attribute8              = p_rev_tbl(i).attribute8,
        attribute9              = p_rev_tbl(i).attribute9,
        attribute10             = p_rev_tbl(i).attribute10,
        new_revision            = p_rev_tbl(i).new_revision,
        organization_code       = p_rev_tbl(i).organization_code,
    process_flag                = G_PF_SUCCESS   --, p_rev_tbl(i).process_flag
      WHERE transaction_id      = p_rev_tbl(i).transaction_id;
Line: 1126

END Update_Eco_Revisions_Interface;
Line: 1129

PROCEDURE Update_Revised_Items_Interface (
    p_rev_item_tbl              ENG_Eco_PUB.Revised_Item_Tbl_Type
) IS
BEGIN
   FOR i IN 1..p_rev_item_tbl.COUNT LOOP
      UPDATE eng_revised_items_interface SET
--      change_notice           = p_rev_item_tbl(i).change_notice,
--      organization_id         = p_rev_item_tbl(i).organization_id,
--      revised_item_id         = p_rev_item_tbl(i).revised_item_id,
--      last_update_date        = p_rev_item_tbl(i).last_update_date,
--      last_updated_by         = p_rev_item_tbl(i).last_updated_by,
--      creation_date           = p_rev_item_tbl(i).creation_date,
--      created_by              = p_rev_item_tbl(i).created_by,
--      last_update_login       = p_rev_item_tbl(i).last_update_login,
--      implementation_date     = p_rev_item_tbl(i).implementation_date,
--      cancellation_date       = p_rev_item_tbl(i).cancellation_date,
        cancel_comments         = p_rev_item_tbl(i).cancel_comments,
        disposition_type        = p_rev_item_tbl(i).disposition_type,
--      new_item_revision       = p_rev_item_tbl(i).new_item_revision,
--      early_schedule_date     = p_rev_item_tbl(i).early_schedule_date,
        attribute_category      = p_rev_item_tbl(i).attribute_category,
        attribute1              = p_rev_item_tbl(i).attribute1,
        attribute2              = p_rev_item_tbl(i).attribute2,
        attribute3              = p_rev_item_tbl(i).attribute3,
        attribute4              = p_rev_item_tbl(i).attribute4,
        attribute5              = p_rev_item_tbl(i).attribute5,
        attribute6              = p_rev_item_tbl(i).attribute6,
        attribute7              = p_rev_item_tbl(i).attribute7,
        attribute8              = p_rev_item_tbl(i).attribute8,
        attribute9              = p_rev_item_tbl(i).attribute9,
        attribute10             = p_rev_item_tbl(i).attribute10,
        attribute11             = p_rev_item_tbl(i).attribute11,
        attribute12             = p_rev_item_tbl(i).attribute12,
        attribute13             = p_rev_item_tbl(i).attribute13,
        attribute14             = p_rev_item_tbl(i).attribute14,
        attribute15             = p_rev_item_tbl(i).attribute15,
        status_type             = p_rev_item_tbl(i).status_type,
--      scheduled_date          = p_rev_item_tbl(i).scheduled_date,
--      bill_sequence_id        = p_rev_item_tbl(i).bill_sequence_id,
        mrp_active              = p_rev_item_tbl(i).mrp_active,
--      request_id              = p_rev_item_tbl(i).request_id,
--      program_application_id  = p_rev_item_tbl(i).program_application_id,
--      program_id              = p_rev_item_tbl(i).program_id,
--      program_update_date     = p_rev_item_tbl(i).program_update_date,
        update_wip              = p_rev_item_tbl(i).update_wip,
--      use_up                  = p_rev_item_tbl(i).use_up,
--      use_up_item_id          = p_rev_item_tbl(i).use_up_item_id,
--      revised_item_sequence_id = p_rev_item_tbl(i).revised_item_sequence_id,
        use_up_plan_name        = p_rev_item_tbl(i).use_up_plan_name,
--      descriptive_text        = p_rev_item_tbl(i).descriptive_text,
--      auto_implement_date     = p_rev_item_tbl(i).auto_implement_date,
--      requestor_id            = p_rev_item_tbl(i).requestor_id,
--      comments                = p_rev_item_tbl(i).comments,
        process_flag            = G_PF_SUCCESS,     --p_rev_item_tbl(i).process_flag,
        organization_code       = p_rev_item_tbl(i).organization_code,
        revised_item_number     = p_rev_item_tbl(i).revised_item_name,
        use_up_item_number      = p_rev_item_tbl(i).use_up_item_name  --,
--      alternate_bom_designator = p_rev_item_tbl(i).alternate_bom_designator
      WHERE transaction_id      = p_rev_item_tbl(i).transaction_id;
Line: 1189

END Update_Revised_Items_Interface;
Line: 1192

PROCEDURE Update_Revised_Comps_Interface (
    p_rev_comp_tbl              BOM_Bo_PUB.Rev_Component_Tbl_Type
) IS
BEGIN
   FOR i IN 1..p_rev_comp_tbl.COUNT LOOP
      UPDATE bom_inventory_comps_interface SET
        supply_subinventory     = p_rev_comp_tbl(i).supply_subinventory,
--      operation_lead_time_percent    = p_rev_comp_tbl(i).op_lead_time_percent,
--      revised_item_sequence_id = p_rev_comp_tbl(i).revised_item_sequence_id,
--      cost_factor             = p_rev_comp_tbl(i).cost_factor,
        required_for_revenue    = p_rev_comp_tbl(i).required_for_revenue,
--      high_quantity           = p_rev_comp_tbl(i).high_quantity,
--      component_sequence_id   = p_rev_comp_tbl(i).component_sequence_id,
--      program_application_id  = p_rev_comp_tbl(i).program_application_id,
        wip_supply_type         = p_rev_comp_tbl(i).wip_supply_type,
--      supply_locator_id       = p_rev_comp_tbl(i).supply_locator_id,
--      bom_item_type           = p_rev_comp_tbl(i).bom_item_type,
--      operation_seq_num       = p_rev_comp_tbl(i).operation_seq_num,
--      component_item_id       = p_rev_comp_tbl(i).component_item_id,
--      last_update_date        = p_rev_comp_tbl(i).last_update_date,
--      last_updated_by         = p_rev_comp_tbl(i).last_updated_by,
--      creation_date           = p_rev_comp_tbl(i).creation_date,
--      created_by              = p_rev_comp_tbl(i).created_by,
--      last_update_login       = p_rev_comp_tbl(i).last_update_login,
--      item_num                = p_rev_comp_tbl(i).item_num,
--      component_quantity      = p_rev_comp_tbl(i).component_quantity,
--      component_yield_factor  = p_rev_comp_tbl(i).component_yield_factor,
--      component_remarks       = p_rev_comp_tbl(i).component_remarks,
--      effectivity_date        = p_rev_comp_tbl(i).effectivity_date,
--      change_notice           = p_rev_comp_tbl(i).change_notice,
--      implementation_date     = p_rev_comp_tbl(i).implementation_date,
        disable_date            = p_rev_comp_tbl(i).disable_date,
        attribute_category      = p_rev_comp_tbl(i).attribute_category,
        attribute1              = p_rev_comp_tbl(i).attribute1,
        attribute2              = p_rev_comp_tbl(i).attribute2,
        attribute3              = p_rev_comp_tbl(i).attribute3,
        attribute4              = p_rev_comp_tbl(i).attribute4,
        attribute5              = p_rev_comp_tbl(i).attribute5,
        attribute6              = p_rev_comp_tbl(i).attribute6,
        attribute7              = p_rev_comp_tbl(i).attribute7,
        attribute8              = p_rev_comp_tbl(i).attribute8,
        attribute9              = p_rev_comp_tbl(i).attribute9,
        attribute10             = p_rev_comp_tbl(i).attribute10,
        attribute11             = p_rev_comp_tbl(i).attribute11,
        attribute12             = p_rev_comp_tbl(i).attribute12,
        attribute13             = p_rev_comp_tbl(i).attribute13,
        attribute14             = p_rev_comp_tbl(i).attribute14,
        attribute15             = p_rev_comp_tbl(i).attribute15,
--      planning_factor         = p_rev_comp_tbl(i).planning_factor,
        quantity_related        = p_rev_comp_tbl(i).quantity_related,
        so_basis                = p_rev_comp_tbl(i).so_basis,
        optional                = p_rev_comp_tbl(i).optional,
--      mutually_exclusive_options  = p_rev_comp_tbl(i).mutually_exclusive_opt,
        include_in_cost_rollup  = p_rev_comp_tbl(i).include_in_cost_rollup,
        check_atp               = p_rev_comp_tbl(i).check_atp,
        shipping_allowed        = p_rev_comp_tbl(i).shipping_allowed,
        required_to_ship        = p_rev_comp_tbl(i).required_to_ship,
        include_on_ship_docs    = p_rev_comp_tbl(i).include_on_ship_docs,
--      include_on_bill_docs    = p_rev_comp_tbl(i).include_on_bill_docs,
--      low_quantity            = p_rev_comp_tbl(i).low_quantity,
        acd_type                = p_rev_comp_tbl(i).acd_type,
--      old_component_sequence_id = p_rev_comp_tbl(i).old_component_sequence_id,
--      bill_sequence_id        = p_rev_comp_tbl(i).bill_sequence_id,
--      request_id              = p_rev_comp_tbl(i).request_id,
--      program_id              = p_rev_comp_tbl(i).program_id,
--      program_update_date     = p_rev_comp_tbl(i).program_update_date,
--      pick_components         = p_rev_comp_tbl(i).pick_components,
--      assembly_type           = p_rev_comp_tbl(i).assembly_type,
--      interface_entity_type   = p_rev_comp_tbl(i).interface_entity_type,
--      reference_designator    = p_rev_comp_tbl(i).reference_designator,
        new_effectivity_date    = p_rev_comp_tbl(i).new_effectivity_date,
        old_effectivity_date    = p_rev_comp_tbl(i).old_effectivity_date,
--      substitute_comp_id      = p_rev_comp_tbl(i).substitute_comp_id,
--      new_operation_seq_num   = p_rev_comp_tbl(i).new_operation_seq_num,
--      old_operation_seq_num   = p_rev_comp_tbl(i).old_operation_seq_num,
--      substitute_comp_number  = p_rev_comp_tbl(i).substitute_comp_number,
        organization_code       = p_rev_comp_tbl(i).organization_code,
--      assembly_item_number    = p_rev_comp_tbl(i).assembly_item_number,
--      component_item_number   = p_rev_comp_tbl(i).component_item_number,
        location_name           = p_rev_comp_tbl(i).location_name   ,
--      organization_id         = p_rev_comp_tbl(i).organization_id,
--      assembly_item_id        = p_rev_comp_tbl(i).assembly_item_id,
--      alternate_bom_designator = p_rev_comp_tbl(i).alternate_bom_designator,
--      process_flag            = p_rev_comp_tbl(i).process_flag,
     basis_type                = p_rev_comp_tbl(i).basis_type
      WHERE transaction_id      = p_rev_comp_tbl(i).row_identifier;
Line: 1279

END Update_Revised_Comps_Interface;
Line: 1282

PROCEDURE Update_Sub_Comps_Interface (
    p_sub_comp_tbl              BOM_Bo_PUB.Sub_Component_Tbl_Type
) IS
BEGIN
   FOR i IN 1..p_sub_comp_tbl.COUNT LOOP
      UPDATE bom_sub_comps_interface SET
--      substitute_component_id = p_sub_comp_tbl(i).substitute_component_id,
--      last_update_date        = p_sub_comp_tbl(i).last_update_date,
--      last_updated_by         = p_sub_comp_tbl(i).last_updated_by,
--      creation_date           = p_sub_comp_tbl(i).creation_date,
--      created_by              = p_sub_comp_tbl(i).created_by,
--      last_update_login       = p_sub_comp_tbl(i).last_update_login,
        substitute_item_quantity = p_sub_comp_tbl(i).substitute_item_quantity,
--      component_sequence_id   = p_sub_comp_tbl(i).component_sequence_id,
        acd_type                = p_sub_comp_tbl(i).acd_type,
--      change_notice           = p_sub_comp_tbl(i).change_notice,
--      request_id              = p_sub_comp_tbl(i).request_id,
--      program_application_id  = p_sub_comp_tbl(i).program_application_id,
--      program_update_date     = p_sub_comp_tbl(i).program_update_date,
        attribute_category      = p_sub_comp_tbl(i).attribute_category,
        attribute1              = p_sub_comp_tbl(i).attribute1,
        attribute2              = p_sub_comp_tbl(i).attribute2,
        attribute3              = p_sub_comp_tbl(i).attribute3,
        attribute4              = p_sub_comp_tbl(i).attribute4,
        attribute5              = p_sub_comp_tbl(i).attribute5,
        attribute6              = p_sub_comp_tbl(i).attribute6,
        attribute7              = p_sub_comp_tbl(i).attribute7,
        attribute8              = p_sub_comp_tbl(i).attribute8,
        attribute9              = p_sub_comp_tbl(i).attribute9,
        attribute10             = p_sub_comp_tbl(i).attribute10,
        attribute11             = p_sub_comp_tbl(i).attribute11,
        attribute12             = p_sub_comp_tbl(i).attribute12,
        attribute13             = p_sub_comp_tbl(i).attribute13,
        attribute14             = p_sub_comp_tbl(i).attribute14,
        attribute15             = p_sub_comp_tbl(i).attribute15,
        program_id                  = p_sub_comp_tbl(i).program_id,
--      new_sub_comp_id         = p_sub_comp_tbl(i).new_sub_comp_id,
--      process_flag            = p_sub_comp_tbl(i).process_flag,
--      new_sub_comp_number     = p_sub_comp_tbl(i).new_sub_comp_number,
--      assembly_item_number    = p_sub_comp_tbl(i).assembly_item_number,
--      component_item_number   = p_sub_comp_tbl(i).component_item_number,
--      substitute_comp_number  = p_sub_comp_tbl(i).substitute_comp_number,
        organization_code       = p_sub_comp_tbl(i).organization_code  --,
--      organization_id         = p_sub_comp_tbl(i).organization_id,
--      assembly_item_id        = p_sub_comp_tbl(i).assembly_item_id,
--      alternate_bom_designator = p_sub_comp_tbl(i).alternate_bom_designator,
--      component_item_id       = p_sub_comp_tbl(i).component_item_id,
--      bill_sequence_id        = p_sub_comp_tbl(i).bill_sequence_id,
--      operation_seq_num       = p_sub_comp_tbl(i).operation_seq_num,
--      effectivity_date        = p_sub_comp_tbl(i).effectivity_date,
--      interface_entity_type   = p_sub_comp_tbl(i).interface_entity_type
      WHERE transaction_id      = p_sub_comp_tbl(i).row_identifier;
Line: 1335

END Update_Sub_Comps_Interface;
Line: 1338

PROCEDURE Update_Ref_Desig_Interface (
    p_ref_desg_tbl              BOM_Bo_PUB.Ref_Designator_Tbl_Type
) IS
BEGIN
   FOR i IN 1..p_ref_desg_tbl.COUNT LOOP
      UPDATE bom_ref_desgs_interface SET
--      component_reference_designator = p_ref_desg_tbl(i).ref_designator,
--      last_update_date        = p_ref_desg_tbl(i).last_update_date,
--      last_updated_by         = p_ref_desg_tbl(i).last_updated_by,
--      creation_date           = p_ref_desg_tbl(i).creation_date,
--      created_by              = p_ref_desg_tbl(i).created_by,
--      last_update_login       = p_ref_desg_tbl(i).last_update_login,
        ref_designator_comment  = p_ref_desg_tbl(i).ref_designator_comment,
--      change_notice           = p_ref_desg_tbl(i).change_notice,
--      component_sequence_id   = p_ref_desg_tbl(i).component_sequence_id,
        acd_type                = p_ref_desg_tbl(i).acd_type,
--      request_id              = p_ref_desg_tbl(i).request_id,
--      program_application_id  = p_ref_desg_tbl(i).program_application_id,
--      program_id              = p_ref_desg_tbl(i).program_id,
--      program_update_date     = p_ref_desg_tbl(i).program_update_date,
        attribute_category      = p_ref_desg_tbl(i).attribute_category,
        attribute1              = p_ref_desg_tbl(i).attribute1,
        attribute2              = p_ref_desg_tbl(i).attribute2,
        attribute3              = p_ref_desg_tbl(i).attribute3,
        attribute4              = p_ref_desg_tbl(i).attribute4,
        attribute5              = p_ref_desg_tbl(i).attribute5,
        attribute6              = p_ref_desg_tbl(i).attribute6,
        attribute7              = p_ref_desg_tbl(i).attribute7,
        attribute8              = p_ref_desg_tbl(i).attribute8,
        attribute9              = p_ref_desg_tbl(i).attribute9,
        attribute10             = p_ref_desg_tbl(i).attribute10,
        attribute11             = p_ref_desg_tbl(i).attribute11,
        attribute12             = p_ref_desg_tbl(i).attribute12,
        attribute13             = p_ref_desg_tbl(i).attribute13,
        attribute14             = p_ref_desg_tbl(i).attribute14,
        attribute15             = p_ref_desg_tbl(i).attribute15,
--      new_designator         = p_ref_desg_tbl(i).new_designator,
--      process_flag            = p_ref_desg_tbl(i).process_flag,
--      assembly_item_number    = p_ref_desg_tbl(i).assembly_item_number,
--      component_item_number   = p_ref_desg_tbl(i).component_item_number,
        organization_code       = p_ref_desg_tbl(i).organization_code --,
--      organization_id         = p_ref_desg_tbl(i).organization_id,
--      assembly_item_id        = p_ref_desg_tbl(i).assembly_item_id,
--      alternate_bom_designator = p_ref_desg_tbl(i).alternate_bom_designator,
--      component_item_id       = p_ref_desg_tbl(i).component_item_id,
--      bill_sequence_id        = p_ref_desg_tbl(i).bill_sequence_id,
--      operation_seq_num       = p_ref_desg_tbl(i).operation_seq_num,
--      effectivity_date        = p_ref_desg_tbl(i).effectivity_date,
--      interface_entity_type   = p_ref_desg_tbl(i).interface_entity_type
      WHERE transaction_id      = p_ref_desg_tbl(i).row_identifier;
Line: 1389

END Update_Ref_Desig_Interface;
Line: 1392

PROCEDURE Update_Error_Table (
    p_error_tbl             ENG_Eco_PUB.Error_Tbl_Type,
    p_top_ifce_key          VARCHAR2 DEFAULT NULL,
    x_unexp_error       OUT NOCOPY VARCHAR2
) IS
BEGIN
   FOR i IN 1..p_error_tbl.COUNT LOOP
      IF (p_error_tbl(i).message_name is NOT NULL) THEN
         INSERT INTO mtl_interface_errors
         (ORGANIZATION_ID,
          UNIQUE_ID,
          LAST_UPDATE_DATE,
          LAST_UPDATED_BY,
          CREATION_DATE,
          CREATED_BY,
          LAST_UPDATE_LOGIN,
          TABLE_NAME,
          MESSAGE_NAME,
          REQUEST_ID,
          PROGRAM_APPLICATION_ID,
          PROGRAM_ID,
          PROGRAM_UPDATE_DATE,
          ERROR_MESSAGE,
          TRANSACTION_ID)
          VALUES
         (p_error_tbl(i).organization_id,
          mtl_system_items_interface_s.nextval,
          sysdate,
          FND_GLOBAL.USER_ID,
          sysdate,
          FND_GLOBAL.USER_ID,
          FND_GLOBAL.USER_ID,
          p_error_tbl(i).table_name,
          p_error_tbl(i).message_name,
          FND_GLOBAL.CONC_REQUEST_ID,
          FND_GLOBAL.PROG_APPL_ID,
          FND_GLOBAL.CONC_PROGRAM_ID,
          sysdate,
          p_error_tbl(i).error_message,
          p_error_tbl(i).transaction_id);
Line: 1443

END Update_Error_Table;
Line: 1507

            g_encoin_rev_item_tbl(k).last_update_date := c3rec.last_update_date;
Line: 1508

            g_encoin_rev_item_tbl(k).last_updated_by := c3rec.last_updated_by;
Line: 1511

            g_encoin_rev_item_tbl(k).last_update_login := c3rec.last_update_login;
Line: 1538

            g_encoin_rev_item_tbl(k).program_update_date := c3rec.program_update_date;
Line: 1539

            g_encoin_rev_item_tbl(k).update_wip := c3rec.update_wip;
Line: 1562

            g_encoin_rev_item_tbl(k).updated_item_revision := c3rec.updated_item_revision; -- Bug 3432944
Line: 1596

           g_encoin_rev_comp_tbl(v).last_update_date := c12rec.last_update_date;
Line: 1597

           g_encoin_rev_comp_tbl(v).last_updated_by := c12rec.last_updated_by;
Line: 1600

           g_encoin_rev_comp_tbl(v).last_update_login := c12rec.last_update_login;
Line: 1643

           g_encoin_rev_comp_tbl(v).program_update_date := c12rec.program_update_date;
Line: 1700

           g_encoin_rev_comp_tbl(v).last_update_date := c12rec.last_update_date;
Line: 1701

           g_encoin_rev_comp_tbl(v).last_updated_by := c12rec.last_updated_by;
Line: 1704

           g_encoin_rev_comp_tbl(v).last_update_login := c12rec.last_update_login;
Line: 1746

           g_encoin_rev_comp_tbl(v).program_update_date := c12rec.program_update_date;
Line: 1788

           g_encoin_ref_des_tbl(y).last_update_date := c15rec.last_update_date;
Line: 1789

           g_encoin_ref_des_tbl(y).last_updated_by := c15rec.last_updated_by;
Line: 1792

           g_encoin_ref_des_tbl(y).last_update_login := c15rec.last_update_login;
Line: 1800

           g_encoin_ref_des_tbl(y).program_update_date := c15rec.program_update_date;
Line: 1853

           g_encoin_ref_des_tbl(y).last_update_date := c15rec.last_update_date;
Line: 1854

           g_encoin_ref_des_tbl(y).last_updated_by := c15rec.last_updated_by;
Line: 1857

           g_encoin_ref_des_tbl(y).last_update_login := c15rec.last_update_login;
Line: 1865

           g_encoin_ref_des_tbl(y).program_update_date := c15rec.program_update_date;
Line: 1918

           g_encoin_ref_des_tbl(y).last_update_date := c15rec.last_update_date;
Line: 1919

           g_encoin_ref_des_tbl(y).last_updated_by := c15rec.last_updated_by;
Line: 1922

           g_encoin_ref_des_tbl(y).last_update_login := c15rec.last_update_login;
Line: 1930

           g_encoin_ref_des_tbl(y).program_update_date := c15rec.program_update_date;
Line: 1982

           g_encoin_sub_comp_tbl(z).last_update_date := c16rec.last_update_date;
Line: 1983

           g_encoin_sub_comp_tbl(z).last_updated_by := c16rec.last_updated_by;
Line: 1986

           g_encoin_sub_comp_tbl(z).last_update_login := c16rec.last_update_login;
Line: 1993

           g_encoin_sub_comp_tbl(z).program_update_date := c16rec.program_update_date;
Line: 2048

           g_encoin_sub_comp_tbl(z).last_update_date := c16rec.last_update_date;
Line: 2049

           g_encoin_sub_comp_tbl(z).last_updated_by := c16rec.last_updated_by;
Line: 2052

           g_encoin_sub_comp_tbl(z).last_update_login := c16rec.last_update_login;
Line: 2059

           g_encoin_sub_comp_tbl(z).program_update_date := c16rec.program_update_date;
Line: 2114

           g_encoin_sub_comp_tbl(z).last_update_date := c16rec.last_update_date;
Line: 2115

           g_encoin_sub_comp_tbl(z).last_updated_by := c16rec.last_updated_by;
Line: 2118

           g_encoin_sub_comp_tbl(z).last_update_login := c16rec.last_update_login;
Line: 2125

           g_encoin_sub_comp_tbl(z).program_update_date := c16rec.program_update_date;
Line: 2172

        SELECT eco_name, organization_code, change_type_code,
          change_mgmt_type_name, name, description, sequence_number,
          status_name, object_display_name, pk1_name, pk2_name, pk3_name,
          pk4_name, pk5_name, assignee_name, need_by_date, scheduled_date,
          implementation_date, cancelation_date, original_system_reference,
          return_status, transaction_type
        FROM eng_change_lines_interface
        WHERE eng_changes_ifce_key = g_ECO_ifce_key
          AND process_flag = 1
              AND (g_all_org = 1
                   OR
                   (g_all_org = 2 AND organization_id = g_org_id));
Line: 2222

        SELECT change_notice, organization_code, assembly_item_number,
          new_routing_revision, acd_type, alternate_routing_designator,
          operation_seq_num, operation_type, effectivity_date,
          new_operation_seq_num, old_start_effective_date, operation_code,
          department_code, operation_lead_time_percent,
          minimum_transfer_quantity, count_point_type, operation_description,
          disable_date, backflush_flag, option_dependent_flag, reference_flag,
          yield, cumulative_yield, cancel_comments, attribute_category,
          attribute1, attribute2, attribute3, attribute4, attribute5,
          attribute6, attribute7, attribute8, attribute9, attribute10,
          attribute11, attribute12, attribute13, attribute14, attribute15,
          original_system_reference, transaction_type
          -- Bug 3412268: Added New_Revised_Item_Revision
          , New_Revised_Item_Revision
        FROM bom_op_sequences_interface
        WHERE eng_changes_ifce_key = g_ECO_ifce_key;
Line: 2296

        SELECT eco_name, organization_code, assembly_item_number,
          new_routing_revision, acd_type, alternate_routing_designator,
          operation_seq_num, operation_type, effectivity_date, resource_seq_num,
          resource_code, activity, standard_rate_flag, assigned_units,
          usage_rate_or_amount, usage_rate_or_amount_inverse, basis_type,
          schedule_flag, resource_offset_percent, autocharge_type,
          schedule_seq_num, principle_flag, attribute_category, attribute1,
          attribute2, attribute3, attribute4, attribute5, attribute6,
          attribute7, attribute8, attribute9, attribute10, attribute11,
          attribute12, attribute13, attribute14, attribute15,
          original_system_reference, transaction_type, setup_code
          -- Bug 3412268: Added New_Revised_Item_Revision
          , New_Revised_Item_Revision
        FROM bom_op_resources_interface
        WHERE eng_changes_ifce_key = g_ECO_ifce_key;
Line: 2412

        SELECT eco_name, organization_code, assembly_item_number,
          new_revised_item_revision, new_routing_revision, acd_type,
          alternate_routing_designator, operation_seq_num, operation_type,
          effectivity_date, sub_resource_code, new_sub_resource_code,
          schedule_seq_num, replacement_group_num, activity, standard_rate_flag,
          assigned_units, usage_rate_or_amount, usage_rate_or_amount_inverse,
          basis_type, schedule_flag, resource_offset_percent, autocharge_type,
          principle_flag, attribute_category, attribute1, attribute2,
          attribute3, attribute4, attribute5, attribute6, attribute7,
          attribute8, attribute9, attribute10, attribute11, attribute12,
          attribute13, attribute14, attribute15, original_system_reference,
          transaction_type, setup_code
          , new_basis_type -- Bug: 5067990
        FROM bom_sub_op_resources_interface
        WHERE eng_changes_ifce_key = g_ECO_ifce_key;
Line: 2583

            g_public_rev_item_tbl(k).update_wip := g_encoin_rev_item_tbl(k).update_wip;
Line: 2608

            g_public_rev_item_tbl(k).Updated_Revised_Item_Revision := g_encoin_rev_item_tbl(k).updated_item_revision;   -- Bug 3432944
Line: 2615

            g_encoin_rev_item_tbl.DELETE(k);
Line: 2713

           g_encoin_rev_comp_tbl.DELETE(l);
Line: 2773

           g_encoin_ref_des_tbl.DELETE(k);
Line: 2835

           g_encoin_sub_comp_tbl.DELETE(p);
Line: 2905

   g_encoin_rev_item_tbl.DELETE;
Line: 2906

   g_encoin_rev_comp_tbl.DELETE;
Line: 2907

   g_encoin_sub_comp_tbl.DELETE;
Line: 2908

   g_encoin_ref_des_tbl.DELETE;
Line: 2910

   g_public_out_rev_tbl.DELETE;
Line: 2911

   g_public_out_lines_tbl.DELETE;
Line: 2912

   g_public_out_rev_item_tbl.DELETE;
Line: 2913

   g_public_out_rev_comp_tbl.DELETE;
Line: 2914

   g_public_out_sub_comp_tbl.DELETE;
Line: 2915

   g_public_out_ref_des_tbl.DELETE;
Line: 2916

   g_public_out_rev_operation_tbl.DELETE;
Line: 2917

   g_public_out_rev_op_res_tbl.DELETE;
Line: 2918

   g_public_out_rev_sub_res_tbl.DELETE;
Line: 2920

   g_public_rev_tbl.DELETE;
Line: 2921

   g_public_lines_tbl.DELETE;
Line: 2922

   g_public_rev_item_tbl.DELETE;
Line: 2923

   g_public_rev_comp_tbl.DELETE;
Line: 2924

   g_public_sub_comp_tbl.DELETE;
Line: 2925

   g_public_ref_des_tbl.DELETE;
Line: 2926

   g_public_rev_operation_tbl.DELETE;
Line: 2927

   g_public_rev_op_res_tbl.DELETE;
Line: 2928

   g_public_rev_sub_res_tbl.DELETE;
Line: 2932

   g_ECO_ifce_group_tbl.DELETE;
Line: 2933

   g_item_ifce_group_tbl.DELETE;
Line: 2934

   g_comp_ifce_group_tbl.DELETE;
Line: 3012

   UPDATE eng_eng_changes_interface eeci
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = eeci.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = eeci.organization_code);
Line: 3025

   UPDATE eng_eco_revisions_interface eeri
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = eeri.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = eeri.organization_code);
Line: 3038

   UPDATE eng_revised_items_interface erii
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = erii.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = erii.organization_code);
Line: 3052

   UPDATE bom_inventory_comps_interface bici
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = bici.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update, G_Cancel)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND interface_entity_type = 'ECO'
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = bici.organization_code);
Line: 3066

   UPDATE bom_sub_comps_interface bsci
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = bsci.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND interface_entity_type = 'ECO'
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = bsci.organization_code);
Line: 3080

   UPDATE bom_ref_desgs_interface brdi
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = brdi.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND interface_entity_type = 'ECO'
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = brdi.organization_code);
Line: 3094

   UPDATE bom_op_sequences_interface bosi
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = bosi.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = bosi.organization_code);
Line: 3107

   UPDATE bom_op_resources_interface bori
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = bori.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = bori.organization_code);
Line: 3120

   UPDATE bom_sub_op_resources_interface bsori
      SET organization_id = (SELECT organization_id
                               FROM mtl_parameters mp1
                          WHERE mp1.organization_code = bsori.organization_code)
    WHERE process_flag = 1
      AND upper(transaction_type) in (G_Create, G_Delete, G_Update)
      AND (organization_id is null OR organization_id = FND_API.G_MISS_NUM)
      AND organization_code is not null
      AND exists (SELECT organization_code
                    FROM mtl_parameters mp2
                   WHERE mp2.organization_code = bsori.organization_code);
Line: 3139

   UPDATE eng_eng_changes_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3150

   UPDATE eng_eco_revisions_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3161

   UPDATE eng_revised_items_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3172

   UPDATE bom_inventory_comps_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND interface_entity_type = 'ECO'
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3184

   UPDATE bom_sub_comps_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND interface_entity_type = 'ECO'
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3196

   UPDATE bom_ref_desgs_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
          OR transaction_id = FND_API.G_MISS_NUM)
      AND interface_entity_type = 'ECO'
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3208

   UPDATE bom_op_sequences_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3219

   UPDATE bom_op_resources_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3230

   UPDATE bom_sub_op_resources_interface
      SET transaction_id = mtl_system_items_interface_s.nextval,
          transaction_type = UPPER(transaction_type)
    WHERE process_flag = 1
      AND (transaction_id is NULL
           OR transaction_id = FND_API.G_MISS_NUM)
      AND (p_all_org = 1
           OR
           (p_all_org = 2 AND organization_id = p_org_id));
Line: 3411

         Update_Interface_Tables(l_return_status);
Line: 3540

         Update_Interface_Tables(l_return_status);
Line: 3578

         g_public_rev_tbl.DELETE;
Line: 3579

         g_public_rev_item_tbl.DELETE;
Line: 3580

         g_public_rev_comp_tbl.DELETE;
Line: 3581

         g_public_sub_comp_tbl.DELETE;
Line: 3582

         g_public_ref_des_tbl.DELETE;
Line: 3583

         g_public_rev_op_res_tbl.DELETE;
Line: 3584

         g_public_rev_operation_tbl.DELETE;
Line: 3585

         g_public_lines_tbl.DELETE;
Line: 3586

         g_encoin_rev_item_tbl.delete;
Line: 3587

         g_encoin_rev_comp_tbl.delete;
Line: 3588

         g_encoin_ref_des_tbl.delete;
Line: 3589

         g_encoin_sub_comp_tbl.delete;
Line: 3704

         Update_Interface_Tables(l_return_status);
Line: 3725

         g_encoin_rev_item_tbl.delete;
Line: 3726

         g_encoin_rev_comp_tbl.delete;
Line: 3727

         g_encoin_ref_des_tbl.delete;
Line: 3728

         g_encoin_sub_comp_tbl.delete;
Line: 3730

         g_public_rev_tbl.DELETE;
Line: 3731

         g_public_rev_item_tbl.DELETE;
Line: 3732

         g_public_rev_comp_tbl.DELETE;
Line: 3733

         g_public_sub_comp_tbl.DELETE;
Line: 3734

         g_public_ref_des_tbl.DELETE;
Line: 3735

         g_public_rev_op_res_tbl.DELETE;
Line: 3736

         g_public_rev_operation_tbl.DELETE;
Line: 3737

         g_public_lines_tbl.DELETE;
Line: 3843

         Update_Interface_Tables(l_return_status);
Line: 3864

         g_encoin_rev_item_tbl.delete;
Line: 3865

         g_encoin_rev_comp_tbl.delete;
Line: 3866

         g_encoin_ref_des_tbl.delete;
Line: 3867

         g_encoin_sub_comp_tbl.delete;
Line: 3869

         g_public_rev_tbl.DELETE;
Line: 3870

         g_public_rev_item_tbl.DELETE;
Line: 3871

         g_public_rev_comp_tbl.DELETE;
Line: 3872

         g_public_sub_comp_tbl.DELETE;
Line: 3873

         g_public_ref_des_tbl.DELETE;
Line: 3874

         g_public_rev_op_res_tbl.DELETE;
Line: 3875

         g_public_rev_operation_tbl.DELETE;
Line: 3876

         g_public_lines_tbl.DELETE;
Line: 3977

         Update_Interface_Tables(l_return_status);
Line: 3997

         g_encoin_rev_item_tbl.delete;
Line: 3998

         g_encoin_rev_comp_tbl.delete;
Line: 3999

         g_encoin_ref_des_tbl.delete;
Line: 4000

         g_encoin_sub_comp_tbl.delete;
Line: 4002

         g_public_rev_tbl.DELETE;
Line: 4003

         g_public_rev_item_tbl.DELETE;
Line: 4004

         g_public_rev_comp_tbl.DELETE;
Line: 4005

         g_public_sub_comp_tbl.DELETE;
Line: 4006

         g_public_ref_des_tbl.DELETE;
Line: 4007

         g_public_rev_op_res_tbl.DELETE;
Line: 4008

         g_public_rev_operation_tbl.DELETE;
Line: 4009

         g_public_lines_tbl.DELETE;
Line: 4098

         Update_Interface_Tables(l_return_status);
Line: 4119

         g_encoin_rev_item_tbl.delete;
Line: 4120

         g_encoin_rev_comp_tbl.delete;
Line: 4121

         g_encoin_ref_des_tbl.delete;
Line: 4122

         g_encoin_sub_comp_tbl.delete;
Line: 4124

         g_public_rev_tbl.DELETE;
Line: 4125

         g_public_rev_item_tbl.DELETE;
Line: 4126

         g_public_rev_comp_tbl.DELETE;
Line: 4127

         g_public_sub_comp_tbl.DELETE;
Line: 4128

         g_public_ref_des_tbl.DELETE;
Line: 4129

         g_public_rev_op_res_tbl.DELETE;
Line: 4130

         g_public_rev_operation_tbl.DELETE;
Line: 4131

         g_public_lines_tbl.DELETE;
Line: 4215

         Update_Interface_Tables(l_return_status);
Line: 4238

         g_encoin_rev_item_tbl.delete;
Line: 4239

         g_encoin_rev_comp_tbl.delete;
Line: 4240

         g_encoin_ref_des_tbl.delete;
Line: 4241

         g_encoin_sub_comp_tbl.delete;
Line: 4243

         g_public_rev_tbl.DELETE;
Line: 4244

         g_public_rev_item_tbl.DELETE;
Line: 4245

         g_public_rev_comp_tbl.DELETE;
Line: 4246

         g_public_sub_comp_tbl.DELETE;
Line: 4247

         g_public_ref_des_tbl.DELETE;
Line: 4248

         g_public_rev_op_res_tbl.DELETE;
Line: 4249

         g_public_rev_operation_tbl.DELETE;
Line: 4250

         g_public_lines_tbl.DELETE;
Line: 4332

         Update_Interface_Tables(l_return_status);
Line: 4355

         g_encoin_rev_item_tbl.delete;
Line: 4356

         g_encoin_rev_comp_tbl.delete;
Line: 4357

         g_encoin_ref_des_tbl.delete;
Line: 4358

         g_encoin_sub_comp_tbl.delete;
Line: 4360

         g_public_rev_tbl.DELETE;
Line: 4361

         g_public_rev_item_tbl.DELETE;
Line: 4362

         g_public_rev_comp_tbl.DELETE;
Line: 4363

         g_public_sub_comp_tbl.DELETE;
Line: 4364

         g_public_ref_des_tbl.DELETE;
Line: 4365

         g_public_rev_op_res_tbl.DELETE;
Line: 4366

         g_public_rev_operation_tbl.DELETE;
Line: 4367

         g_public_lines_tbl.DELETE;
Line: 4447

         Update_Interface_Tables(l_return_status);
Line: 4472

         g_encoin_rev_item_tbl.delete;
Line: 4473

         g_encoin_rev_comp_tbl.delete;
Line: 4474

         g_encoin_ref_des_tbl.delete;
Line: 4475

         g_encoin_sub_comp_tbl.delete;
Line: 4477

         g_public_rev_tbl.DELETE;
Line: 4478

         g_public_rev_item_tbl.DELETE;
Line: 4479

         g_public_rev_comp_tbl.DELETE;
Line: 4480

         g_public_sub_comp_tbl.DELETE;
Line: 4481

         g_public_ref_des_tbl.DELETE;
Line: 4482

         g_public_rev_op_res_tbl.DELETE;
Line: 4483

         g_public_rev_operation_tbl.DELETE;
Line: 4484

         g_public_lines_tbl.DELETE;
Line: 4564

         Update_Interface_Tables(l_return_status);
Line: 4670

         Update_Interface_Tables(l_return_status);
Line: 4703

      g_encoin_rev_item_tbl(r).last_update_date := c8rec.last_update_date;
Line: 4704

      g_encoin_rev_item_tbl(r).last_updated_by := c8rec.last_updated_by;
Line: 4707

      g_encoin_rev_item_tbl(r).last_update_login := c8rec.last_update_login;
Line: 4734

      g_encoin_rev_item_tbl(r).program_update_date := c8rec.program_update_date;
Line: 4735

      g_encoin_rev_item_tbl(r).update_wip := c8rec.update_wip;
Line: 4759

      g_encoin_rev_item_tbl(r).updated_item_revision := c8rec.updated_item_revision; -- Bug 3432944
Line: 4830

         Update_Interface_Tables(l_return_status);
Line: 4931

         Update_Interface_Tables(l_return_status);
Line: 4975

         g_encoin_rev_item_tbl.delete;
Line: 4976

         g_public_rev_tbl.delete;
Line: 4977

         g_encoin_rev_comp_tbl.delete;
Line: 4978

         g_encoin_ref_des_tbl.delete;
Line: 4979

         g_encoin_sub_comp_tbl.delete;
Line: 5079

         Update_Interface_Tables(l_return_status);
Line: 5101

         g_encoin_rev_item_tbl.delete;
Line: 5102

         g_public_rev_tbl.delete;
Line: 5103

         g_encoin_rev_comp_tbl.delete;
Line: 5104

         g_encoin_ref_des_tbl.delete;
Line: 5105

         g_encoin_sub_comp_tbl.delete;
Line: 5107

         g_public_rev_tbl.DELETE;
Line: 5108

         g_public_rev_item_tbl.DELETE;
Line: 5109

         g_public_rev_comp_tbl.DELETE;
Line: 5110

         g_public_sub_comp_tbl.DELETE;
Line: 5111

         g_public_ref_des_tbl.DELETE;
Line: 5112

         g_public_rev_op_res_tbl.DELETE;
Line: 5113

         g_public_rev_operation_tbl.DELETE;
Line: 5114

         g_public_lines_tbl.DELETE;
Line: 5202

         Update_Interface_Tables(l_return_status);
Line: 5224

         g_encoin_rev_item_tbl.delete;
Line: 5225

         g_public_rev_tbl.delete;
Line: 5226

         g_encoin_rev_comp_tbl.delete;
Line: 5227

         g_encoin_ref_des_tbl.delete;
Line: 5228

         g_encoin_sub_comp_tbl.delete;
Line: 5230

         g_public_rev_tbl.DELETE;
Line: 5231

         g_public_rev_item_tbl.DELETE;
Line: 5232

         g_public_rev_comp_tbl.DELETE;
Line: 5233

         g_public_sub_comp_tbl.DELETE;
Line: 5234

         g_public_ref_des_tbl.DELETE;
Line: 5235

         g_public_rev_op_res_tbl.DELETE;
Line: 5236

         g_public_rev_operation_tbl.DELETE;
Line: 5237

         g_public_lines_tbl.DELETE;
Line: 5320

         Update_Interface_Tables(l_return_status);
Line: 5359

      g_encoin_rev_comp_tbl(v).last_update_date := c12rec.last_update_date;
Line: 5360

      g_encoin_rev_comp_tbl(v).last_updated_by := c12rec.last_updated_by;
Line: 5363

      g_encoin_rev_comp_tbl(v).last_update_login := c12rec.last_update_login;
Line: 5405

      g_encoin_rev_comp_tbl(v).program_update_date := c12rec.program_update_date;
Line: 5494

         Update_Interface_Tables(l_return_status);
Line: 5581

         Update_Interface_Tables(l_return_status);
Line: 5628

         g_encoin_rev_item_tbl.delete;
Line: 5629

         g_public_rev_tbl.delete;
Line: 5630

         g_encoin_rev_comp_tbl.delete;
Line: 5631

         g_encoin_ref_des_tbl.delete;
Line: 5632

         g_encoin_sub_comp_tbl.delete;
Line: 5634

         g_public_rev_tbl.DELETE;
Line: 5635

         g_public_rev_item_tbl.DELETE;
Line: 5636

         g_public_rev_comp_tbl.DELETE;
Line: 5637

         g_public_sub_comp_tbl.DELETE;
Line: 5638

         g_public_ref_des_tbl.DELETE;
Line: 5639

         g_public_rev_op_res_tbl.DELETE;
Line: 5640

         g_public_rev_operation_tbl.DELETE;
Line: 5641

         g_public_lines_tbl.DELETE;
Line: 5727

         Update_Interface_Tables(l_return_status);
Line: 5751

         g_encoin_rev_item_tbl.delete;
Line: 5752

         g_public_rev_tbl.delete;
Line: 5753

         g_encoin_rev_comp_tbl.delete;
Line: 5754

         g_encoin_ref_des_tbl.delete;
Line: 5755

         g_encoin_sub_comp_tbl.delete;
Line: 5757

         g_public_rev_tbl.DELETE;
Line: 5758

         g_public_rev_item_tbl.DELETE;
Line: 5759

         g_public_rev_comp_tbl.DELETE;
Line: 5760

         g_public_sub_comp_tbl.DELETE;
Line: 5761

         g_public_ref_des_tbl.DELETE;
Line: 5762

         g_public_rev_op_res_tbl.DELETE;
Line: 5763

         g_public_rev_operation_tbl.DELETE;
Line: 5764

         g_public_lines_tbl.DELETE;
Line: 5840

         Update_Interface_Tables(l_return_status);
Line: 5862

         g_public_ref_des_tbl.DELETE(y);
Line: 5961

         Update_Interface_Tables(l_return_status);
Line: 5990

         g_public_sub_comp_tbl.DELETE(z);
Line: 6090

         Update_Interface_Tables(l_return_status);
Line: 6111

         DELETE from eng_eng_changes_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6121

         DELETE from eng_eco_revisions_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6131

         DELETE from eng_revised_items_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6141

         DELETE from bom_inventory_comps_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6151

         DELETE from bom_ref_desgs_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6161

         DELETE from bom_sub_comps_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6171

         DELETE from eng_change_lines_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6181

         DELETE from bom_op_sequences_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6191

         DELETE from bom_op_resources_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6200

         DELETE from bom_sub_op_resources_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;
Line: 6281

        SELECT  change_notice             ,
                organization_id           ,
                revised_item_id           ,
                last_update_date          ,
                last_updated_by           ,
                creation_date             ,
                created_by                ,
                last_update_login         ,
                implementation_date       ,
                cancellation_date         ,
                cancel_comments           ,
                disposition_type          ,
                new_item_revision         ,
                early_schedule_date       ,
                attribute_category        ,
                attribute2                ,
                attribute3                ,
                attribute4                ,
                attribute5                ,
                attribute7                ,
                attribute8                ,
                attribute9                ,
                attribute11               ,
                attribute12               ,
                attribute13               ,
                attribute14               ,
                attribute15               ,
                status_type               ,
                scheduled_date            ,
                bill_sequence_id          ,
                mrp_active                ,
                request_id                ,
                program_application_id    ,
                program_id                ,
                program_update_date       ,
                update_wip                ,
                use_up                    ,
                use_up_item_id            ,
                revised_item_sequence_id  ,
                use_up_plan_name          ,
                descriptive_text          ,
                auto_implement_date       ,
                attribute1                ,
                attribute6                ,
                attribute10               ,
                requestor_id              ,
                comments                  ,
                1 process_flag            ,
                transaction_id            ,
                organization_code         ,
                revised_item_number       ,
                new_rtg_revision          ,
                use_up_item_number        ,
                alternate_bom_designator  ,
                transaction_type          ,
                ENG_REVISED_ITEMS_IFCE_KEY,
                eng_changes_ifce_key      ,
                parent_revised_item_name  ,
                parent_alternate_name     ,
                updated_item_revision     ,
                New_scheduled_date    -- Bug 3432944
                ,
                from_item_revision -- 11.5.10E
                ,
                new_revision_label        ,
                New_Revised_Item_Rev_Desc ,
                new_revision_reason       ,
                from_end_item_unit_number
        FROM    eng_revised_items_interface
        WHERE   process_flag    = -999
            AND (g_all_org      = 1
             OR (g_all_org      = 2
            AND organization_id = g_org_id))
        ORDER BY parent_revised_item_name desc ;
Line: 6399

      g_encoin_rev_item_tbl(r).last_update_date := c8rec.last_update_date;
Line: 6400

      g_encoin_rev_item_tbl(r).last_updated_by := c8rec.last_updated_by;
Line: 6403

      g_encoin_rev_item_tbl(r).last_update_login := c8rec.last_update_login;
Line: 6430

      g_encoin_rev_item_tbl(r).program_update_date := c8rec.program_update_date;
Line: 6431

      g_encoin_rev_item_tbl(r).update_wip := c8rec.update_wip;
Line: 6456

      g_encoin_rev_item_tbl(r).updated_item_revision := c8rec.updated_item_revision; -- Bug 3432944
Line: 6531

        UPDATE ENG_REVISED_ITEMS_INTERFACE
        SET PROCESS_FLAG = l_process_flag
        WHERE TRANSACTION_ID = l_transaction_id;
Line: 6560

         DELETE from eng_revised_items_interface
          WHERE process_flag = 7
            AND rownum < G_ROWS_TO_COMMIT;