BI_HOLD_VW(SQL View) |
Index Back |
---|---|
Customers on holdThe view that created for hold customers. |
SELECT DISTINCT A.SETID , A.CUST_ID , MIN(A.START_DT) FROM PS_CUST_MSG A , PS_MESSAGE_TBL B , PS_SET_CNTRL_REC C WHERE C.RECNAME='MESSAGE_TBL' AND C.SETCNTRLVALUE=A.SETID AND B.SETID = C.SETID AND A.MESSAGE_CD = B.MESSAGE_CD AND %CurrentDateIn BETWEEN A.START_DT AND A.END_DT AND B.MESSAGE_ACTION = 'H' AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_MESSAGE_TBL BE WHERE BE.SETID = B.SETID AND BE.MESSAGE_CD = B.MESSAGE_CD AND BE.EFFDT <= %CurrentDateIn) GROUP BY A.SETID, A.CUST_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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. |
3 | START_DATE | Date(10) | DATE | Start Date for Gen Standing PO |