SRM_PO2APR_VW

(SQL View)
Index Back

POs To Be Approved VW

POs to be approved view

SELECT DISTINCT A.BUSINESS_UNIT , A.PO_ID , A.PO_DT , A.PO_STATUS , A.BUYER_ID , C.OPRID , A.OPRID_ENTERED_BY , A.PO_REF , B.PO_TOTAL , B.CURRENCY_CD , A.VENDOR_SETID , A.VENDOR_ID , A.HOLD_STATUS FROM PS_PO_HDR A , PS_PO_APPR_HDR_VW B , PS_PO_AW_ACTION_VW C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PO_ID = B.PO_ID AND A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.PO_ID = C.PO_ID AND A.HOLD_STATUS='N' AND C.EOAWSTEP_STATUS = 'P'

# 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 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
6 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
7 OPRID_ENTERED_BY Character(30) VARCHAR2(30) NOT NULL Entered By 07/25/2011 MRAD 12383033 :Ensured that OPRID_ENTERED_BY is set with format type of MixedCase. 03/22/2013 GL 16482301: Switched OPRID_ENTERED_BY back to MixedCase again. Please don't change it to UpperCase!!! FYI - The alternatives to use a User ID as uppercase: 1) Create your own User ID, add comments in the Field Properties, and fill out the Owner ID 2) Use %Upper meta-SQL in SQL statements 3) Use Upper function in peoplecodes
8 PO_REF Character(30) VARCHAR2(30) NOT NULL Specifies the purchase order number associated with a receivables item.
9 PO_TOTAL Signed Number(28,3) DECIMAL(26,3) NOT NULL PO Total
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
11 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
12 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

Prompt Table: VENDOR_VW

13 HOLD_STATUS Character(1) VARCHAR2(1) NOT NULL Hold From Further Processing