Creating Custom Applications
Creating Custom Applications
Custom Applications are required if you are creating new forms, reports, etc.
This allows you to segregate your custom written code from the standard seeded functionality
that Oracle Applications provide.
Let’s go a head and create a custom application and its related elements.
Menu : XXERP_CUSTOM_MENU
Assumptions:
APPL_TOP: /d01/oracle/PROD/apps/apps_st/appl
cd $APPL_TOP
mkdir XXERP
mkdir XXERP/12.0.0
mkdir XXERP/12.0.0/admin
mkdir XXERP/12.0.0/admin/sql
mkdir XXERP/12.0.0/admin/odf
mkdir XXERP/12.0.0/sql
mkdir XXERP/12.0.0/bin
mkdir XXERP/12.0.0/reports
mkdir XXERP/12.0.0/reports/US
mkdir XXERP/12.0.0/forms
mkdir XXERP/12.0.0/forms/US
mkdir XXERP/12.0.0/lib
mkdir XXERP/12.0.0/out
mkdir XXERP/12.0.0/log
cd $APPL_TOP
customPROD_blrrdebs2.env
customfile=/d01/oracle/PROD/apps/apps_st/appl/customPROD_blrrdebs2.env
if [ -f $customfile ]; then
. /d01/oracle/PROD/apps/apps_st/appl/customPROD_blrrdebs2.env
fi
. /d01/oracle/PROD/inst/apps/PROD_blrrdebs2/ora/10.1.2/PROD_blrrdebs2.env
. /d01/oracle/PROD/apps/apps_st/appl/PROD_blrrdebs2.env
Make the following entry to the application context file - PROD_blrrdebs2.xml (marked in red)
vi $INST_TOP/appl/admin/ PROD_blrrdebs2.xml
oa_enabled="FALSE">/d01/oracle/PROD/apps/apps_st/appl/au/12.0.0
oa_enabled="FALSE">/d01/oracle/PROD/apps/apps_st/appl/XXERP/12.0.0
OP>
cd $INST_TOP/admin/install
sh adgentopfile.sh
XXERP /d01/oracle/PROD/apps/apps_st/appl
4) Create a Database user and assign roles (Schema gets created automatically)
Navigate to Application-->Register
Basepath = XXERP_TOP
Naviate to Security-->Oracle-->Register
Password = XXERP
Privilege = Enabled
Install Group = 0
Navigate to Security-->Oracle-->DataGroup
Click on "Copy Applications from" and pick Standard data Group, then add the following entry.
This will act as a placeholder for any custom reports we wish to make available for the Custom
Responsibility (which is defined at a later stage)
Navigate to Security-->responsibility-->Request
Code = XXERP
We will not define any requests to add to the group at this stage, but you can add some now if
required.
9) Create custom menu
This will act as a placeholder for any menu items we wish to make available for the Custom
Responsibility (which is defined at a later stage).
Navigate to Application-->Menu
Menu = XXERP_CUSTOM_MENU
Menu Type =
Seq = 100
Submenu =
Seq = 110
Submenu =
Navigate to Security-->Responsibility-->Define
Navigate to Security-->User-->Define
Create the source code files in the XXERP_TOP directory appropriate for the type of object. For
example forms would be located in $XXERP_TOP/forms/US or package source code in
$XXERP_TOP/admin/sql for example.
Database Objects such as tables, indexes and sequences should be created in the XXERP
schema, then you need to
a) Grant all privilege from each custom data object to the APPS schema.
For example : logged in as XXERP user
grant all privileges on myTable to apps;
Other database objects such as views and packages should be created directly in the APPS
schema.
Creating a custom applicaiton is the first and foremost thing a Technical consultant / DBA does
before creating any new object. Kindly provide your feedback to make this article better.