SCP_OVRDUE_CNT

(SQL View)
Index Back

Supplier User

Supplier User

SELECT A.OPRID , A.SETID , a.vendor_id ,A.name1 , COUNT(PO_ID) ,'('||%NumToChar(COUNT(PO_ID))||') '||A.name1 FROM PS_VNDR_USER_VW_FL A , PS_SCP_RCPOSHP_VW1 B WHERE a.setid= b.vendor_setid AND a.vendor_id= b.vendor_id AND B.DUE_DT < %CurrentDateIn AND (%CurrentDateIn - %DatePart(B.DATETIME_DISP)) >=0 AND (%CurrentDateIn - %DatePart(B.DATETIME_DISP) ) <=90 GROUP BY A.OPRID, A.SETID, a.vendor_id,A.name1

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).

Prompt Table: OPRID_VW2

2 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SP_SETID_NONVW

3 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
4 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
5 COUNT1 Number(10,0) DECIMAL(10) NOT NULL Counter
6 NAME Character(50) VARCHAR2(50) NOT NULL Name