F03B16SUpdateStatSummary

F03B16S - Update Statistic Summary

Major Business Rule

Object Name: B03B0090

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0090 
F03B16S - Update Statistic Summary


Functional Description

Purpose

This function updates the Account Statistic Summary (F03B16S) table.  This function will try to fetch 
a F03B16S record based Customer Number and Company if a record is found the function will add the 

amounts passed to the existing record and then update the F03B16S record.  If a record does not exist, 

the function will insert the record into the F03B16S.


Setup Notes and Prerequisites


Special Logic


Technical Specifications

Parameters

Data ItemData Structure DescriptionI/ORequiredNotes
AN8Address NumberIYes
PARTParent/Child RelationshipIYes

COCompanyIYes

ENBLEnding BalanceIYes

AHBAmountHigh BalanceINo

AGAmount InvoicedINo

NINVNumber of InvoicesINo

SAGSales AmountINo

CREECredits EnteredINo

ADSCDiscount AvailableINo

DFEEAmt Delinquency FeesINo

ECBAChargeback AmountINo

NCBNumber of ChargebacksINo

DFIJDate First InvoiceINo

DLIJDate Last InvoiceINo

PAAPPayment AmountsINo

EDSCDiscount EarnableINo

UDSCDiscount UnearnableINo

AIPLAmount Paid LateINo

NIPLNumber of Invoice Paid LateINo

MWOAmount Minor Write-offINo

BDBTAmount Bad DebtINo

ANSFAmount NSFINo

NNSFNumber of NSFINo

DLPDate Last PaidINo

ALPAmount Last PaymentINo

CRCDCurrency CodeINo

ASTYAmount Invoiced This YrINo

SPYEAmount Invoiced Prior YrINo

AVDLAverage Days LateINo


Related Tables
F03B16SAccount Statistic Summary

Related Business Functions

N0100042Customer Master -MBF
B0100056F03012 - Update A/R Data on Customer Master

B9800100Get Audit Information

B03B0085Update Stat Summary Parent


Processing


^

Data Structure

D03B0090 - F03B16 - Update Statistic Summary

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.

cParentChildRelationshiPARTcharNONENONE

An option that specifies whether the system displays parent records or child records. If you turn on this option, the system displays parent 
records for the address book number entered. Also a field that indicates whether a record is a parent or child. For the field, valid values 
are: P Parent   C Child  

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.

mnEndingBalanceENBLMATH_NUMERICNONENONE

The total open amount of invoices. 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 table on the Periodic Statistics form.

mnAmountHighBalanceAHBMATH_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.

mnAmountInvoicedAGMATH_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.

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. 

jdDateFirstInvoiceJulianDFIJJDEDATENONENONE

The G/L date of the first invoice generated.

jdDateLastInvoiceJulianDLIJJDEDATENONENONE

The G/L date of the last invoice generated for the customer.

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.

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. 

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.

mnNumberOfNSFsNNSFMATH_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. 

jdDateLastPaidDLPJDEDATENONENONE

The date of the last premium payment.

mnAmountLastPaidALPMATH_NUMERICNONENONE

The amount of the last payment applied to invoices based on the G/L date of the Receipt Detail record (F03B14). 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.

szCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnAmtInvoicedThisYrASTYMATH_NUMERICNONENONE

The amount invoiced for the year. The system uses the gross amount of the invoice record (F03B11) regardless of whether taxes are 
included. The system updates this field when you run the Statistics History Update program (R03B16). The system determines the current fiscal 
year from the Date Fiscal Patterns - 52 Period Accounting table (F0008B).

mnAmtInvoicedPriorYrSPYEMATH_NUMERICNONENONE

The gross amount invoiced for the previous year. The system updates this field only when you run the Statistics Annual Close program 
(R03B161). 

mnAverageDaysLateAVDLMATH_NUMERICNONENONE

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

jdDateLastStatementDateDT1JJDEDATENONENONE

The date that the last statement was processed. The system displays this information from the A/R Statistical Summary table (F03B16S).

mnNoSentReminders1NBR1MATH_NUMERICNONENONE

The total number of delinquency notices that were sent to a customer.

jdDateLastDunningLetterJulDLQJJDEDATENONENONE

The date of the last deliquency notice that was sent to the customer. 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 table on the Periodic Statistics form.

cRollingBalanceFlagEV01charNONENONE

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

Related Functions

B03B0085 Update Stat Summary Parent
B9800100 Get Audit Information
N0100042 Customer Master -MBF

Related Tables

F03B16S A/R Statistical Summary