SELECT prha.segment1 Nro_requisicion,
prha.type_lookup_code
tipo_req,
pha.segment1
nro_oc,
pha.type_lookup_code
tipo_oc
FROM apps.po_headers_all pha,
apps.po_distributions_all
pda,
apps.po_req_distributions_all
rd,
apps.po_requisition_lines_all
prla,
apps.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
and pha.segment1='&PO_NUMBER'
No hay comentarios:
Publicar un comentario