0% found this document useful (0 votes)
413 views2 pages

FDM Validation Script

This script validates the trial balance for a location, category, and period in Oracle Hyperion FDM. It queries the data segments to get the sum of amounts and compares it to zero, flagging an error if the difference is greater than 1 or less than -1. If the difference is within the threshold, it logs a success message before continuing the export process.

Uploaded by

Yashesh Dave
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
413 views2 pages

FDM Validation Script

This script validates the trial balance for a location, category, and period in Oracle Hyperion FDM. It queries the data segments to get the sum of amounts and compares it to zero, flagging an error if the difference is greater than 1 or less than -1. If the difference is within the threshold, it logs a success message before continuing the export process.

Uploaded by

Yashesh Dave
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sub AftValidate(strLoc, strCat, strPer, lngProcState) '-----------------------------------------------------------------'Oracle Hyperion FDM EVENT Script: ' 'Created By: Adminsitrator 'Date

Created: 2010-08-26-17:09:08 ' 'Purpose: ' ''-----------------------------------------------------------------Dim AmtVal(2) Dim AmtVal1(2) Dim Seg1(2) Set rsPer = CreateObject("ADODB.Recordset") Loc=API.POVMgr.PPOVLocation Cat=API.POVMgr.PPOVCategory CatKey=API.POVMgr.fCategoryKey(Cat) Per=API.POVMgr.PPOVPeriod CatF=API.POVMgr.fCategoryFreq(Cat)

Seg=RES.PlngSegKey dtseg="tDataSeg"&Seg Set cnSS = CreateObject("ADODB.Connection") cnSS.Open "Provider=OraOLEDB.Oracle;Data Source=OHFDM;User Id=fdm;Password=fdm;" Set rsLoc=CreateObject("ADODB.Recordset")

Amt="Select sum("&dtseg&".Amount) FROM "&dtseg&",tpovperiod where "&dtseg&".CatK ey="&CatKey&" And tpovperiod.periodkey="&dtseg&".periodkey And tpovperiod.period desc='"&Per&"' and ("&dtseg&".UD1X like 'FIN%%' or "&dtseg&".UD1X like '[NONE]') "'and "&dtseg&".Account not like '99%%%%%%'" 'And periodkey="&CDate(PerKey)'&"'" '&"'" rsLoc.Open Amt, cnSS AmtVal(0) = rsLoc.Fields.item(0).Value If CDbl(AmtVal(0))>1 Or CDbl(AmtVal(0))<-1 Then 'Dim Abv RES.PlngActionType = 2 RES.PstrActionValue = "Error in Trial Balance Data. Kindly Reload the Trial Bala nce. TB Difference = " & CDbl(AmtVal(0)) API.MaintenanceMgr.mProcessLog Loc, Cat, Per, 2, False, "Trial Balance Validatio n Error", Now() Else RES.PlngActionType = 6 RES.PstrActionValue = "Congrats! Trial Balance Matched. Continue to Export. Diff erence = " & CDbl(AmtVal(0)) End If 'End If rsLoc.close

cnSS.close End Sub

You might also like