参考技术APR (Purchase Requirent) 请购单,采购申请单,代表企业内部的申请需求 PO (Purchanse Order) 采购订单,客户下给供应商的 RFQ(Request For Quotation) 报价请求 RFI (Request For Information) 信息邀请书,用来取得产品,服务,或供应商一般资讯的请求文件 SOW(Statement Of Work)工作说明书,是对所要提供的产品或服务的叙述性的描述 BOM (Bill Of Material) 物料清单 JIT (Just In Time) 准时化供应(生产) VMI (Vendor Manage Inventory) 供应商库存管理,即客户的原料属于供应商,并由供应商管理 MRO(Maintenance, Repair and Operating)指维修与作业耗材,也可解释为非生产性物资
sql 采购申请和RFQ之间的关联
Re: Link between Purchase Requisition and RFQ
The following sql script can be used to identify all req-rfq links (the order by clause can be changed according to your need)
Code sql:
SELECT rh.segment1 REQ_NUM,
rl.requisition_line_id,
rl.requisition_header_id,
ph.segment1 RFQ_NUM,
pl.po_header_id,
pl.po_line_id
FROM po_requisition_headers_all rh,
po_requisition_lines_all rl,
po_headers_all ph,
po_lines_all pl
WHERE rh.requisition_header_id = rl.requisition_header_id
AND rl.last_update_date = pl.creation_date
AND pl.po_header_id = ph.po_header_id
AND rl.on_rfq_flag = 'Y'
ORDER BY requisition_line_id DESC;
SELECT prha.segment1 "Requisition Number",
prha.type_lookup_code "Requisition Type",
pha.segment1 "Purchase Order Number",
pha.type_lookup_code "Purchase Order Type"
FROM po_headers_all pha,
po_distributions_all pda,
po_req_distributions_all rd,
po_requisition_lines_all prla,
po_requisition_headers_all prha
WHERE pha.po_header_id = pda.po_header_id
AND pda.req_distribution_id = rd.distribution_id
AND rd.requisition_line_id = prla.requisition_line_id
AND prla.requisition_header_id = prha.requisition_header_id