You are on page 1of 10

ORAtips4On System Administration

Oracle Key Flexfields –


®
Page 

October 2006 Volume II Issue 4

Security, Tips, and Tricks


By Melanie Cameron

Editor’s Note: Ever have one of ating combinations manually, and is


those months when, despite best recommended for Fixed Assets and
efforts, month end does not go as
Allowing dynamic required for Projects Costing and
planned? Or there are two or three Billing. When using dynamic inser-
pieces of additional information your
insertion will tion, it is recommend that the cross
company needs to track but no place validation segments be enabled and
exists within the Oracle module to
reduce the need defined as well, which will be covered
capture it. If you have been there, later in this paper. Freezing rollup
done that, then this article is for you.
for creating groups will prevent the rollup groups
First time ORAtips contributor Mela- from being modified. And lastly, a
nie Cameron provides real life solu-
combinations flexfield must be frozen and enabled
tions that are easy and practical to in order for it to be used.
implement to make your system more
manually…
usable and maintainable. Interested? Tip: When performing mainte-
Read on! For example, as shown in Figure 2, nance on a Key Flexfield, you must
the segment separator can increase first unfreeze it. This can have some
or decrease data entry time. For the negative consequences if done when
Introduction Accounting Key Flexfield, a period transactions are being processed in
Key Flexfields are widely used in is common because it is faster dur- the Oracle system. Before unfreezing
Oracle applications. In general, they ing data entry. Other options include a key flexfield, know what transac-
house the codes used by organiza- dash and pipe, or a custom separa- tions are going on at that time, and
tions to identify part numbers and tor can be defined. Allowing dynamic wait till after business hours if need-
General Ledger accounts, amongst insertion will reduce the need for cre- ed to perform your maintenance.
other things. A list of
the most commonly used
key flexfields is shown
in Figure 1. Setting up
these segments can affect
the usability of Oracle,
decreasing the workload
ORAtipsJournal

of the users and increas-


ing the accuracy of the
data in the system. This
article will review the
options available, and
recommends some best
practices.

Defining Flexfields:
Segments
When first setting up a
Key Flexfield, there are
some features available
that will greatly affect
the usability and amount
of maintenance required
with the flexfield. Figure 1: Common Key Flexfields

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

Figure 2: Key Flexfield Segments Form

Once the structure is set up, the Tip: Ensure that you think about the numbers once the use is required.
segments and their flexfield qualifiers future growth when setting up key If adding a segment does become a
can be defined as shown in Figure 3. flexfields. Though it is not supported requirement, you have two options:
by Oracle, you can add segments to Oracle’s solution, which is setting
When setting up your segments, your Accounting Flexfield – it will up a new book and operating units
don’t forget that some structures require a very talented, and most and moving everything over there, or
have required segments that must be likely expensive, programmer. Add- going rogue and having it added via
set up. For example, when setting up ing a segment called FUTURE when code. Both have pros and cons and
your Accounting Flexfield, you must you set up the flexfield is a much should be carefully considered prior
set up a segment for Company, Cost safer way to go, if the requirements to going down either path.
Center, and Account. All the other are known up front. You can default
segments are optional. it to Zeros, change the name, and add The sequence number you assign a
segment is the order the
segment will appear in on
the user’s screen. This is
ORAtipsJournal

important, because if at
some point, a company
decides they want to see
the Cost Center before the
Account, simply chang-
ing the number on this
screen can do it. It is not
necessary to change the
column number as well.
But be aware – this can
invalidate any Cross Vali-
dation Rules you have set
up as well as the Account
Alias for this flexfield,
and they will need to be
Figure 3: Segments re-examined after the

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

change. (Do this in a test


instance first, to see what
the impact will be on
your environment.)

Tip: It is common prac-


tIt is common practice
to define your sequence
numbers as increments
of 10, that way if you
need to add a segment,
you simply insert 11, 12,
21, 31, etc., rather than
having to delete and re-
order your segments. Figure 4: Flexfield Qualifiers

The Name is the name of the Key All Key Flexfields need to be dis- • Determines if an accounts rolls
Flexfield segment, and the Window played and enabled, even if they are into Retained Earnings at the fis-
Prompt is the prompt that appears defined for future use. Future use seg- cal year end
to the users. To eliminate confusion, ments can have the segments default
I set them both up as the same so the in as preset values. • Used as part of XBRL Taxonomy
technical and function users are all standards for integrations with
referring to the same name. In fact Defining Flexfields: other systems and reporting
when you type the name, it automati- Qualifiers
cally defaults in the Window Prompt Once the segments are set up, the Tip: Misclassified accounts cannot be
field for easy and rapid setup. flexfield qualifiers should be set up if corrected by just changing the Natu-
they are applicable as shown in Fig- ral Account flexfield qualifier. See
The Value Set is the value set used ure 4. Oracle MetaLink Note 1050920.6
to validate the data entered on the for detailed instructions on how to
Key Flexfields. For Descriptive Flex- In the General Ledger, the Flex- correct accounts that have been set
fields, the value sets can be left null field Qualifiers are used for specific up wrong.
and the data free formed in, but there segments as follows:
should be a value set assigned to all Balancing Segment Qualifier
Key Flexfields for data validation. Cost Center Qualifier • Required in all Charts of
• Required in all Charts of Accounts
Accounts
Though it is not
ORAtipsJournal

• All debits and credits within a


• Used in Assets, Payables, Receiv- balancing segment must equal
supported by ables, Order Management, and (either with an offsetting entry
General Ledger for Cost Center or with automatic intercompany
Oracle, you can add Analysts. offsets)
segments to your
• Used for Revaluations by Cost •Security can be added by balanc-
Accounting Flexfield Center ing segment to prevent unauthor-
ized access to specific balancing
– it will require a Natural Account Segment Qualifier segments
• Required in all Charts of
very talented, and Accounts Intercompany Segment Qualifier
• Available only in 11i – this was
most likely expen- •Îdentifies a segment as Asset, Lia- not backported to 10.7 or 11.0
bility, Owners Equity, Income, or
sive, programmer. Expense • Used to balance intercompany
journals, and works with the

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

Global Intercompany System Tip: Some modules are “buggy” when Profile
(GIS) it comes to description, especially Defaults to the value of a profile
some of the self-service applications, option; enter the profile short
• Eliminates the need for Natural so, as a rule of thumb, I always type name in the default value field.
Accounts for intercompany bal- in the name as the description to pre-
ancing, and reduces balancing vent problems down the road. SQL Statement
time Defaults the value to the result of
Again, all Key Flexfields need to be a SQL statement. Enter the SQL
Secondary Tracking Segment enabled and displayed. Indexing will in the default value field. Ensure
• Optionally used for Revaluations, improve reporting speed and is rec- that your SQL will return one
Translations, and Year End clos- ommended for Key Flexfields. row and one value EVERY time.
ing entries by tracking Unreal-
ized Gains and Losses, Cumu- The validation region will default
lative Translation Adjustments, from the previous page, and should
and Retained Earnings be reviewed and modified as needed.
This is where you can set up default It is common
• Aides in detailed analysis of cur- types and values for your flexfields.
rencies with step down alloca- practice to define
tions Default Types available are:
your sequence
Defining Flexfields: Segment
Segment Options  This will copy the value in anoth- numbers as
To set up the segment options, er segment of the same flexfield.
click on the open button on the seg- Enter the segment number in the increments of 10.
ment you want to set up as shown in default value field.
Figure 5.
Constant 
The first region of the form will Enter the actual value of the seg- Defining Flexfields: Value
default from the previous page (seg- ment in the default value field Sets
ments summary) with the exception The value set and description will
of Description, which can be added Field default in – if they are incorrect and
here. It does not display anywhere Defaults the value to another need modification, or you need to set
and is for informational purposes field on the same form. The for- up a new one, click on the Value Set
only. mat is :block.field button.

Oracle comes pre-


seeded with a large num-
ORAtipsJournal

ber of value sets that you


can use. You can also set
up custom ones for your
company.

Tip: When setting up


custom Value Sets for
your company, you may
want to consider begin-
ning the name of the
Value Set with a unique
Identifier so they are seg-
regated from the seeded
value sets, such as a
three-letter abbrevia-
Figure 5: Segments (Open) tion for your company. A
detailed description will

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

help future users understand what entered – data that is smaller will be the segments (refer back to Figure
that value set was designed to do accepted. You can also assign mini- 5).
without having to look at the details. mum and maximum values for the
value set. The Default Type and Default
There are three options on the List Value are used together to default a
Type: Validation Types determine how and segments value. These can be used to
if the value is validated. The options decrease data entry time, either for
List of Values are: future use segments or for segments
This requires that the value be that are 90% always the same values
set up before it can be used, and Dependent – but use care when defaulting value.
the users can select it from a list Restricts options based on anoth- What users do not have to enter, they
with the mouse or by typing in er segment’s values (Depart- often will not look at, leaving room
the first few characters of the ments A, B, and C are the only for errors.
value. Only the short name will valid options for Company 1)
appear. TIP: All segments will default to
Independent being required – and this is correct
Long List of Values Validates based on values set up functionality for Key Flexfields. If
This works exactly the same as within the value set you are working with a Descriptive
the List of Values (LOV) except flexfield, you may want to uncheck
the short name and the descrip- None this field.
tion will appear. No Validation
Security Enabled must be checked
Poplist Pair if you plan on setting up Secu-
Again, this works like the List of Used in running concurrent pro- rity Rules for this segment. Enter a
Values (LOV), but is limited to cesses where segments within Range to build intelligence into your
ten characters per value segments are used – an example record keeping. For example, if you
would be an item, where the item want a low and high account to know
The Security Type also has three value set is two segments, but that the high account must be great-
options: shows to the user as one segment er than the low account, then under
with the separator Range, the low account would be low
No Security and the high account would be high.
 There is no security on this value Special
set Works same as Pair Size determines how the data will
appear to the users and makes the
Hierarchical Security Table flexfield more usable. The Display
Security is based on the parent Works similar to Independent, Size must be at least as large as
value set but validates off a table using a the Value Set maximum value. The
ORAtipsJournal

SELECT statement as opposed Description Size is sometimes set


Non-Hierarchical Security to off a value set to less the than actual descriptions,
Security is based on the rules which will cut off the descriptions
assigned to the child values only Translatable Independent and can make them less meaningful,
Works just like Independent, but so keep this in mind when you set up
Setup defined for the format vali- uses a translated value instead of both the size and the descriptions.
dation section determines what for- an entered value The Concatenated Description Size is
mat of data will be accepted into this how large the concatenated flexfields
value set. The format type options Translated Dependent will appear on some reports and
are: CHAR, Date, DateTime, Num- Works just like Dependent, but all the forms. For example, if your
ber, Standard Date, Standard Date- uses a translated value instead of account number has three segments,
Time, and Time. The right justify an entered value the concatenation of the descriptions
and zero fill options are only avail- of the three segments is what this
able with Number. Once you have your value setup controls.
defined or modified, you can resume
The maximum size determines the setting up your Validation region of
maximum size of the data that can be

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

Prompts are what the users see


when engaging a List of Values
(LOV), or in a window. Again, I like
to keep them the same whenever pos-
sible to eliminate confusion.

TIP: Best Practices for Key Flexfield


Combinations are:

1. Use begin and end dates! Know


when the flexfields were in use. In
some versions of Oracle, disabled
segments and combinations that
are used in setup forms just DIS-
APPEAR from the setup form and Figure 6: Segment Qualifiers
cause errors. (They do still exist
in the database, so beware when If it is not a reconciled account in Account Alias – These are short
troubleshooting this problem!) Europe, or a control account for your names for a Key Flexfield combina-
Global Accounting Engine, again, it tion. It can either be a full combina-
2. Using dates also allows you to pre- should be tagged as No. tion or a partial combination where
pare for a change ahead of time the user has to fill in the rest of the
– the accounts can begin and end Parent Child Relationships segments as shown in Figure 8.
at a date in the future, and you Not using ADI? You should be!
can work on the maintenance dur- Account Aliases can help reduce
ing your slow period as opposed to ADI (Application Desktop Integra- data entry for large flexfields, as
the middle of month end, when it tor) provides a GUI interface for you well as learning curves when non-
always needs to take effect. to see your parent child relationships accounting people are entering data
easily. It is under View Account Hier- into Oracle. The one thing to remem-
3. Use the Qualifiers on the GL archy (Figure 7), and you must have ber is Aliases are NOT available in
Accounts for additional security as access to set up account flexfields in the i-modules, like iProcurement and
shown in Figure 6. the GL in order to see this in ADI. iExpense, but are available in ADI
You can add or remove parents and (Application Desktop Integrator)
If you do not budget or post to this children from the hierarchy, add and
account, then tag it as such to pre- maintain accounts and their attri- Cross Validation Rules (CVR)
vent mis-postings during budgeting butes from here. (Figure 9) are important to have set
and journal entries. up if you have dynamic insertion
turned on. When every Oracle user
ORAtipsJournal

Figure 7: ADI - View Account Hierarchy

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

has the ability to set up


account combinations, it
is better to tell the system
what is valid and what is
not than to expect the
users to remember or
understand. They can
prevent mis-postings to
the General Ledger, and
reclasses at month end,
reducing the close cycle
and reconciliation time.

Some simple rules to


follow for easily main-
tainable and easy-to-
trouble-shoot cross-vali-
dation rules are:

1. KISS – Keep it Simple,


Silly! Write more sim-
ple rules than fewer Figure 8: Account Alias
complex ones. They
are easier to trouble-
shoot.

2. Under the name, assign


the rule a number. Use
this number in the
error message. When
a user calls up about
a CVR violation, have
them give you the
number and you know
exactly which one is
the problem.
ORAtipsJournal

3. Make the error mes-


sages simple and self-
explanatory. The bet-
ter written they are,
the less calls you will
get on valid viola-
tions.

4. Make your descrip- Figure 9: Cross-Validation Rules


tions descriptive –
three years from now,
no one will remember why this 6. Again, use the from and to dates as nations, using ranges where you
rule was written opposed to just the enabled flag… can.

5. The error segment will highlight 7. Always include ALL valid combi- 8. Test your rule – can you enter a
which segment is wrong for the nations. This prevents problems. combination you are trying to pre-
users. Then exclude the invalid combi-

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

vent? Will it allow a


combination you want
to allow?

9. After each time you


do maintenance on
CVR’s, run the Cross
Validation Rule Viola-
tion report to see if any
existing combinations
violate any rules. Run
it first in view mode,
then once you validate
it, you can rerun it and
disable all the violating
accounts. This report
is traditionally found
in System Administra-
tor responsibility.

Security Rules can add


a layer of security above Figure 10: Security Rules
the responsibilities, as
well as prevent addi-
tional mis-postings to the General you will need to include all values in Save your record and click on the
Ledger. Commonly, they are used to the segment, then exclude the ranges Assign button.
either prevent users from reviewing you do not want this rule to have
financial information for a division access to. If the rule is complex, write Figure 11 (Assign Security Rules)
or department they do not work for, multiple rules as opposed to multiple is where you assign the rule to a
or to prevent a responsibility, such as exclusions to keep the troubleshoot- given responsibility. You must know
Purchasing or iProcurement, from ing simple. what application a responsibility is
posting to an account such as Asset set up under – this can be determined
– Computer Equipment as opposed Security Rules, under the System Administrator
to the Asset Clearing account. responsibility under Responsibilities.
when added and Sign into this responsibility and test
Security Rules as shown in Fig- your rule to ensure you are restrict-
ure 10, can be set up for a Key or maintained properly, ed access to the accounts you want
ORAtipsJournal

Descriptive Flexfields, a Value Set to limit and still have access to the
or a Concurrent Program. Using the make month-end accounts you should.
navigation path: Navigate to Setup >
Financial > Flexfield > Key > Secu- close faster by Security Rules, when added and
rity: Define and query up the Key maintained properly, make month-
Flexfield you want to add security reducing mispostings end close faster by reducing mis-
to. postings to the General Ledger, and
to the General can aid in your SOX audits for sensi-
Assign the rule a Name, Descrip- tive accounts.
tion, and a Message. The message Ledger, and can
will appear in the core applications Conclusion
when someone tries to access the aid in your SOX All the features covered in this
account, but in the Web applications, article will make your General Led-
such as iProcurement, the segments audits for sensitive ger more accurate at month end and
excluded with the security rule no your system more usable and main-
longer appear as an option. Again, accounts. tainable. It takes some thought to

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtips4On System Administration
Page 

October 2006 Volume II Issue 4

Figure 11: Assign Security Rules

set up and some time to maintain,


but the rewards of accurate financial
statements are worth it!

Melanie Cameron, Solutions Con-


sultant, MSS Technologies – Melanie
started using Oracle applications in
1992 as an accountant, and moved
on to implementations, support, and
is now a consultant with over 15
modules under her belt. With practi-
cal experience to back up what she
learns from reading and continuing
education, her solutions to problems
ORAtipsJournal

within the Oracle Applications are


real-life solutions that are practical
to implement. Melanie may be con-
tacted at Melanie.Cameron@ERPtips.com.

ORAtips.com ORAtips © 2006 Klee Associates, Inc.


ORAtipsJournal
The information on our website and in our publications is the copyrighted work of Klee Associates, Inc. and is owned by Klee Associates, Inc. NO WARRANTY: This
Page 10

October 2006 Volume II Issue 4

documentation is delivered as is, and Klee Associates, Inc. makes no warranty as to its accuracy or use. Any use of this documentation is at the risk of the user. Although
we make every good faith effort to ensure accuracy, this document may include technical or other inaccuracies or typographical errors. Klee Associates, Inc. reserves
the right to make changes without prior notice. NO AFFILIATION: Klee Associates, Inc. and this publication are not affiliated with or endorsed by Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Klee Associates, Inc. is a member of the Oracle Partner Network

This article was originally published by Klee Associates, Inc., publishers of JDEtips and SAPtips.
For training, consulting, and articles on JD Edwards or SAP, please visit our websites:
www.JDEtips.com and www.SAPtips.com.
ORAtipsJournal

ORAtips.com ORAtips © 2006 Klee Associates, Inc.

You might also like