DRAFT_OPSI_VW

(SQL View)
Index Back

AR - Open Drafts By Setid


select distinct A.setid, A.cust_id, B.draft_bu, B.draft_id from ps_customer A, PS_ITEM B where a.cust_id=b.cust_id and b.draft_id <> ' ' and b.item_status = 'O' and exists ( SELECT 'x' FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = b.business_unit and setid = a.setid AND RECNAME = 'CUSTOMER')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID_INQ 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 DRAFT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the Receivables business unit associated with a draft. This field is maintained by the Draft Creation process.
4 DRAFT_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies a payment draft. The Draft ID is system-generated during the Draft Creation process or manually entered.