847: open c1;
848: fetch c1 into l_dummy;
849: close c1;
850: l_value := fnd_profile.value('OKC_WEB_ENVPROC');
851: if (l_value is NULL or upper(l_value) = 'OKC_CONTEXT.SET_OKC_ORG_CONTEXT') then
852: if (l_dummy = '!') then
853: okc_context.set_okc_org_context(p_chr_id => p_kid);
854: else
855: okc_context.set_okc_org_context(p_org_id => NULL, p_organization_id => NULL);
849: close c1;
850: l_value := fnd_profile.value('OKC_WEB_ENVPROC');
851: if (l_value is NULL or upper(l_value) = 'OKC_CONTEXT.SET_OKC_ORG_CONTEXT') then
852: if (l_dummy = '!') then
853: okc_context.set_okc_org_context(p_chr_id => p_kid);
854: else
855: okc_context.set_okc_org_context(p_org_id => NULL, p_organization_id => NULL);
856: end if;
857: else
851: if (l_value is NULL or upper(l_value) = 'OKC_CONTEXT.SET_OKC_ORG_CONTEXT') then
852: if (l_dummy = '!') then
853: okc_context.set_okc_org_context(p_chr_id => p_kid);
854: else
855: okc_context.set_okc_org_context(p_org_id => NULL, p_organization_id => NULL);
856: end if;
857: else
858: begin
859: if (l_dummy = '?') then