Download presentation
Presentation is loading. Please wait.
Published byAusten Henderson Modified over 9 years ago
1
Oracle HFM 11.1.2.2 Implementation Boot Camp Presented by Saravanan Singaravadivelan Developed by Saravanan Singaravadivelan Senior Consultant Qubix International Ltd
2
VII. Rules
3
Rules Rules are written in Visual Basic and created/edited using Textpad. Rules are organized into sections called subroutines, which can be used to organise the Rules file or for specific purposes. Sub Calculate and Sub Dynamic are the two most common subroutines. HS.Account.Member, HS.Exp, and HS.Dynamic are some of the HFM functions. Comments may be added by placing an apostrophe in front of the comment. Variables can be utilised for storing something once and referring to it multiple times. An If/Then statement is the most common way of restricting when a calculation is run.
4
Rules Example
5
Rules - Subroutines Calculate Run when calculating an entity. Most rules go here. Translate Used to translate accounts with special rates. Consolidation Used to calculate specific ownership and elimination. Allocation Used to perform allocations and it is separate from consol. Input Enables data input into parent level entities. NoInput Prevents data input into members. Dynamic Used when calculation needs to run at all entity level, base & parent.
6
Rules - Subroutines Transactions Specify accounts that support intercompany transactions. Equity Pickup Specifies the owned entity, owner entity and percentage of ownership.
7
Rules - Dimension Syntax When referring to a dimension label, one or two characters followed by a hash or pound sign ( # ) is used to denote the dimension in which the member exists The dimension characters are displayed here: AAccount C1Custom1 C2Custom2 C3Custom3 C4Custom4 EEntity IIntercompany Partner PPeriod SScenario VValue WView YYear
8
Rules - Restrictions If/Then The most common and straightforward restriction Not ideal when there are too many criteria/scenarios Select Case It is used when there are many criteria and scenarios For/Next Used to loop through a list of items and perform something on each It is very handy for more complex calculations Can automatically pick up new members Custom Dimensions Self restricting It might not have adequate performance if assigned to many members
9
Rules - Functions Can be used to perform repetitive calculations Returns a result back to the code that called it Makes the Rules easier to read Reduces maintenance
10
Rules – Common Calculations Opening Balance Retained Profit & Loss into Retained Earnings Balanced Balance Sheet Check Cash Flow Foreign Exchange Difference Impact Status WriteToFile NoInput
11
Exercise: Rules
12
Main Steps: Lab 6 Create Rules file Create simple Rules file Create subroutines Create functions Create variables Apply restrictions on rules Add functions to rules Common Calculations Loading & Extracting Rules file
13
A Q &
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.