EMVL_AF_APP_SRC

(SQL View)
Index Back

Voucher Approval Search

Voucher Approval Search Record

SELECT a.business_unit , a.voucher_id , a.invoice_id , a.pay_amt , a.invoice_dt , a.vendor_setid , b.vendor_name_short , a.vendor_id , b.name1 , a.appr_status FROM PS_VOUCHER a , ps_vendor b , ps_em_buy_reg_tbl c , ps_bus_unit_tbl_ap F , ps_em_agreement g , ps_set_cntrl_rec i WHERE a.vendor_setid = b.setid AND a.vendor_id = b.vendor_id AND a.business_unit = c.business_unit AND a.business_unit = F.business_unit AND a.vchr_apprvl_flg = 'W' AND a.close_status <> 'C' AND a.process_man_close <> 'Y' AND A.entry_status NOT IN ('X','R') AND a.vchr_src IN ('SSI','XML','DCM','EXL') AND i.setid = g.setid AND i.setcntrlvalue = a.business_unit AND i.rec_group_id = 'EM_01' AND i.recname = 'EM_AGREEMENT' AND a.vendor_setid = g.vendor_setid AND a.vendor_id = g.vendor_id AND a.vndr_loc = g.vndr_loc AND EXISTS ( SELECT 'X' FROM PS_EMVLN_AF_XREF E WHERE E.BUSINESS_UNIT = A.BUSINESS_UNIT AND E.VOUCHER_ID = A.VOUCHER_ID AND E.EOAWTHREAD_STATUS IN ('P', 'D')) AND ((F.MATCH_APPRV_FLG = 'N' AND A.MATCH_STATUS_VCHR IN ('M', 'O', 'N')) OR (F.MATCH_APPRV_FLG = 'Y' AND A.MATCH_STATUS_VCHR = 'N')) AND c.em_use_ap_approval = 'N' AND f.process_lines_flag = 'Y'

  • Related Language Record: EMVL_AF_APP_LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

    Prompt Table: SP_BU_AP_NONVW

    2 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID

    Default Value: NEXT

    3 INVOICE_ID Character(30) VARCHAR2(30) NOT NULL Invoice Number
    4 GROSS_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Gross Invoice Amount
    5 INVOICE_DT Date(10) DATE Invoice Date
    6 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID

    Default Value: VENDOR.SETID

    7 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name
    8 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

    Default Value: VENDOR_SHRT_VW.VENDOR_ID

    Prompt Table: VENDOR_PRIM_VW

    9 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    10 APPR_STATUS Character(1) VARCHAR2(1) NOT NULL Approval status flag used on appr_inst_log and derived records to track virtual approver status
    A=Approved
    D=Denied
    P=Pending

    Default Value: P