EX_EXC8500_L_V4(SQL View) |
Index Back |
---|---|
Travel Auth View w/Merchant CdView of travel authorization with merchant code. |
SELECT A.TRAVEL_AUTH_ID , B.LINE_NBR , E1.LANGUAGE_CD , 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 , E1.DESCR , B.EXPEND_MTHD , F1.DESCR , G1.DESCR , H1.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_TYPES_LNG E1 , PS_EX_PURPOSE_TBL F , PS_EX_PURPOSE_LNG F1 , PS_EX_MERCHANT_TBL G , PS_EX_MERCHANT_LNG G1 , PS_EX_LOCATION_TBL H , PS_EX_LOCATION_LNG H1 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 G.SETID = A.SETID AND H.SETID = A.SETID AND E1.SETID=A.SETID AND F.SETID = A.SETID AND F1.SETID=A.SETID AND E.EXPENSE_TYPE = B.EXPENSE_TYPE AND H.TXN_LOCATION = B.TXN_LOCATION AND E1.EXPENSE_TYPE=B.EXPENSE_TYPE AND F1.BUSINESS_PURPOSE=F.BUSINESS_PURPOSE AND G1.SETID=G.SETID AND G1.MERCHANT_CD=G.MERCHANT_CD AND H1.SETID=H.SETID AND H1.TXN_LOCATION=H.TXN_LOCATION 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.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 <= %CurrentDateIn) AND F.EFF_STATUS = 'A' AND G.MERCHANT_CD = B.MERCHANT_CD AND G.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_MERCHANT_TBL WHERE G.SETID = SETID AND G.MERCHANT_CD = MERCHANT_CD AND EFFDT <= B.TRANS_DT) AND G.EFF_STATUS = 'A' AND H.EFFDT = ( SELECT MAX(EFFDT) FROM PS_EX_LOCATION_TBL WHERE H.SETID = SETID AND H.TXN_LOCATION = TXN_LOCATION AND EFFDT <= B.TRANS_DT) 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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
5 | CREATION_DT | Date(10) | DATE | Creation Date |
6 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
7 | REFERENCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Reference ID |
8 | DATE_FROM | Date(10) | DATE | Date From |
9 | DATE_TO | Date(10) | DATE | Date To |
10 | BUSINESS_PURPOSE | Character(5) | VARCHAR2(5) NOT NULL | Business Purpose |
11 | 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 |
12 | ADVANCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Advance ID |
13 | EXPENSE_TYPE | Character(7) | VARCHAR2(7) NOT NULL | Expense Type |
14 | TRANS_DT | Date(10) | DATE | Transaction Date |
15 | REIMBURSEMENT_CD | Character(1) | VARCHAR2(1) NOT NULL |
Deny
N=Nonreimburseable P=Prepaid R=Reimburseable |
16 | REIMB_ACTION | Character(5) | VARCHAR2(5) NOT NULL | Reason |
17 | 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. |
18 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
19 | TXN_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Transaction Amount |
20 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
21 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
22 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL | Rate Divisor |
23 | TXN_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Expense Location |
24 | MERCHANT | Character(40) | VARCHAR2(40) NOT NULL | Merchant |
25 | MERCHANT_CD | Character(10) | VARCHAR2(10) NOT NULL | Preferred Merchant |
26 | DESCR254 | Character(254) | VARCHAR2(254) NOT NULL | Description of length 254 |
27 | DISTANCE | Number(8,2) | DECIMAL(7,2) NOT NULL | Distance Traveled |
28 | DISTANCE_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Distance Type
3=Metres K=Kilometers M=Miles |
29 | NBR_NIGHTS | Number(3,0) | SMALLINT NOT NULL | Number of Nights |
30 | 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. |
31 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
32 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
33 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
34 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
35 | 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 |
36 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
37 | EXPEND_MTHD_EDIT | Character(3) | VARCHAR2(3) NOT NULL |
Payment Type Edit
EMP=Employee PPA=Prepaid Airfare PPD=Prepaid PPH=Prepaid Hotel VND=Supplier |
38 | DESCR_BU | Character(30) | VARCHAR2(30) NOT NULL | Business Unit Description |
39 | DESCR2 | Character(30) | VARCHAR2(30) NOT NULL | Descr2 |
40 | DESCR1 | Character(30) | VARCHAR2(30) NOT NULL | Descr |