select ph.type_lookup_code 采购单类型,
pv.vendor_name, --供应商
pvs.address_line1, --供应商地址,
pvc.first_name || '. ' || pvc.middle_name || '. ' || pvc.last_name, --供应商联络人
pap.full_name 采购人员是谁,
msi.segment1 料号,
pl.unit_price 单价,
----> att.name, --付款条件,
ph.currency_code 币别,
pl.line_num 行号
from po_lines_all pl
inner join po_headers_all ph on pl.po_header_id=ph.po_header_id
inner join po_vendors pv on ph.vendor_id = pv.vendor_id
inner join po_vendor_sites_all pvs on ph.vendor_site_id = pvs.vendor_site_id
inner join po_vendor_contacts pvc on ph.vendor_contact_id = pvc.vendor_contact_id
inner join per_all_people_f pap on ph.agent_id = pap.person_id
inner join mtl_system_items_b msi on pl.org_id=msi.organization_id and pl.item_id = msi.inventory_item_id
---->
inner join ap_terms_tl att on ph.terms_id = att.term_id
where ph.segment1 = '4786 '
----> and att.language= 'US '
1、如果去掉 ----> 后面紧跟行的代码,则没有问题
2、如果不用 inner join on,改用在 where 里面关联的话,就没有问题
3、登陆帐号/密码 apps/apps
------解决方案--------------------
有错误信息吗?