Friday, June 29, 2012

Set Org Context in Oracle Apps 11i and R12

R12

set_policy_context
   Sets the application context for the current org and the access
   mode to be used in server side code for validations as well as in
   the Multi-Org security policy function.
   
   Arguments
   p_access_mode    - specifies the operating unit access. 'S' for Single, 'M' for Multiple, 'A' for All.
   p_org_id              - org_id of the operating unit.
 exec mo_global.set_policy_context('S','&org_id');
           OR

           MO_GLOBAL.INIT('APPL_SHORT_CODE');



11i
  1.  Set Org Context 11i
  2. Begin
    fnd_client_info.set_org_context(&org_id);
    End;

No comments:

Post a Comment