Tuesday, June 23, 2009

Key Flexfields

Platform: 11.5.10, R12


Key Flexfield Architecture

Key Flexfield is a very important concept in Oracle. It allows you to define Key Structures in each Module. This gives you the flexibility to model your objects according to your requirements. Some examples of flexfields are as follow:

Accounting Flexfield in General Ledger.

Job, Position and Grade Key Flexfield in Human Resources.

[caption id="" align="alignnone" width="572" caption="Key Flexfield Architecture"]Key Flexfield Architecture[/caption]

A flexfield is a structure that you define for a Flexfield Title. The Flexfield Structures are registered within an application.

A structure will compose of one or more segments. Each segment will be attached to a value set which you would have defined. If required you will qualify the segment in question.

Define Key Flexfield Structure

System Administrator --> Flexfield --> Segments

Note: KFFs are accessible from other Modules as well.

[caption id="" align="alignnone" width="756" caption="Key Flexfield Segments"]Key Flexfield Segments[/caption]

Query for the Key Flexfield in question. As an example I have queried the 'Training Resources' KFF.

[caption id="" align="alignnone" width="756" caption="Training Resources KFF"]Training Resources KFF[/caption]

Add your structure, then click on ‘Segments’ to define the segments.

[caption id="" align="alignnone" width="755" caption="Segments Summary"]Segments Summary[/caption]

Click on ‘Value Set’. Define your value set. The Value Set determines what values will be available for the segment in question. Specify the ‘Value Validation’.  Save the value set, close the form and attach it to the segment as shown above.

We have various ways of validating the values.

(Detailed document to follow on Value Sets)

Define Value Sets

[caption id="" align="alignnone" width="755" caption="Define Value Sets"]Define Value Sets[/caption]

In this case, the validation is based on a table. Click on ‘Edit Information’ to define it.

[caption id="" align="alignnone" width="755" caption="Validation Table Information"]Validation Table Information[/caption]

When you are done, click on ‘Open’ on the ‘Segment Summary’ Form. Specify whether it is required. By default all segments are marked as required.

[caption id="" align="alignnone" width="755" caption="Segments"]Segments[/caption]

Flexfield Qualifiers

Click on ‘Flexfield Qualifiers’ to qualify the segment. This is not valid for all Key Flexfields. Accounting Flexfield has Flexfield Qualifiers and is illustrated below.

[caption id="" align="alignnone" width="620" caption="Flexfield Qualifiers"]Flexfield Qualifiers[/caption]

Once you are done with all the segments close the ‘Segments Summary’ Form to return to the ‘Key Flexfield Segments’ window.

Compile Key Flexfield Structure

[caption id="" align="alignnone" width="740" caption="Compile KFF"]Compile KFF[/caption]

To be able to use the KFF, you need to freeze the structure. To freeze the structure, check the ‘Freeze Flexfield Definition’ and click on ‘Compile’. A request is launched to compile the structure. The structure is now available in your application.

Note: The ‘Allow Dynamic Inserts’ checkbox enables KFF values to be generated while using the application. If you don’t allow dynamic insert, then you need to define all the valid value combinations for your structure before you can use these values in your application.

Shameem Bauccha

24 June 2009

1 comment: