PV_GHP_VCAT_VW2

(SQL View)
Index Back

Supplier performance by Catego


SELECT B.BUSINESS_UNIT , B.category_id , A.vendor_id , SUM(C.qty_po) , SUM(C.merchandise_amt) FROM PS_PO_HDR A , PS_PO_LINE B , PS_PO_LINE_SHIP C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.po_ID = B.PO_ID AND A.PO_ID = C.PO_ID AND b.LINE_NBR = C.LINE_NBR GROUP BY B.BUSINESS_UNIT, B.CATEGORY_ID, A.VENDOR_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID

Prompt Table: ITM_CAT_TBL

3 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

Prompt Table: VENDOR_PO_VW

4 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
5 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label