ENG Engineering Change Orders

Description

Categories
Enginatics
Repository
GitHub
Engineering change orders (ECOs) with one row per revised item: the ECO header with its type, status, approval status, priority, reason, requestor and dates, and the revised item with its new revision, effectivity, implementation and cancellation dates, use-up item and material disposition. An ECO without revised items is listed once with blank revised item columns.

Change types are those based on the Change Order change category, as on the Engineering Change Orders form.

Show Component Changes adds one row per component the revised item adds, changes or disables. Old Quantity and Old Op Seq come from the component the change replaces.

Open Jobs is the current number of unreleased, released and on hold discrete jobs building the revised item in the ECO's organization, whatever the ECO's status. Open Job List shows the first 15 of these jobs by scheduled start date.

Estimated Eng Cost and Estimated Mfg Cost are shown on the first row of an ECO and Open Jobs on the first row of a revised item only, so that they can be summed.

SQL 95 lines

Parameters 11

ParameterTypeList of values SQL
Organization CodeLOV
mp.organization_code=:organization_code
ECOLOV
eec.change_notice=:eco
Change TypeLOV
ecotv.type_name=:change_type
ECO StatusLOV
eec.status_type=:eco_status
Approval StatusLOV
eec.approval_status_type=:approval_status
Open OnlyLOV
eec.status_type not in (5,6)
Revised ItemLOV
msiv.concatenated_segments=:revised_item
Effectivity Date FromDate
eri.scheduled_date>=:effectivity_date_from
Effectivity Date ToDate
eri.scheduled_date<:effectivity_date_to+1
Show Component ChangesLOV
,
xxen_util.meaning(bcb.acd_type,'ECG_ACTION',700) action,
bcb.operation_seq_num op_seq,
bcb.item_num item_seq,
(select msiv3.concatenated_segments from mtl_system_items_vl msiv3 where bcb.component_item_id=msiv3.inventory_item_id and eri.organization_id=msiv3.organization_id) component,
(select msiv3.description from mtl_system_items_vl msiv3 where bcb.component_item_id=msiv3.inventory_item_id and eri.organization_id=msiv3.organization_id) component_description,
(select msiv3.primary_uom_code from mtl_system_items_vl msiv3 where bcb.component_item_id=msiv3.inventory_item_id and eri.organization_id=msiv3.organization_id) component_uom,
(select bcb2.operation_seq_num from bom_components_b bcb2 where bcb.old_component_sequence_id=bcb2.component_sequence_id and bcb.acd_type in (2,3)) old_op_seq,
(select bcb2.component_quantity from bom_components_b bcb2 where bcb.old_component_sequence_id=bcb2.component_sequence_id and bcb.acd_type in (2,3)) old_quantity,
decode(bcb.acd_type,3,to_number(null),bcb.component_quantity) new_quantity,
bcb.component_yield_factor yield,
xxen_util.meaning(bcb.wip_supply_type,'WIP_SUPPLY',700) wip_supply_type,
bcb.supply_subinventory,
bcb.effectivity_date component_effectivity_date,
bcb.disable_date component_disable_date,
bcb.implementation_date component_implementation_date
Show DFF AttributesLOV
select xxen_util.dff_columns(p_table_name=>'eng_engineering_changes',p_table_alias=>'eec',p_row_id=>'rowid',p_column_name_prefix=>'ECO: ',p_display_mode=>:dff_display) sql_text from dual