Functional Description
Purpose
This function will build the Consolidations Detail table F092181. The function will select all of
the records from the F0901 Account Master table based on the Business Unit parameter that is passed in.
As each record is fetched from the F0901 table, a matching record will be added to the F092181 table.
The F092181 table is keyed on a Next Number that is passed into the function and the Account ID read
from F0901 table. If a "D" is passed in the Delete Detail Records Flag, the function will delete all
the records in the F092181 detail table that match the Next Number that was passed in the function
parameter.
Setup Notes and Prerequisites
Next Number, Business Unit, and Business Unit Description are the only required parameters for this
function. You can obtain the Next Number by calling the function B0900052, which will create the
Consolidation Header record. The Business Unit and the Business Unit Description are obtained from the
application P09218. The Delete Detail Records Flag should be a "D" if you need to purge the file for
records matching the Next Number.
Special Note: Please disregard the following BSFN parameters, they are no longer used:
szObjectAccount
szSubsidiary
szAccountID
szAccountDescription
cAccountLevelOfDetail
cPostingEditCode
Technical Specification
Main function
If Delete Detail Records Flag is "D"
Call Delete F091818 Detail Records function
End BSFN
Open F0901 table
Open F092181 table
Select Accounts from F0901 matching Business Unit
While records exist
Fetch Accounts from F0901
Set values to F092181 from F0901
Set Business Unit Description from parameter
Set Next Number from parameter
Insert Account into F092182 table
Close F0901 table
Close F092181 table
Delete F092181 Detail Records
Open F092181 Table
Delete Matching Accounts from F092181 table
Close F092181 table
D0900054 - Write F092181 Detail Record
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
mnNextNumber | N001 | MATH_NUMERIC | NONE | NONE |
Special Input Expected
| ||||
szObjectAccount | OBJ | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
szSubsidiary | SUB | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
szBusinessUnit | MCU | char | NONE | NONE |
Special Input Expected
| ||||
szBusinessUnitDescription | MDL1 | char | NONE | NONE |
Special Input Expected
| ||||
szAccountID | AID | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
szAccountDescription | DL01 | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
cAccountLevelOfDetail | LDA | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
cPostingEditCode | PEC | char | NONE | NONE |
Please disregard this parameter, it is no longer used.
| ||||
cDeleteDetailRecordsFlag | EV01 | char | NONE | NONE |
Pass a "D" in this parameter to purge the F092181 detail table of all records matching the Next
| ||||
cPoExcludeBlankObject | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. |
None |
F0901 Account Master | ||||
F092181 Online Consolidation Detail File |