BI_TMP_SRCH2_VW

(SQL View)
Index Back

Temp bill srch VW - Customers


SELECT DISTINCT business_unit , bill_to_cust_id 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 BILL_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer