153: message => 'Got ORG_ID for negotiation with the parameters : p_document_id = ' || p_document_id|| ' as:'||l_org_id );
154: END IF;
155: END IF;
156:
157: l_old_policy := mo_global.get_access_mode();
158: l_old_org_id := mo_global.get_current_org_id();
159:
160: IF (g_fnd_debug = 'Y') THEN
161: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN
154: END IF;
155: END IF;
156:
157: l_old_policy := mo_global.get_access_mode();
158: l_old_org_id := mo_global.get_current_org_id();
159:
160: IF (g_fnd_debug = 'Y') THEN
161: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN
162: FND_LOG.string( log_level => FND_LOG.level_statement,
160: IF (g_fnd_debug = 'Y') THEN
161: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN
162: FND_LOG.string( log_level => FND_LOG.level_statement,
163: module => g_module_prefix || l_api_name,
164: message => 'BEGIN: Calling MO_GLOBAL.SET_POLICY_CONTEXT with the parameters : l_org_id = ' || l_org_id );
165: END IF;
166: END IF;
167:
168: --
167:
168: --
169: -- Set the connection policy context. Bug 5040821.
170: --
171: mo_global.set_policy_context('S', l_org_id);
172:
173: IF (g_fnd_debug = 'Y') THEN
174: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN
175: FND_LOG.string( log_level => FND_LOG.level_statement,
187: IF (g_fnd_debug = 'Y') THEN
188: IF (FND_LOG.level_statement >= FND_LOG.g_current_runtime_level) THEN
189: FND_LOG.string( log_level => FND_LOG.level_statement,
190: module => g_module_prefix || l_api_name,
191: message => 'BEGIN: Calling MO_GLOBAL.SET_POLICY_CONTEXT with the parameters : l_org_id = ' || l_old_org_id || ', l_old_policy:'|| l_old_policy );
192: END IF;
193: END IF;
194:
195: mo_global.set_policy_context(l_old_policy, l_old_org_id);
191: message => 'BEGIN: Calling MO_GLOBAL.SET_POLICY_CONTEXT with the parameters : l_org_id = ' || l_old_org_id || ', l_old_policy:'|| l_old_policy );
192: END IF;
193: END IF;
194:
195: mo_global.set_policy_context(l_old_policy, l_old_org_id);
196:
197: return l_result;
198:
199: EXCEPTION
321: --{
322: --
323: -- Get the current policy
324: --
325: l_old_policy := mo_global.get_access_mode();
326: l_old_org_id := mo_global.get_current_org_id();
327:
328: --
329: -- Set the connection policy context. Bug 5040821.
322: --
323: -- Get the current policy
324: --
325: l_old_policy := mo_global.get_access_mode();
326: l_old_org_id := mo_global.get_current_org_id();
327:
328: --
329: -- Set the connection policy context. Bug 5040821.
330: --
327:
328: --
329: -- Set the connection policy context. Bug 5040821.
330: --
331: mo_global.set_policy_context('S', l_org_id);
332:
333:
334: -- bug 3608706 - new api to update the status history
335:
458: when others then
459: --
460: -- Set the org context back
461: --
462: mo_global.set_policy_context(l_old_policy, l_old_org_id);
463: raise;
464: end;
465: end if;
466: END activateDeliverables;
559:
560: --
561: -- Get the current policy
562: --
563: l_old_policy := mo_global.get_access_mode();
564: l_old_org_id := mo_global.get_current_org_id();
565:
566: --
567: -- Set the connection policy context. Bug 5040821.
560: --
561: -- Get the current policy
562: --
563: l_old_policy := mo_global.get_access_mode();
564: l_old_org_id := mo_global.get_current_org_id();
565:
566: --
567: -- Set the connection policy context. Bug 5040821.
568: --
565:
566: --
567: -- Set the connection policy context. Bug 5040821.
568: --
569: mo_global.set_policy_context('S', l_org_id);
570:
571: -- Call Contracts API for updating negotiation first
572:
573: OKC_MANAGE_DELIVERABLES_GRP.updateDeliverables(
660:
661: --
662: -- Set the org context back
663: --
664: mo_global.set_policy_context(l_old_policy, l_old_org_id);
665:
666: EXCEPTION
667: WHEN OTHERS THEN
668: --
667: WHEN OTHERS THEN
668: --
669: -- Set the org context back
670: --
671: mo_global.set_policy_context(l_old_policy, l_old_org_id);
672: -- ignore exception
673: end;
674: END IF;
675:
740:
741: --
742: -- Get the current policy
743: --
744: l_old_policy := mo_global.get_access_mode();
745: l_old_org_id := mo_global.get_current_org_id();
746:
747: --
748: -- Set the connection policy context. Bug 5040821.
741: --
742: -- Get the current policy
743: --
744: l_old_policy := mo_global.get_access_mode();
745: l_old_org_id := mo_global.get_current_org_id();
746:
747: --
748: -- Set the connection policy context. Bug 5040821.
749: --
746:
747: --
748: -- Set the connection policy context. Bug 5040821.
749: --
750: mo_global.set_policy_context('S', l_org_id);
751:
752: -- Call Contracts API for cancelling negotiation 's delvierablesfirst
753: OKC_MANAGE_DELIVERABLES_GRP.cancelDeliverables(
754: p_api_version => 1.0,
799:
800: --
801: -- Set the org context back
802: --
803: mo_global.set_policy_context(l_old_policy, l_old_org_id);
804:
805: EXCEPTION
806: WHEN OTHERS THEN
807: --
806: WHEN OTHERS THEN
807: --
808: -- Set the org context back
809: --
810: mo_global.set_policy_context(l_old_policy, l_old_org_id);
811: -- ignore exception
812: end;
813: END IF;
814:
865:
866: --
867: -- Get the current policy
868: --
869: l_old_policy := mo_global.get_access_mode();
870: l_old_org_id := mo_global.get_current_org_id();
871:
872: --
873: -- Set the connection policy context. Bug 5040821.
866: --
867: -- Get the current policy
868: --
869: l_old_policy := mo_global.get_access_mode();
870: l_old_org_id := mo_global.get_current_org_id();
871:
872: --
873: -- Set the connection policy context. Bug 5040821.
874: --
871:
872: --
873: -- Set the connection policy context. Bug 5040821.
874: --
875: mo_global.set_policy_context('S', l_org_id);
876:
877: OKC_TERMS_UTIL_GRP.Delete_Doc(
878: p_api_version => 1.0,
879: p_doc_id =>p_auction_header_id,
893: END IF;
894: --
895: -- Set the org context back
896: --
897: mo_global.set_policy_context(l_old_policy, l_old_org_id);
898:
899: EXCEPTION
900: WHEN OTHERS THEN
901: --
900: WHEN OTHERS THEN
901: --
902: -- Set the org context back
903: --
904: mo_global.set_policy_context(l_old_policy, l_old_org_id);
905: -- ignore exceptions
906: End;
907: END IF;
908:
976:
977: --
978: -- Get the current policy
979: --
980: l_old_policy := mo_global.get_access_mode();
981: l_old_org_id := mo_global.get_current_org_id();
982:
983: --
984: -- Set the connection policy context. Bug 5040821.
977: --
978: -- Get the current policy
979: --
980: l_old_policy := mo_global.get_access_mode();
981: l_old_org_id := mo_global.get_current_org_id();
982:
983: --
984: -- Set the connection policy context. Bug 5040821.
985: --
982:
983: --
984: -- Set the connection policy context. Bug 5040821.
985: --
986: mo_global.set_policy_context('S', l_org_id);
987:
988: OKC_MANAGE_DELIVERABLES_GRP.resolveDeliverables(
989: p_api_version => 1.0,
990: p_init_msg_list => FND_API.G_FALSE,
1013:
1014: --
1015: -- Set the org context back
1016: --
1017: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1018: EXCEPTION
1019: WHEN OTHERS THEN
1020: --
1021: -- Set the org context back
1019: WHEN OTHERS THEN
1020: --
1021: -- Set the org context back
1022: --
1023: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1024: -- ignore exceptions
1025: End;
1026: END IF;
1027:
1102:
1103: --
1104: -- Get the current policy
1105: --
1106: l_old_policy := mo_global.get_access_mode();
1107: l_old_org_id := mo_global.get_current_org_id();
1108:
1109: --
1110: -- Set the connection policy context. Bug 5040821.
1103: --
1104: -- Get the current policy
1105: --
1106: l_old_policy := mo_global.get_access_mode();
1107: l_old_org_id := mo_global.get_current_org_id();
1108:
1109: --
1110: -- Set the connection policy context. Bug 5040821.
1111: --
1108:
1109: --
1110: -- Set the connection policy context. Bug 5040821.
1111: --
1112: mo_global.set_policy_context('S', l_org_id);
1113:
1114: OKC_TERMS_COPY_GRP.COPY_RESPONSE_DOC(
1115: p_api_version => 1.0 , --l_api_version ,
1116: p_init_msg_list => FND_API.G_FALSE , --l_init_msg_list ,
1146:
1147: --
1148: -- Set the org context back
1149: --
1150: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1151:
1152: EXCEPTION
1153: WHEN OTHERS THEN
1154: --
1153: WHEN OTHERS THEN
1154: --
1155: -- Set the org context back
1156: --
1157: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1158: -- raise the exception
1159: RAISE;
1160: END copyResponseDoc;
1161:
1221:
1222: --
1223: -- Get the current policy
1224: --
1225: l_old_policy := mo_global.get_access_mode();
1226: l_old_org_id := mo_global.get_current_org_id();
1227:
1228: --
1229: -- Set the connection policy context. Bug 5040821.
1222: --
1223: -- Get the current policy
1224: --
1225: l_old_policy := mo_global.get_access_mode();
1226: l_old_org_id := mo_global.get_current_org_id();
1227:
1228: --
1229: -- Set the connection policy context. Bug 5040821.
1230: --
1227:
1228: --
1229: -- Set the connection policy context. Bug 5040821.
1230: --
1231: mo_global.set_policy_context('S', l_org_id);
1232:
1233: OKC_MANAGE_DELIVERABLES_GRP.disableDeliverables (
1234: p_api_version => 1.0,
1235: p_init_msg_list => FND_API.G_FALSE,
1253:
1254: --
1255: -- Set the org context back
1256: --
1257: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1258:
1259: exception
1260: when others then
1261: --
1260: when others then
1261: --
1262: -- Set the org context back
1263: --
1264: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1265: -- raise the exception
1266: RAISE;
1267: end;
1268:
1320:
1321: --
1322: -- Get the current policy
1323: --
1324: l_old_policy := mo_global.get_access_mode();
1325: l_old_org_id := mo_global.get_current_org_id();
1326:
1327: --
1328: -- Set the connection policy context. Bug 5040821.
1321: --
1322: -- Get the current policy
1323: --
1324: l_old_policy := mo_global.get_access_mode();
1325: l_old_org_id := mo_global.get_current_org_id();
1326:
1327: --
1328: -- Set the connection policy context. Bug 5040821.
1329: --
1326:
1327: --
1328: -- Set the connection policy context. Bug 5040821.
1329: --
1330: mo_global.set_policy_context('S', l_org_id);
1331:
1332: FOR active_bid IN active_bids LOOP
1333:
1334: OKC_MANAGE_DELIVERABLES_GRP.disableDeliverables(
1355:
1356: --
1357: -- Set the org context back
1358: --
1359: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1360:
1361: end;
1362: end if;
1363: EXCEPTION
1364: WHEN OTHERS THEN
1365: --
1366: -- Set the org context back
1367: --
1368: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1369: -- ignore exceptions
1370:
1371: END disableDeliverables;
1372:
1415: --
1416: -- Get the current policy
1417: --
1418: -- Bug 7409774 -- Commenting the multi-org related code. Not required here.
1419: -- l_old_policy := mo_global.get_access_mode();
1420: -- l_old_org_id := mo_global.get_current_org_id();
1421:
1422: --
1423: -- Set the connection policy context. Bug 5040821.
1416: -- Get the current policy
1417: --
1418: -- Bug 7409774 -- Commenting the multi-org related code. Not required here.
1419: -- l_old_policy := mo_global.get_access_mode();
1420: -- l_old_org_id := mo_global.get_current_org_id();
1421:
1422: --
1423: -- Set the connection policy context. Bug 5040821.
1424: --
1421:
1422: --
1423: -- Set the connection policy context. Bug 5040821.
1424: --
1425: -- mo_global.set_policy_context('S', l_org_id);
1426:
1427: -- Refer the bug 4129274 for more details.
1428: return OKC_TERMS_UTIL_GRP.HAS_TERMS( p_document_type => p_doc_type,
1429: p_document_id => p_doc_id
1430: );
1431: --
1432: -- Set the org context back
1433: --
1434: -- mo_global.set_policy_context(l_old_policy, l_old_org_id);
1435:
1436:
1437: END contract_terms_exist;
1438:
1476:
1477: --
1478: -- Get the current policy
1479: --
1480: l_old_policy := mo_global.get_access_mode();
1481: l_old_org_id := mo_global.get_current_org_id();
1482:
1483: --
1484: -- Set the connection policy context. Bug 5040821.
1477: --
1478: -- Get the current policy
1479: --
1480: l_old_policy := mo_global.get_access_mode();
1481: l_old_org_id := mo_global.get_current_org_id();
1482:
1483: --
1484: -- Set the connection policy context. Bug 5040821.
1485: --
1482:
1483: --
1484: -- Set the connection policy context. Bug 5040821.
1485: --
1486: mo_global.set_policy_context('S', l_org_id);
1487:
1488: resultout := okc_terms_util_grp.is_article_exist(
1489: p_api_version => 1.0,
1490: p_init_msg_list => fnd_api.g_false,
1506:
1507: --
1508: -- Set the org context back
1509: --
1510: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1511:
1512: END is_article_attached;
1513:
1514: /*
1550:
1551: --
1552: -- Get the current policy
1553: --
1554: l_old_policy := mo_global.get_access_mode();
1555: l_old_org_id := mo_global.get_current_org_id();
1556:
1557: --
1558: -- Set the connection policy context. Bug 5040821.
1551: --
1552: -- Get the current policy
1553: --
1554: l_old_policy := mo_global.get_access_mode();
1555: l_old_org_id := mo_global.get_current_org_id();
1556:
1557: --
1558: -- Set the connection policy context. Bug 5040821.
1559: --
1556:
1557: --
1558: -- Set the connection policy context. Bug 5040821.
1559: --
1560: mo_global.set_policy_context('S', l_org_id);
1561:
1562: resultout := okc_terms_util_grp.is_article_amended(
1563: p_api_version => 1.0,
1564: p_init_msg_list => fnd_api.g_false,
1580:
1581: --
1582: -- Set the org context back
1583: --
1584: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1585:
1586: END;
1587:
1588: /*
1629:
1630: --
1631: -- Get the current policy
1632: --
1633: l_old_policy := mo_global.get_access_mode();
1634: l_old_org_id := mo_global.get_current_org_id();
1635:
1636: --
1637: -- Set the connection policy context. Bug 5040821.
1630: --
1631: -- Get the current policy
1632: --
1633: l_old_policy := mo_global.get_access_mode();
1634: l_old_org_id := mo_global.get_current_org_id();
1635:
1636: --
1637: -- Set the connection policy context. Bug 5040821.
1638: --
1635:
1636: --
1637: -- Set the connection policy context. Bug 5040821.
1638: --
1639: mo_global.set_policy_context('S', l_org_id);
1640:
1641: resultout := okc_terms_util_grp.is_deliverable_amended(
1642: p_api_version => 1.0,
1643: p_init_msg_list => fnd_api.g_false,
1659:
1660: --
1661: -- Set the org context back
1662: --
1663: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1664:
1665: END;
1666:
1667: /*
1703:
1704: --
1705: -- Get the current policy
1706: --
1707: l_old_policy := mo_global.get_access_mode();
1708: l_old_org_id := mo_global.get_current_org_id();
1709:
1710: --
1711: -- Set the connection policy context. Bug 5040821.
1704: --
1705: -- Get the current policy
1706: --
1707: l_old_policy := mo_global.get_access_mode();
1708: l_old_org_id := mo_global.get_current_org_id();
1709:
1710: --
1711: -- Set the connection policy context. Bug 5040821.
1712: --
1709:
1710: --
1711: -- Set the connection policy context. Bug 5040821.
1712: --
1713: mo_global.set_policy_context('S', l_org_id);
1714:
1715:
1716: resultout := okc_terms_util_grp.is_template_expired(
1717: p_api_version => 1.0,
1734:
1735: --
1736: -- Set the org context back
1737: --
1738: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1739:
1740: END;
1741:
1742: /*
1779:
1780: --
1781: -- Get the current policy
1782: --
1783: l_old_policy := mo_global.get_access_mode();
1784: l_old_org_id := mo_global.get_current_org_id();
1785:
1786: --
1787: -- Set the connection policy context. Bug 5040821.
1780: --
1781: -- Get the current policy
1782: --
1783: l_old_policy := mo_global.get_access_mode();
1784: l_old_org_id := mo_global.get_current_org_id();
1785:
1786: --
1787: -- Set the connection policy context. Bug 5040821.
1788: --
1785:
1786: --
1787: -- Set the connection policy context. Bug 5040821.
1788: --
1789: mo_global.set_policy_context('S', l_org_id);
1790:
1791: resultout := okc_terms_util_grp.deviation_from_standard(
1792: p_api_version => 1.0,
1793: p_init_msg_list => fnd_api.g_false,
1809:
1810: --
1811: -- Set the org context back
1812: --
1813: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1814:
1815: END;
1816:
1817: /*
1854:
1855: --
1856: -- Get the current policy
1857: --
1858: l_old_policy := mo_global.get_access_mode();
1859: l_old_org_id := mo_global.get_current_org_id();
1860:
1861: --
1862: -- Set the connection policy context. Bug 5040821.
1855: --
1856: -- Get the current policy
1857: --
1858: l_old_policy := mo_global.get_access_mode();
1859: l_old_org_id := mo_global.get_current_org_id();
1860:
1861: --
1862: -- Set the connection policy context. Bug 5040821.
1863: --
1860:
1861: --
1862: -- Set the connection policy context. Bug 5040821.
1863: --
1864: mo_global.set_policy_context('S', l_org_id);
1865:
1866: resultout := okc_terms_util_grp.is_deliverable_exist(
1867: p_api_version => 1.0,
1868: p_init_msg_list => fnd_api.g_false,
1884:
1885: --
1886: -- Set the org context back
1887: --
1888: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1889:
1890: END;
1891:
1892:
1916:
1917: --
1918: -- Get the current policy
1919: --
1920: l_old_policy := mo_global.get_access_mode();
1921: l_old_org_id := mo_global.get_current_org_id();
1922:
1923: --
1924: -- Set the connection policy context. Bug 5040821.
1917: --
1918: -- Get the current policy
1919: --
1920: l_old_policy := mo_global.get_access_mode();
1921: l_old_org_id := mo_global.get_current_org_id();
1922:
1923: --
1924: -- Set the connection policy context. Bug 5040821.
1925: --
1922:
1923: --
1924: -- Set the connection policy context. Bug 5040821.
1925: --
1926: mo_global.set_policy_context('M', null);
1927:
1928: OKC_MANAGE_DELIVERABLES_GRP.updateExtPartyOnDeliverables
1929: ( p_api_version => 1.0,
1930: p_init_msg_list => FND_API.G_TRUE,
1941:
1942: --
1943: -- Set the org context back
1944: --
1945: mo_global.set_policy_context(l_old_policy, l_old_org_id);
1946:
1947: -- keep logging
1948:
1949: IF (x_return_status <> FND_API.G_RET_STS_SUCCESS) THEN --{
2128:
2129: --
2130: -- Get the current policy
2131: --
2132: l_old_policy := mo_global.get_access_mode();
2133: l_old_org_id := mo_global.get_current_org_id();
2134:
2135: --
2136: -- Set the connection policy context. Bug 5040821.
2129: --
2130: -- Get the current policy
2131: --
2132: l_old_policy := mo_global.get_access_mode();
2133: l_old_org_id := mo_global.get_current_org_id();
2134:
2135: --
2136: -- Set the connection policy context. Bug 5040821.
2137: --
2134:
2135: --
2136: -- Set the connection policy context. Bug 5040821.
2137: --
2138: mo_global.set_policy_context('S', l_org_id);
2139:
2140: IF (g_fnd_debug = 'Y') THEN
2141: IF (FND_LOG.LEVEL_PROCEDURE >= FND_LOG.g_current_runtime_level) THEN
2142: FND_LOG.string( log_level => FND_LOG.LEVEL_PROCEDURE,
2160:
2161: --
2162: -- Set the org context back
2163: --
2164: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2165:
2166:
2167: RETURN l_primary_terms_doc_file_id;
2168:
2170: WHEN OTHERS THEN
2171: --
2172: -- Set the org context back
2173: --
2174: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2175: IF (g_fnd_debug = 'Y') THEN
2176: IF (FND_LOG.LEVEL_EXCEPTION >= FND_LOG.g_current_runtime_level) THEN
2177: FND_LOG.string( log_level => FND_LOG.level_exception,
2178: module => g_module_prefix || l_api_name,
2215:
2216: --
2217: -- Get the current policy
2218: --
2219: l_old_policy := mo_global.get_access_mode();
2220: l_old_org_id := mo_global.get_current_org_id();
2221:
2222: --
2223: -- Set the connection policy context. Bug 5040821.
2216: --
2217: -- Get the current policy
2218: --
2219: l_old_policy := mo_global.get_access_mode();
2220: l_old_org_id := mo_global.get_current_org_id();
2221:
2222: --
2223: -- Set the connection policy context. Bug 5040821.
2224: --
2221:
2222: --
2223: -- Set the connection policy context. Bug 5040821.
2224: --
2225: mo_global.set_policy_context('S', l_org_id);
2226:
2227: IF (g_fnd_debug = 'Y') THEN
2228: IF (FND_LOG.LEVEL_PROCEDURE >= FND_LOG.g_current_runtime_level) THEN
2229: FND_LOG.string( log_level => FND_LOG.LEVEL_PROCEDURE,
2247:
2248: --
2249: -- Set the org context back
2250: --
2251: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2252:
2253:
2254: RETURN l_is_prm_trm_doc_mergeable;
2255:
2257: WHEN OTHERS THEN
2258: --
2259: -- Set the org context back
2260: --
2261: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2262:
2263: IF (g_fnd_debug = 'Y') THEN
2264: IF (FND_LOG.LEVEL_EXCEPTION >= FND_LOG.g_current_runtime_level) THEN
2265: FND_LOG.string( log_level => FND_LOG.level_exception,
2303:
2304: --
2305: -- Get the current policy
2306: --
2307: l_old_policy := mo_global.get_access_mode();
2308: l_old_org_id := mo_global.get_current_org_id();
2309:
2310: --
2311: -- Set the connection policy context. Bug 5040821.
2304: --
2305: -- Get the current policy
2306: --
2307: l_old_policy := mo_global.get_access_mode();
2308: l_old_org_id := mo_global.get_current_org_id();
2309:
2310: --
2311: -- Set the connection policy context. Bug 5040821.
2312: --
2309:
2310: --
2311: -- Set the connection policy context. Bug 5040821.
2312: --
2313: mo_global.set_policy_context('S', l_org_id);
2314:
2315: IF (g_fnd_debug = 'Y') THEN
2316: IF (FND_LOG.LEVEL_PROCEDURE >= FND_LOG.g_current_runtime_level) THEN
2317: FND_LOG.string( log_level => FND_LOG.LEVEL_PROCEDURE,
2335:
2336: --
2337: -- Set the org context back
2338: --
2339: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2340:
2341: IF (l_contract_source_code = PON_CONTERMS_UTL_PVT.CONTRACT_SOURCE_ATTACHED) THEN
2342: RETURN 'Y';
2343:
2349: WHEN OTHERS THEN
2350: --
2351: -- Set the org context back
2352: --
2353: mo_global.set_policy_context(l_old_policy, l_old_org_id);
2354: IF (g_fnd_debug = 'Y') THEN
2355: IF (FND_LOG.LEVEL_EXCEPTION >= FND_LOG.g_current_runtime_level) THEN
2356: FND_LOG.string( log_level => FND_LOG.level_exception,
2357: module => g_module_prefix || l_api_name,