UpdateOpenSummaryParent

Update Open Summary Parent

Major Business Rule

Object Name: B03B0080

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0080 
Update Open Summary Parent


Functional Description

Purpose

This business function writes and updates parent records (PART = P) in the A/R Open Summary file 

(F03B15).  This business function should be called whenever a child record is being written to the F03B15.


Setup Notes and Prerequisites


Special Logic


Technical Specifications

Parameters

ItemDescriptionI/OReq?Notes

AN8Customer NumberIYes
PA8Parent NumberYes

AN8Address Number ChildI  Yes

COCompany NumberIYes

DAGAs Of DateINo

AAPOpen AmountINo

OINVNumber of Open Inv Pay ItemsINo

OCBOpen Chargeback AmountINo

NOCBNumber of Open ChargebacksINo

ADSADiscount AvailableINo

EDSCDiscount EarnableINo

PDAAmount Past DueINo

PDINNumber of Past Due InvoicesINo

OCBPOpen Chargebacks Past DueINo

DSCPDiscount Available Past DueINo

FTRFuture Amount DueINo

CURRCurrent AmountINo

CUINNumber of Current InvoicesINo

OCBCCurrent Chargeback AmountINo

CUDSCurrent Discount AvailableNo

CUEDCurrent Discount EarnableNo

AG1Aging Amount 1No

AG2Aging Amount 2No

AG3Aging Amount 3No

AG4Aging Amount 4No

AG5Aging Amount 5No

AG6Aging Amount 6No

AG7Aging Amount 7No

AOCLAmount Over Credit LimitINo

UAAUnapplied AmountNo

NURNumber Unapplied AmountNo

CREEOpen CreditsNo

CRENNumber Open CreditsNo

ODAMOutstanding DraftsNo

NODNumber Outstanding DraftsNo

CRCDCurrency Code FromNo

AGEMAging MethodNo

CRDYAging Days AR CurrentNo

AGR1Aging Days AR001No

AGR2Aging Days AR002No

AGR3Aging Days AR003No

AGR4Aging Days AR004No

AGR5Aging Days AR005No

AGR6 Aging Days AR006No

AGR7 Aging Days AR007No

AGEBase Aging DateNo

DDOAClaim Amount OpenNo

DDNBNumber of Open ClaimsNo

CLMGCollection ManagerNo

CMGRCredit ManagerNo

WKFLAccount Worked FlagNo


For the items that are not required, if their values are not blank or zero, they should be passed 

into this function.

 

Related Tables

F03B15Credit and Cash Management
F03B31Customer Activity Log

F0150Address Organization Structure Master File - OSTP, PA8, AN8


Related Business Functions
B0100042Customer Master - MBF
B0000033Get Exchange Rate

B9800100Get Audit Information

B0000027CurrencyConvForAndDom


Processing

• Call I_B03B0080_Process_Parent_Record
• While bRecordRead = True
• If the Customer has a child
• Call I_B03B0080_Process_Parent_Record
• Else
• bRecordRead = False
• End if
• End while

I_B03B0080_Process_Parent_Record (internal function)

• Fetch F03B15
• Run Get Audit Info
• If Fetch is successful (If the fetch is successful, the parent record will be updated.  
Otherwise, the record will be inserted)

• If the Currency Code From is different from currency code in F03B15, call Get Exchange Rate 
and the internal function I_B03B0080 to convert the amounts

• Update F03B15
• Else
• Call Customer Master - MBF to fetch Collection and Credit Managers, and customer currency code
• If Company is 00000 and customer currency code is not the same as Currency Code From
• Call Get Exchange Rate and the internal function I_B03B0080 to convert the amounts
• End if
• Fetch F0150 to get the Parent Number
• Fetch F03B31 to see if the promise (activity type 30) exists
• If the promise exists, set the Account Worked Flag (WKFL) to a 1.  If not, set it to a 0
• Insert the parent record to F03B15
• End if
• Return to the main function
^

Data Structure

D03B0080 - Update Open Summary Parent

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCustomerNumberAN8MATH_NUMERICREQNONE

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.

jdAsOfDateDAGJDEDATENONENONE

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.

mnOpenAmountAAPMATH_NUMERICNONENONE

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

mnNumberOpenInvoicesOINVMATH_NUMERICNONENONE

The number of invoice pay items that had an open amount at the time the Credit Analysis Refresh program (R03B525) was run. 

mnOpenChargebackAmountOCBMATH_NUMERICNONENONE

The total open amount of chargebacks for the customer.

mnNumberOpenChargebacksNOCBMATH_NUMERICNONENONE

The total number of open chargeback pay items.

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

mnAmountPastDuePDAMATH_NUMERICNONENONE

Total amount of all invoice pay items that are past due.

mnNumberPastDueInvoicesPDINMATH_NUMERICNONENONE

The number of invoice pay items with a due date prior to the aging date specified when the Credit Analysis Refresh program (R03B525) 
was run. 

mnOpenChargebacksPastDueOCBPMATH_NUMERICNONENONE

Total amount of all open chargebacks that are past due.

mnDiscountAvailablePastDueDSCPMATH_NUMERICNONENONE

Total discount available amount for all open invoice pay items that are past due.

mnAmountFutureFTRMATH_NUMERICNONENONE

The total amount of the invoices that is due prior to the first aging category defined when the Credit Analysis Refresh program (R03B525) 
was last run. Aging information can be set up in the Accounts Receivable constants or the Credit Analysis Refresh program. For example, if the 
first 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 more 
than 30 days in the future.

mnCurrentAmountCURRMATH_NUMERICNONENONE

The total open invoice amount that is in the current aging 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 current aging category by using the days defined in the 
first two aging categories. For example, if the first aging category is -30 and the second aging category is 0, the date on the invoice that you 
use to age (invoice date, due date, statement date, or G/L date) must be equal to or before the aging date that you define.

mnNumberCurrentInvoicesCUINMATH_NUMERICNONENONE

The total number of invoice pay items that are due in the current period, as specified by the Age as of Date field on the form. 

mnCurrentChargebackAmountOCBCMATH_NUMERICNONENONE

Total amount of all chargebacks that are due in the current period.

mnCurrentDiscountAvailableCUDSMATH_NUMERICNONENONE

Total discount available amount for all open invoices due in the current period.

mnCurrentDiscountEarnableCUEDMATH_NUMERICNONENONE

Total discount amount for all open invoices due in the current period and contain a discount due date greater than or equal to the current 
date.

mnAgingAmount1AG1MATH_NUMERICNONENONE

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.

mnAgingAmount2AG2MATH_NUMERICNONENONE

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.

mnAgingAmount3AG3MATH_NUMERICNONENONE

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.

mnAgingAmount4AG4MATH_NUMERICNONENONE

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.

mnAgingAmount5AG5MATH_NUMERICNONENONE

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.

mnAgingAmount6AG6MATH_NUMERICNONENONE

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.

mnAgingAmount7AG7MATH_NUMERICNONENONE

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.

mnAmountOverCreditLimitAOCLMATH_NUMERICNONENONE

The portion of a customer's total amount due that exceeds his available credit limit.

mnUnappliedAmountUAAMATH_NUMERICNONENONE

The total payment amount received from a customer that was not applied to invoices.

mnNumberUnappliedAmountNURMATH_NUMERICNONENONE

The number of unapplied receipts records (RU) in the Customer Ledger table (F03B11) that have a pay status not equal to P. 

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

mnNumberOpenCreditsCRENMATH_NUMERICNONENONE

The total number of open credit pay items. The system updates this field when you run the Credit Analysis Refresh program (R03B525).

mnOutstandingDraftsODAMMATH_NUMERICNONENONE

The total value of the open draft amounts.  Outstanding drafts are considered all drafts in Italy and only drafts not yet due in France.

mnNumberOutstandingDraftsNODMATH_NUMERICNONENONE

The number of draft records (R1) in the Customer Ledger table (F03B11) that have a pay status not equal to P. 

szCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

cAgingMethodAGEMcharNONENONE

A code that designates which aging categories the system uses to assign invoices. The system uses the date specified in the Age as of 
Date field (DAG) and the value specified in the Date Aging Based On field (AGE) to calculate the aging for each invoice, and then assigns 
them to the aging category specified by this code. Valid codes are: 1 Aging days. The system assigns invoices to the aging categories 
specified in the Aging Days fields. The aging categories are user defined. 2 Fiscal periods. The system uses the fiscal periods defined by the date 
pattern assigned to the company record as the aging categories. 3 Calendar. The system uses each calendar month as an aging category.

mnAgingDaysARCurrentCRDYMATH_NUMERICNONENONE

A value used in conjunction with the value of AGR1 to define the number of days in the current aging category.

mnAgingDaysAR001AGR1MATH_NUMERICNONENONE

A value used in conjunction with CRDY and AGR2 to define the current and first aging categories.

mnAgingDaysAR002AGR2MATH_NUMERICNONENONE

A value used in conjunction with AGR1 and AGR3 to define the first and second aging categories.

mnAgingDaysAR003AGR3MATH_NUMERICNONENONE

A value used in conjunction with AGR2 and AGR4 to define the second and third aging categories.

mnAgingDaysAR004AGR4MATH_NUMERICNONENONE

A value used in conjunction with AGR3 and AGR5 to define the third and fourth aging categories.

mnAgingDaysAR005AGR5MATH_NUMERICNONENONE

A value used in conjunction with AGR4 and AGR6 to define the fourth and fifth aging categories.

mnAgingDaysAR006AGR6MATH_NUMERICNONENONE

A value used in conjunction with AGR5 and AGR7 to define the fifth and sixth aging categories.

mnAgingDaysAR007AGR7MATH_NUMERICNONENONE

A value used in conjunction with AGR6 to define the sixth aging category.

cBaseAgingDateAGEcharNONENONE

A code that specifies which date on the invoice record to use to calculate aging. The system compares the date specified on the invoice 
record to the date entered in the Age as of Date field (DAG) to determine the aging, and then updates the aging category based on the method 
specified in the Aging Method field (AGEM). Valid values are: I Invoice date   D Due date   G G/L date   S Statement date

mnClaimAmountOpenDDOAMATH_NUMERICNONENONE

The unresolved domestic amount of the deduction. The currency associated with this amount appears in the Base Currency Code field 
(BCRC).

mnNumberOfOpenClaimsDDNBMATH_NUMERICNONENONE

Future use.

mnAddressNumberParentPA8MATH_NUMERICOPTNONE

The address book number of the parent company. The system uses this number to associate a particular address with a parent company 
or location. Any value that you enter in this field updates the Address Organizational Structure Master table (F0150) for the blank structure 
type. This address number must exist in the Address Book Master table (F0101) for validation purposes. Examples of address book records 
that would have a parent number include:   o  Subsidiaries with parent companies     o  Branches with a home office     o  Job sites with a general 
contractor 

szCollectionManagerCLMGcharOPTNONE

The name of the collection manager responsible for managing this customer's account. You must set up the collection manager in the 
address book, and then create an entry in the user defined code table 01/CM. When you set up the user defined code value, you must also enter 
the address book number of the collection manager in the Description 02 field. You enter the user defined code that represents the collection 
manager in this field.

szCreditManagerCMGRcharOPTNONE

The name of the credit manager responsible for approving changes to the credit limit. You must set up the credit manager in the address 
book, and then create an entry in the user defined code table 01/CR. When you set up the user defined code value, you must also enter the 
address book number of the credit manager in the Description 02 field. You enter the user defined code that represents the credit manager in 
this field.

cAccountWorkedFlagWKFLcharOPTNONE

An option that specifies whether to limit the display of accounts to those for which you have entered a promise message (Worked) or those 
for which you have not entered a promise message (Unworked).

mnAddressNumberChildAN8MATH_NUMERICOPTNONE

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

Related Functions

B0000027 CurrencyConvForAndDom
B0000033 Get Exchange Rate
B9800100 Get Audit Information
N0100042 Customer Master -MBF

Related Tables

F0150 Address Organization Structure Master
F03B15 Credit and Cash Management
F03B31 Customer Activity Log