AR_CUST_CR_VW(SQL View) |
Index Back |
---|---|
Customer that w/ Credit HOLDThe view that created to filter out the credit hold customers. |
SELECT DISTINCT A.SETID , A.CUST_ID , X.XLATLONGNAME , X.XLATSHORTNAME FROM PS_CUST_MSG A , PS_MESSAGE_TBL B , PS_SET_CNTRL_REC C , PSXLATITEM X WHERE C.RECNAME='MESSAGE_TBL' AND C.SETCNTRLVALUE=A.SETID AND A.START_DT <= %CurrentDateIn AND A.END_DT >= %CurrentDateIn AND B.SETID = C.SETID AND A.MESSAGE_CD = B.MESSAGE_CD AND B.MESSAGE_CD_TYPE = '01' 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) AND X.FIELDNAME = 'MESSAGE_ACTION' AND X.FIELDVALUE = 'H' AND X.EFFDT = ( SELECT MAX(X1.EFFDT) FROM PSXLATITEM X1 WHERE X1.FIELDNAME = X.FIELDNAME AND X1.FIELDVALUE = X.FIELDVALUE AND X1.EFFDT <= %CurrentDateIn) AND X.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL |
SetID
Prompt Table: SP_SETID_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. |
3 | XLATLONGNAME | Character(30) | VARCHAR2(30) NOT NULL | Translate Long Name |
4 | XLATSHORTNAME | Character(10) | VARCHAR2(10) NOT NULL | Translate Value Short Name |