More Related Content
Similar to L11 creating member lists
Similar to L11 creating member lists (20)
More from Naresh Kumar SAHU
More from Naresh Kumar SAHU (19)
L11 creating member lists
- 2. 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
- 3. 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
- 4. 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
- 5. 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
- 6. 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" Then
aAccountLists(1) = "ProfitAndLoss"
HS.SetMemberLists aAccountLists
End If
End Sub
- 7. 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" Then
aAccountLists(1) = "ProfitAndLoss"
HS.SetMemberLists aAccountLists
End If
End 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.
- 8. 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 If
End Sub
- 9. 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" Then
If 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) Then
HS.AddEntityToList "",ELi(i)
End If
Next
End If
End If
- 10. 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
- 11. 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.
- 12. 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.
- 13. 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