62: LOOP
63: l_chr_id := l_chr_id_csr_rec.chr_id;
64: END LOOP;
65: -- set the org context
66: OKL_CONTEXT.set_okc_org_context(p_chr_id => l_chr_id );
67: -- run the loop
68: LOOP
69:
70: okl_contract_pvt.delete_contract_line(p_api_version => G_API_VERSION,
651: raise OKC_API.G_EXCEPTION_ERROR;
652: End If;
653:
654:
655: If okl_context.get_okc_org_id is null then
656: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
657: End If;
658:
659: lp_chrv_rec.id := l_chr_id;
652: End If;
653:
654:
655: If okl_context.get_okc_org_id is null then
656: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
657: End If;
658:
659: lp_chrv_rec.id := l_chr_id;
660: lp_khrv_rec.id := l_chr_id;
1080: Elsif (x_return_status = OKC_API.G_RET_STS_ERROR) then
1081: raise OKC_API.G_EXCEPTION_ERROR;
1082: End If;
1083:
1084: If okl_context.get_okc_org_id is null then
1085: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1086: End If;
1087:
1088: If (p_tradein_tbl.COUNT > 0) Then
1081: raise OKC_API.G_EXCEPTION_ERROR;
1082: End If;
1083:
1084: If okl_context.get_okc_org_id is null then
1085: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1086: End If;
1087:
1088: If (p_tradein_tbl.COUNT > 0) Then
1089:
1429:
1430: BEGIN
1431:
1432: l_chr_id := p_chr_id;
1433: If okl_context.get_okc_org_id is null then
1434: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1435: End If;
1436:
1437: -- call START_ACTIVITY to create savepoint, check compatibility
1430: BEGIN
1431:
1432: l_chr_id := p_chr_id;
1433: If okl_context.get_okc_org_id is null then
1434: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1435: End If;
1436:
1437: -- call START_ACTIVITY to create savepoint, check compatibility
1438: -- and initialize message list
1571: raise OKC_API.G_EXCEPTION_ERROR;
1572: End If;
1573:
1574: l_chr_id := p_chr_id;
1575: If okl_context.get_okc_org_id is null then
1576: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1577: End If;
1578:
1579: i := 0;
1572: End If;
1573:
1574: l_chr_id := p_chr_id;
1575: If okl_context.get_okc_org_id is null then
1576: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1577: End If;
1578:
1579: i := 0;
1580:
1856: );
1857: raise OKC_API.G_EXCEPTION_ERROR;
1858: End If;
1859:
1860: If okl_context.get_okc_org_id is null then
1861: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1862: End If;
1863:
1864: lp_chrv_rec.id := l_chr_id;
1857: raise OKC_API.G_EXCEPTION_ERROR;
1858: End If;
1859:
1860: If okl_context.get_okc_org_id is null then
1861: okl_context.set_okc_org_context(p_chr_id => l_chr_id );
1862: End If;
1863:
1864: lp_chrv_rec.id := l_chr_id;
1865: lp_khrv_rec.id := l_chr_id;