Functional Description
Purpose
This function gathers data from the Online Consolidations program (P09218) and either creates a new
Consolidation Header record or updates an existing one. There is a Mode flag that is used to determine
Add or Update Mode. If calling this function in Add mode, the Next Number used for the Consolidation
Header record will be passed back in the parameter. If this function is in Generate mode, it will
set the Generation Date field of the F09218 table to the current System Date.
Setup Notes and Prerequisites
If adding a new consolidation header record, pass an "A" in the Mode Flag along with the following:
Index Name, Index Description, Company, Category Code 1-4, Category Code Values 1-4.
If updating an existing consolidation header record, pass a "U" in the Mode Flag along with the
following: Index Name, Index Description, Company, Category Code 1-4, Category Code Values 1-4.
If generating a consolidation header record, pass a "G" in the Mode Flag along with the Index Name.
Technical Specification
If Mode flag is "A"
Get Next Number for Consolidation
Load Next Number into return value for BSFN data structure
Open F09218 table
Set Values passed in from P09218 application
Insert Consolidation Header into F09218 table
Close table
If Mode flag is "G"
Open F09218 table
Fetch Consolidation Header from F09218 table
Set Generation Date to Current System Date
Update Consolidation Header in F09218 table
Close F09218 table
If Mode flag is "U"
Open F09218 table
Fetch Consolidation Header from F09218 table
Set Values passed in from P09218 application
Update Consolidation Header into F09218 table
Close table
D0900052 - Write F09218 Header Record
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szIndexName | IDXN | char | OPT | INPUT |
Special Input Expected
| ||||
szIndexDescription | DL10 | char | OPT | INPUT |
Special Input Expected
| ||||
szCompany | CO | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCode1 | CDAA | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCodeValue1 | CDAV | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCode2 | CDBB | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCodeValue2 | CDBV | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCode3 | CDCC | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCodeValue3 | CDCV | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCode4 | CDDD | char | OPT | INPUT |
Special Input Expected
| ||||
szCategoryCodeValue4 | CDDV | char | OPT | INPUT |
Special Input Expected
| ||||
jdGLDate | DGJ | JDEDATE | OPT | INPUT |
Please disregard this parameter it is not used.
| ||||
mnNextNumber | N001 | MATH_NUMERIC | OPT | BOTH |
Special Output Returned
| ||||
cModeFlag | EV01 | char | OPT | INPUT |
Special Input Expected
| ||||
szOrganizationType | OTPS | char | OPT | INPUT |
A user-defined code (00/TS) that identifies the type of organization structure, such as financial or responsibility. Each type of organization
| ||||
szParentBusinessUnit | MCU1 | char | OPT | INPUT |
The primary level in a business unit hierarchy. A parent in one hierarchy can be a child in a different hierarchy. | ||||
szMaskedBusinessUnit | MCUM | char | OPT | INPUT |
Use this field to select a search pattern within an existing business unit.
Replace the wildcard characters with the search characters to create
|
None |
F09218 Online Consolidations Set-up File |