EX_EXC8500_VW

(SQL View)
Index Back

Travel Authorization VW


SELECT A.TRAVEL_AUTH_ID , B.LINE_NBR , A.EMPLID , A.CREATION_DT , A.SETID , A.REFERENCE_ID , A.DATE_FROM , A.DATE_TO , A.BUSINESS_PURPOSE , A.OPRID_ENTERED_BY , B.EXPENSE_TYPE , B.TRANS_DT , B.REIMBURSEMENT_CD , B.REIMB_ACTION , B.MONETARY_AMOUNT , B.CURRENCY_CD , B.TXN_AMOUNT , B.TXN_CURRENCY_CD , B.RATE_MULT , B.RATE_DIV , B.TXN_LOCATION , B.EXPEND_MTHD , B.MERCHANT_CD , B.DESCR254 , B.DISTANCE , B.DISTANCE_TYPE , B.NBR_NIGHTS , B.NBR_DAYS , C.NAME , C.COUNTRY_CODE , C.PHONE , D.DEPTID , E.EXPENSE_TYPE_EDIT , E.DESCR , F.EXPEND_MTHD_EDIT , F.DESCR , H.DESCR , G.DESCR FROM PS_EX_TAUTH_HDR A , PS_EX_TAUTH_LINE B , PS_PERSONAL_DATA C , PS_EX_AA_EE_ORG_VW D , PS_EX_TYPES_TBL E , PS_EX_EXP_MTHD_TBL F , PS_EX_LOCATION_TBL G , PS_EX_PURPOSE_TBL H WHERE E.EXPENSE_TYPE = B.EXPENSE_TYPE AND G.TXN_LOCATION = B.TXN_LOCATION AND H.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE AND E.SETID = A.SETID AND F.SETID = A.SETID AND G.SETID = A.SETID AND H.SETID = A.SETID AND A.TRAVEL_AUTH_ID = B.TRAVEL_AUTH_ID AND A.EMPLID = C.EMPLID AND A.EMPLID = D.EMPLID AND E.LOC_REQD_FLG = 'Y' AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_TYPES_TBL WHERE E.SETID = SETID AND E.EXPENSE_TYPE = EXPENSE_TYPE AND EFFDT <= B.TRANS_DT) AND E.EFF_STATUS = 'A' AND F.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_EXP_MTHD_TBL WHERE F.SETID = SETID AND EFFDT <= B.TRANS_DT) AND F.EFF_STATUS = 'A' AND G.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_LOCATION_TBL WHERE G.SETID = SETID AND G.TXN_LOCATION = TXN_LOCATION AND EFFDT <= B.TRANS_DT) AND G.EFF_STATUS = 'A' AND H.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_PURPOSE_TBL WHERE H.SETID = SETID AND H.BUSINESS_PURPOSE = BUSINESS_PURPOSE AND EFFDT <= %CurrentDateIn) AND H.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 TRAVEL_AUTH_ID Character(10) VARCHAR2(10) NOT NULL Travel Authorization Identification. Number used to define travel authorizations. Key field on most travel authorization records and exists at level 0 for travel authorization panels.
2 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 CREATION_DT Date(10) DATE Creation Date
5 SETID Character(5) VARCHAR2(5) NOT NULL SetID
6 REFERENCE_ID Character(10) VARCHAR2(10) NOT NULL Reference ID
7 DATE_FROM Date(10) DATE Date From
8 DATE_TO Date(10) DATE Date To
9 BUSINESS_PURPOSE Character(5) VARCHAR2(5) NOT NULL Business Purpose
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 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type
12 TRANS_DT Date(10) DATE Transaction Date
13 REIMBURSEMENT_CD Character(1) VARCHAR2(1) NOT NULL Deny
N=Nonreimburseable
P=Prepaid
R=Reimburseable
14 REIMB_ACTION Character(5) VARCHAR2(5) NOT NULL Reason
15 MONETARY_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account.
16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
17 TXN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
18 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
19 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
20 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
21 TXN_LOCATION Character(5) VARCHAR2(5) NOT NULL Expense Location
22 EXPEND_MTHD Character(3) VARCHAR2(3) NOT NULL Payment Type
23 MERCHANT_CD Character(10) VARCHAR2(10) NOT NULL Preferred Merchant
24 DESCR254 Character(254) VARCHAR2(254) NOT NULL Description of length 254
25 DISTANCE Number(8,2) DECIMAL(7,2) NOT NULL Distance Traveled
26 DISTANCE_TYPE Character(1) VARCHAR2(1) NOT NULL Distance Type
3=Metres
K=Kilometers
M=Miles
27 NBR_NIGHTS Number(3,0) SMALLINT NOT NULL Number of Nights
28 NBR_DAYS Number(3,0) SMALLINT NOT NULL Used to specify the number of days associated with a particular expense type for Travel Authorizations, i.e. breakfast, lunch. Found on many of the Travel Auth line records and panels.
29 NAME Character(50) VARCHAR2(50) NOT NULL Name
30 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
31 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
32 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
33 EXPENSE_TYPE_EDIT Character(3) VARCHAR2(3) NOT NULL Expense Type Edit
AIR=Airfare
ATT=Attendees
AUT=Automobile
HTL=Hotel
NON=None
PDL=Per Diem Lodging
PDM=Per Diem
RTL=Rental
34 DESCR Character(30) VARCHAR2(30) NOT NULL Description
35 EXPEND_MTHD_EDIT Character(3) VARCHAR2(3) NOT NULL Payment Type Edit
EMP=Employee
PPA=Prepaid Airfare
PPD=Prepaid
PPH=Prepaid Hotel
VND=Supplier
36 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr
37 DESCR_BU Character(30) VARCHAR2(30) NOT NULL Business Unit Description
38 DESCR2 Character(30) VARCHAR2(30) NOT NULL Descr2