-->
DECLARE
x_appl_short_name VARCHAR2(30) := 'you application short name eg SQLAP for payables';
x_appl_table_name VARCHAR2(30) := 'you custom table name';
BEGIN
ad_dd.register_table(x_appl_short_name, x_appl_table_name, 'T');
FOR cur_sh IN ( SELECT * FROM dba_tab_columns t
WHERE t.OWNER = x_appl_short_name
AND t.TABLE_NAME = x_appl_table_name
) LOOP
AD_DD.delete_column(x_appl_short_name, x_appl_table_name, cur_sh.column_name);
AD_DD.REGISTER_COLUMN ( x_appl_short_name,
x_appl_table_name,
cur_sh.column_name,
cur_sh.column_id,
cur_sh.data_type,
cur_sh.data_length,
cur_sh.nullable,
'N' );
END LOOP;
END;
Then go to Application Developer responsibility, menu->Application->Database->Table, see you custom table registered.
x_appl_short_name VARCHAR2(30) := 'you application short name eg SQLAP for payables';
x_appl_table_name VARCHAR2(30) := 'you custom table name';
BEGIN
ad_dd.register_table(x_appl_short_name, x_appl_table_name, 'T');
FOR cur_sh IN ( SELECT * FROM dba_tab_columns t
WHERE t.OWNER = x_appl_short_name
AND t.TABLE_NAME = x_appl_table_name
) LOOP
AD_DD.delete_column(x_appl_short_name, x_appl_table_name, cur_sh.column_name);
AD_DD.REGISTER_COLUMN ( x_appl_short_name,
x_appl_table_name,
cur_sh.column_name,
cur_sh.column_id,
cur_sh.data_type,
cur_sh.data_length,
cur_sh.nullable,
'N' );
END LOOP;
END;
Then go to Application Developer responsibility, menu->Application->Database->Table, see you custom table registered.