Setting the Applications Context FND_GLOBAL.APPS_INITIALIZE in oracle applications.

Posted by Jiltin     17 February, 2009    4,901 views   

Use the API FND_GLOBAL.APPS_INITIALIZE to set the applications context in standalone sessions that were not initialized through normal means. Typically, you would use this API in external custom programs that are establishing their own connections.

procedure APPS_INITIALIZE(user_id IN number,resp_id IN number,resp_appl_id IN number security_group_id IN number);

USER_ID – The User ID number.
RESP_ID – The ID number of the responsibility.
RESP_APPL_ID – The ID number of the application TO which the responsibility belongs.
SECURITY_GROUP_ID – The ID number of the security GROUP. This argument IS automatically defaulted BY the API. The caller should NOT pass a value FOR it.

Usage: fnd_global.APPS_INITIALIZE (1010,20417,201);

This procedure sets up global variables and profile values in a database session. Call this procedure to initialize the global security context for a database session. You can use it for routines such as PL/SQL or other programs that are not integrated with either the Oracle Applications concurrent processing facility or Oracle Forms (both of which already do a similar initialization for a database session). The typical use for this routine would be as part of the logic for launching a separate non–Forms session from an established Oracle Applications form session. You can also use this procedure to set up a database session for manually testing application code using SQL*Plus. This routine should only be used when the session must be established outside of a normal form or concurrent program connection. You can obtain valid values to use with this procedure by using profile option routines to retrieve these values in an existing Oracle Applications form session.

begin
fnd_global.APPS_INITIALIZE(200131258,20004,51710);
end;

SELECT fnd_profile.value (‘RESP_ID’) FROM dual
SELECT fnd_profile.value (‘USER_ID’) FROM dual
SELECT fnd_profile.value (‘APPLICATION_ID’) FROM dual
SELECT TO_NUMBER (FND_PROFILE.VALUE( ‘LOGIN_ID ‘)) FROM dual
SELECT FND_PROFILE.VALUE(‘ORG_ID’) FROM dual
SELECT FND_PROFILE.VALUE(‘SO_ORGANIZATION_ID’) FROM dual
SELECT FND_PROFILE.VALUE(‘USERNAME’) FROM dual
SELECT FND_PROFILE.VALUE(‘GL_SET_OF_BKS_ID’) FROM dual

Reference:Oracle Applications Object Library

Following Google Searches Lead To This Post: fnd set org context
fnd_profile.INITIALIZE
global context oracle
how to pass business group id for sql script
set org context
how to check apps_initialize fnd_global
“APPS.FND_PROFILE”
fnd_global.apps
set org id context in R12
how to set org_id
oracle applications setting the operating unit in pl sql script
api to get global value in oracle apps
fnd_global.apps_initialize
what is the context name in oracle apps 11i
initializing oracle apps
how to use fnd_profile.value to get username in form in oracle
setting fnd_profile for responsibility id
apps initialize
fnd_global.initialize username responsibility name
fnd_profile.apps_initialize
current user id in oracle apps
to set Organization id in PL/SQL
getting session values in oracle apps
oracle set current org
oracle apps profile value not getting initialized
oracle set org context
oracle set org_id context
uses of fnd_profile.value
fnd_profile.org_id oracle apps
fnd_profile.value
how to find org_id in oracle order maagement
apps intilization in oracle apps from back end using fnd
how to set FND_GLOBAL.USER_ID
how to set org_id in oracle apps release 12
fnd_global.org_id
how to set org in reports in R12
fnd_global.initialize
oracle apps how to find the resp_id
find org_id oracle apps
fnd_global.
identifier ‘fnd_profile.value’ must be declared + oracle apps
how to use org context in oracle apps
apps initialize in r12 backend
HOW TO USE FND_GLOBAL.INITIALIZE IN ORACLE APPLICATIONS
fnd_global userid
name and value parameter in fnd_global.initialize procedure
org id from profile in valusets + oracle apps
fnd_global.apps_initialize (
fnd_global in pl/sql
apps.fnd_global.apps_initialize
apps_initialize should not be used
can i use fnd_profile.set() in forms
fnd_global.VALUE
how to set “profile value” from plsql
CONCURRENT PROGRAM+org_id+ORACLE APPS
Oracle Applications Set Org_id
APPS.FND_PROFILE.VALUE(’ORG_ID’
set org context in r12
set oracle organizational context sql
set oracle org context
get value from fnd_profile api
select fnd_profile.value(’ORG_ID’) from dual;
set context using fnd
setting org_id in oracle reports
apps.fnd_profile.value(’RESP_ID’)
oracle apps set global org
fnd set context
how to set org_id in oracle report
oracle application context
oracle apps how to set context
oracle “change operating unit”
fnd_global.apps_initialize in unix
r12 initialize
$PROFILES$.GL_SET_OF_BKS_ID
oracle forms functions user_id
oracle apps change operating units plsql
change operating unit from Backend
FND_GLOBAL.APPS_INITIALIZE
Oracle setting apps context
oracle Apps initialization code in forms
oracle Apps_initialize code in forms
set org_id in oracle apps
“Fnd_Global.Apps_Initialize”
“FND_PROFILE.VALUE”
fnd_global and fnd_profile differences
fnd_profile.value ‘GL_SET_OF_BKS_ID+multi org
FND_PROFILE.VALUE + ORAGNIZATION NAME
oracle 11i setting org_id in sql
how to get the apps login user name in oracle forms
oracle fnd context
oracle r12 setting org context
how to get the operating unit value for a session + oracle apps 11i
find the responsibility from oracle forms oracle apps
fnd_profile.set org_id in oracle apps
GL_SET_OF_BKS_ID table
fnd_profile in oracle forms
calling fnd_profile.value(’USER_ID’) in forms
org_id in oracle applications
oracle plsql get application_id
fnd apps.initialize
fnd apps initialize
oracle apps apps_initialize
set org in oracle apps plsql
oracle context value management R12
how to set multiple variables in oracle context
FND_PROFILE.VALUE responsibility
oracle API to get current responsibility
oracle api+setting application responsibilities
how to set application_id from oracle reports set variables
oracle context variable
How to get User Id in Oracle Apps Report
GETY PROFILE VALUES IN CUSTOMIZED FORMS IN ORACLE APPS
how to intialize responsibility name in oracle apps
setting org in pl sql in oracle apps
Fnd_Global.User_Id
org id setup in custom form R12
fnd_global.security_group_id
fnd_global.ORG
apps.initialize
how to call fnd_global within a oracle form?
Can I call fnd_global from a oracle form?
org context + org_id profile
fnd_global.apps_initialize context
oracle apps set context
setting orgid in oracle apps
how to set application session in oracle apps
how get the userid of a oracle session in oracle apps
how to get profile org_id in oracle apps
fnd_global session not closed
how to find resp_id for user_id from tables in oracle
fnd_globalapps_initialize oracle forms
apps_initialize sessions close
how to set the responsibility id from back end in oracle apps
how to set the responsibility from back end in oracle apps
SELECT Fnd_Profile.VALUE(’USER_ID’) FROM dual;
how to set fnd_profile dynamically
oracle r12 org context
how to set org context in plsql in rel 12
R12 applications context
how to get the apps user name in oracle reports
how to get profile value in oracle reports
fnd_profile.value not working in report
fnd_global session management
fnd_global session not closing
.FND_GLOBAL.VALUE(’ORG_ID’) + R12
fnd_profile org_id
responsibility id for profile values in Oracle apps
How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
fnd_global.apps_initialize 11i
set fnd_profile.value
fnd_global package
apps.fnd_profile.value org_id
“SELECT fnd_profile.value(’ORG_ID’) from dual;”
current context fnd_global.user_id
How to get security_group_id Oracle
how to intialize in r12
how to find org_id from $profile$+oracle apps 11i
setting org id for oracle custom application
sql context oracle responsibility
fnd_global user_id resp_id “-1″
FND_GLOBAL IDENTIFIER
fnd_global.apps_initialize SQL
how to set profile using fnd_global
setting org_id in sql session
oracle fnd set org context
set org context in oracle
set fnd_global in sql plus
global variable setting+oracle apps 11i
initializing session in apps reports
fnd_global org_id initialize
R12 get current Org Id
oracle fnd_profile.value
fnd_profile.VALUE(’GL_SET_OF_BKS_ID’)
Oracle Apps how to set user Responsbility Context
purpose of setting org context+oracle apps
fnd_profile.set_org in oracle apps
retrieving org id for a session in R12
fnd_profile.VALUE(’USER_ID’)
how to set the org_id in oracle applications 12i
setting applications context return code 3
access fnd_global package to user
how to set org context in oracle pl sql code
apps set org context
oracle fnd_global to get user name
fnd_profile org_id in shell script
set apps context
nd_profile.value(’user_id’) & fnd_global.user_id and fnd_profile.value(’user_id’)
fnd_global.apps_initialize org_id
how to set org context in pl sql
r12 apps initialize
how to initialize apps in oracle
fnd_global plsql
how to find organization id of a user in oracle
fnd_global.apps_initialize in pl/sql
how to set the business group context in oracle
how to set org context in rel 12 in sql
initialize “org id”
CALL fnd_global.APPS_INITIALIZE
oracle FND_Profile.Get
close fnd_global session
R12 set context org_id
oracle apps profile value userid
fnd_profile.value(’GL_SET_OF_BKS_ID’) is not returning value
oracle difference APPS.FND_GLOBAL.ORG_ID and FND_PROFILE.VALUE(’ORG_ID’)
oracle difference APPS.FND_GLOBAL.ORG_ID
how to get operating unit name from fnd_profile
set oracle apps context
how to find org_id with sql plus
ORACLE+fnd+set+context
set org context in oracle apps
fnd_global apps_initialize
Oracle apps initialize from forms
set context in oracle R12
oracle apps how to change context from within the application
forms not launcing in oracle applications r12
how to get the organization id from the responsibility in oracle application
oracle apps getting current user
getting profile value in oracle report
fnd user_id in oracle
identifier ‘FND_GLOBAL.USER_ID’ must be declared
gl_set_of_bks_id
fnd_global.apps_initialize in r12
fnd_global
apps_initialize in r12
fnd_profile option get specific value
oracle apps ,get the current login user id or name
fnd_profile.value(’SO_ORGANIZATION_ID’)
what is the oracle context name
setting profile option value in oracle applications from the backend
fnd_profile.value(’GL_SET_OF_BKS_ID’) not working in R12
how to get the operating unit id using pl sql form fnd table
oracle+fnd_profiles+responsibility
fnd_global.APPS_INITIALIZE forms
reporting context oracle applications
oracle apps sql fnd organization
fnd_profile.VALUE to get org name
global variables oracle applications
fnd_profile details
fnd_profile.set
set application context in oracle apps
oracle pl/sql fnd set organization context
FND_GLOBAL.INITIALIZE.
org setup in oracle apps in sqlplus in r12
fnd_profile.VALUE (’GL_SET_OF_BKS_ID’)
how to see FND_PROFILES in DB oracle
FND_PROFILE (’ORG_ID’, )
initialization from pl\sql – org
oracle form org_id setting
oracle applications: how to find fnd user session ids
how to set the context in Release 12 database
how to get custom responsibilities in oracle apps from backend tables
FND_GLOBAL.INITIALIZE
oracle fnd_profile.value form
fnd_profile.value ‘org_id’
oracle global ap settings
R12 apps initialize
setting oracle apps context in R12
oracle applications set fnd_global values
oracle profile option RESP_ID
business group id in oracle apps
PROFILE VALUE FROM FND_GLOBAL
“set org_id”
how to use apps initialization in oracle forms fnd_global.apps
how to check the form sessions oracle apps
select FND_PROFILE + oracle apps dba
fnd_global.apps_initialize in custom forms
insert oracle applications username instead of database username in oracle forms
Set global variables and session context in oracle
fnd_profile.value(’GL_SET_OF_BKS_ID’); oracle foms
ORG_ID + oracle apps + context
oracle set context
Setting Org Context in Oracle Reports in R12
current username FND_GLOBAL.USER_ID
SETTING CURRENT USER oracle applications 12
How to initialize the ORG set up + Oracle application
fnd_global.apps_initialize in shell script
fnd_global.apps_initialize from shell script
return code in fnd_global package in oracle
set conext org id oracle
r12 fnd_profile.value oracle apps
user_id,resp_id
apps initialize in r12
apps_initialize organization
oracle fnd set context
fnd set profile org_id
fnd set context org_id
fnd_global. set org context
fnd_global.set org
oracle fnd_global.apps_initialize
fnd_profile.value ‘user_id’
apps_initialize
how to set user_ID profile in oracle apps
how to get the organization for a login in oracle apps
user_id in oracle reports
fnd_global.apps_initialize r12
operating unit context + oracle apps
fnd_profile..INITIALIZE
oracle apps->which api used find login user id
how to set User Profile Settings in oracle apps
fnd_profile.value(’GL_SET_OF_BKS_ID’) value is not coming for custom responsibility
HOW TO CHANGE THE FND_GLOBAL.ORG_ID VALUE
getting organization name from org_id in oracle apps
initialize organization in oracle apps
Fnd_Global.apps_initialize(user_id =>
fnd_profile.value for responsibility ID
how to get resp_id in oracle apps
how to set org context in forms in R12
fnd_profile,value
oracle apps initialize
apps set user_id
FND_GLOBAL.APPS_INITIALIZE must be declared
release 12 application context initialization PLSQL
fnd_global must be declared
“fnd_global.APPS_INITIALIZE” must be declared
pl/sql set org_id
sql script select oracle apps username apps login
oracle reports server+global application context values
set operating unit from backend in Oracle R12
security_group_id apps initialize
oracle apps initialize apps variables
oracle application_id values
setting org id in oracle report
fnd_global.value(’userid’);
fnd_global set context
fnd_global set context for responisbility
set responsibility context in oracle apps
how to set org context
fnd application set org context
initialize org_id in oracle reports
initialization of oracle apps

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : Oracle Applications Tags : , ,

Comments
December 9, 2009

It was a great script sir. I learn a new function here, that is trigger_error() function. This script would help me much if i forgot which wordpress function i’ve ever modified using add_filter().

Thank you so much sir..

Posted by wholesale
Leave a comment

(required)

(required)