DBA Data[Home] [Help]

APPS.OKC_COPY_CONTRACT_PVT dependencies on OKC_CONTEXT

Line 3379: okc_context.set_okc_org_context(p_chr_id => l_cimv_rec.dnz_chr_id);

3375: AND dnz_chr_id = l_cimv_rec.dnz_chr_id;
3376:
3377: IF l_c <> -003 THEN --if for l_c
3378: -- Need to set the org as per new contract id
3379: okc_context.set_okc_org_context(p_chr_id => l_cimv_rec.dnz_chr_id);
3380:
3381: l_cimv_rec.object1_id1 := l_c;
3382:
3383: OKC_CONTRACT_ITEM_PUB.create_contract_item(

Line 5378: okc_context.set_okc_org_context;

5374:
5375: /* The following logic of setting the context has been moved here from below becasue of the requirement of Euro Conversion - Bug 2155930 */
5376: -- Sets the context.
5377: IF p_override_org = 'N' THEN
5378: okc_context.set_okc_org_context;
5379: ELSE
5380: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5381: END IF;
5382:

Line 5380: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);

5376: -- Sets the context.
5377: IF p_override_org = 'N' THEN
5378: okc_context.set_okc_org_context;
5379: ELSE
5380: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5381: END IF;
5382:
5383: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5384: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN

Line 5383: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR

5379: ELSE
5380: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5381: END IF;
5382:
5383: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5384: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN
5385: OKC_API.SET_MESSAGE('OKC','OKC_INCOMPATIBLE_ORG');
5386: x_return_status := OKC_API.G_RET_STS_ERROR;
5387: RAISE G_EXCEPTION_HALT_VALIDATION;

Line 5384: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN

5380: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5381: END IF;
5382:
5383: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5384: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN
5385: OKC_API.SET_MESSAGE('OKC','OKC_INCOMPATIBLE_ORG');
5386: x_return_status := OKC_API.G_RET_STS_ERROR;
5387: RAISE G_EXCEPTION_HALT_VALIDATION;
5388: END IF;

Line 5565: okc_context.set_okc_org_context;

5561: /* The following logic of setting the context has been moved in the top for the requirement of Euro Conversion- Bug 2155930 */
5562: /*
5563: -- Sets the context.
5564: IF p_override_org = 'N' THEN
5565: okc_context.set_okc_org_context;
5566: ELSE
5567: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5568: END IF;
5569:

Line 5567: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);

5563: -- Sets the context.
5564: IF p_override_org = 'N' THEN
5565: okc_context.set_okc_org_context;
5566: ELSE
5567: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5568: END IF;
5569:
5570: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5571: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN

Line 5570: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR

5566: ELSE
5567: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5568: END IF;
5569:
5570: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5571: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN
5572: OKC_API.SET_MESSAGE('OKC','OKC_INCOMPATIBLE_ORG');
5573: x_return_status := OKC_API.G_RET_STS_ERROR;
5574: RAISE G_EXCEPTION_HALT_VALIDATION;

Line 5571: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN

5567: okc_context.set_okc_org_context(l_chrv_rec.authoring_org_id,l_chrv_rec.inv_organization_id);
5568: END IF;
5569:
5570: IF l_chrv_rec.authoring_org_id <> okc_context.get_okc_org_id OR
5571: l_chrv_rec.inv_organization_id <> okc_context.get_okc_organization_id THEN
5572: OKC_API.SET_MESSAGE('OKC','OKC_INCOMPATIBLE_ORG');
5573: x_return_status := OKC_API.G_RET_STS_ERROR;
5574: RAISE G_EXCEPTION_HALT_VALIDATION;
5575: END IF;

Line 5596: OKC_CONTEXT.SET_OKC_ORG_CONTEXT(p_chr_id => x_chrv_rec.id);

5592: g_chrv_rec := x_chrv_rec;
5593: x_chr_id := x_chrv_rec.id; -- passes the new generated id to the caller.
5594:
5595: -- skekkar bug 2794905 (base bug 2774888) set the context here for the new contract
5596: OKC_CONTEXT.SET_OKC_ORG_CONTEXT(p_chr_id => x_chrv_rec.id);
5597: -- skekkar
5598:
5599: IF p_renew_ref_yn = 'Y' THEN
5600: --if the copy is for RENEW, create operation instance and operation lines

Line 11516: OKC_CONTEXT.SET_OKC_ORG_CONTEXT(p_chr_id => p_from_chr_id);

11512: WHERE okcb.id = oksb.cle_id
11513: AND okcb.dnz_chr_id = p_chr_id;
11514: BEGIN
11515: -- hkamdar R12 Copy MOAC changes
11516: OKC_CONTEXT.SET_OKC_ORG_CONTEXT(p_chr_id => p_from_chr_id);
11517: -- hkamdar R12 Copy Enhancements
11518: IF p_copy_entire_k_yn = 'Y' THEN -- When Entire contract needs to copied
11519:
11520: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN