ITEM_AG_VW(SQL View) |
Index Back |
---|---|
All Docs (keyed by Doc) |
SELECT I.ag_ref_nbr ,I.item , I.item_line , I.business_unit , I.cust_id , S.NAME1 , I.bal_amt , I.bal_currency FROM PS_ITEM I , ps_customer S WHERE ag_ref_nbr <> 0 AND I.CUST_ID = S.CUST_ID AND S.SETID = ( SELECT B.SETID FROM PS_SET_CNTRL_REC B WHERE B.RECNAME = 'CUSTOMER' AND B.SETCNTRLVALUE = I.business_unit) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | AG_REF_NBR | Number(16,0) | DECIMAL(16) NOT NULL | Payment Reference 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 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
8 | BAL_CURRENCY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code - Bal Amount |