PlugAcct

Gets the plug account for the current Account member or for a specified account. This function can be used in these types of rules:

  • Calculation

  • Translation

  • Consolidation

  • Allocation

Syntax

HS.Account.PlugAcct("Account")
HS.Account.PlugAcct("")

where Account is the name of a valid Account dimension member.

Note:

You can use a blank string ("") to apply this function to the current member only if you are using it in the Sub Consolidate subroutine.

Return Value

A string that specifies the name of the plug account for the member.

Example

In this example, if the plug account for the Sales account is Plug1 then statements between the If...Then and End If statements are executed:

If HS.Account.PlugAcct("Sales") = "Plug1" Then
  ...
End If