F03B16UpdatePeriodStats

F03B16 - Update Period Statistics

Major Business Rule

Object Name: B03B0087

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0087 
F03B16 - Update Period Statistics


Functional Description


Purpose

This function updates the Account Statistic History (F03B16) table.  This function will try to fetch 
a F03B16 record based Customer Number, Company, Century, Fiscal Year, and Period, if a record is found 

the function will add the amounts passed to the existing record and then update the F03B16 record.  

If a record does not exist, the function will insert the record into the F03B16.


Setup Notes and Prerequisites


Special Logic


Technical Specifications


Parameters

Data ItemDescriptionI/ORequiredNotes
AN8Customer NumberIYes
COCompanyIYes

FYFiscal YearIYes

PNPeriod NumberIYes

ENDDate EndingINo

DAYPPeriodDaysINo

AHBAmountHigh BalanceINo

DHBJDate High BalanceINo

AGAmount GrossINo

NINVNumber of InvoicesINo

ADAmount DueINo

SAGSales AmountINo

CREECredits EnteredINo

ADSCDiscount AvailableINo

DFEEAmt Delinquency FeesINo

ECBAChargeback AmountINo

NCBNumber of ChargebacksINo

PAAPPayment AmountsINo

ADSAAmount Discount TakenINo

EDSCDiscount EarnableINo

UDSCDiscount UnearnableINo

AIPLAmount Paid LateINo

NIPLNumber of Invoice Paid LateINo

DDCAAmount DeductionINo

DDCNNumber of DeductionsINo

MWOAmount Minor Write-offINo

BDBTAmount Bad DebtINo

ANSFAmount NSFINo

NNSFNumber of NSFINo

CRCDCurrency CodeINo

CHGAAmount ChangedINo

LAVJDate Last ActivityINo

LAVJFirst Activity DateINo

TAWOTotal Write-off AmtINo

AVDLAverage Days LateINo


Related Tables

F03B16Account Statistic History

Related Business Functions

B9800100Get Audit Information
N0100042Customer Master -MBF


Processing



^

Data Structure

D03B0087 - F03B16 - Update Period Statistics

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAddressnumberAN8MATH_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.

mnFiscalyear1FYMATH_NUMERICNONENONE

A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

mnPeriodnoPNMATH_NUMERICNONENONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

jdDateendingENDJDEDATENONENONE

The date when an asset was removed or returned from a particular location.

mnAmounthighDisplacementAHBMATH_NUMERICNONENONE

The invoice record with the highest gross amount from the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table 
(F03B16), depending on the form. The system displays information from F03B16S on the Account Statistical Summary form and information from 
F03B16 on the Periodic Statistics form.

jdDatehighdisplacementDHBJJDEDATENONENONE

The invoice date of the record that has the highest gross amount from either the A/R Statistical History (F03B16) or A/R Statistical Summary 
(F03B16S) tables. The system displays information from the F03B16S table on the Account Statistical Summary form and information from 
the F03B16 table on the Periodic Statistics form.

mnAmountgrossAGMATH_NUMERICNONENONE

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.

mnNumberofinvoicesNINVMATH_NUMERICNONENONE

Depending on the form, the number of posted invoices entered for the customer at the time the Statistics History Update program (R03B16) 
was run, or the number of invoices that will be paid by receipts in the automatic debit batch.

mnAmountdueADMATH_NUMERICNONENONE

The balance or amount due on an open invoice or voucher.  In the Address Book Master file (F0101), this is a memo amount field used to 
determine if a particular order exceeds a credit limit.  See the documentation for the Order Processing system. 

mnAmountsalesSAGMATH_NUMERICNONENONE

The total amount of sales orders from the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table (F03B16), depending 
on the form. The system displays information from the F03B16S table on the Account Statistical Summary form and information from the 
F03B16 on the Periodic Statistics form. 

mnCreditsenteredCREEMATH_NUMERICNONENONE

A value that indicates the total amount of invoices with a gross amount less than zero, excluding invoices with document types R1, R5, and 
RU. The system displays this information from either the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table 
(F03B16), depending on the form. The system displays information from F03B16S on the Account Statistical Summary form and information from 
F03B16 on the Periodic Statistics form.

mnAmtdiscountavailableADSCMATH_NUMERICNONENONE

The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The 
system calculates discount amounts based on the payment term entered on the transaction.  Note: If the system calculates the discount, verify 
that it applies to the pay item specified. Usually, freight, sales tax, and labor charges that are included in the gross amount do not qualify for 
discounts.

mnAmountdelinquencyfeesDFEEMATH_NUMERICNONENONE

The total amount of the delinquency fee invoice records (RF). The system displays this information from either the A/R Statistical Summary 
table (F03B16S) or the A/R Statistical History table (F03B16), depending on the form. The system displays information from the F03B16S 
table on the Account Statistical Summary form and information from the F03B16 on the Periodic Statistics form.

mnChargebackamountsECBAMATH_NUMERICNONENONE

An unpaid invoice amount for which you want to create a new invoice record so that you can charge the customer.

mnNumberofchargebacksNCBMATH_NUMERICNONENONE

The total number of chargeback invoices (document type RB) from either the A/R Statistical Summary table (F03B16S) or the A/R Statistical 
History table (F03B16), depending on the form. The system displays information from the F03B16S table on the Account Statistical 
Summary form and information from the F03B16 on the Periodic Statistics form. 

mnPaymntamountPAAPMATH_NUMERICNONENONE

In the Accounts Payable system, the amount of the payment. In the Accounts Receivable system, the amount of the receipt. This amount 
must balance to the total amount applied to the invoice pay items.

mnAmountdiscounttakenADSAMATH_NUMERICNONENONE

The amount by which an invoice or voucher is reduced if paid by a specific date. The discount taken does not have to be the same as the 
discount available.

mnDiscountearnableEDSCMATH_NUMERICNONENONE

The amount of the discount that is taken on or before the discount due date.

mnDiscountunearnedUDSCMATH_NUMERICNONENONE

The total amount of the discounts taken after the discount due date. The system displays this amount from either the A/R Statistical 
Summary table (F03B16S) or the A/R Statistical History table (F03B16), depending on the form. The system displays information from the F03B16S 
table on the Account Statistical Summary form and information from the F03B16 table on the Periodic Statistics form.

mnAmountpaidlateAIPLMATH_NUMERICNONENONE

The total amount of invoices that have been paid late from the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table 
(F03B16), depending on the form. The system displays information from the F03B16S table on the Account Statistical Summary form and 
information from the F03B16 on the Periodic Statistics form.

mnNumberofinvoicespaidlateNIPLMATH_NUMERICNONENONE

The total number of invoices that were paid after the due date. The system displays this number from either the A/R Statistical Summary 
table (F03B16S) or the A/R Statistical History table (F03B16), depending on the form. The system displays information from the F03B16S table 
on the Account Statistical Summary form and information from the F03B16 table on the Periodic Statistics form. 

mnAmountdeductionsDDCAMATH_NUMERICNONENONE

The total amount of the deduction records from the Receipts Detail table (F03B14) for the specified period.

mnNumberofdeductionsDDCNMATH_NUMERICNONENONE

The total number of deductions that have been applied to an account.

mnAmountminorwriteoffMWOMATH_NUMERICNONENONE

The total write-off amount accumulated from the Receipts Detail table (F03B14) for all reason codes in UDC 03B/RC that have 1 in the 
Special Handling field. 

mnAmountbaddebtBDBTMATH_NUMERICNONENONE

The total write-off amount accumulated from the Receipts Detail table (F03B14) for all reason codes in UDC 03B/RC that have no value in 
the Special Handling field.

mnAmountnsfANSFMATH_NUMERICNONENONE

The total amount of the receipts that were returned for insufficient funds (document type RV). The system displays this information from 
either the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table (F03B16), depending on the form. The system displays 
information from the F03B16S table on the Account Statistical Summary form and information from the F03B16 on the Periodic Statistics form.

mnNumberofnsfNNSFMATH_NUMERICNONENONE

The total number of receipts returned for non-sufficient funds (document type RV) from the A/R Statistical Summary table (F03B16S) or the 
A/R Statistical History table (F03B16), depending on the form. The system displays information from the F03B16S table on the Account 
Statistical Summary form and information from the F03B16 on the Periodic Statistics form. 

szCurrencycodefromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnAmountchangedCHGAMATH_NUMERICNONENONE

The net change amount.

jdDatelastactivityLAVJJDEDATENONENONE

The date within a period when the last activity occurred.

jdDatefirstactivity_ALAVJJDEDATENONENONE

The date within a period when the last activity occurred.

mnAmounttotalactualwriteoffTAWOMATH_NUMERICNONENONE

The total write-off amount accumulated from the Receipts Detail table (F03B14) for all reason codes in UDC 03B/RC for the period 
specified.

mnPeriodDaysDAYPMATH_NUMERICNONENONE

The number of days within an accounting period.

mnAverageDaysLateAVDLMATH_NUMERICNONENONE

The average length of time, in days, that it took the customer to pay an invoice.

mnCenturyCTRYMATH_NUMERICNONENONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnNumberOfInvoicesPaidNINPMATH_NUMERICNONENONE

The number of invoices that were paid in the period specified at the time the Statistics History Update program (R03B16) was run. 

mnTotalNumDaysLateMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

Related Functions

N0100042 Customer Master -MBF

Related Tables

F03B16 A/R Statistical History