Mar 30, 2010

How to Set Organization? SET MO.

/*
select * from fnd_user where user_id=4080
select * from fnd_responsibility where responsibility_id=20707
select * from fnd_application where application_id=201
*/

begin
  fnd_profile.put('USER_ID', 0);--SYSADMIN
  fnd_profile.put('RESP_ID', 20432);--PA
  fnd_profile.put('RESP_APPL_ID', 275);--PA
  apps.fnd_client_info.set_org_context(to_char(183));
end;
/

begin
dbms_application_info.set_client_info('Org_id');
end;



To Retriew the records from Org dependent Views on Sql Developer/Toad/Sql * Plus

begin
fnd_client_info.set_org_context(Org_id);
end;

No comments:

OraApps Search

Custom Search

Search This Blog