ITEM_PVN_VW(SQL View) |
Index Back |
---|---|
Item by Public Voucher Number |
SELECT DISTINCT B.PUBLIC_VOUCHER_NBR ,A.ITEM ,A.ITEM_LINE , A.BUSINESS_UNIT ,A.CUST_ID ,C.NAME1 ,A.INVOICE_BU ,A.INVOICE ,A.BAL_AMT A ,A.BAL_CURRENCY FROM PS_ITEM A ,PS_BI_HDR B ,PS_CUSTOMER C WHERE A.INVOICE<>' ' AND A.INVOICE_BU=B.BUSINESS_UNIT AND A.INVOICE=B.INVOICE AND B.AR_ENTRY_CREATED = 'Y' AND A.ITEM_STATUS='O' AND B.PUBLIC_VOUCHER_NBR<>0 AND A.CUST_ID = C.CUST_ID AND C.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.RECNAME = 'CUSTOMER' AND C.SETCNTRLVALUE = A.BUSINESS_UNIT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PUBLIC_VOUCHER_NBR | Number(6,0) | INTEGER NOT NULL | Public Voucher Number |
2 | 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. |
3 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
4 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BUARDS_NONVW |
5 | 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 |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
7 | INVOICE_BU | Character(5) | VARCHAR2(5) NOT NULL | Invoice Business Unit |
8 | INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Invoice |
9 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
10 | BAL_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code - Bal Amount |