VCH_SCH_DELVW_L

(SQL View)
Index Back

AP-Search view for delete

AP-Search view for deleting control groups

SELECT a.business_unit , a.voucher_id , d.language_cd , d.vendor_name_short , d.name1 FROM PS_VOUCHER a , ps_vendor b , ps_vendor_lang d WHERE ((a.post_status_ap <> 'P' AND a.entry_status = 'P') OR (a.post_status_ap = 'U' AND a.entry_status = 'R') OR (a.entry_status = 'X' AND EXISTS ( SELECT 'X' FROM PS_KK_SOURCE_HDR d WHERE D.BUSINESS_UNIT= a.business_unit AND D.VOUCHER_ID = a.VOUCHER_ID))) AND a.vendor_setid = b.setid AND a.vendor_id = b.vendor_id AND d.setid = b.setid AND d.vendor_id = b.vendor_id AND a.in_process_flg = 'N' AND NOT EXISTS ( SELECT 'x' FROM ps_pymnt_vchr_xref c WHERE a.business_unit = c.business_unit AND a.voucher_id = c.voucher_id AND c.pymnt_selct_status NOT IN ('N','X','C')) AND NOT EXISTS ( SELECT 'X' FROM PS_DISTRIB_LINE G WHERE a.business_unit = g.business_unit AND a.voucher_id = g.voucher_id AND g.kk_close_prior = 'Y') UNION SELECT B.BUSINESS_UNIT , B.VOUCHER_ID , D.LANGUAGE_CD , D.VENDOR_NAME_SHORT , D.NAME1 FROM PS_VCHR_HDR_QV B , PS_BUS_UNIT_TBL_AP C , PS_VENDOR_LANG D WHERE B.BUSINESS_UNIT = C.BUSINESS_UNIT AND B.GRP_AP_ID <> 'NEXT' AND B.VENDOR_SETID = D.SETID AND B.VENDOR_ID = D.VENDOR_ID

  • Related Language Record for VCHR_SRCH_DELVW
  • # 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
    3 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    4 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name
    5 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1