PV_REQ_SRCH_VW1

(SQL View)
Index Back

Requisition Header

Requisition Header

SELECT /*+ INDEX (B PSBPO_LINE_DISTRIB)*/ DISTINCT A.REQ_NAME , A.BUSINESS_UNIT , A.REQ_ID , A.REQ_STATUS , A.REQ_STATUS , A.HOLD_STATUS , A.REQ_DT , A.ORIGIN , A.REQUESTOR_ID , A.OPRID_ENTERED_BY , A.OPRID_MODIFIED_BY , A.OPRID_APPROVED_BY , A.ENTERED_DT , A.APPROVAL_DT , A.PO_POST_STATUS , A.APPL_JRNL_ID_ENC , A.POST_DOC , A.DST_CNTRL_ID , A.ACCOUNTING_DT , A.PROCESS_INSTANCE , A.IN_PROCESS_FLG , A.ACTIVITY_DATE , A.NEXT_MOD_SEQ_NBR , A.CURRENCY_CD , A.RT_TYPE , A.RATE_DIV , A.RATE_MULT , A.CURRENCY_CD_BASE , A.BUDGET_HDR_STATUS , A.KK_AMOUNT_TYPE , A.KK_TRAN_OVER_FLAG , A.KK_TRAN_OVER_OPRID , A.KK_TRAN_OVER_DTTM , A.LAST_DTTM_UPDATE , B.BUSINESS_UNIT , B.PO_ID , ' ' , ' ' , ' ' FROM PS_PO_LINE_DISTRIB B , PS_REQ_HDR A WHERE A.REQ_ID = B.REQ_ID(+) AND A.BUSINESS_UNIT= B.BUSINESS_UNIT_REQ(+) AND A.REQ_STATUS <> 'C'

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

Prompt Table: SP_BU_PM_NONVW

3 REQ_ID Character(10) VARCHAR2(10) NOT NULL Requisition ID

Default Value: NEXT

4 REQ_STATUS Character(4) VARCHAR2(4) NOT NULL Req status
A=Approved
C=Complete
D=Denied
I=Initial
LA=Line Approved
O=Open
P=Pending Approval
V=Preview
X=Canceled

Default Value: REQUESTOR_TBL.REQ_STATUS

5 PV_REQ_STATUS Character(4) VARCHAR2(4) NOT NULL Requisition status
A=Approved
B=Canceled
C=Complete
D=Denied
H=On Hold
I=Initial
LA=See Lines
O=Open
P=Pending
PAC=PO Partially Completed
PC=PO(s) Completed
PD=Partially Dispatched
PPC=PO Partially Created
PPX=PO Partially Canceled
PX=PO(s) Canceled
Q=PO(s) Created
R=PO(s) Dispatched
S=Received
SC=Service Complete
SF=Service Filled
SP=Partially Received
SR=Rate Pending
SRD=Rate Defined
SS=Service Sourced
X=Canceled
6 HOLD_STATUS Character(1) VARCHAR2(1) NOT NULL Hold From Further Processing

Y/N Table Edit

Default Value: N

7 REQ_DT Date(10) DATE NOT NULL Requisition Date

Default Value: %date

8 ORIGIN Character(3) VARCHAR2(3) NOT NULL Origin

Prompt Table: ORIGIN_PO

9 REQUESTOR_ID Character(30) VARCHAR2(30) NOT NULL Requestor id

Default Value: OPR_DEF_TBL_PM.REQUESTOR_ID

Prompt Table: %EDITTABLE16

10 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
11 OPRID_MODIFIED_BY Character(30) VARCHAR2(30) NOT NULL Last User to Modify Entered By 07/25/2011:Ensured that OPRID_MODIFIED_BY is set with format type of MixedCase.
12 OPRID_APPROVED_BY Character(30) VARCHAR2(30) NOT NULL Approved By
13 ENTERED_DT Date(10) DATE Entered on

Default Value: %date

14 APPROVAL_DT Date(10) DATE Date of Approval
15 PO_POST_STATUS Character(1) VARCHAR2(1) NOT NULL Post Status
D=Distributed
N=None

Default Value: N

16 APPL_JRNL_ID_ENC Character(10) VARCHAR2(10) NOT NULL Encumbrance

Default Value: BUS_UNIT_INTFC.APPL_JRNL_ID_PREM

17 POST_DOC Character(1) VARCHAR2(1) NOT NULL Post Document

Y/N Table Edit

Default Value: N

18 DST_CNTRL_ID Character(10) VARCHAR2(10) NOT NULL Accounting Template

Default Value: BUS_UNIT_OPT_PM.DST_CNTRL_ID

19 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
20 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
21 IN_PROCESS_FLG Character(1) VARCHAR2(1) NOT NULL In process flag

Y/N Table Edit

Default Value: N

22 ACTIVITY_DATE Date(10) DATE Last Activity

Default Value: %date

23 NEXT_MOD_SEQ_NBR Number(3,0) SMALLINT NOT NULL Next Modification Number
24 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

Prompt Table: CURRENCY_CD_TBL

25 RT_TYPE Character(5) VARCHAR2(5) NOT NULL Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical.

Default Value: BUS_UNIT_TBL_PM.RT_TYPE

26 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor

Default Value: 1

27 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
28 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency

Default Value: BUS_UNIT_TBL_PM.CURRENCY_CD

29 BUDGET_HDR_STATUS Character(1) VARCHAR2(1) NOT NULL Budget Checking Header Status
E=Error in Budget Check
I=Document In Processing
N=Not Budget Checked
P=Provisionally Valid
V=Valid
30 KK_AMOUNT_TYPE Character(1) VARCHAR2(1) NOT NULL Commitment Control Amount Type
0=Budget
1=Actuals and Recognized
2=Encumbrance
3=Pre-Encumbrance
4=Collected Revenue
5=Planned
7=Actuals, Recognize and Collect
9=Dynamic
31 KK_TRAN_OVER_FLAG Character(1) VARCHAR2(1) NOT NULL Commitment Control source transaction override flag
N=No
Y=Yes
32 KK_TRAN_OVER_OPRID Character(30) VARCHAR2(30) NOT NULL Commitment Control source transaction override operator
33 KK_TRAN_OVER_DTTM DateTime(26) TIMESTAMP Commitment Control source transaction override datetime
34 LAST_DTTM_UPDATE DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.
35 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
36 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
37 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
38 RECV_STATUS Character(1) VARCHAR2(1) NOT NULL Receipt Status
C=Closed Receipt
H=Hold Receipt
M=Moved to Destination
N=PO Not Received
O=Open
P=PO Partially Received
R=Fully Received
X=Canceled
39 CHNG_ORD_BATCH Number(3,0) SMALLINT NOT NULL Change Order Number