EX_TMPLT_DTL_VW

(SQL View)
Index Back

Template Detail View

View of the detail associated with a particular template. Stores the expense types associated with a template.

SELECT B.SETID, B.TEMPLATE, B.TEMPLATE_TYPE, B.EFFDT, B.EXPENSE_TYPE, C.DESCR FROM PS_EX_TEMPLATE_DTL B, PS_EX_TYPES_TBL C WHERE C.SETID = B.SETID AND C.EXPENSE_TYPE = B.EXPENSE_TYPE AND C.EFFDT = (SELECT MAX(D.EFFDT) FROM PS_EX_TYPES_TBL D WHERE D.SETID = C.SETID AND D.EXPENSE_TYPE = C.EXPENSE_TYPE AND D.EFFDT <= %CURRENTDATEIN) AND C.EFF_STATUS = 'A'

  • Parent record: EX_TEMPLATE_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 TEMPLATE Character(8) VARCHAR2(8) NOT NULL Used to define a particular type of travel, i.e. company relocation, internal travel, etc. Determines what type of expenses and expenditure limits are associated with that particular type of travel. Established in the Structure Expenses system and chosen on the header panel of cash advances, expense sheets and travel authorizations.
    3 TEMPLATE_TYPE Character(3) VARCHAR2(3) NOT NULL Used to identify what document/transaction is associated with a particular template. This is a translate table field whose value is either expense sheet or travel authorization. Cash advances do not use templates. Projects is using types are R and C.
    C=Contract
    E=Expense Report
    R=Standard
    T=Travel Authorization
    4 EFFDT Date(10) DATE NOT NULL Effective Date

    Default Value: %date

    5 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type

    Prompt Table: EX_TEMPLATE_DTL

    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description