Sei sulla pagina 1di 14

FLEX FIELDS

Copyright Oracle Corporation, 2001. All rights reserved.

FLEX FIELDS

12-2

They are more flexible than the normal fields. It will be


used to capture the extra information and the key
information.

We have two types flex fields.

Descriptive Flexfields

Key Flexfields

DFF: DFF will be used to capture extra information from


the user without customizing the (.fmb) and altering the
database tables.

While working with DFF we will use the columns called


attribute1,attribute2. Attribute15

We can define maximum DFFs across the application.

Copyright Oracle Corporation, 2001. All rights reserved.

FLEX FIELDS

12-3

KFF:KFF will be used to capture the key information


which will be in code language. For every code there will
be a specific meaning.

We will use the segment columns to capture the KFF


information. We can only customize the existing KFF and
we are not suppose to create a new KFF.

Copyright Oracle Corporation, 2001. All rights reserved.

DFF CUSTOMIZATION

Find out the DFF by using database table name.


From Help Record History or
HelpDiagnosticsExamineEnter Password
Block$DESCRIPTIVE_FLEXFIELD$
Field <DFF Name>
ValueThe value field displays the DFF Name.

Copy the Title go to application developer Resp.

Open the DFF Form

12-4

Flex FieldDescriptiveRegisterQuery the DFF


based on the title

Go to the Columns form query the records based


on the title. Uncheck the checkbox called Freeze
Flexfield Definition.
Copyright Oracle Corporation, 2001. All rights reserved.

DFF CUSTOMIZATION

12-5

Select the segments button enter the field details, enter


the attribute name and save the transactions and check
the check box called Freeze Flexfield Definition.

Select the compile button system will submit the


concurrent program to generate flexfield view.

Go to forms and verify the DFF.

Copyright Oracle Corporation, 2001. All rights reserved.

Attaching the values to the DFF

12-6

We create the value set in the system administrator


and attach the value set to the DFF at the time of
segment creation.

We can also pass the default values to the DFF Fields


by selecting open Button in the segments form.

Select the default type either constant,profile,segment


and pass the default value.

We can also use range option to accept ascending


order values.

We can delete the DFF fields instead of deletion we can


disable the fields by un checking the enabled check
boxes. Whenever we require we check the check that.

We can hide/display the DFF field by using Displayed


check box, if we are hiding we need to pass defaults.
Copyright Oracle Corporation, 2001. All rights reserved.

Context Field

12-7

In DFF if we want to maintain multiple structures


we use the context field by specifying context
values and as well as structures.

Copyright Oracle Corporation, 2001. All rights reserved.

12-8

Copyright Oracle Corporation, 2001. All rights reserved.

DIFFERENCE B/N DFF AND KFF


KEY FLEX FIELD

DESCRIPTIVE FLEX FIELD

used to store the key information


about an organization
values are stored in Segment
columns
non-updatable and mostly have
only restricted values as input
do not have any context sensitive
segments
Key Flexfields are the mandatory
fields

used to store any additional related


information.
descriptive flexfield values are
stored in the Attribute columns
Descriptive Flexfield are updatable

12-9

Descriptive flexfields can be made


into context sensitive fields
descriptive flexfields are not
mandatory by default but can be
made mandatory

Copyright Oracle Corporation, 2001. All rights reserved.

KEY FLEX FIELDS

12-10

Copyright Oracle Corporation, 2001. All rights reserved.

FLEX FIELDS

12-11

Oracle flex fields is one of the most important parts of


Oracle Applications. It is because of the flex fields that
the Oracle Applications is so generic in nature and can
be used to suit any industry or organization. A flexfield,
as the name suggests, is a flexible data field that your
organization can customize to your business needs
without programming. A flexfield is a field made up of
subfields, or segments. While flexfields do not require
programming, they do allow you to perform significant
customizations to the Oracle Applications, so they do
require enough explanation for you to get the most out of
the features they provide.

Copyright Oracle Corporation, 2001. All rights reserved.

KFF PROCESS

Call the user exit from before report trigger

Call another user exit from after report trigger

SRW.USER_EXIT(FND SRWEXIT);

Define the following parameters

P_CONC_REQUEST_ID

P_STRUCT_NUM

P_FLEXDATA

Segment1||\n|| Segment2||\n|| Segment3. Segment30

Call another user exit from before report trigger

12-12

SRW.USER_EXIT(FND SRWINIT);

SRW.USER_EXIT(FND FLEXSQL) as follows

Copyright Oracle Corporation, 2001. All rights reserved.

SRW.REFERENCE(:P_STRUCT_NUM);
SRW.USER_EXIT('FND FLEXSQL
CODE="GL#"
NUM=":P_STRUCT_NUM"
APPL_SHORT_NAME="SQLGL"
OUTPUT=":P_FLEXDATA"
MODE="SELECT"
DISPLAY="ALL"');
Define the query as follows
SELECT &P_FLEX_DATA
FROM KFF_TABLE

WHERE KFF_STRUCTURE_COLUMN=:P_STRUCT_NUM

12-13

Copyright Oracle Corporation, 2001. All rights reserved.

Define the formula column and call another user exit from that.
:CP_FLEXFIELD :=null;
:CP_FLEXFIELD_PAD := null;
srw.reference (:C_FLEXDATA);
srw.reference (:P_STRUCT_NUM);
srw.user_exit ('FND FLEXIDVAL CODE="GL#"
NUM=":P_STRUCT_NUM"
APPL_SHORT_NAME="SQLGL"

DATA=":C_FLEXDATA"
VALUE=":CP_FLEXFIELD
PADDED_VALUE=":CP_FLEXFIELD_PAD"
DESCRIPTION=":CP_FLEXDESC"
DISPLAY="ALL
IDISPLAY="ALL"');
RETURN(:CP_FLEXFIELD);
12-14

Copyright Oracle Corporation, 2001. All rights reserved.

Potrebbero piacerti anche