EX_EXC8500_VW2

(SQL View)
Index Back

TA View w/o Loc or Merchant

View of travel authorization lines without location or merchant code.

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 , A.ADVANCE_ID , 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.MERCHANT , 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 , B.EXPEND_MTHD , F.DESCR , F.DESCR , F.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_PURPOSE_TBL F WHERE A.TRAVEL_AUTH_ID = B.TRAVEL_AUTH_ID AND A.EMPLID = C.EMPLID AND A.EMPLID = D.EMPLID AND E.SETID = A.SETID AND F.SETID = A.SETID AND E.EXPENSE_TYPE = B.EXPENSE_TYPE AND B.TXN_LOCATION = ' ' AND B.MERCHANT_CD = ' ' AND E.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_TYPES_TBL WHERE E.SETID = SETID AND E.EXPENSE_TYPE = EXPENSE_TYPE AND EFFDT <= A.CREATION_DT) AND E.EFF_STATUS = 'A' AND F.BUSINESS_PURPOSE = A.BUSINESS_PURPOSE AND F.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_PURPOSE_TBL WHERE F.SETID = SETID AND F.BUSINESS_PURPOSE = BUSINESS_PURPOSE AND EFFDT <= A.CREATION_DT) AND F.EFF_STATUS = 'A'

  • Related Language Record: EX_EXC8500_L_V2
  • # 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 ADVANCE_ID Character(10) VARCHAR2(10) NOT NULL Advance ID
    12 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type
    13 TRANS_DT Date(10) DATE Transaction Date
    14 REIMBURSEMENT_CD Character(1) VARCHAR2(1) NOT NULL Deny
    N=Nonreimburseable
    P=Prepaid
    R=Reimburseable
    15 REIMB_ACTION Character(5) VARCHAR2(5) NOT NULL Reason
    16 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.
    17 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    18 TXN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
    19 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
    20 RATE_MULT Signed Number(17,8) DECIMAL(15,8) NOT NULL Rate Multiplier
    21 RATE_DIV Number(16,8) DECIMAL(15,8) NOT NULL Rate Divisor
    22 TXN_LOCATION Character(5) VARCHAR2(5) NOT NULL Expense Location
    23 MERCHANT Character(40) VARCHAR2(40) NOT NULL Merchant
    24 MERCHANT_CD Character(10) VARCHAR2(10) NOT NULL Preferred Merchant
    25 DESCR254 Character(254) VARCHAR2(254) NOT NULL Description of length 254
    26 DISTANCE Number(8,2) DECIMAL(7,2) NOT NULL Distance Traveled
    27 DISTANCE_TYPE Character(1) VARCHAR2(1) NOT NULL Distance Type
    3=Metres
    K=Kilometers
    M=Miles
    28 NBR_NIGHTS Number(3,0) SMALLINT NOT NULL Number of Nights
    29 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.
    30 NAME Character(50) VARCHAR2(50) NOT NULL Name
    31 COUNTRY_CODE Character(3) VARCHAR2(3) NOT NULL Int'l Prefix
    32 PHONE Character(24) VARCHAR2(24) NOT NULL Telephone
    33 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
    34 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
    35 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    36 EXPEND_MTHD_EDIT Character(3) VARCHAR2(3) NOT NULL Payment Type Edit
    EMP=Employee
    PPA=Prepaid Airfare
    PPD=Prepaid
    PPH=Prepaid Hotel
    VND=Supplier
    37 DESCR_BU Character(30) VARCHAR2(30) NOT NULL Business Unit Description
    38 DESCR2 Character(30) VARCHAR2(30) NOT NULL Descr2
    39 DESCR1 Character(30) VARCHAR2(30) NOT NULL Descr