AP_MTCH_BYR_VW

(SQL View)
Index Back

SELECT A.BUSINESS_UNIT , A.BUYER_ID , A.MATCH_RULE_ID , A.YEAR_FROM , A.MONTHCD , A.AP_VNDR_EXCPT FROM PS_AP_MTCH_EXP_B_S A WHERE A.YEAR_FROM %Concat A.MONTHCD = ( SELECT MAX(B.YEAR_FROM %Concat B.MONTHCD) FROM PS_AP_MTCH_EXP_B_S B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.BUYER_ID = B.BUYER_ID AND A.MATCH_RULE_ID = B.MATCH_RULE_ID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BU_AP_NONVW

2 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
3 MATCH_RULE_ID Character(10) VARCHAR2(10) NOT NULL Match Rule ID
4 YEAR_FROM Character(4) VARCHAR2(4) NOT NULL From Year
1=NONE
5 MONTHCD Character(2) VARCHAR2(2) NOT NULL Month
01=01 - January
02=02 - February
03=03 - March
04=04 - April
05=05 - May
06=06 - June
07=07 - July
08=08 - August
09=09 - September
10=10 - October
11=11 - November
12=12 - December
6 AP_VNDR_EXCPT Number(11,0) DECIMAL(11) NOT NULL Total Exceptions