CC_POHSUM_VW(SQL View) |
Index Back |
---|---|
ProCard PO Header Sum |
SELECT A.BUSINESS_UNIT , A.PO_ID , A.PO_DT , MIN(A.PO_STATUS) , MIN(C.CURRENCY_CD) , SUM(C.MERCHANDISE_AMT) , MIN(C.CURRENCY_CD_BASE) , SUM(C.MERCH_AMT_BSE) FROM PS_PO_HDR A , PS_PO_LINE_SHIP C WHERE A.PO_STATUS IN ('A', 'D') AND A.MID_ROLL_STATUS <> 'Y' AND A.MATCH_STATUS_PO <> 'M' AND C.CANCEL_STATUS = 'A' AND A.CC_SECURITY_ID = 0 AND %Join(COMMON_KEYS, PO_HDR A, PO_LINE_SHIP C) GROUP BY A.BUSINESS_UNIT , A.PO_ID , A.PO_DT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
3 | PO_DT | Date(10) | DATE | Date |
4 | PO_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
PO Status
A=Approved C=Complete D=Dispatched DA=Denied I=Initial LD=Line Denied O=Open PA=Pending Approval/Approved PX=Pending Cancel X=Canceled |
5 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
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 |
7 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
8 | MERCH_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Merchandise Amount |