/* 未加工的材料交易(必须解决)
UNcosted Transactions (must resolve) 无成本的交易(必须解决)
Pending WIP costing transactions (must resolve) 等待在制品成本交易(必须解决)
UNcosted WSM transactions (must resolve) 无交易成本WSM(必须解决)
Pending WSM interface transactions (must resolve) 待定界面的交易(必须解决)
Pending Split Merge Transactions interface 待分割合并交易界面
Pending Lot Move Transactions Interface 在很多移动交易界面
Pending Lot Split Merges Interface 在很多分裂合并的接口
*/
-- Unprocessed Material transactions (must resolve) SELECT * FROM mtl_material_transactions_temp WHERE organization_id in (2814,2815,2816,3132) AND transaction_date <= to_date('&l_sched_close_date','yyyymmddhh24miss') AND NVL(transaction_status, 0) <> 2; -- 2 indicates a save-only status
-- Uncosted Transactions (must resolve) SELECT /*+ INDEX (MMT MTL_MATERIAL_TRANSACTIONS_N10) */ * FROM mtl_material_transactions MMT WHERE organization_id in (2814,2815,2816,3132) AND transaction_date <= to_date('&l_sched_close_date','yyyymmddhh24miss') AND costed_flag is not null;
-- Pending WIP costing transactions (must resolve) SELECT * FROM wip_cost_txn_interface WHERE organization_id in (2814, 2815, 2816, 3132) AND transaction_date <= to_date('&l_sched_close_date', 'yyyymmddhh24miss');
-- Uncosted WSM transactions (must resolve) -- Pending WSM interface transactions (must resolve) -- Pending Split Merge Transactions interface SELECT * FROM wsm_split_merge_txn_interface WHERE organization_id in (2814,2815,2816,3132) AND process_status <> wip_constants.completed AND transaction_date <= to_date('&l_sched_close_date','yyyymmddhh24miss');
-- Pending Lot Move Transactions Interface SELECT * FROM wsm_lot_move_txn_interface WHERE organization_id in (2814,2815,2816,3132) AND status <> wip_constants.completed AND transaction_date <= to_date('&l_sched_close_date','yyyymmddhh24miss');
-- Pending Lot Split Merges Interface SELECT * FROM wsm_lot_split_merges_interface WHERE organization_id in (2814,2815,2816,3132) AND process_status <> wip_constants.completed AND transaction_date <= to_date('&l_sched_close_date','yyyymmddhh24miss');