SlideShare a Scribd company logo
Understanding Flex Fields with
Accounting Flexfields(Chart of Accounts)
Visit https://the-cool-fox.blogspot.com
What is Flex field?
A flexfield is a flexible data field that your organization can customize to your business needs without programming.
A flexfield is a field which is made up of sub–fields, or segments.
A flexfield appears on your form as a popup window that contains a prompt for each segment. Each segment has a name
and a set of valid values.
Visit https://the-cool-fox.blogspot.com
FlexField = Flexible Field
Example of Flex field
As we said, flexfield is a field made up of sub–fields, or segments. It essentially means that it is combination of other fields.
For example, if we take Full_Name as flexfield, then it will have the combination of other fields namely First_Name,
Middle_Name and Last_Name
Full_Name
Flex Field
First_Name Gurpreet
Middle_Name Singh
Last_Name Bhinder
Visit https://the-cool-fox.blogspot.com
Example of Flex field in Oracle Apps
Best example of FlexFields in Oracle Apps can be Chart Of Accounts in which we define accounting flexfields structures. A
chart of accounts is a listing of the names of the accounts that a company has identified and made available for recording
transactions in its general ledger. Suppose a company has different departments and accounts, and want to record
transactions as per this structure. So they can create their own accounting flexfields defining combination of like:
Company, Department, Accounts.
Visit https://the-cool-fox.blogspot.com
In this screenshot, we can see GL_Accounts screen.
If you start editing any account you will be presented
with “Chart of accounts” dialog, showing all the
segments ( like Company, Account, CostCentre etc.)
and their currently assigned values.
GL
Responsibility
Setup Accounts Combinations
Navigation
Types of Flex field
Key Flex Field (KFF) is a field you can customize to enter multi-segment values such as part numbers, account numbers,
and so on.
Descriptive Flex Field (DFF) is a field you customize to enter additional information for which your Oracle Applications
product has not already provided a field.
Visit https://the-cool-fox.blogspot.com
Flex Fields
Key Flex Fields (KFF)
Descriptive Flex Fields
(DFF)
Key Flex Field (KFF)
A key flexfield is a field made up of segments, where each segment has both a value and a meaning
A key flexfield is flexible enough to let you use any code scheme you want to describe an entity. When your organization
initially installs an Oracle Applications product, your organization's implementation team customizes all the key flexfields in
that product to use meaningful code segments to describe each key flexfield entity. Your organization decides for each key
flexfield, how many segments an entity has, what each segment means, what values each segment can have, and what each
segment value means. Your organization can also define rules that govern what combination of segment values are valid
(cross-validation rules), or define dependencies among the segments. The result is that your organization can use the
codes it needs rather than change its codes to meet someone else's requirements.
The Accounting Flexfield in your Oracle application is an example of a key flexfield that identifies a unique chart of
accounts. One organization may choose to customize the Accounting Flexfield to have three segments called Company,
Department, and Account, while another organization may choose to customize the flexfield to have six segments called
Company, Cost Center, Account, Product, Product Line, and Subaccount.
KFF are must to have fields. For example, to record financials transaction you must define accounting flexfields so that you
can record transactions to particular account.
Visit https://the-cool-fox.blogspot.com
Descriptive Flex Field (DFF)
Descriptive Flex Field (DFF) is a field you customize to enter additional information for which your Oracle Applications
product has not already provided a field.
A descriptive flexfield gives you room to expand your forms, since Oracle Applications cannot predict all the possible
information you may want to track. Your organization can use descriptive flexfields to capture additional information that
is important and unique to your business.
A descriptive flexfield appears in a block as a two character, unnamed field enclosed in square brackets [ ]
Descriptive flexfields have two different types of segments, global and context–sensitive.
A global segment is a segment that always appears in the descriptive flexfield pop–up window.
A context–sensitive segment is a segment that may or may not appear depending upon what other information is present
in your form.
Visit https://the-cool-fox.blogspot.com
KFF vs DFF
Visit https://the-cool-fox.blogspot.com
Key Flex Field (KFF) Descriptive Flex Field (DFF)
A key Flexfield is a ‘Key’ building block of a module and is
required for defining the structure of objects of that
module, e.g. account structure, item structure etc.
A descriptive Flexfield helps more in describing an object
(like a transaction or screen) more than the available fields
on that screen
Key Flexfield captures mandatory business information like
company department, account etc.
Descriptive Flexfield captures additional business
information like color of order item etc.
Key Flexfield is mandatory Descriptive Flexfield is optional
Key Flexfield is displayed like normal text item Descriptive Flexfield is displayed in square brackets [ ]
Key Flexfield’s data is stored in the segments Descriptive Flexfield’s data is stored in the attributes
Key Flexfield’s 30 Segment columns are reserved for Key
Flexfield’s data
Descriptive Flexfield’s 15 attribute columns are reserved
for Descriptive Flexfield’s data
Flex field SQLs
Visit https://the-cool-fox.blogspot.com
Flex field
Structure
Segments
Value Sets
Values
SELECT *
FROM fnd_id_flexs;
SELECT *
FROM fnd_id_flex_structures;
SELECT *
FROM fnd_id_flex_segments;
SELECT *
FROM fnd_flex_value_sets;
SELECT *
FROM fnd_flex_values;
Steps to create
Custom Key Flex
fields
Register a database table
Register database columns
Define Flex Fields
Define Value Sets
Define Flex field Structure
Define Segments
Register Table
To register the existing database table in oracle apps use the below procedure of AD_DD package
Visit https://the-cool-fox.blogspot.com
Parameter Name Description
p_appl_short_name Application Short Name
p_tab_name Table Name
p_tab_type Table Type (‘T’ - for enabling auto size or ‘S’ - for disabling auto size)
p_next_extent Size of secondary extents (in kilobytes); NULL for partitioned tables
p_pct_free Minimum percentage of free space in a block; NULL for partitioned tables
p_pct_used Minimum percentage of used space in a block; NULL for partitioned tables
Register Table
Visit https://the-cool-fox.blogspot.com
Table Type
Valid types are:
• Interim - Table is used only temporarily.
• Seed Data - Table stores primarily setup data.
• Special Flexfield Data - Table is used by flexfields.
• Transaction Data - Table stores primarily transaction data.
Initial Extent/Next Extent
The initial and next extent sizes in kilobytes for your table. Values must be greater than 0.
% Free/ % Used
A value between 1 and 100 per cent. A Percent Free value must exist such that the sum of the Percent Used field and the Percent Free
field is between 1 and 100.
Min Extents/ Max Extents
A value of 1 extent or more for the minimum extents value. The maximum extents value must be greater or equal to the minimum extents
value. A low value for maximum extents helps prevent fragmentation of your database table.
Auto Size
Indicates whether the table should be larger or smaller for different customers. If the Auto Size button is not checked, the table should
have the same size for all customers. In general, seed data tables should have AutoSize = No.
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Table type has values from TABLE_TYPE lookup:
SELECT lookup_type,
lookup_code,
meaning,
description
FROM fnd_lookup_values
WHERE lookup_type='TABLE_TYPE';
 Check registered tables using:
SELECT application_id,
table_id,
table_name,
user_table_name,
table_type,
description
FROM fnd_tables
WHERE table_name='GL_CODE_COMBINATIONS';
Register Column
To register the table in oracle apps use the below procedure of AD_DD package
Visit https://the-cool-fox.blogspot.com
Register Column
Visit https://the-cool-fox.blogspot.com
Parameter Name Description
p_appl_short_name Application Short Name
p_tab_name Table Name
p_col_name Column Name
p_col_seq Column Sequence
p_col_type Column Data Type
p_col_width Column Size
p_nullable Is NULL values allowed flag
p_translate Is translate allowed flag
p_precision Precision
p_scale Scale
Register Column
Visit https://the-cool-fox.blogspot.com
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Check columns of registered tables using:
SELECT column_sequence,
column_name,
user_column_name,
column_type,
width,
description,
precision,
scale
FROM fnd_columns
WHERE table_id=584
ORDER BY column_sequence;
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Column type has values from COLUMN_TYPE lookup:
SELECT lookup_type,
lookup_code,
meaning,
description
FROM fnd_lookup_values
WHERE lookup_type='COLUMN_TYPE';
Visit https://the-cool-fox.blogspot.com
Application Developer Application Database Table
Navigation
Define Flex Fields
To register the key flexfield use the below form. As the below screenshot, shows you the Accounting Flexfield
Visit https://the-cool-fox.blogspot.com
Application Developer Flexfield Key Register
Navigation
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows important details about the Accounting Flexfield.
SELECT
a.application_id,
b.application_name,
a.id_flex_code,
a.id_flex_name,
a.description,
a.application_table_name,
a.unique_id_column_name,
a.set_defining_column_name,
a.concatenated_segs_view_name
FROM
fnd_id_flexs a,
fnd_application_tl b
WHERE
a.application_id=b.application_id
AND a.id_flex_code='GL#';
CHART_OF_ACCOUNTS_ID maps to ID_FLEX_NUM column of FND_ID_FLEX_SEGMENTS
Define Value Sets
Value sets are the list of values. You can assign value set to each of your segments to restrict that segment to choose
values that you have already defined.
Visit https://the-cool-fox.blogspot.com
Application Developer Application Validation Set
Navigation
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows values present in the value set
SELECT
a.flex_value_set_id,
a.flex_value_id,
a.flex_value,
b.flex_value_meaning,
a.enabled_flag
FROM
fnd_flex_values a,
fnd_flex_values_tl b
WHERE
a.flex_value_id=b.flex_value_id
AND flex_value_set_id ='1012802'
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows validation types available for value sets
SELECT lookup_type,
lookup_code,
meaning,
description
FROM fnd_lookup_values
WHERE lookup_type='SEG_VAL_TYPES';
Define Values
Use the following form to define the values
Visit https://the-cool-fox.blogspot.com
Application Developer Application Validation Values
Navigation
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows validation types available for value sets
SELECT lookup_type,
lookup_code,
meaning,
description
FROM fnd_lookup_values
WHERE lookup_type='SEG_VAL_TYPES';
Define Flex Value Structure
Use the following form to define the flex value structure. Here we have defined one structure (XXTL_UK_ACCOUNTS) for
accounting flexfield
Visit https://the-cool-fox.blogspot.com
Application Developer Flexfield Key Segments
Navigation
Click on Segments to define segments
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows details about the flex structure
SELECT
a.application_id,
a.id_flex_code,
a.id_flex_num, --chart of account id
a.id_flex_structure_code,
b.id_flex_structure_name,
b.description
FROM
fnd_id_flex_structures a,
fnd_id_flex_structures_tl b
WHERE
a.id_flex_num = b.id_flex_num
AND a.application_id = '101'
AND a.id_flex_code = 'GL#'
AND a.id_flex_num = '50309';
Define Segments
Use the following form to define the segments. You can see that we have assigned value sets to each segment
Visit https://the-cool-fox.blogspot.com
Important SQLs
Visit https://the-cool-fox.blogspot.com
 Below SQL statement shows details about the flex segments
SELECT
a.application_id,
a.id_flex_code,
a.id_flex_num,
a.application_column_name,
a.segment_name,
a.segment_num,
a.flex_value_set_id,
b.description
FROM
fnd_id_flex_segments a,
fnd_id_flex_segments_tl b
WHERE
a.id_flex_num = b.id_flex_num AND
a.application_column_name = b.application_column_name
AND a.application_id = '101'
AND a.id_flex_code = 'GL#'
AND a.id_flex_num = '50309';

More Related Content

DOCX
Oracle EBS R 12 Core hr user manual
DOCX
Oracle inventory R12 Setup Guide
PDF
Oracle EBS HRMS SETUP
PDF
Oracle Financials R12 - GL STEP 1 - Chart Of Accounts
PDF
Oracle Payables R12 ivas
PDF
Oaf personalization examples
PDF
R12.2.4 india localization setup
PPTX
Approval Hierarchy in Oracle Apps
Oracle EBS R 12 Core hr user manual
Oracle inventory R12 Setup Guide
Oracle EBS HRMS SETUP
Oracle Financials R12 - GL STEP 1 - Chart Of Accounts
Oracle Payables R12 ivas
Oaf personalization examples
R12.2.4 india localization setup
Approval Hierarchy in Oracle Apps

What's hot (20)

PDF
Oracle applications sla r12 SLA- demos
DOCX
Accrual plan set up in oracle hrms
DOC
PDF
Oracle forms personalization
DOCX
Blanket purchase agreement and blanket release in oracle r12
DOC
Oracle Assets Period Closing
DOCX
Pick pack and ship confirm process in oracle apps
DOC
Oracle EBS R12 Payroll user manual
PDF
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
PDF
Creating business group in oracle apps
PPT
Oracle Fusion HCM vs E-Business Suite HRMS
ODT
R12:Payment Process Request (PPR)
DOCX
Elshayeb Expense Subinventory And Items Scenario
PDF
Oracle Fusion Trees
PDF
Oracle Apps Technical – Short notes on RICE Components.
PDF
Oracle r12 eb tax sql queries for functional implementers for troubleshooting...
PDF
5 enterprise structures
PDF
Oracle apps-interview-questions
PDF
Purchase Order Approval Using Approval Management Engine
PDF
R12 india localization guide
Oracle applications sla r12 SLA- demos
Accrual plan set up in oracle hrms
Oracle forms personalization
Blanket purchase agreement and blanket release in oracle r12
Oracle Assets Period Closing
Pick pack and ship confirm process in oracle apps
Oracle EBS R12 Payroll user manual
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Creating business group in oracle apps
Oracle Fusion HCM vs E-Business Suite HRMS
R12:Payment Process Request (PPR)
Elshayeb Expense Subinventory And Items Scenario
Oracle Fusion Trees
Oracle Apps Technical – Short notes on RICE Components.
Oracle r12 eb tax sql queries for functional implementers for troubleshooting...
5 enterprise structures
Oracle apps-interview-questions
Purchase Order Approval Using Approval Management Engine
R12 india localization guide
Ad

Similar to Understanding Flex Fields with Accounting Flexfields(Chart of Accounts) in Oracle Apps (20)

PPT
Flexfields.ppt
PDF
Details and Set-up of Other FlexFields in Oracle E-Business Suite
PDF
Dff creation good
PDF
Flex field guide
DOCX
Defining key flexfields
PPTX
Oracle_EBS_Technical.pptx
PPTX
Fusion scm professor Extensible flexfields eff
PDF
11.5.10. flexi fields guide
PDF
purchasing-setups-in-oracle-r12_compress.pdf
PPT
Core hr(ppt)
PDF
Revision booklet 6957 2016
PPTX
Sap abap
PPT
Database
PPTX
Introduction to Database Management Systems
PPT
GL_Training_Presentation_01010101010.ppt
PPT
Databases
PPT
PPT
PPT
Sql1
PDF
Adding A New Field
Flexfields.ppt
Details and Set-up of Other FlexFields in Oracle E-Business Suite
Dff creation good
Flex field guide
Defining key flexfields
Oracle_EBS_Technical.pptx
Fusion scm professor Extensible flexfields eff
11.5.10. flexi fields guide
purchasing-setups-in-oracle-r12_compress.pdf
Core hr(ppt)
Revision booklet 6957 2016
Sap abap
Database
Introduction to Database Management Systems
GL_Training_Presentation_01010101010.ppt
Databases
Sql1
Adding A New Field
Ad

More from Gurpreet singh (20)

PDF
Oracle Fusion REST APIs with Get Invoice API example
PDF
PL/SQL for Beginners - PL/SQL Tutorial 1
PDF
Creating ESS Jobs for Oracle Fusion BIP Reports
PDF
Introduction to Oracle Fusion BIP Reporting
PDF
Why Messaging system?
PPTX
Oracle Application Developmenr Framework
PDF
Java Servlet part 3
PDF
Oracle advanced queuing
PDF
Oracle SQL Part 3
PDF
Oracle SQL Part 2
PDF
Oracle SQL Part1
PDF
Generics and collections in Java
PDF
IO Streams, Serialization, de-serialization, autoboxing
PDF
Java Servlets Part 2
PDF
Defing locations in Oracle Apps
PDF
Assigning role AME_BUS_ANALYST
PDF
Introduction to Data Flow Diagram (DFD)
PDF
Ingenium test(Exam Management System) Project Presentation (Full)
PDF
Computer Graphics Notes
PDF
Learn Java Part 11
Oracle Fusion REST APIs with Get Invoice API example
PL/SQL for Beginners - PL/SQL Tutorial 1
Creating ESS Jobs for Oracle Fusion BIP Reports
Introduction to Oracle Fusion BIP Reporting
Why Messaging system?
Oracle Application Developmenr Framework
Java Servlet part 3
Oracle advanced queuing
Oracle SQL Part 3
Oracle SQL Part 2
Oracle SQL Part1
Generics and collections in Java
IO Streams, Serialization, de-serialization, autoboxing
Java Servlets Part 2
Defing locations in Oracle Apps
Assigning role AME_BUS_ANALYST
Introduction to Data Flow Diagram (DFD)
Ingenium test(Exam Management System) Project Presentation (Full)
Computer Graphics Notes
Learn Java Part 11

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Modernizing your data center with Dell and AMD
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Modernizing your data center with Dell and AMD
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
Big Data Technologies - Introduction.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology

Understanding Flex Fields with Accounting Flexfields(Chart of Accounts) in Oracle Apps

  • 1. Understanding Flex Fields with Accounting Flexfields(Chart of Accounts) Visit https://the-cool-fox.blogspot.com
  • 2. What is Flex field? A flexfield is a flexible data field that your organization can customize to your business needs without programming. A flexfield is a field which is made up of sub–fields, or segments. A flexfield appears on your form as a popup window that contains a prompt for each segment. Each segment has a name and a set of valid values. Visit https://the-cool-fox.blogspot.com FlexField = Flexible Field
  • 3. Example of Flex field As we said, flexfield is a field made up of sub–fields, or segments. It essentially means that it is combination of other fields. For example, if we take Full_Name as flexfield, then it will have the combination of other fields namely First_Name, Middle_Name and Last_Name Full_Name Flex Field First_Name Gurpreet Middle_Name Singh Last_Name Bhinder Visit https://the-cool-fox.blogspot.com
  • 4. Example of Flex field in Oracle Apps Best example of FlexFields in Oracle Apps can be Chart Of Accounts in which we define accounting flexfields structures. A chart of accounts is a listing of the names of the accounts that a company has identified and made available for recording transactions in its general ledger. Suppose a company has different departments and accounts, and want to record transactions as per this structure. So they can create their own accounting flexfields defining combination of like: Company, Department, Accounts. Visit https://the-cool-fox.blogspot.com In this screenshot, we can see GL_Accounts screen. If you start editing any account you will be presented with “Chart of accounts” dialog, showing all the segments ( like Company, Account, CostCentre etc.) and their currently assigned values. GL Responsibility Setup Accounts Combinations Navigation
  • 5. Types of Flex field Key Flex Field (KFF) is a field you can customize to enter multi-segment values such as part numbers, account numbers, and so on. Descriptive Flex Field (DFF) is a field you customize to enter additional information for which your Oracle Applications product has not already provided a field. Visit https://the-cool-fox.blogspot.com Flex Fields Key Flex Fields (KFF) Descriptive Flex Fields (DFF)
  • 6. Key Flex Field (KFF) A key flexfield is a field made up of segments, where each segment has both a value and a meaning A key flexfield is flexible enough to let you use any code scheme you want to describe an entity. When your organization initially installs an Oracle Applications product, your organization's implementation team customizes all the key flexfields in that product to use meaningful code segments to describe each key flexfield entity. Your organization decides for each key flexfield, how many segments an entity has, what each segment means, what values each segment can have, and what each segment value means. Your organization can also define rules that govern what combination of segment values are valid (cross-validation rules), or define dependencies among the segments. The result is that your organization can use the codes it needs rather than change its codes to meet someone else's requirements. The Accounting Flexfield in your Oracle application is an example of a key flexfield that identifies a unique chart of accounts. One organization may choose to customize the Accounting Flexfield to have three segments called Company, Department, and Account, while another organization may choose to customize the flexfield to have six segments called Company, Cost Center, Account, Product, Product Line, and Subaccount. KFF are must to have fields. For example, to record financials transaction you must define accounting flexfields so that you can record transactions to particular account. Visit https://the-cool-fox.blogspot.com
  • 7. Descriptive Flex Field (DFF) Descriptive Flex Field (DFF) is a field you customize to enter additional information for which your Oracle Applications product has not already provided a field. A descriptive flexfield gives you room to expand your forms, since Oracle Applications cannot predict all the possible information you may want to track. Your organization can use descriptive flexfields to capture additional information that is important and unique to your business. A descriptive flexfield appears in a block as a two character, unnamed field enclosed in square brackets [ ] Descriptive flexfields have two different types of segments, global and context–sensitive. A global segment is a segment that always appears in the descriptive flexfield pop–up window. A context–sensitive segment is a segment that may or may not appear depending upon what other information is present in your form. Visit https://the-cool-fox.blogspot.com
  • 8. KFF vs DFF Visit https://the-cool-fox.blogspot.com Key Flex Field (KFF) Descriptive Flex Field (DFF) A key Flexfield is a ‘Key’ building block of a module and is required for defining the structure of objects of that module, e.g. account structure, item structure etc. A descriptive Flexfield helps more in describing an object (like a transaction or screen) more than the available fields on that screen Key Flexfield captures mandatory business information like company department, account etc. Descriptive Flexfield captures additional business information like color of order item etc. Key Flexfield is mandatory Descriptive Flexfield is optional Key Flexfield is displayed like normal text item Descriptive Flexfield is displayed in square brackets [ ] Key Flexfield’s data is stored in the segments Descriptive Flexfield’s data is stored in the attributes Key Flexfield’s 30 Segment columns are reserved for Key Flexfield’s data Descriptive Flexfield’s 15 attribute columns are reserved for Descriptive Flexfield’s data
  • 9. Flex field SQLs Visit https://the-cool-fox.blogspot.com Flex field Structure Segments Value Sets Values SELECT * FROM fnd_id_flexs; SELECT * FROM fnd_id_flex_structures; SELECT * FROM fnd_id_flex_segments; SELECT * FROM fnd_flex_value_sets; SELECT * FROM fnd_flex_values;
  • 10. Steps to create Custom Key Flex fields Register a database table Register database columns Define Flex Fields Define Value Sets Define Flex field Structure Define Segments
  • 11. Register Table To register the existing database table in oracle apps use the below procedure of AD_DD package Visit https://the-cool-fox.blogspot.com Parameter Name Description p_appl_short_name Application Short Name p_tab_name Table Name p_tab_type Table Type (‘T’ - for enabling auto size or ‘S’ - for disabling auto size) p_next_extent Size of secondary extents (in kilobytes); NULL for partitioned tables p_pct_free Minimum percentage of free space in a block; NULL for partitioned tables p_pct_used Minimum percentage of used space in a block; NULL for partitioned tables
  • 12. Register Table Visit https://the-cool-fox.blogspot.com Table Type Valid types are: • Interim - Table is used only temporarily. • Seed Data - Table stores primarily setup data. • Special Flexfield Data - Table is used by flexfields. • Transaction Data - Table stores primarily transaction data. Initial Extent/Next Extent The initial and next extent sizes in kilobytes for your table. Values must be greater than 0. % Free/ % Used A value between 1 and 100 per cent. A Percent Free value must exist such that the sum of the Percent Used field and the Percent Free field is between 1 and 100. Min Extents/ Max Extents A value of 1 extent or more for the minimum extents value. The maximum extents value must be greater or equal to the minimum extents value. A low value for maximum extents helps prevent fragmentation of your database table. Auto Size Indicates whether the table should be larger or smaller for different customers. If the Auto Size button is not checked, the table should have the same size for all customers. In general, seed data tables should have AutoSize = No.
  • 13. Important SQLs Visit https://the-cool-fox.blogspot.com  Table type has values from TABLE_TYPE lookup: SELECT lookup_type, lookup_code, meaning, description FROM fnd_lookup_values WHERE lookup_type='TABLE_TYPE';  Check registered tables using: SELECT application_id, table_id, table_name, user_table_name, table_type, description FROM fnd_tables WHERE table_name='GL_CODE_COMBINATIONS';
  • 14. Register Column To register the table in oracle apps use the below procedure of AD_DD package Visit https://the-cool-fox.blogspot.com
  • 15. Register Column Visit https://the-cool-fox.blogspot.com Parameter Name Description p_appl_short_name Application Short Name p_tab_name Table Name p_col_name Column Name p_col_seq Column Sequence p_col_type Column Data Type p_col_width Column Size p_nullable Is NULL values allowed flag p_translate Is translate allowed flag p_precision Precision p_scale Scale
  • 17. Important SQLs Visit https://the-cool-fox.blogspot.com  Check columns of registered tables using: SELECT column_sequence, column_name, user_column_name, column_type, width, description, precision, scale FROM fnd_columns WHERE table_id=584 ORDER BY column_sequence;
  • 18. Important SQLs Visit https://the-cool-fox.blogspot.com  Column type has values from COLUMN_TYPE lookup: SELECT lookup_type, lookup_code, meaning, description FROM fnd_lookup_values WHERE lookup_type='COLUMN_TYPE';
  • 20. Define Flex Fields To register the key flexfield use the below form. As the below screenshot, shows you the Accounting Flexfield Visit https://the-cool-fox.blogspot.com Application Developer Flexfield Key Register Navigation
  • 21. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows important details about the Accounting Flexfield. SELECT a.application_id, b.application_name, a.id_flex_code, a.id_flex_name, a.description, a.application_table_name, a.unique_id_column_name, a.set_defining_column_name, a.concatenated_segs_view_name FROM fnd_id_flexs a, fnd_application_tl b WHERE a.application_id=b.application_id AND a.id_flex_code='GL#'; CHART_OF_ACCOUNTS_ID maps to ID_FLEX_NUM column of FND_ID_FLEX_SEGMENTS
  • 22. Define Value Sets Value sets are the list of values. You can assign value set to each of your segments to restrict that segment to choose values that you have already defined. Visit https://the-cool-fox.blogspot.com Application Developer Application Validation Set Navigation
  • 23. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows values present in the value set SELECT a.flex_value_set_id, a.flex_value_id, a.flex_value, b.flex_value_meaning, a.enabled_flag FROM fnd_flex_values a, fnd_flex_values_tl b WHERE a.flex_value_id=b.flex_value_id AND flex_value_set_id ='1012802'
  • 24. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows validation types available for value sets SELECT lookup_type, lookup_code, meaning, description FROM fnd_lookup_values WHERE lookup_type='SEG_VAL_TYPES';
  • 25. Define Values Use the following form to define the values Visit https://the-cool-fox.blogspot.com Application Developer Application Validation Values Navigation
  • 26. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows validation types available for value sets SELECT lookup_type, lookup_code, meaning, description FROM fnd_lookup_values WHERE lookup_type='SEG_VAL_TYPES';
  • 27. Define Flex Value Structure Use the following form to define the flex value structure. Here we have defined one structure (XXTL_UK_ACCOUNTS) for accounting flexfield Visit https://the-cool-fox.blogspot.com Application Developer Flexfield Key Segments Navigation Click on Segments to define segments
  • 28. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows details about the flex structure SELECT a.application_id, a.id_flex_code, a.id_flex_num, --chart of account id a.id_flex_structure_code, b.id_flex_structure_name, b.description FROM fnd_id_flex_structures a, fnd_id_flex_structures_tl b WHERE a.id_flex_num = b.id_flex_num AND a.application_id = '101' AND a.id_flex_code = 'GL#' AND a.id_flex_num = '50309';
  • 29. Define Segments Use the following form to define the segments. You can see that we have assigned value sets to each segment Visit https://the-cool-fox.blogspot.com
  • 30. Important SQLs Visit https://the-cool-fox.blogspot.com  Below SQL statement shows details about the flex segments SELECT a.application_id, a.id_flex_code, a.id_flex_num, a.application_column_name, a.segment_name, a.segment_num, a.flex_value_set_id, b.description FROM fnd_id_flex_segments a, fnd_id_flex_segments_tl b WHERE a.id_flex_num = b.id_flex_num AND a.application_column_name = b.application_column_name AND a.application_id = '101' AND a.id_flex_code = 'GL#' AND a.id_flex_num = '50309';