BI_TMP_SRCH6_VW(SQL View) |
Index Back |
---|---|
Temp bill srch VW - LOC Doc ID |
SELECT DISTINCT business_unit , loc_doc_id FROM PS_BI_HDR WHERE (bill_status = 'TMP' OR bill_status = 'TMR') AND process_instance = 0 AND LOC_DOC_ID <> ' ' AND (PC_DISTRIB_STATUS <> 'I' OR (PC_DISTRIB_STATUS = 'I' AND EXISTS ( SELECT 'X' FROM PS_BI_WRKSHT_STG STG WHERE PS_BI_HDR.BUSINESS_UNIT = STG.BUSINESS_UNIT AND PS_BI_HDR.INVOICE = STG.INVOICE AND STG.WRKSHT_STATUS IN ('0', '8')))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | LOC_DOC_ID | Character(30) | VARCHAR2(30) NOT NULL | Letter of Credit Document ID |