C360_DS_IN_SRCH

(SQL View)
Index Back

Customert Docstatus Work Scr

Customer Docstatus Work Scroll record

SELECT R.SETID , A.BILL_TO_CUST_ID ,A.BUSINESS_UNIT , A.INVOICE , 'INV' , A.INVOICE_DT , A.INVOICE , ' ' , A.BILL_STATUS FROM PS_BI_HDR A ,PS_SET_CNTRL_REC R WHERE R.SETCNTRLVALUE=A.BUSINESS_UNIT AND R.RECNAME='CUSTOMER' AND R.REC_GROUP_ID='FS_23' AND A.TEMPLATE_IVC_FLG = 'N' AND A.CONSOL_HDR <> 'Y' AND A.CONSOL_INVOICE = ' ' AND (A.BILL_STATUS NOT IN ('TMP','TMR') OR (A.BILL_STATUS IN ('TMP','TMR') AND A.PC_DISTRIB_STATUS <> 'I'))

# 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 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice
8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
9 STATUS_FIELD Character(30) VARCHAR2(30) NOT NULL Payment Status