Returns the member ID of the top member of an account’s Custom 4 dimension hierarchy. In other words, this method returns the member ID of the Custom 4 member that has been defined as an account’s Custom4TopMember attribute.
<HsvAccounts>.GetTopMemberOfValidCustom4Hierarchy lItemID, plTopMember
See the Example for GetTopMemberOfValidCustom1Hierarchy, replacing that method with GetTopMemberOfValidCustom4Hierarchy.