Professional Documents
Culture Documents
BOM_LOCATOR_UPDATE_PKG (
errbuf OUT
VARCHAR2,
retcode OUT
NUMBER,
p_supply_locator IN
VARCHAR2
)
IS
--script for sweep the supply tupe from bulk to Assembly Pull
l_bom_header_rec bom_bo_pub.bom_head_rec_type:=
bom_bo_pub.g_miss_bom_header_rec;
l_bom_revision_tbl bom_bo_pub.bom_revision_tbl_type:=
bom_bo_pub.g_miss_bom_revision_tbl;
l_bom_component_tbl bom_bo_pub.bom_comps_tbl_type:=
bom_bo_pub.g_miss_bom_component_tbl;
l_bom_ref_designator_tbl bom_bo_pub.bom_ref_designator_tbl_type:=
bom_bo_pub.g_miss_bom_ref_designator_tbl;
l_bom_sub_component_tbl bom_bo_pub.bom_sub_component_tbl_type:=
bom_bo_pub.g_miss_bom_sub_component_tbl;
l_error_message_list error_handler.error_tbl_type;
l_x_bom_header_rec bom_bo_pub.bom_head_rec_type;
l_x_bom_revision_tbl bom_bo_pub.bom_revision_tbl_type;
l_x_bom_component_tbl bom_bo_pub.bom_comps_tbl_type;
l_x_bom_ref_designator_tbl bom_bo_pub.bom_ref_designator_tbl_type;
l_x_bom_sub_component_tbl bom_bo_pub.bom_sub_component_tbl_type;
l_x_return_status VARCHAR2 (2000);
l_x_msg_count NUMBER;
i NUMBER;
gorganization NUMBER
:= fnd_profile.VALUE ('XXX_ORGANIZATION');
CURSOR bom_loc_cur
IS
SELECT *
FROM cco_bom_locator_update
WHERE process_flag = 'N';
ROLLBACK;
ELSE
fnd_file.put_line (fnd_file.LOG,'BOM Locator Updated Successfully for the
Assembly Item:'||bom_loc_rec.assembly_item_number||'~'||p_supply_locator);
-- Error Processing
--COMMIT;
END IF;
END LOOP;
UPDATE cco_bom_locator_update
SET process_flag = 'S'
WHERE assembly_item_number = bom_loc_rec.assembly_item_number;
COMMIT;
END LOOP; ---STAGING TABLE LOOP
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (' OTHER exception ');
fnd_file.put_line (fnd_file.LOG,
'OTHER exception :' || SUBSTR (SQLERRM, 1, 200)
);
END BOM_LOCATOR_UPDATE_PKG;
/
SHOW ERROR;
EXIT;