Setting the Applications Context FND_GLOBAL.APPS_INITIALIZE in oracle applications:
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
Subscribe to:
Post Comments (Atom)
AIM Document List
AIM Document List Business Process Architecture (BP) BP.010 Define Business and Process Strategy BP.020 Catalog and Analyze P...
-
SELECT DISTINCT pah.object_id, pha.segment1 AS PO_NUMBER, pah.Action_Code, pah.Action_Date, papf.full_name AS performed_by, pah.Note,...
-
Step By Step Guide to Creating a Custom Application in R12 : PURPOSE: This note describes the basic steps needed to setup a Custom Top wit...
-
Setting the Applications Context FND_GLOBAL.APPS_INITIALIZE in oracle applications: Use the API FND_GLOBAL.APPS_INITIALIZE to set the applic...
Simple and Gud,
ReplyDeleteThanks 4 Sharing...
Thanks for explaining the use the API FND_GLOBAL.APPS_INITIALIZE to set the applications context in standalone sessions that were not initialized through normal means.
ReplyDeletesap project systems
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteDear Mr.Sreekanth,
ReplyDeleteI create one Fixed asset item type from Backend using API(EGO_ITEM_PUB.Process_items) , item has been created but mistakenly i select Inventory_Item_fLAG=Y which is not allow in Fixed Asset template , now i want to uncheck Inventory Item opiton but system is not allowing .Please guide me what i can do. Thanks
Australia Best Tutor is one of the best Online Assignment Help providers at an affordable price. Here All Learners or Students are getting best quality assignment help with reference and styles formatting.
ReplyDeleteVisit us for more Information
Australia Best Tutor
Sydney, NSW, Australia
Call @ +61-730-407-305
Live Chat @ https://www.australiabesttutor.com
Our Services
Online assignment help Australia
my assignment help Australia
assignment help
help with assignment
Online instant assignment help
Online Assignment help Services
Each department of CAD have specific programmes which, while completed could provide you with a recognisable qualification that could assist you get a job in anything design enterprise which you would really like.
ReplyDeleteAutoCAD training in Noida
AutoCAD training institute in Noida
Best AutoCAD training institute in Noida
Hi,
ReplyDeleteI need clarification on Oracle apps conversions
Client using Oracle apps 11i data base now client wants to upgrading data base from 11i to Oracle apps 12c data base
My question is how to move whole data from 11i version to
Apps 12c database using conversions?
Please provide the solution in step by step process.
Thanks,
Sudhakar
WOW! Really Nice Post! I personally believe that to maintain the standard of a blog all the hacks mentioned above are important. All points discussed were worth reading
ReplyDeleteand I’ll surely work with them all one by one.
CEH Training In Hyderbad
And indeed, Iam just always astounded concerning the remarkable things served by you. Some of the facts on this page are undeniably the most effective I have had.
ReplyDeletebest Dotnet Training in Chennai
Matlab Training in Chennai
Embedded Training in Chennai
SAS Training in Chennai
Powerbi Training in Chennai
R Programming Training in Chennai
Javascript Training in Chennai
Top Oracle DBA Training in Chennai
RPA Training in Chennai
UIpath Training in Chennai