Professional Documents
Culture Documents
Note: MO: Default Operating Unit is not required and can be left
empty however I have had several bugs in R12.1.1 and R12.1.2
related to missing default operating unit in IEX so try leaving it
empty first and if you get problems put a default value in this and
try again.
So Oracle has created MOAC but forgot a few details here and there.
Technical
APPS.AR_PAYMENT_SCHEDULES on
AR.AR_PAYMENT_SCHEDULES_ALL
and:
• dbms_application_info.set_client_info(var_organization_id);
R12 uses the Virtual Private Database (VPD) technology for MOAC
security.
Synonym APPS.AR_PAYMENT_SCHEDULES on
AR.AR_PAYMENT_SCHEDULES_ALL
• mo_global.set_policy_context(‘S’,var_organization_id);
• mo_global.set_policy_context(‘M’,null);
• dbms_application_info.read_client_info(var_organization_id);
Which would return your current org_id however in R12 you need to
do the following:
• select organization_id
from HR_ORGANIZATION_UNITS
where MO_GLOBAL.CHECK_ACCESS(organization_id)=’Y’
;
I usually use the following script:
declare
l_user_id number;
l_responsibility_id number;
l_application_id number;
l_organization_id number;
begin
-- dbms_output.enable;
select application_id,responsibility_id
into l_application_id,l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'General Ledger Super User';
select user_id
into l_user_id
from fnd_user where user_name='ORACLE';
select organization_id
into l_organization_id
from hr_all_organization_units
where name='Vision Operations';
fnd_global.apps_initialize(l_user_id,l_responsibility_id,l_application_id);
--mo_global.set_policy_context('S',l_organization_id);
mo_global.set_policy_context('M',l_organization_id);
-- dbms_output.put_line('Done...');
end;
Concurrent Requests