Alert When PO Approved
Alert When PO Approved
Alert When PO Approved
MAIL_PO_APPROVAL
,po_lines_all pol
,po_distributions_all pod
,po_requisition_headers_all reqh
,po_requisition_lines_all reql
,po_req_distributions_all reqd
,per_all_people_f papf
,per_all_people_f buyer
where poh.type_lookup_code='STANDARD'
and poh.approved_flag='Y'
and poh.rowid=:ROWID
and poh.po_header_id=pol.po_header_id
and poh.po_header_id=pod.po_header_id
and reqh.preparer_id=papf.person_id
and reqh.requisition_header_id=reql.requisition_header_id
and reql.requisition_line_id=reqd.requisition_line_id
and reqd.distribution_id=pod.req_distribution_id
and pol.item_id=reql.item_id
and poh.agent_id=buyer.person_id
into
from
RCV_SHIPMENT_HEADERS rsh
,po_headers_all po
,per_all_people_f papf
where rsh.rowid=:ROWID
where rshl.shipment_header_id=rsh.shipment_header_id)
and papf.person_id=po.agent_id