OAF (Oracle Applications Framework)

What is Oracle Application Framework?

Oracle Applications Framework (OAF) is the one of the current front-end application interface framework for browser-based pages. This framework edges well with Oracle eBusiness Suite and is built on technologies like BC4J, UIX, and XSS that form the core of the model and view layers. The Model View Controller (MVC) Design pattern architecture where all your business logic is placed on Model layer and the application user interface is built on.

OAF page registration in Oracle Apps:

Now we are going to learn about how to register the pages in apps.

First create the page in JDeveloper and compile the page.

After compiling the page now we have to move the class files to Java top in server.

Step1:-Move the class file from local machine to $java top

local machine path:- <JDeveloper patch directory>/jdevhome/jdev/myclasses

the class file is located in this folder move that to

Server path:- /oracle/apps/r12/visr12/apps/apps_st/comn/java/classes

Move the whole folder where your project located.

Here I am using WinSCP tool to move the files.


Step2:- XML import utility

After moving the files to the server we to import the xml files.

Open the command prompt.

change the directory to:- C:\dev\oaf\jdevbin\oaext\bin

after that import the following:-

make the fallowing path in a single line for that in notepad go format uncheck word wrap:-

import C:\dev\oaf\jdevhome\jdev\myprojects\BABU\oracle\apps\po\searchPRJ\webui\SearchPG.xml -rootdir C:\dev\oaf\jdevhome\jdev\myprojects -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ebsr12.com)(PORT=1521))(CONNECT_DATA=(SID=visr12)))"



(This is the path where the oaf pages stores in our local machine)

Give the proper username, password, host name, port name, db name)

From unix server:

Run the below command from the path.


java oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/BABU/oracle/apps/po/searchPRJ/webui/SearchPG.xml -rootdir $JAVA_TOP -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=focusthreadr12.com)(PORT=1521))(CONNECT_DATA=(SID= VISR12)))"

Step3:- Login to Oracle Apps

Switch to Application Developer Responsibility Select Function.

Application Developer--- > Function

Create a function


User Function Name:- (EMP_SEARCH)


After that go to Properties tab and select as

Type:- SSWA jsp function


Next Go to Web HTML tab and give the path of your page

HTML Call:- OA.jsp?page=/BABU/oracle/apps/po/searchPRJ/webui/SearchPG


Save and exit.

Step4:- Create a menu-attach the function

Application Developer--- > Menu

Provide the following details.

Menu:- (BABU_EMP)

User Menu Name:- (BABU_EMP)

Menu Type:- Standard.

Next give :-


Prompt:- (Emp Search)

Function:- EMP_SEARCH (Give the function Name u have created).

Step5:-Crete the Responsibility and attach the menu.

System Administrater-- >Security-- >ResponsibilityàDefine.

Provide the following

Responsibility Name:- (BABU_OAF)


Rsponsibility Key :- (BABU_OAF)

MENU :- BABU_EMP (Select the menu that u have created)



Application:- Purchasing.

Step6:-Attach the responsibility to user.

System Administrater-- >Security-- >User -- >Define.

This finishes the registration Switch to the responsibility u created .