ITEM_SP_ID_VW(SQL View) |
Index Back |
---|---|
All Docs (keyed by Doc) |
SELECT I.sp_id ,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 I.item_status = 'O' AND I.sp_id <> 0 AND I.CUST_ID = S.CUST_ID AND S.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.RECNAME = 'CUSTOMER' AND C.SETCNTRLVALUE = I.business_unit) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SP_ID | Number(11,0) | DECIMAL(11) NOT NULL | Service Purchase ID |
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 |