Performs a approve action on the specified process units. The vbApplyToAllPeriods argument determines whether the action applies to one or to multiple process units.
To attach documents while approving process units, use Approve2.
<HFMwManageProcess>.Approve (bstrScenario, bstrYear, bstrPeriod, bstrEntity, bstrParent, bstrValue, vbApplyToAllPeriods, bstrComment)
Returns a number that represents the process units’ review level. Valid values are represented by the constants listed in Process Management Review Level Constants. Long subtype.
You can obtain a string that represents the review level by passing the return value to MapReviewLevelToString. |
The following example approves the specified process unit and prints the resulting review level.
Dim cHFMProcMan, lLevel Set cHFMProcMan = _ Server.CreateObject("Hyperion.HFMwManageProcess") ' cHFMSession is a previously set HFMwSession object cHFMProcMan.SetWebSession cHFMSession lLevel = cHFMProcMan.Approve("Budget", "2003", "April", _ "Connecticut", "UnitedStates", "<Entity Currency>", FALSE, _ "") Response.Write "<p>Review level: " & _ cHFMProcMan.MapReviewLevelToString(lLevel) & "</p>"