[Home] [Help]
142: FND_PROFILE.GET('RESP_APPL_ID', x_application_id);
143:
144: fnd_global.APPS_INITIALIZE (p_user_id, x_responsibility_id, x_application_id);
145: --bug 5245568; need to call init to intialize MOAC
146: mo_global.init('PON');
147:
148: if(l_debug_enabled = 'Y') then
149: x_progress := ++l_progress || l_api_name || ' : after retrieving resp_id and resp_appl_id';
150: log_message(x_progress);
4507:
4508: log_message(x_progress);
4509:
4510: -- Get the current policy
4511: v_old_policy := mo_global.get_access_mode();
4512: v_old_org_id := mo_global.get_current_org_id();
4513:
4514: if (fnd_log.level_statement >= fnd_log.g_current_runtime_level) then
4515: fnd_log.string(
4508: log_message(x_progress);
4509:
4510: -- Get the current policy
4511: v_old_policy := mo_global.get_access_mode();
4512: v_old_org_id := mo_global.get_current_org_id();
4513:
4514: if (fnd_log.level_statement >= fnd_log.g_current_runtime_level) then
4515: fnd_log.string(
4516: fnd_log.level_statement,
4518: 'old_policy = ' || v_old_policy || ', old_org_id = ' || v_old_org_id);
4519: end if;
4520:
4521: -- Set the connection's policy context
4522: mo_global.set_policy_context('S', x_pdoi_header.org_id);
4523:
4524: --create BPA/CPA/SPO
4525: IF x_pdoi_header.contract_type = 'CONTRACT' THEN
4526: x_progress := '65: GENERATE_POS: Just before create_CPA interface id '||x_interface_header_id;
4682:
4683: END IF;--END if contractType is CONTRACT
4684:
4685: -- Set the policy context back
4686: mo_global.set_policy_context(v_old_policy,v_old_org_id);
4687:
4688: END IF;
4689:
4690: IF (x_error_code = PO_SUCCESS) THEN
4876:
4877: fnd_global.APPS_INITIALIZE (p_user_id, x_responsibility_id, x_application_id);
4878:
4879: -- Get the current policy
4880: v_old_policy := mo_global.get_access_mode();
4881: v_old_org_id := mo_global.get_current_org_id();
4882:
4883: if (fnd_log.level_statement >= fnd_log.g_current_runtime_level) then
4884: fnd_log.string(
4877: fnd_global.APPS_INITIALIZE (p_user_id, x_responsibility_id, x_application_id);
4878:
4879: -- Get the current policy
4880: v_old_policy := mo_global.get_access_mode();
4881: v_old_org_id := mo_global.get_current_org_id();
4882:
4883: if (fnd_log.level_statement >= fnd_log.g_current_runtime_level) then
4884: fnd_log.string(
4885: fnd_log.level_statement,
4887: 'old_policy = ' || v_old_policy || ', old_org_id = ' || v_old_org_id);
4888: end if;
4889:
4890: -- Set the connection's policy context
4891: mo_global.set_policy_context('S', p_pdoi_header.org_id);
4892:
4893: x_doc_type_to_create := p_pdoi_header.contract_type;
4894:
4895:
5018: p_pdoi_header.update_sourcing_rules
5019: );
5020:
5021: -- Set the org context back
5022: mo_global.set_policy_context(v_old_policy, v_old_org_id);
5023:
5024: end if;
5025:
5026: