TD_PRO_FD_DE_VW(SQL View) |
Index Back |
---|---|
Promo Deductionsfor a customerThe following views should always have the same fields TD_PRO_CU_PD_VW TD_PRO_CU_OI_VW TD_PRO_CU_CR_VW TD_PRO_CU_DE_VW |
SELECT DISTINCT C.SETID , A.SOLD_TO_CUST_ID , A.PPRC_PROMO_CD , A.INVOICE , A.ITEM , B.ITEM_LINE , %DecMult(B.ENTRY_AMT, -1) , B.CURRENCY_CD , D.STATUS_TD , E.TD_FUND_CODE FROM PS_ITEM A , PS_ITEM_ACTIVITY B , PS_SET_CNTRL_REC C , PS_TD_PROMO_CUST D , PS_TD_PRO_MERFU_CU E WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.ITEM = B.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND A.DEDUCTION_STATUS <> ' ' AND B.ENTRY_USE_ID = 'MT-03' AND C.RECNAME = 'PPRC_PROMO_TBL' AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.SETID = D.SETID AND C.SETID = E.SETID AND D.CUST_ID = A.SOLD_TO_CUST_ID AND E.CUST_ID = A.SOLD_TO_CUST_ID AND A.PPRC_PROMO_CD = D.PPRC_PROMO_CD AND A.PPRC_PROMO_CD = E.PPRC_PROMO_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SP_SETTD_NONVW |
2 | CUST_ID | 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.
Prompt Table: TD_CUST_OPRVW |
3 | PPRC_PROMO_CD | Character(20) | VARCHAR2(20) NOT NULL |
Price Promotion Code
Prompt Table: PPRC_PROMO_TBL |
4 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
5 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
6 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
7 | AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL |
Currency Code
Prompt Table: CURRENCY_CD_TBL |
9 | 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 |
10 | TD_FUND_CODE | Character(10) | VARCHAR2(10) NOT NULL | Promotions Management Fund Code |