TD_FUND_DTL_VW(SQL View) |
Index Back |
---|---|
Valid funds for a customer |
SELECT DISTINCT A.SETID , F.PPRC_PROMO_CD , F.CUST_ID , A.TD_FUND_CODE , A.CURRENCY_CD , B.DESCR , B.FUND_START_DT , B.FUND_END_DT , SUM(A.BUDGETED_AMT) , B.FUND_METHOD , B.BUSINESS_UNIT_GL , SUM(F.AMOUNT) , G.STATUS_TD FROM PS_TD_FUND_DISTRIB A , PS_TD_FUND_MASTER B , PS_TD_TREE_NODE C , PS_SET_CNTRL_REC D , PS_TD_PRO_MERFU_CU F , PS_TD_PROMO_CUST G 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' AND A.SETID = F.SETID AND A.TD_FUND_CODE = F.TD_FUND_CODE AND G.SETID = F.SETID AND G.PPRC_PROMO_CD = F.PPRC_PROMO_CD AND G.CUST_ID = F.CUST_ID 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, F.PPRC_PROMO_CD, F.CUST_ID, G.STATUS_TD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | SetID | |
2 | Character(20) | VARCHAR2(20) NOT NULL | Price Promotion Code | |
3 | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. | |
4 | Character(10) | VARCHAR2(10) NOT NULL | Promotions Management Fund Code | |
5 | Character(3) | VARCHAR2(3) NOT NULL | Currency Code | |
6 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
7 | FUND_START_DT | Date(10) | DATE | Start Date |
8 | FUND_END_DT | Date(10) | DATE | End Date |
9 | AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
10 | FUND_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Funding Method
F=Fixed Accrual R=Rolling Accrual T=Top Down Z=Zero-Based Accrual |
11 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
12 | AMOUNT_2 | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount Work Field |
13 | STATUS_TD | Character(2) | VARCHAR2(2) NOT NULL |
Promotion Status
CA=Customer Approved CE=Customer Cancelled CL=Closed CR=Customer Rejected MA=Management Approved MR=Management Rejected PA=Pending Approval PL=Planned RE=Recalled RL=Released |