AR_DSTGL_VW(SQL View) |
Index Back |
---|
SELECT A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE , A.ITEM_SEQ_NUM , A.ENTRY_TYPE , A.ENTRY_REASON FROM PS_ITEM_ACTIVITY A , PS_BUS_UNIT_OPT_AR R , PS_SET_CNTRL_REC S WHERE A.ENTRY_USE_ID IN ('IT-01', 'IT-02') AND R.SETID = S.SETID AND S.SETCNTRLVALUE = A.BUSINESS_UNIT AND S.RECNAME = 'BUS_UNIT_OPT_AR' AND EXISTS ( SELECT 'X' FROM PS_ITEM_ENTRY_TBL IE , PS_SET_CNTRL_REC S1 WHERE IE.SETID = S1.SETID AND S1.SETCNTRLVALUE = A.BUSINESS_UNIT AND S1.RECNAME = 'ITEM_ENTRY_TBL' AND IE.ENTRY_USE_ID = A.ENTRY_USE_ID AND IE.ENTRY_TYPE = A.ENTRY_TYPE AND IE.DST_GL <> 'Y' AND IE.EFF_STATUS = 'A' AND IE.EFFDT <= ( SELECT MAX(B.EFFDT) FROM PS_ITEM_ENTRY_TBL B WHERE B.SETID = IE.SETID AND B.ENTRY_TYPE = IE.ENTRY_TYPE AND B.ENTRY_USE_ID = IE.ENTRY_USE_ID)) |
# | 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 |