L11 creating member lists
-
Upload
nareshksahu -
Category
Documents
-
view
394 -
download
0
description
Transcript of L11 creating member lists
11Copyright © 2008, Oracle. All rights reserved.
Creating, Loading, and Extracting Member Lists
Copyright © 2008, Oracle. All rights reserved.
Objectives
After this lesson this lesson, you should be able to:
• Describe the differences between system-generated and user-defined member lists
• Create scripts for creating static and dynamic user-defined member lists
• Load and extract member lists
Copyright © 2008, Oracle. All rights reserved.
Member Lists Overview
A member list is a subset of related members that belong to a single dimension.
Income Before Taxes
Gross Margin
Interest Expense
Admin Expense
Total Revenue
Sales
Sales Interco
Total Costs
Salaries
Account Dimension
Total Revenue
Total Costs
Admin Expense
Member List
Copyright © 2008, Oracle. All rights reserved.
System-Defined Member Lists
Base Member List
Sales
Sales Interco
Salaries
Children of Parent Member List
Sales
Sales Interco
Interest Chgs
Admin Expense
Income Before Taxes
Gross Margin
Interest Expense
Admin Expense
Total Revenue
Sales
Sales Interco
Total Costs
Salaries
Copyright © 2008, Oracle. All rights reserved.
User-Defined Member Lists
Create user-defined member lists to customize your application.Income Before
Taxes
Gross Margin
Interest Expense
Admin Expense
Total Revenue
Sales Interco
Total Costs
Salaries
Dynamic Member List
Total Costs
Salaries
Interest Chgs
Static Member List
Total Revenue
Total Costs
Admin ExpenseAdmin Expense
Sales
Copyright © 2008, Oracle. All rights reserved.
Creating Member Lists
• You create member lists in a text file that you load into your application.
• You include definitions for all user-defined member lists in a single file.
Sub EnumMemberLists()Dim aEntityLists(2)Dim aAccountLists(1)If HS.Dimension = "Entity" Then
aEntityLists(1) = "UnitedStates"aEntityLists(2) = "Europe"HS.SetMemberLists aEntityLists
ElseIf HS.Dimension = "Account" ThenaAccountLists(1) = "ProfitAndLoss"HS.SetMemberLists aAccountLists
End IfEnd Sub
Copyright © 2008, Oracle. All rights reserved.
Sub EnumMemberLists()Dim aEntityLists(2)Dim aAccountLists(1)If HS.Dimension = "Entity" Then
aEntityLists(1) = "UnitedStates"aEntityLists(2) = "Europe"HS.SetMemberLists aEntityLists
ElseIf HS.Dimension = "Account" ThenaAccountLists(1) = "ProfitAndLoss"HS.SetMemberLists aAccountLists
End IfEnd Sub
Identifying Member Lists in a File
You use the EnumMemberLists subroutine to specify the number of member lists and the names of the member lists.
Copyright © 2008, Oracle. All rights reserved.
Creating Static Member Lists
You use the EnumMembersInList to create both static and dynamic member lists.
Sub EnumMembersInList()If HS.Dimension = "Account" Then
If Hs.MemberListID=1 Then HS.AddMemberToList "Sales" HS.AddMemberToList "SalesInterco" HS.AddMemberToList "Purchases" HS.AddMemberToList "PurchasesInterco"End If
End IfEnd Sub
Copyright © 2008, Oracle. All rights reserved.
Creating Dynamic Member Lists for the Entity Dimension
Dynamic member lists select members from a dimension based on a criteria you specify.
Creates an array of the dimension members
Loops through the dimension members
Checks the currency property of each member
If HS.Dimension = "Entity" ThenIf HS.MemberListID=1 Then ELi=HS.Entity.List("","") For i=Lbound(ELi) to Ubound(ELi)
If (StrComp(HS.Entity.DefCurrency(ELi(i)),“USD”,vbTextCompare)=0) ThenHS.AddEntityToList "",ELi(i)End If
NextEnd If
End If
Copyright © 2008, Oracle. All rights reserved.
Creating Dynamic Member Lists for Other Dimensions
Ali=HS.Account.List("","")For i=Lbound(ALi) to Ubound(ALi) If (StrComp(HS.Account.AccountType(ALi(i)),"asset",vbTextCompare)=0) Then HS.AddMembertoList ALi(i) End If Next
Checks the account type property of each member
Creates an array of the dimension members Loops through the dimension members
Copyright © 2008, Oracle. All rights reserved.
Loading Member Lists
You access the Load Member Lists task from the Load Tasks menu in the view pane.
Copyright © 2008, Oracle. All rights reserved.
Extracting Member Lists
You access the Extract Member Lists task from the Extract Tasks menu in the view pane.
Copyright © 2008, Oracle. All rights reserved.
Summary
In this lesson, you should have learned to:
• Describe member lists
• Describe the differences between system-generated and user-defined member lists
• Create scripts for creating static and dynamic user-defined member lists
• Load and extract member lists