DBA Data[Home] [Help]

APPS.OKC_COPY_CONTRACT_PVT dependencies on OKC_CONTEXT

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

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

Line 5377: okc_context.set_okc_org_context;

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

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

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

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

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

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

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

Line 5564: okc_context.set_okc_org_context;

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

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

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

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

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

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

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

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

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

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

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