SPA_PRCT_SUPINV

(SQL View)
Index Back

Serv Provider supp Inv apprval

Service Providers that are tied to Suppliers that need supplier invoice approval.

SELECT A.PERSON_ID , A.SP_FUNCTION_TYPE , A.EFFDT , A.VENDOR_SETID , A.VENDOR_ID , B.INCL_INV_APPROVAL FROM PS_SPB_SERVICE_PRV A , PS_VENDOR_SPRO B WHERE SP_FUNCTION_TYPE IN ('PRCT','INDP') AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_SPB_SERVICE_PRV C WHERE C.PERSON_ID = A.PERSON_ID AND C.SP_FUNCTION_TYPE = A.SP_FUNCTION_TYPE AND C.EFFDT <= %CurrentDateIn) AND B.INCL_INV_APPROVAL = 'Y' AND B.SETID = A.VENDOR_SETID AND B.VENDOR_ID = A.VENDOR_ID AND B. EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_VENDOR_SPRO D WHERE D.SETID = B.SETID AND D.VENDOR_ID = B.VENDOR_ID AND D.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PERSON_ID Character(15) VARCHAR2(15) NOT NULL Person ID

Prompt Table: SPB_PERSON_TBL

2 SP_FUNCTION_TYPE Character(4) VARCHAR2(4) NOT NULL Function Type
INDP=Independent Provider
PRCT=Provider Contact
PROV=Provider
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID

Default Value: OPR_DEF_TBL_FS.SETID

Prompt Table: SP_SETID_NONVW

5 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

Prompt Table: VENDOR_SP_VW3
Set Control Field: VENDOR_SETID

6 INCL_INV_APPROVAL Character(1) VARCHAR2(1) NOT NULL Include in Invoice Approval
N=No
Y=Yes

Default Value: N