总结个人常用的一些查询条件,涉及方面比较广泛,不断更新中:
1.接收人:
select distinct name from xxxxx_inv_operator_v;
2.离散任务状态:
select to_char(ml.lookup_code), ml.meaning
from mfg_lookups ml
where ml.lookup_type = 'WIP_JOB_STATUS'
3.工单类型:
select t.class_code from wip_accounting_classes t
select w.class_code from wip_discrete_classes_all_v w where substr(w.class_code, 1, 1) = 'D'
4.子库存库房:
select * from mtl_secondary_inventories
5.采购员:
select distinct per.person_id, pa.agent_name 姓名, hou.name 部门
from per_people_v7 per,
per_assignments_f f,
hr_organization_units hou,
po_agents_v pa
where per.person_id = f.person_id
and f.organization_id = hou.organization_id
and hou.name = 'CGBU采购部'
and per.full_name = pa.agent_name
--order by pa.agent_name;
6.物料编码九段说明:
1)大类; 2)小类; 3)工艺; 4)用途; 5)规格; 6)配方; 7)采购标示; 8)品牌; 9)级别; 21)小类编码; 61)配方编码; 其他
7.供应商列表
select bv.vendor_name from apps.bs_vendors_v bv;
8.查询事务处理类型
SELECT mtt.transaction_type_id, mtt.transaction_type_name
FROM mtl_transaction_types mtt