AR_BIGL_VW

(SQL View)
Index Back

SELECT DISTINCT A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE , A.ITEM_SEQ_NUM , A.ENTRY_TYPE , A.ENTRY_REASON , A.BUSINESS_UNIT_BI FROM PS_ITEM_ACTIVITY A , PS_BI_HDR H , PS_BI_LINE B WHERE A.ENTRY_USE_ID IN ('IT-01', 'IT-02') AND A.ORIGIN_ID = ( SELECT B.ORIGIN_ID_BILLING FROM PS_BUS_UNIT_OPT_BI B , PS_SET_CNTRL_REC S WHERE B.SETID = S.SETID AND S.SETCNTRLVALUE = A.BUSINESS_UNIT_BI AND S.RECNAME = 'BUS_UNIT_OPT_BI') AND A.BUSINESS_UNIT_BI = H.BUSINESS_UNIT AND A.CUST_ID = H.BILL_TO_CUST_ID AND A.ITEM = H.INVOICE AND (A.ITEM_LINE = B.INVOICE_LINE OR (A.ITEM_LINE = 0 AND H.AR_LVL = 'H')) AND H.BUSINESS_UNIT = B.BUSINESS_UNIT AND H.INVOICE = B.INVOICE AND H.GL_LVL = 'B' AND (B.CONTRACT_NUM = ' ' OR NOT EXISTS ( SELECT 'X' FROM PS_CA_ACCTG_LN_PC P WHERE P.CONTRACT_NUM = B.CONTRACT_NUM AND P.CONTRACT_LINE_NUM = B.CONTRACT_LINE_NUM AND P.BUSINESS_UNIT_PC = B.BUSINESS_UNIT AND P.RESOURCE_ID = B.RESOURCE_ID)) AND EXISTS ( SELECT 'X' FROM PS_BI_ACCT_ENTRY BI WHERE BI.BUSINESS_UNIT = A.BUSINESS_UNIT_BI AND BI.INVOICE = A.ITEM AND BI.BUDGET_HDR_STATUS = 'V')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_FS

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.

Prompt Table: CUST_BI_A2_VW

3 ITEM Character(30) VARCHAR2(30) NOT NULL Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number.
4 ITEM_LINE Number(6,0) INTEGER NOT NULL Item Line
5 ITEM_SEQ_NUM Number(3,0) SMALLINT NOT NULL Item Sequence Number
6 ENTRY_TYPE Character(5) VARCHAR2(5) NOT NULL Specifies the type of transaction associated with a pending item. The entry type remains with the item after it is posted and affects many areas of Receivables processing. Some examples of entry types are Invoices Credit Memo Prepayment and Deduction.

Prompt Table: ENTRY_TYPE_TBL

7 ENTRY_REASON Character(5) VARCHAR2(5) NOT NULL "Specifies an entry reason that further qualifies the entry type associated with a pending item. For example an entry reason for a credit memo might be ""Pricing Error"" or ""Shipping Error""."

Prompt Table: ENTRY_REASN_TBL

8 BUSINESS_UNIT_BI Character(5) VARCHAR2(5) NOT NULL Billing Business Unit