TD_PRO_CUSPL_VW(SQL View) |
Index Back |
---|---|
Planned Merch Amt, BB & LSPlanned merchandising cost for billback and lumpsum promotions |
SELECT A.SETID , A.PPRC_PROMO_CD , A.CUST_ID , SUM(A.MERCH_COST) FROM PS_TD_PRO_MERC_CUS A , PS_TD_MERCH_TYP_VW B , PS_SET_CNTRL_REC C WHERE (A.TD_ADJUST_TYPE = 'AC' OR A.td_adjust_type = 'LS') AND A.SETID = C.SETCNTRLVALUE AND C.RECNAME = 'TD_MERCH_TYP_VW' AND C.SETID = B.SETID AND A.MERCH_TYPE = B.MERCH_TYPE AND B.MERCH_ACTIVITY = 'P' GROUP BY A.SETID, A.PPRC_PROMO_CD, A.CUST_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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. |
4 | MERCH_COST | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Merchandising Cost |