Validates a given journal’s line items.
<HFMwManageJournals>.ValidateLineItems (vardispHFMwJournal)
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.
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