F03B21WriteNotificationDetail

F03B21 - Write Notification Detail from Cache

Major Business Rule

Object Name: B03B0112

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0112 
F03B21 - Write Notification Detail from Cache


Functional Description


Purpose

To write the A/R Notification History Detail (F03B21) record , and update the Date Last Sent Reminder 

(RDDJ) and the Total Sent Reminders (RMDS) on the corresponding record in the Customer Ledger 

(F03B11) table.


Setup Notes and Prerequisites

• When the Process Mode is a "1" this function will write the Cache Table record create in B03B0111.
• When the Process Mode is a "2" this function will read the Cache Table created in B03B0111, insert a 
record into the F03B21. If the Proof or Final Flag is a "1", this function will update the Date Last 

Sent Reminder and the Total Sent Reminders on the corresponding F03B11.

• When the Process Mode is a "3" this function will read the cache, and look for a policy. If no 
policy is found or if it is not offended, then the cache record is deleted. This will produce only 

delinquent invoices on the delinquency notice. 


Special Logic


Technical Specifications


Parameters

ItemDescriptionI/OReq?Notes

EV01Process ModeIYes

UKIDUnique KeyYes

AN8Customer NumberIYes

COCompanyIYes

DOCDoc NumberIYes

DCTDocument TypeIYes

KCODocument CompanyIYes

SFXPay ItemIYes

DDJDue DateIYes

DGJG/L DateIYes

DIVJInvoice DateIYes

NOTJNotification DateIYes

RMKRemarksINo

RMDSTotal Sent RemindersINo

CRCDTrans Currency CodeINo

AAPOpen AmountIYes

FADForeign Open AmountINo

AABAffected Aging BucketIYes

RDDJDate Last Sent ReminderINo

BCRCBase Currency CodeINo

CRRMCurrency ModeINo

EV01Proof or Final ModeIYes

DAGDate Age As OfIYes


Related Tables

F03B11Customer Ledger File

F03B21A/R Notification History Detail


Related Business Functions

B9800100Get Audit Information


Processing

• If the Process Mode is a 1,
• 

Open the F03B11, and the F03B21 tables.
• Set up the cached index.
• Move the input fields to the cache record.
• Write the record to cache.
• End if
• If the Process Mode is a 2,
• 
Fetch the record from the F03B21 cache records.
• While (jdeCacheCode == JDECM_PASSED) from the F03B21 cache record.
• 
Increment the number of sent reminders by 1.
• Get audit information.
• If Proof or Final Mode is a 1,
• 
Insert Record into the F03B21 Table.
• Move date and number of sent reminders to F03B11.
• Update the F03B11.
• 
End if
• Fetch the next record from the F03B21 cache records.
• 
End While
• End if
• If the Process Mode is a 3
• 
Open Cache Curser.
• Reset Cache Curser.
• Fetch Cache.
• While Fetch Cache passes.
• 
Call the B03B0049 function (Get Notification Policy).
• If Create Notification Flag from B03B049 not = 1.
• 
Delete the Cache record.
• 
else
• 
Update Nofification Payment Date in Cache.
• Fetch Cache.
• 
end if.
• 
End While
• End if
• Close the F03B11, and the F03B21 tables.

Data Structure

D03B0112 - F03B21 - Write Notification Detail from Cache

Parameter NameData ItemData TypeReq/OptI/O/Both
mnUniqueKeyUKIDMATH_NUMERICNONENONE

This field is a unique number used to identify a record in a file.

cProcessModeEV01charNONENONE

An option that specifies the type of processing for an event.

mnCustomerNumberAN8MATH_NUMERICNONENONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

szCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnDocNumberDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szDocumentCompanyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

szPayItemSFXcharNONENONE

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

jdDateDueDDJJDEDATENONENONE

In Accounts Receivable, the date that the net payment is due. In Accounts Payable, the date that the payment is due to receive a discount 
or, if no discount is offered, the net due date. The system calculates the due date based on the payment term entered, or you can enter it 
manually. If you enter a negative voucher or invoice (debit or credit memo), the system might use the G/L date as the due date regardless of the 
payment term entered. A processing option in the master business function (P0400047 for vouchers and P03B0011 for invoices) controls how 
the system calculates the due date for debit and credit memos.

jdGLDateDGJJDEDATENONENONE

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

jdDateInvoiceDIVJJDEDATENONENONE

The date that either you or the system assigns to an invoice or voucher. This can be either the date of the supplier's invoice to you or the 
date of your invoice to the customer.

jdDateNotificationNOTJJDEDATENONENONE

The date that a statement, delinquency notice, or delinquency fee was generated for the customer.

szRemarkRMKcharNONENONE

A generic field that you use for a remark, description, name, or address.

mnTotalSentRemindersRMDSMATH_NUMERICNONENONE

This field specifies the number of delinquency notices that have been generated for an invoice pay item. 

szTransCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnOpenAmountAAPMATH_NUMERICNONENONE

The amount of an invoice or voucher pay item that is unpaid.

mnForeignOpenAmountFADMATH_NUMERICNONENONE

The total amount of open foreign currency invoices that appeared on the previous statement after payments and discounts were applied.

cAffectedAgingBucketAABcharNONENONE

A number that specifies the aging category. The system updates this field with the value of the aging category to which the invoice is 
assigned based on the aging date in the processing options for either the Statement Notification Refresh program (R03B500X), for statement 
records, or the Print Delinquency Notices program (R03B525), for delinquency notice records. Valid values are 1 through 8. 

jdDateLastSentReminderRDDJJDEDATENONENONE

The date of the most recent past-due notice to the customer.

szCurrencyCodeBaseBCRCcharNONENONE

A code that represents the currency of the company for a transaction. For a foreign currency transaction, this is the currency code of the 
domestic side of the transaction.

cCurrencyModeCRRMcharNONENONE

An option that specifies whether the system displays amounts in the domestic or foreign currency. On  The system displays amounts in the 
foreign currency of the transaction. Off  The system displays amounts in the domestic currency of the transaction.

cProofOrFinalEV01charNONENONE

An option that specifies the type of processing for an event.

jdDateAgeAsOfDAGJDEDATENONENONE

A date that the system uses to determine the aging category to which to assign an invoice. The system compares the aging date to the 
invoice date, statement date, due date, or G/L date, which is defined by the value in the Date Aging Based On field (AGE), and then uses the 
value in the Aging Method field (AGEM) to determine which aging category to update. If you use method 1, the aging categories are defined in 
the Aging Days fields (CRDY, AGR1, AGR2, AGR3, AGR4, AGR5, AGR6, and AGR7) in the Accounts Receivable constants.  If you leave this 
field blank, the system uses the current date.  Note: The Sales Order Management system also uses this date for credit checks. Leave this 
field blank to ensure that the credit checks are always current.

mnAmountGrossAGMATH_NUMERICOPTNONE

A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on 
the tax explanation code. The system does not decrease the gross amount when payments are applied. When you void a transaction, the 
system clears the gross amount field.

mnAmountCurrencyACRMATH_NUMERICOPTNONE

The foreign currency amount entered on the transaction. If the Multi-Currency Conversion option on the General Accounting constants is set 
to Y, the foreign amount is multiplied by the exchange rate to arrive at the domestic amount. If the Multi-Currency Conversion option is set to Z, 
the foreign amount is divided by the exchange rate.

jdPayByDateDTPBJDEDATEOPTNONE

The due date for the past-due invoices that print on the delinquency notice when you are using the Tiered Delinquency Notice Print 
program (R03B21). The system calculates the notification payment date by adding the value of the Pay By Days field (PBDY) from the applicable 
notification instruction to the aging date that is set up in the Accounts Receivable constants or the processing options of the Print Delinquency 
Notices program (R03B525).  Providing the customer with a notification payment date is a legal requirement in several countries. 

jdDateLastFeeCalculatedLFCJJDEDATEOPTNONE

The most recent date on which the fees were calculated. The system uses this date for further fee calculations, by determining the number 
of days that elapse between calculations.

mnPolicyNumberAPLYMATH_NUMERICOPTNONE

A number that the system assigns to each policy record to identify it.

cCreateNoticesFlagEV01charOPTNONE

An option that specifies the type of processing for an event.

cSeverityFlagEV01charOPTNONE

An option that specifies the type of processing for an event.

mnAmtAgingCategories1AG1MATH_NUMERICOPTNONE

The total open invoice amount that is in the first category as defined in either the Accounts Receivable constants or the processing options 
of Credit Analysis Refresh. If you age by days, the system determines the first aging category by using the days defined in the second and 
third aging categories. For example, if the second aging category is 0 and the third aging category is 30, the date on the invoice that you use 
to age (invoice date, due date, statement date, or G/L date) must be equal to but no more than 30 days after the aging date that you define.

mnAmtAgingCategories2AG2MATH_NUMERICOPTNONE

The total open invoice amount that is in the second category as defined in either the Accounts Receivable constants or the processing 
options of Credit Analysis Refresh. If you age by days, the system determines the second aging category by using the days defined in the third 
and fourth aging categories. For example, if the third aging category is 30 and the fourth aging category is 60, the date on the invoice that you 
use to age (invoice date, due date, statement date, or G/L date) must be between 30 and 60 days after the aging date that you define.

mnAmtAgingCategories3AG3MATH_NUMERICOPTNONE

The total open invoice amount that is in the third category as defined in either the Accounts Receivable constants or the processing options 
of Credit Analysis Refresh. If you age by days, the system determines the third aging category by using the days defined in the fourth and 
fifth aging categories. For example, if the fourth aging category is 60 and the fifth aging category is 90, the date on the invoice that you use to 
age (invoice date, due date, statement date, or G/L date) must be between 60 and 90 days after the aging date that you define.

mnAmtAgingCategories4AG4MATH_NUMERICOPTNONE

The total open invoice amount that is in the fourth category as defined in either the Accounts Receivable constants or the processing 
options of Credit Analysis Refresh. If you age by days, the system determines the fourth aging category by using the days defined in the fifth and 
sixth aging categories. For example, if the fifth aging category is 90 and the sixth aging category is 120, the date on the invoice that you use to 
age (invoice date, due date, statement date, or G/L date) must be between 90 and 120 days after the aging date that you define.

mnAmtAgingCategories5AG5MATH_NUMERICOPTNONE

The total open invoice amount that is in the fifth category as defined in either the Accounts Receivable constants or the processing options 
of Credit Analysis Refresh. If you age by days, the system determines the fifth aging category by using the days defined in the sixth and 
seventh aging categories. For example, if the sixth aging category is 120 and the seventh aging category is 150, the date on the invoice that you 
use to age (invoice date, due date, statement date, or G/L date) must be between 120 and 150 days after the aging date that you define.

mnAmtAgingCategories6AG6MATH_NUMERICOPTNONE

The total open invoice amount that is in the sixth category as defined in either the Accounts Receivable constants or the processing options 
of Credit Analysis Refresh. If you age by days, the system determines the sixth aging category by using the days defined in the seventh 
and eighth aging categories. For example, if the seventh aging category is 150 and the eighth aging category is 180, the date on the invoice that 
you use to age (invoice date, due date, statement date, or G/L date) must be between 150 and 180 days after the aging date that you 
define.

mnAmtAgingCategories7AG7MATH_NUMERICOPTNONE

The total open invoice amount that is in the seventh category as defined in either the Accounts Receivable constants or the processing 
options of Credit Analysis Refresh. If you age by days, the system determines the seventh aging category by using the days defined in the 
eighth aging category. For example, if the eighth aging category is 180, the date on the invoice that you use to age (invoice date, due date, 
statement date, or G/L date) must be more than 180 days after the aging date that you define.

cLetterTypeLTTYcharOPTNONE

A code that is used to identify and organize the text that prints on statements or delinquency notices. The value that you specify must exist in 
UDC 03B/LT. For example, you might set up letter types for any of the following reasons:   o  To represent the process in which the letter 
(text) is used, such as deliquency notices or statements.   o  To identify a customer base, such as preferred.   o  To indicate a severity level. For 
example, LETTER1 might be used for the least severe notification text and LETTER5 for the most severe.

szLetterNameLTNAcharOPTNONE

A field that identifies a predefined letter in the Letter Text table (F03B28). This field is case sensitive, so you must enter the letter name as it 
was created in the table, such as Letter1. You can add letter text in a foreign language. 

mnLineNumberLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

cCollectionManagerApprovalReqCMARcharOPTNONE

An option in Fee Instructions and Notification Instructions that specifies the status that the system assigns to a delinquency fee or notice. 
Valid settings are: On The system assigns a Pending status to the fee or notice. The collection manager must approve it before processing can 
be completed. Off The system assigns an Approved status to the fee or notice.

Related Functions

B03B0190 F03B11Z2 Invoice Outbound Interoperability
B9800100 Get Audit Information

Related Tables

F03B11 Customer Ledger
F03B21 A/R Notification History Detail