TD_CONSPROMOVW2(SQL View) |
Index Back |
---|---|
Actual Consumption Work View |
SELECT DISTINCT A.SETID , A.PPRC_PROMO_CD , B.CUST_ID , C.MERCH_TYPE FROM PS_PPRC_PROMO_TBL A , PS_TD_PROMO_CUST B , PS_TD_PRO_MERC_CUS C , PS_TD_MERCH_TYPE E , PS_SET_CNTRL_REC SC1 WHERE A.SETID = B.SETID AND A.PPRC_PROMO_CD = B.PPRC_PROMO_CD AND A.SETID = C.SETID AND A.PPRC_PROMO_CD = C.PPRC_PROMO_CD AND B.CUST_ID = C.CUST_ID AND C.SETID = SC1.SETCNTRLVALUE AND SC1.RECNAME = 'TD_MERCH_TYPE' AND SC1.SETID = E.SETID AND C.MERCH_TYPE = E.MERCH_TYPE AND E.MERCH_ACTIVITY = 'C' AND %EffdtCheck(TD_MERCH_TYPE F, E, %CurrentDateIn) AND E.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Default Value: OPR_DEF_TBL_FS.SETID Prompt Table: TD_SETID_TBL |
2 | PPRC_PROMO_CD | Character(20) | VARCHAR2(20) NOT NULL | Price Promotion Code |
3 | 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 |
4 | MERCH_TYPE | Character(10) | VARCHAR2(10) NOT NULL | Merchandising Type |