ValidateLineItems

Validates a given journal’s line items.

Syntax

<HFMwManageJournals>.ValidateLineItems (vardispHFMwJournal)

Argument

Description

vardispHFMwJournal

The HFMwJournal object reference for the journal to be validated

Input argument.

Return Value

Returns an array containing the Financial Management error numbers for the line items, with one array item for each line item. If a line item is valid, the corresponding item in this array has a value of 0, otherwise the array item has a non-zero error number.

Note:

If the journal header contains invalid data, ValidateLineItems throws an error.

Example

The following function validates the specified journal’s line items. GetJournal creates an HFMwJournal object reference for the journal. This object reference is passed to ValidateLineItems, and the return value is assigned as the example function’s return value.

Function validateJournal(sJournal, sScen, sYear, sPer)
Dim cHFMJournal, vaRet
'g_cHFMManageJournals is a global HFMwManageJournals object
Set cHFMJournal = g_cHFMManageJournals.GetJournal (sJournal, _
   sScen, sYear, sPer)
vaRet = g_cHFMManageJournals.ValidateLineItems(cHFMJournal)
validateJournal = vaRet
End Function