PV_GHP_DEP_VW5

(SQL View)
Index Back

View by deptid


SELECT A.BUSINESS_UNIT , A.vendor_id , A.BUYER_id , D.DEPTID , SUM(D.qty_po) , SUM(D.merchandise_amt) FROM PS_PO_HDR A , PS_PO_LINE_DISTRIB D WHERE A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.PO_ID = D.PO_ID GROUP BY A.BUSINESS_UNIT, A.VENDOR_ID, A.BUYER_ID, D.DEPTID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

Prompt Table: VENDOR_PO_VW

3 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer

Prompt Table: %EDIT_BUYER

4 DEPTID Character(10) VARCHAR2(10) NOT NULL Department

Prompt Table: DEPTID_BUGL_VW

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