TD_DISC_FUND_VW(SQL View) |
Index Back |
---|---|
Disc Fund Stat Paglet ViewUsed for the Discretionary Funding Status Pagelet drill down view which shows Status by Fund. |
SELECT DISTINCT A.SETID , A.CURRENCY_CD , A.TD_FUND_CODE , B.DESCR , B.FUND_START_DT , B.FUND_END_DT , SUM(A.BUDGETED_AMT) - SUM(A.DISTRIB_AMT) , B.FUND_METHOD , B.BUSINESS_UNIT_GL FROM PS_TD_FUND_DISTRIB A , PS_TD_FUND_MASTER B , PS_TD_TREE_NODE C , PS_SET_CNTRL_REC D WHERE A.SETID = B.SETID AND A.TD_FUND_CODE = B.TD_FUND_CODE AND A.SETID = D.SETCNTRLVALUE AND D.RECNAME = 'CUSTOMER' AND D.SETID = C.SETID AND A.TD_NODE_ID = C.TD_NODE_ID AND B.TD_TREE_ID_CUST = C.TD_TREE_ID AND B.TD_TREE_EFFDT_CUST = C.EFFDT AND B.FUND_TYPE = 'D' AND B.TD_STATUS = 'A' AND b.status = 'A' GROUP BY A.SETID , A.CURRENCY_CD , A.TD_FUND_CODE , B.DESCR , B.FUND_START_DT , B.FUND_END_DT , B.FUND_METHOD , B.BUSINESS_UNIT_GL |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
3 | TD_FUND_CODE | Character(10) | VARCHAR2(10) NOT NULL | Promotions Management Fund Code |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
5 | FUND_START_DT | Date(10) | DATE | Start Date |
6 | FUND_END_DT | Date(10) | DATE | End Date |
7 | AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
8 | FUND_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Funding Method
F=Fixed Accrual R=Rolling Accrual T=Top Down Z=Zero-Based Accrual |
9 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |