AR_DUNNLTR_VW

(SQL View)
Index Back

Recent Dunning Letters by BU

Recent Dunning Letters by BU

SELECT D.CRSPD_SETID , D.CRSPD_CUST_ID , DD.BUSINESS_UNIT , D.DUN_ID_NUM , D.DUN_DT , R.PRINT_COMP , D.LETTER_CD , SUM(DD.BAL_AMT) , DD.BAL_CURRENCY , 0 , %CurrentDateTimeIn , %OperatorId , %CurrentDateTimeIn , %OperatorId , 0 , %CurrentDateTimeIn FROM PS_DUN_CUST D , PS_DUN_CUST_DTL DD , PS_AR33000_TMP R WHERE D.CRSPD_SETID = DD.CRSPD_SETID AND D.CRSPD_CUST_ID = DD.CRSPD_CUST_ID AND D.DUN_ID_NUM = DD.DUN_ID_NUM AND DD.DELETE_ITEM = 'N' AND R.CRSPD_SETID = D.CRSPD_SETID AND R.CRSPD_CUST_ID = D.CRSPD_CUST_ID AND R.DUN_ID_NUM = D.DUN_ID_NUM AND R.BUSINESS_UNIT = DD.BUSINESS_UNIT AND R.CUST_ID = DD.CUST_ID AND R.ITEM = DD.ITEM AND R.ITEM_LINE = DD.ITEM_LINE GROUP BY D.CRSPD_SETID, D.CRSPD_CUST_ID, DD.BUSINESS_UNIT, D.DUN_ID_NUM, D.DUN_DT, R.PRINT_COMP, D.LETTER_CD, DD.BAL_CURRENCY

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CRSPD_SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CRSPD_CUST_ID Character(15) VARCHAR2(15) NOT NULL Correspondence Customer
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 DUN_ID_NUM Number(8,0) INTEGER NOT NULL Dunning Number
5 DUN_DT Date(10) DATE Specifies the date that a dunning letter is sent. This date is generated by the Dunning SQR.
6 PRINT_COMP Character(1) VARCHAR2(1) NOT NULL Printed
7 LETTER_CD Character(3) VARCHAR2(3) NOT NULL Specifies a type of correspondence used for follow-up letters or dunning notices. A letter code is associated with a customizable template to facilitate form letters.
8 BAL_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Item Balance
9 BAL_CURRENCY Character(3) VARCHAR2(3) NOT NULL Currency Code - Bal Amount
10 TOTAL_ROW_COUNT Number(8,0) INTEGER NOT NULL Total Row Count
11 ROW_ADDED_DTTM DateTime(26) TIMESTAMP Added Date/Time
12 ROW_ADDED_OPRID Character(30) VARCHAR2(30) NOT NULL Added By
13 ROW_LASTMANT_DTTM DateTime(26) TIMESTAMP Last Modified Date/Time
14 ROW_LASTMANT_OPRID Character(30) VARCHAR2(30) NOT NULL Last Maintained By
15 SYNCID Number(10,0) DECIMAL(10) NOT NULL The Synchronization ID field stores a value generated by the sync processor. The value is used to identify the type of object that the sync processor is about to handle.
16 SYNCDTTM DateTime(26) TIMESTAMP Synchronization Last Update Date Time