模組: wip
inv.mtl_transaction_lot_numbers 物料事務處理批次號表(transaction_id 與 mmt.transaction_id 連線)
inv.mtl_system_items_b 物料表 (inventory_item_id與mmt.inventory_item_id連線)
wip.wip_entities 離散任務表 (包括任務名稱,可用wip_entity_id與wip_discrete_jobs 離散任務明細表的wip_entity_id相連線)
其他:**型別 - job or schedule mmt.transaction_source_type_id
事務處理型別 - wip completion mmt.transaction_type_id
sql:
select
mmt.organization_id,
mmt.transaction_id,
mmt.transaction_type_id,
msi.segment1 item_no,
msi.description,
mtl.lot_number,
mmt.subinventory_code,
mmt.locator_id,
mmt.transaction_uom,
nvl(mtl.transaction_quantity, mmt.transaction_quantity) transaction_quantity,
we.wip_entity_name transaction_source,
trunc(mmt.transaction_date) transaction_date,
mmt.transaction_reference
from
inv.mtl_material_transactions mmt,
inv.mtl_transaction_lot_numbers mtl,
inv.mtl_system_items_b msi,
wip.wip_entities we
where
mmt.transaction_id
=mtl.transaction_id(+)
and mmt.organization_id
=mtl.organization_id(+)
and mmt.organization_id
=msi.organization_id
and mmt.inventory_item_id
=msi.inventory_item_id
and mmt.transaction_type_id in(
44, 17)
and mmt.transaction_source_id
=we.wip_entity_id
and mmt.organization_id
=we.organization_id
and mmt.organization_id
=:p_org_id
and (trunc(mmt.transaction_date)
>=
trunc(:fm_date)
or:fm_date
isnull
)and (trunc(mmt.transaction_date)
<=
trunc(:to_date)
or:to_date
isnull
)order
bymsi.segment1
加工入庫單
begin declare pagelowerbound int declare pageupperbound int declare sql varchar 500 declare sql2 varchar 1000 declare rowstoreturn int first set the r...
EBS功能 WIP外協工單測試
1 建立委外加工物料,採購.委外加工物料屬性勾選,單位型別為裝配件 2 建立委外資源,資源型別為雜項,計費型別為po移動,此處注意單位為pcs,而不是h或者其他 3 建立物料清單 1010230024 和工藝路線,中間測試過eco,成功實施了eco 4 檢查部門上需要設定地點,wip引數的外協加工設...
煉鋼廠入庫單
sub pu1rk write dim my as new adodb.connection dim myrs as new adodb.recordset dim strcon as string ado資料庫連線串 strcon provider sqloledb server 172.16.2...