Demotes a process unit from its current level to its previous level.
To attach documents when rejecting, use Reject2.
<HsvProcessFlow>.Reject lScenario, lYear, lPeriod, lEntity, lParent, lValue, vbUseAllValueMembers, bstrAnnotation, psNewProcessState
Long (ByVal). The member ID of the process unit's Scenario dimension member. | |
Long (ByVal). The member ID of the process unit's Year dimension member. | |
Long (ByVal). The member ID of the process unit's Period dimension member. | |
Long (ByVal). The member ID of the process unit's child Entity dimension member. | |
Long (ByVal). The member ID of the process unit's parent Entity dimension member. | |
Long (ByVal). The member ID of the process unit's Value dimension member. | |
Boolean (ByVal). Determines whether process units for Value dimension members related to the lValue member are demoted. Pass TRUE to demote related process units, FALSE to demote only the process unit for the lValue member. | |
Integer. Returns the constant that identifies the level to which the process unit has been demoted. For a listing of valid return values, see Table 136, CEnumProcessFlowStates Enumeration. |
This example demotes a process unit. The calls to the user-defined GetMemberID function get the process unit’s member IDs; for information on GetMemberID, see the Examples for GetItemID. These member IDs are then passed to Reject.
Dim lScen As Long, lYear As Long, lPer As Long Dim lEnt As Long, lPar As Long, lVal As Long Dim cHsvProcessFlow As HsvProcessFlow, iState As Integer lScen = GetMemberID(DIMENSIONSCENARIO, "Budget") lYear = GetMemberID(DIMENSIONYEAR, "2000") lPer = GetMemberID(DIMENSIONPERIOD, "July") lEnt = GetMemberID(DIMENSIONENTITY, "Connecticut") lPar = GetMemberID(DIMENSIONENTITY, "UnitedStates") lVal = GetMemberID(DIMENSIONVALUE, "USD") Set cHsvProcessFlow = m_cHsvSession.ProcessFlow cHsvProcessFlow.Reject lScen, lYear, lPer, lEnt, lPar, lVal, _ False, "", iState