C360_DS_CN_SRCH

(SQL View)
Index Back

Customert Docstatus Work Scr

Customer Docstatus Work Scroll record

SELECT CUST.SETID , HDR.BILL_TO_CUST_ID ,HDR.BUSINESS_UNIT , HDR.CONTRACT_NUM , 'CNT' , HDR.CONTRACT_SIGN_DT , HDR.CONTRACT_NUM , ' ' , HDR.CA_STATUS FROM PS_CA_CONTR_HDR HDR , PS_CUSTOMER CUST , PS_SET_CNTRL_GROUP D WHERE HDR.SOLD_TO_CUST_ID = CUST.CUST_ID AND D.REC_GROUP_ID = ( SELECT REC_GROUP_ID FROM PS_REC_GROUP_REC WHERE RECNAME = 'CUSTOMER') AND CUST.SETID = D.SETID AND HDR.BUSINESS_UNIT = D.SETCNTRLVALUE AND CUST.CUST_STATUS = 'A' AND CUST.EXP_PENDING = 'N' AND CUST.SOLD_TO_FLG = 'Y' AND HDR.CA_RQST_SRC <> 'OND'

# 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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 C360_DOC_ID Character(25) VARCHAR2(25) NOT NULL Document ID
5 C360_DOC_TYPE Character(3) VARCHAR2(3) NOT NULL Document Type
CNT=Contract
INV=Invoice
ITM=Item
PMT=Payment
RFQ=Quotation
RMA=Returned Material
SO=Sales Order
6 DOCSTAT_DATE Date(10) DATE Document Date
7 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 STATUS_FIELD Character(30) VARCHAR2(30) NOT NULL Payment Status