Professional Documents
Culture Documents
1. The customized table should have the same structure like a standard APPS table. Make
sure the table has atleast the following columns.
LAST_UPDATE_DATE
LAST_UPDATED_BY
CREATION_DATE
CREATED_BY
ATTRIBUTE_CATEGORY
ATTRIBUTE1
ATTRIBUTE2
ATTRIBUTE3
ATTRIBUTE4
ATTRIBUTE5
ATTRIBUTE6
ATTRIBUTE7
ATTRIBUTE8
ATTRIBUTE9
ATTRIBUTE10
ATTRIBUTE11
ATTRIBUTE12
ATTRIBUTE13
ATTRIBUTE14
ATTRIBUTE15
2. Create the table in APPS from SQL* PLUS using the create table command.
3. Register the table in APPS in the following way.
a)First register the table by executing the following code from SQL *PLUS.
EXECUTE ad_dd.register_table
(p_appl_short_name,p_tab_name,p_tab_type,p_next_extent,p_pct_free, p_pct_used);
Example:
EXECUTE ad_dd.register_table('FND', 'FLEX_TEST', 'T',8, 10, 90);
Here
FNDShort name of the Application which will use the table. Put the short name of the
application ur table refers to.
FLEX_TESTName of the table.
TTable type. Use ’T’ if it is a transaction table (almost all application tables), or
’S’ for a ”seed data” table(used only by Oracle Applications products).
8Next extent .
10Pct free
90Pct used
EXECUTE ad_dd.register_column
(p_appl_short_name,p_tab_name,p_col_name,p_col_seq,p_col_type,p_col_width,
p_nullable,p_translate,p_precision,p_scale);
1
Example:
c) After u have executed all these statements successfully then COMMIT the transactions
otherwise it will be rollbacked. Make sure u commit the transaction.
4. Go to ApplicationDatabaseTable.
5. Query the form with ur table name. If no record appears then u might not have
commited the transaction as said before. Only when u commit u will see ur table in this
form.
2
6. Go to flexfields- descriptiveRegister
Note: The APPLICATION NAME and TABLE APPLICATION need not be the same.
3
CUSTOMISING A FORM WITH DFFs.
1) Create a block with the base table. Include a text item (named say DESC_FLEX)
in the block and in the property sheet mention the class as TEXT-ITEM-DESC-
FLEX and put it in the layout editor.
2) For all the DFF columns set the canvas property to null. They should exist in
the form.
3) In the WHEN-NEW-FORM-INSTANCE trigger of the form enable the DFF. To
enable the DFF the code to be written is
FND_DESCR_FLEX.DEFINE(
BLOCK=>'TEST_FLEX',
FIELD=>'DESC_FLEX',
APPL_SHORT_NAME=>'FND',
DESC_FLEX_NAME=>'TEST_DFF’);
Here TEST_FLEX is the Block name. Give the relevant block name of ur form.
DESC_FLEX is the item we have created in the block.
FND is the application short name in which the table has been registered and
DFF_TEST is the name of the DFF.
4) To Pop Up the DFF screen add the following code to the WHEN-NEW-ITEM-
INSTANCE trigger at form level.
FND_FLEX.EVENT('WHEN-NEW-ITEM-INSTANCE');
5) Register the form and test.