Pour vérifier les réceptions:
SELECT mtl.transaction_date DATE_MVT,
       mtl.transaction_quantity QTE_RECUE,
       rsh.receipt_num "Receipt",
       po_h.segment1 "PO"
 FROM  rcv_transactions rcv,
       po_distributions_all po_pod,
       po_lines_all po_l,
       po_headers_all po_h,
       rcv_shipment_headers rsh,
       mtl_material_transactions mtl
WHERE  1=1
  AND  rcv.po_line_id = po_pod.po_line_id
  AND  rcv.po_header_id = po_pod.po_header_id
  AND  po_pod.po_line_id = po_l.po_line_id
  AND  po_pod.po_header_id = po_l.po_header_id
  AND  mtl.rcv_transaction_id = rcv.transaction_id
  AND   po_l.org_id = po_h.org_id
  AND   po_l.po_header_id = po_h.po_header_id
  AND   rcv.shipment_header_id = rsh.shipment_header_id
  AND   po_h.segment1 = '99750'; -- PO to check
Pour vérifier les expéditions (requête spécifique qui n'est utilisable que chez un client ;-)):
SELECT sel.*
  FROM se_exped_lines sel, po_lines_all pla, po_headers_all pha
 WHERE sel.cmde_line_num = pla.po_line_id
   AND pla.po_header_id = pha.po_header_id
   AND pha.segment1 = '102575'; -- Numéro de commande
订阅:
博文评论 (Atom)
 
没有评论:
发表评论