F0911RecalcFYPNCO

F0911 Recalc FY/PN CO#

Minor Business Rule

Object Name: B0900084

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This function is executed by the G/L post program (P09800)when the appropriate processing option is 
set to update the Account ID, Company, Fiscal Year, Period Number, Century ,and Fiscal Quarter fields 

of unposted  transactions.

When executed, this program will update the Account ID and Company fields of unposted Account Ledger 

(F0911) transactions.  This information will be retrieved from the account master file (F0901) based 

on the G/L account number of the unposted record.

This program will also calculate the correct Century,  Fiscal Year and  Period Number based on the 

uposted Account Ledger (F0911) transaction's G/L Date.  The program will then update the unposted F0911 

records with the correct values.  The Fiscal Quarter field is also updated to blank.

This recalculation program is primarily used to update records that were input by custom programs and 

may not contain the correct information in the Fiscal Year, Period Number, Century, Fiscal Quarter, 

Account ID and Company fields.  Once these fields have been updated, the G/L Post program can continue 

with the posting process.


Setup Notes and Prerequisites


Special Logic

Prior to calling this business function the batch must be validated that it is approved for posting.  

Both batch type and batch number must be passed into the function, it will not do a global update 

(all) or update with a partial key (batch type or batch number only). 




Technical Specification



• Open F0911 using KEY6_F0911 for the Index.
• Load Key to read F0911 records (GLPOST = ' ', GLICUT = szBatchType, GLICU = mnBatchNumber).
• Do a FetchKeyed over the F0911 using the first three parts of Index KEY6_F0911.
• While we have successfully read in a F0911 record.
• If the account id (GLAID) is blank or '00000000'.
• Call ValidateAccountNumber (XX0901) passing it GLANI in the account number parameter, '7' in 
the based on format parameter and '1' in the format account number as parameter.

• Load the following values returned from XX0901 into the F0911: GLAID = Short Account ID, GLCO 
= Account Company.

• If the company (GLCO) is blank.
• Open F0901 using KEY3_F0911 for the index.
• Load Key to read in F0901 (GMAID = GLAID).
• Read in the F0901 using a FetchKeyed.
• If a record is read in then GLCO = GMCO. 
• Call ReturnFY/PN (X0903) passing in company (GLCO) and g/l date (GLDGJ).
• Load F0911 record (GLFY, GLPN and GLCTRY) with values returned from ReturnFY/PN.
• GLFQ = ' '.
• Update F0911.
• Do a FetchMatchingKey to read in next F0911 record. 


Data Structure

D0900084 - F0911 Recalc FY/PN CO#

Parameter NameData ItemData TypeReq/OptI/O/Both
mnBatchNumberICUMATH_NUMERICNONENONE

Special Input Expected
This is the Batch Number of the Account Ledger records being  posted.ab 


^

szBatchTypeICUTcharNONENONE

Special Input Expected
This is the Batch Type of the Account Ledger records being  posted.ab 


^

Related Functions

X0903 Fiscal Date Edits +
XX0901 Validate Account Number

Related Tables

F0901 Account Master
F0911 Account Ledger