ORDTRK_BI_SS_VW

(SQL View)
Index Back

Order Track Vw - Billed (SS)

Order Track View - Billed (SS) Date Initials Issue Description 052704 twh F-KNANN-V59N4 Replace demand table references with IN_DEMAND

SELECT DISTINCT C.OPRID , B.BUSINESS_UNIT , BI.INVOICE , B.INVOICE_TYPE , B.BILL_TYPE_ID , B.BILL_SOURCE_ID , B.BILL_TO_CUST_ID , B.BILL_STATUS , B.CONTRACT_NUM FROM PS_BI_HDR B , PS_IN_DEMAND D , PS_IN_DEMAND_BI BI , PS_CUST_SSBILL_VW C , PS_SET_CNTRL_REC R WHERE B.BUSINESS_UNIT = D.BUSINESS_UNIT_BI AND B.INVOICE = BI.INVOICE AND %Join(COMMON_KEYS, IN_DEMAND D, IN_DEMAND_BI BI) AND D.DEMAND_SOURCE = 'OM' AND D.IN_FULFILL_STATE = '70' AND R.RECNAME = 'CUSTOMER' AND R.SETCNTRLVALUE = B.BUSINESS_UNIT AND R.SETID = C.SETID AND C.BILL_TO_CUST_ID = B.BILL_TO_CUST_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 BUSINESS_UNIT_BI Character(5) VARCHAR2(5) NOT NULL Billing Business Unit
3 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice

Default Value: NEXT

Prompt Table: BI_HDR

4 INVOICE_TYPE Character(3) VARCHAR2(3) NOT NULL Invoice Type
ACR=Credit Bill
ADJ=Adjustment Only bill
ARB=Rebill Bill
PRF=Pro Forma Invoice
RAD=Regular bill with adjustments
REG=Regular Bill

Default Value: REG

5 BILL_TYPE_ID Character(3) VARCHAR2(3) NOT NULL Bill Type Identifier

Prompt Table: BI_TYPE_EF_VW

6 BILL_SOURCE_ID Character(10) VARCHAR2(10) NOT NULL Bill Source

Prompt Table: BI_SRC_EF_VW

7 BILL_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer

Prompt Table: %EDITTABLE3

8 BILL_STATUS Character(3) VARCHAR2(3) NOT NULL Bill Status
CAN=Canceled
FNL=Finalized Bill
HLD=Hold Bill
INV=Invoiced Bill
NEW=New Bill
PND=Pending Approval
RDY=Ready to Invoice
TMP=Temporary Bill
TMR=Temporary Ready Bill

Default Value: NEW

9 CONTRACT_NUM Character(25) VARCHAR2(25) NOT NULL Contract