Adds an element to a consolidated element in a hierarchy, rolling up according to the weight defined.
HierarchyElementComponentAddDirect adds an element to a consolidated element in a hierarchy, rolling up according to the weight defined. This function is actioned immediately. To action this function until the process makes a commitment (e.g. at the end of executing the metadata tab), use HierarchyElementComponentAdd.
HierarchyElementComponentAddDirect(DimName, HierName, ConsolElName,ElName, ElWeight);
DimName = Dimension Name
HierName = Hierarchy Name
ElName = Element Name
ConsolElName = Consolidated Element Name
ElWeight = Element Weight
Add Netherlands as a child of Benelux in the Western Europe hierarchy from the Sales Region dimension.