SCP_OVRDUE_CNT1(SQL View) |
Index Back |
---|---|
Supplier UserSupplier 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 , PS_SCP_USR_PRF_FL C WHERE a.setid= b.vendor_setid AND a.vendor_id= b.vendor_id AND C.OPRID = A.OPRID AND C.SCP_TRANS_TYPE = 4 AND C.FIELD_NAME = 'NUM_DAYS_PO_OVRDUE' AND B.DUE_DT < %CurrentDateIn AND (%CurrentDateIn - %DatePart(B.DATETIME_DISP) ) >=0 AND (%CurrentDateIn - %DatePart(B.DATETIME_DISP) ) <=FIELDNUM 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 |
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 |