PO_HDR_SUM_VW

(SQL View)
Index Back

Approval PO Summary VW

PO Header Summary view Modified for 28578183, removed HOLD_STATUS = 'N'

SELECT DISTINCT H.BUSINESS_UNIT , H.PO_ID , H.PO_DT , H.PO_STATUS , H.PO_REF , H.CURRENCY_CD , '2' , SUM (S.MERCHANDISE_AMT) FROM PS_PO_HDR H , PS_PO_LINE_SHIP S WHERE H.BUSINESS_UNIT = S.BUSINESS_UNIT AND H.PO_ID = S.PO_ID AND S.CANCEL_STATUS <> 'X' GROUP BY H.BUSINESS_UNIT , H.PO_ID, H.PO_DT , H.PO_STATUS ,H.PO_REF , H.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BU_PM_NONVW

2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 PO_DT Date(10) DATE Date
4 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
A=Approved
C=Complete
D=Dispatched
DA=Denied
I=Initial
LD=Line Denied
O=Open
PA=Pending Approval/Approved
PX=Pending Cancel
X=Canceled
5 PO_REF Character(30) VARCHAR2(30) NOT NULL Specifies the purchase order number associated with a receivables item.
6 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
7 PRIORITY_FLG Character(1) VARCHAR2(1) NOT NULL Priority Flag
1=High
2=Medium
3=Low
8 PO_TOTAL Signed Number(28,3) DECIMAL(26,3) NOT NULL PO Total