AR_ACV_FLDD2_VW

(SQL View)
Index Back

Customer Items


SELECT C.SETID , I.BUSINESS_UNIT , I.CUST_ID , I.CURRENCY_CD , C.NAME1 , I.BAL_AMT_BASE , (CASE WHEN I.DUE_DT < %CurrentDateIn THEN (I.BAL_AMT_BASE) ELSE 0 END) FROM %Table(item) I , %Table(customer) C WHERE c.setid = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = I.business_unit AND RECNAME = 'CUSTOMER') AND C.cust_id = I.cust_id

# 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 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BUARDS_NONVW

3 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.
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
5 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
6 BAL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Item Balance
7 PASTDUE Signed Number(28,3) DECIMAL(26,3) NOT NULL Past Due