BI_TMP_SRCH_VW

(SQL View)
Index Back

Temp Bill Srch VW - Invoices


SELECT BUSINESS_UNIT , INVOICE FROM PS_BI_HDR WHERE (BILL_STATUS = 'TMP' OR BILL_STATUS = 'TMR') AND PROCESS_INSTANCE = 0 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 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice