CFOP_DISC2A_VW

(SQL View)
Index Back

Discounts $ - CFO Portal


SELECT A.PERIOD_AP , A.BUSINESS_UNIT , B.XLATSHORTNAME , A.CURRENCY_CD , A.AMOUNT , A.AS_OF_DATE FROM PS_CFOP_DISC_SUMM A , PSXLATITEM B WHERE B.FIELDNAME = 'CFOP_AP_STATUS' AND B.FIELDVALUE = A.CFOP_AP_STATUS AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PSXLATITEM C WHERE C.FIELDNAME = B.FIELDNAME AND C.FIELDVALUE = B.FIELDVALUE AND C.EFF_STATUS = 'A' AND C.EFFDT <= %CurrentDateIn) AND B.FIELDVALUE = A.CFOP_AP_STATUS

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERIOD_AP Character(6) VARCHAR2(6) NOT NULL Period
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 STATUS_DESCR Character(30) VARCHAR2(30) NOT NULL Status Description
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
5 AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount
6 AS_OF_DATE Date(10) DATE NOT NULL As of Date