WriteF092181DetailRecord

Write F092181 Detail Record

Major Business Rule

Object Name: B0900054

Parent DLL: CFIN

Location: Client/Server

Language: C

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

Data Structure

D0900054 - Write F092181 Detail Record

Parameter NameData ItemData TypeReq/OptI/O/Both
mnNextNumberN001MATH_NUMERICNONENONE

Special Input Expected
Pass in the Next Number to be used when creating the detail records in the F092181 table.

^

szObjectAccountOBJcharNONENONE

Please disregard this parameter, it is no longer used.
^

szSubsidiarySUBcharNONENONE

Please disregard this parameter, it is no longer used.

^

szBusinessUnitMCUcharNONENONE

Special Input Expected
Pass the Business Unit to be used for data selection over the F0901.

^

szBusinessUnitDescriptionMDL1charNONENONE

Special Input Expected
Pass the Business Unit Description to be stored in the F092181 detail table.

^

szAccountIDAIDcharNONENONE

Please disregard this parameter, it is no longer used.
^

szAccountDescriptionDL01charNONENONE

Please disregard this parameter, it is no longer used.
^

cAccountLevelOfDetailLDAcharNONENONE

Please disregard this parameter, it is no longer used.

^

cPostingEditCodePECcharNONENONE

Please disregard this parameter, it is no longer used.

^

cDeleteDetailRecordsFlagEV01charNONENONE

Pass a "D" in this parameter to purge the F092181 detail table of all records matching the Next 
Number parameter.

^

cPoExcludeBlankObjectEV01charOPTNONE

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

Related Functions

None

Related Tables

F0901 Account Master
F092181 Online Consolidation Detail File