You are html tracking Visitor

Sunday, October 4, 2009

Initialize Apps

Initialize Apps:-
----------------

To run or execute the Oracle API from the back-end, we need to Initialize the Apps first.

We have API to Initialize the Apps.

To initialize apps using the API, we need to pass few IN parameter values.

The following is the script prepared to initialize apps based on the
Application, User-name and Responsibility name given.

Example:-

DECLARE
l_appl_id NUMBER;
l_appl_name VARCHAR2 (100) := 'PA';
l_user_id NUMBER;
l_user_name VARCHAR2 (100) := 'OPERATIONS';
l_responsibility_id NUMBER;
l_resp_name VARCHAR2 (200)
:= 'Projects, Vision Operations (USA)';
BEGIN


-- To get the Application ID of given Application.
SELECT application_id
INTO l_appl_id
FROM fnd_application
WHERE application_short_name = l_appl_name;

-- To get the User ID information of given user
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = l_user_name;

-- To get the Resp ID information of the given responsibility.
SELECT responsibility_id
INTO l_responsibility_id
FROM fnd_responsibility_tl
WHERE responsibility_name = l_resp_name AND application_id = l_appl_id;

--Initialixze the Application to use the API.
fnd_global.apps_initialize (l_user_id, l_responsibility_id, l_appl_id);
END;

I Hope the above script would help understanding about the Initializing the Apps API.

6 comments:

Santosh said...

once apps intialization is done
and when we again try to reintialize apps then we face an error why so .
this happens in 10g upgrade.

phani said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by a blog administrator.
Joe Prem Kumar P A said...

Hi, I am new to Technical stuff. I do understand the code. But my question is:

What exactly 'Initialization of Apps' means ? Will it wipe out the existing transactions ? or Refresh Tables ?

What is the purpose of this API?

phani said...

Well, usually when you run any program directly on Application. You do not need to initialize anything. But, if you want to run any Oracle API's directly from database. It would not run as it expects some parameters values filled or given. We initialize the Application using this API.

Unknown said...

The next time I learn a blog, I hope that it doesnt disappoint me as a lot as this one. I imply, I do know it was my option to read, however I actually thought youd have one thing interesting to say. All I hear is a bunch of whining about something that you might repair in the event you werent too busy in search of attention. online gambling casino