BI_HDR_CANC_VWO

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT ,A.EXT_ORG_ID ,A.INVOICE_ID ,A.BILL_TYPE_ID ,A.SF_BILL_STATUS FROM PS_BI_BILL_HEADER A WHERE A.SF_BILL_STATUS = 'I' AND A.TYPE_OF_REQUEST ='C' AND A.BI_REQ_NBR = ( SELECT MAX(B.BI_REQ_NBR) FROM PS_BI_BILL_HEADER B WHERE B.BUSINESS_UNIT = A.BUSINESS_UNIT AND B.EXT_ORG_ID = A.EXT_ORG_ID AND B.SF_BILL_STATUS = 'I')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID
3 INVOICE_ID Character(22) VARCHAR2(22) NOT NULL Invoice Number
4 BILL_TYPE_ID Character(3) VARCHAR2(3) NOT NULL Bill Type ID
PP=Payment Plan
PRE=Pre-Payment
STU=Student
TP=Third Party
5 SF_BILL_STATUS Character(1) VARCHAR2(1) NOT NULL Billing Status
C=Cancelled
I=Initiated