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.
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.
Load Key to read in F0901 (GMAID = GLAID).
Read in the F0901 using a FetchKeyed.
If a record is read in then GLCO = GMCO.
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.
D0900084 - F0911 Recalc FY/PN CO#
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnBatchNumber | ICU | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
szBatchType | ICUT | char | NONE | NONE |
Special Input Expected
|
X0903 Fiscal Date Edits + | ||||
XX0901 Validate Account Number |
F0901 Account Master | ||||
F0911 Account Ledger |