37: IF (l_percent_total <> 100 AND
38: l_percent_total <> 0)THEN
39: fnd_message.set_name('ONT','OE_VAL_TTL_LINE_CREDIT');
40: FND_MESSAGE.SET_TOKEN('TOTAL',to_char(l_percent_total));
41: OE_MSG_PUB.Add;
42: x_return_status := FND_API.G_RET_STS_ERROR;
43: END IF;
44:
45: oe_debug_pub.add('Exiting OE_DELAYED_REQUESTS_UTIL.VALIDATE_LSC_QUOTA_TOTAL', 1);
57: WHEN OTHERS THEN
58:
59: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
60:
61: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
62: THEN
63: OE_MSG_PUB.Add_Exc_Msg
64: ( G_PKG_NAME
65: , 'Validate_LSC_QUOTA_TOTAL'
59: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
60:
61: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
62: THEN
63: OE_MSG_PUB.Add_Exc_Msg
64: ( G_PKG_NAME
65: , 'Validate_LSC_QUOTA_TOTAL'
66: );
67: END IF;
88: WHEN OTHERS THEN
89:
90: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
91:
92: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
93: THEN
94: OE_MSG_PUB.Add_Exc_Msg
95: ( G_PKG_NAME
96: , 'Validate_HSC_QUOTA_TOTAL:'||SQLERRM
90: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
91:
92: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
93: THEN
94: OE_MSG_PUB.Add_Exc_Msg
95: ( G_PKG_NAME
96: , 'Validate_HSC_QUOTA_TOTAL:'||SQLERRM
97: );
98: END IF;
132: WHEN OTHERS THEN
133:
134: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
135:
136: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
137: THEN
138: OE_MSG_PUB.Add_Exc_Msg
139: ( G_PKG_NAME
140: , 'DFLT_Hscredit_Primary_Srep:'||SQLERRM
134: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
135:
136: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
137: THEN
138: OE_MSG_PUB.Add_Exc_Msg
139: ( G_PKG_NAME
140: , 'DFLT_Hscredit_Primary_Srep:'||SQLERRM
141: );
142: END IF;
357: --Sales credir record exists for the child service line.
358:
359: IF l_operation = OE_GLOBALS.G_OPR_UPDATE THEN
360:
361: oe_msg_pub.add('In Update');
362:
363: IF l_new_quota_flag = 'Y' THEN
364:
365: Select nvl(sum(Percent),0) Per_total
482: WHEN OTHERS THEN
483:
484: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
485:
486: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
487: THEN
488: OE_MSG_PUB.Add_Exc_Msg
489: ( G_PKG_NAME
490: , 'CASCADE_SERVICE_SCREDIT'
484: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
485:
486: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
487: THEN
488: OE_MSG_PUB.Add_Exc_Msg
489: ( G_PKG_NAME
490: , 'CASCADE_SERVICE_SCREDIT'
491: );
492: END IF;
552: IF SQL%rowcount <> 0
553: THEN
554: l_return_status := FND_API.G_RET_STS_ERROR;
555:
556: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
557: THEN
558:
559: fnd_message.set_name('ONT', 'OE_DIS_DUPLICATE_ORD_DISC');
560: OE_MSG_PUB.Add;
556: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
557: THEN
558:
559: fnd_message.set_name('ONT', 'OE_DIS_DUPLICATE_ORD_DISC');
560: OE_MSG_PUB.Add;
561:
562: END IF;
563:
564: RAISE DUPLICATE_DISCOUNT;
580:
581: IF SQL%rowcount <> 0 THEN
582: l_return_status := FND_API.G_RET_STS_ERROR;
583:
584: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
585: THEN
586:
587: fnd_message.set_name('ONT', 'OE_DIS_DUPLICATE_LIN_DISC');
588: OE_MSG_PUB.Add;
584: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
585: THEN
586:
587: fnd_message.set_name('ONT', 'OE_DIS_DUPLICATE_LIN_DISC');
588: OE_MSG_PUB.Add;
589:
590: END IF;
591:
592: RAISE DUPLICATE_DISCOUNT;
609: WHEN OTHERS
610: THEN
611: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
612:
613: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
614: THEN
615: OE_MSG_PUB.Add_Exc_Msg
616: ( G_PKG_NAME
617: , 'CHECK_DUPLICATE'
611: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
612:
613: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
614: THEN
615: OE_MSG_PUB.Add_Exc_Msg
616: ( G_PKG_NAME
617: , 'CHECK_DUPLICATE'
618: );
619: END IF;
697: AND l_discount_count = 1 THEN
698: oe_debug_pub.ADD('OEXSRLNB2: Check Fixed Price. '||
699: ' entity_code = ' || l_entity_code, 2);
700: l_return_status := FND_API.G_RET_STS_ERROR;
701: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
702: THEN
703:
704: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE_HEADER');
705: FND_MESSAGE.SET_TOKEN('NUMBER', to_char(l_number));
702: THEN
703:
704: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE_HEADER');
705: FND_MESSAGE.SET_TOKEN('NUMBER', to_char(l_number));
706: OE_MSG_PUB.Add;
707:
708:
709: END IF;
710: RAISE FIXED_PRICE_VIOLATE;
727: AND ROWNUM = 1;
728:
729: IF l_count <> 0 THEN
730:
731: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
732: THEN
733:
734: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE');
735: OE_MSG_PUB.Add;
731: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
732: THEN
733:
734: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE');
735: OE_MSG_PUB.Add;
736:
737: END IF;
738:
739: RAISE FIXED_PRICE;
763: AND l_discount_count = 1 THEN
764: oe_debug_pub.ADD('OEXSRLNB2: Check Fixed Price. '||
765: ' entity_code = ' || l_entity_code, 2);
766: l_return_status := FND_API.G_RET_STS_ERROR;
767: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
768: THEN
769:
770: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE_VIOL');
771: FND_MESSAGE.SET_TOKEN('NAME', l_fixed_price);
768: THEN
769:
770: FND_MESSAGE.SET_NAME('ONT', 'OE_DIS_FIXED_PRICE_VIOL');
771: FND_MESSAGE.SET_TOKEN('NAME', l_fixed_price);
772: OE_MSG_PUB.Add;
773:
774: END IF;
775:
776: RAISE FIXED_PRICE_VIOLATE;
797: WHEN OTHERS
798: THEN
799: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
800:
801: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
802: THEN
803: OE_MSG_PUB.Add_Exc_Msg
804: ( G_PKG_NAME
805: , 'CHECK_FIXED_PRICE'
799: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
800:
801: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
802: THEN
803: OE_MSG_PUB.Add_Exc_Msg
804: ( G_PKG_NAME
805: , 'CHECK_FIXED_PRICE'
806: );
807: END IF;
897: IF ( l_percent_total > 100 ) THEN
898:
899: l_return_status := FND_API.G_RET_STS_ERROR;
900:
901: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
902: THEN
903:
904: FND_MESSAGE.SET_NAME('ONT','OE_DIS_ADJUSTMENT_TOTAL');
905: FND_MESSAGE.SET_TOKEN('TOTAL', To_char(l_percent_total));
902: THEN
903:
904: FND_MESSAGE.SET_NAME('ONT','OE_DIS_ADJUSTMENT_TOTAL');
905: FND_MESSAGE.SET_TOKEN('TOTAL', To_char(l_percent_total));
906: OE_MSG_PUB.Add;
907:
908: END IF;
909:
910: RAISE percentage_exceeded;
936: IF ( l_percent_total > 100 ) THEN
937:
938: l_return_status := FND_API.G_RET_STS_ERROR;
939:
940: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_ERROR)
941: THEN
942:
943: FND_MESSAGE.SET_NAME('ONT','OE_DIS_ADJUSTMENT_TOTAL');
944: FND_MESSAGE.SET_TOKEN('TOTAL', To_char(l_percent_total));
941: THEN
942:
943: FND_MESSAGE.SET_NAME('ONT','OE_DIS_ADJUSTMENT_TOTAL');
944: FND_MESSAGE.SET_TOKEN('TOTAL', To_char(l_percent_total));
945: OE_MSG_PUB.Add;
946:
947: END IF;
948:
949: RAISE percentage_exceeded;
1016: IF max_line_adj_total%isopen THEN
1017: CLOSE max_line_adj_total;
1018: END IF;
1019:
1020: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1021: THEN
1022: OE_MSG_PUB.Add_Exc_Msg
1023: ( G_PKG_NAME
1024: , 'CHECK_PERCENTAGE'
1018: END IF;
1019:
1020: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1021: THEN
1022: OE_MSG_PUB.Add_Exc_Msg
1023: ( G_PKG_NAME
1024: , 'CHECK_PERCENTAGE'
1025: );
1026: END IF;
1140: WHEN OTHERS THEN
1141:
1142: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1143:
1144: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1145: THEN
1146: OE_MSG_PUB.Add_Exc_Msg
1147: ( G_PKG_NAME
1148: , 'Validate_LSC_QUOTA_TOTAL'
1142: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1143:
1144: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1145: THEN
1146: OE_MSG_PUB.Add_Exc_Msg
1147: ( G_PKG_NAME
1148: , 'Validate_LSC_QUOTA_TOTAL'
1149: );
1150: END IF;
1211: WHEN OTHERS THEN
1212:
1213: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1214:
1215: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1216: THEN
1217: OE_MSG_PUB.Add_Exc_Msg
1218: ( G_PKG_NAME
1219: , 'Verify_Payment'
1213: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1214:
1215: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1216: THEN
1217: OE_MSG_PUB.Add_Exc_Msg
1218: ( G_PKG_NAME
1219: , 'Verify_Payment'
1220: );
1221: END IF;
1422: WHEN OTHERS THEN
1423:
1424: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1425:
1426: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1427: THEN
1428: OE_MSG_PUB.Add_Exc_Msg
1429: ( G_PKG_NAME
1430: , 'INSERT_RMA_SCREDIT_ADJUSTMENT'
1424: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1425:
1426: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1427: THEN
1428: OE_MSG_PUB.Add_Exc_Msg
1429: ( G_PKG_NAME
1430: , 'INSERT_RMA_SCREDIT_ADJUSTMENT'
1431: );
1432: END IF;
1729: x_return_status := FND_API.G_RET_STS_SUCCESS;
1730:
1731: WHEN OTHERS THEN
1732:
1733: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1734: THEN
1735: OE_MSG_PUB.Add_Exc_Msg
1736: ( G_PKG_NAME ,
1737: 'Tax Line'
1731: WHEN OTHERS THEN
1732:
1733: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1734: THEN
1735: OE_MSG_PUB.Add_Exc_Msg
1736: ( G_PKG_NAME ,
1737: 'Tax Line'
1738: );
1739: END IF;
1796:
1797: WHEN OTHERS THEN
1798:
1799: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1800: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1801: THEN
1802: OE_MSG_PUB.Add_Exc_Msg
1803: ( G_PKG_NAME
1804: , 'Split_Hold'
1798:
1799: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1800: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1801: THEN
1802: OE_MSG_PUB.Add_Exc_Msg
1803: ( G_PKG_NAME
1804: , 'Split_Hold'
1805: );
1806: END IF;
1868:
1869: WHEN OTHERS THEN
1870:
1871: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1872: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1873: THEN
1874: OE_MSG_PUB.Add_Exc_Msg
1875: ( G_PKG_NAME
1876: , 'Eval_Hold_Source'
1870:
1871: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1872: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
1873: THEN
1874: OE_MSG_PUB.Add_Exc_Msg
1875: ( G_PKG_NAME
1876: , 'Eval_Hold_Source'
1877: );
1878: END IF;
2022: WHEN OTHERS THEN
2023:
2024: l_request_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2025: x_request_rec := l_request_rec;
2026: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2027: THEN
2028: OE_MSG_PUB.Add_Exc_Msg
2029: ( G_PKG_NAME
2030: , 'Apply_Hold'
2024: l_request_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2025: x_request_rec := l_request_rec;
2026: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2027: THEN
2028: OE_MSG_PUB.Add_Exc_Msg
2029: ( G_PKG_NAME
2030: , 'Apply_Hold'
2031: );
2032: END IF;
2174: WHEN OTHERS THEN
2175:
2176: l_request_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2177: x_request_rec := l_request_rec;
2178: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2179: THEN
2180: OE_MSG_PUB.Add_Exc_Msg
2181: ( G_PKG_NAME
2182: , 'Release_Hold'
2176: l_request_rec.return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2177: x_request_rec := l_request_rec;
2178: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2179: THEN
2180: OE_MSG_PUB.Add_Exc_Msg
2181: ( G_PKG_NAME
2182: , 'Release_Hold'
2183: );
2184: END IF;
2219: x_return_status := FND_API.G_RET_STS_ERROR;
2220:
2221: -- Get message count and data
2222:
2223: OE_MSG_PUB.Count_And_Get
2224: ( p_count => x_msg_count
2225: , p_data => x_msg_data
2226: );
2227:
2229:
2230: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2231: -- Get message count and data
2232:
2233: OE_MSG_PUB.Count_And_Get
2234: ( p_count => x_msg_count
2235: , p_data => x_msg_data
2236: );
2237:
2238: WHEN OTHERS THEN
2239:
2240: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2241:
2242: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2243: THEN
2244: OE_MSG_PUB.Add_Exc_Msg
2245: ( G_PKG_NAME
2246: , 'Split_Set'
2240: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2241:
2242: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2243: THEN
2244: OE_MSG_PUB.Add_Exc_Msg
2245: ( G_PKG_NAME
2246: , 'Split_Set'
2247: );
2248: END IF;
2248: END IF;
2249:
2250: -- Get message count and data
2251:
2252: OE_MSG_PUB.Count_And_Get
2253: ( p_count => x_msg_count
2254: , p_data => x_msg_data
2255: );
2256:
2288: x_return_status := FND_API.G_RET_STS_ERROR;
2289:
2290: -- Get message count and data
2291:
2292: OE_MSG_PUB.Count_And_Get
2293: ( p_count => x_msg_count
2294: , p_data => x_msg_data
2295: );
2296:
2298:
2299: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2300: -- Get message count and data
2301:
2302: OE_MSG_PUB.Count_And_Get
2303: ( p_count => x_msg_count
2304: , p_data => x_msg_data
2305: );
2306:
2307: WHEN OTHERS THEN
2308:
2309: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2310:
2311: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2312: THEN
2313: OE_MSG_PUB.Add_Exc_Msg
2314: ( G_PKG_NAME
2315: , 'Insert_Set'
2309: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
2310:
2311: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2312: THEN
2313: OE_MSG_PUB.Add_Exc_Msg
2314: ( G_PKG_NAME
2315: , 'Insert_Set'
2316: );
2317: END IF;
2316: );
2317: END IF;
2318: -- Get message count and data
2319:
2320: OE_MSG_PUB.Count_And_Get
2321: ( p_count => x_msg_count
2322: , p_data => x_msg_data
2323: );
2324:
2349:
2350: EXCEPTION
2351: WHEN OTHERS THEN
2352: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2353: IF OE_MSG_PUB.Check_Msg_Level
2354: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2355: THEN
2356: OE_MSG_PUB.Add_Exc_Msg
2357: ( G_PKG_NAME
2350: EXCEPTION
2351: WHEN OTHERS THEN
2352: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2353: IF OE_MSG_PUB.Check_Msg_Level
2354: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2355: THEN
2356: OE_MSG_PUB.Add_Exc_Msg
2357: ( G_PKG_NAME
2358: , 'Book_Order'
2352: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2353: IF OE_MSG_PUB.Check_Msg_Level
2354: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2355: THEN
2356: OE_MSG_PUB.Add_Exc_Msg
2357: ( G_PKG_NAME
2358: , 'Book_Order'
2359: );
2360: END IF;
2424: ,x_msg_count => l_msg_count
2425: ,x_msg_data => l_msg_data);
2426: ELSE
2427: fnd_message.set_name('ONT','OE_FTE_NOT_ENABLED');
2428: OE_MSG_PUB.Add;
2429: oe_debug_pub.add('Unable to process FTE integration either due to
2430: FTE is not enabled or action code is invalid.', 3);
2431: x_return_status := FND_API.G_RET_STS_ERROR;
2432: END IF;
2435:
2436: EXCEPTION
2437: WHEN OTHERS THEN
2438: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2439: IF OE_MSG_PUB.Check_Msg_Level
2440: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2441: THEN
2442: OE_MSG_PUB.Add_Exc_Msg
2443: ( G_PKG_NAME
2436: EXCEPTION
2437: WHEN OTHERS THEN
2438: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2439: IF OE_MSG_PUB.Check_Msg_Level
2440: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2441: THEN
2442: OE_MSG_PUB.Add_Exc_Msg
2443: ( G_PKG_NAME
2444: , 'Get_Ship_Method'
2438: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2439: IF OE_MSG_PUB.Check_Msg_Level
2440: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2441: THEN
2442: OE_MSG_PUB.Add_Exc_Msg
2443: ( G_PKG_NAME
2444: , 'Get_Ship_Method'
2445: );
2446: END IF;
2510:
2511: EXCEPTION
2512: WHEN OTHERS THEN
2513: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2514: IF OE_MSG_PUB.Check_Msg_Level
2515: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2516: THEN
2517: OE_MSG_PUB.Add_Exc_Msg
2518: ( G_PKG_NAME
2511: EXCEPTION
2512: WHEN OTHERS THEN
2513: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2514: IF OE_MSG_PUB.Check_Msg_Level
2515: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2516: THEN
2517: OE_MSG_PUB.Add_Exc_Msg
2518: ( G_PKG_NAME
2519: ,'Fulfillment_Sets'
2513: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2514: IF OE_MSG_PUB.Check_Msg_Level
2515: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2516: THEN
2517: OE_MSG_PUB.Add_Exc_Msg
2518: ( G_PKG_NAME
2519: ,'Fulfillment_Sets'
2520: );
2521: END IF;
2732: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2733: WHEN FND_API.G_EXC_ERROR THEN
2734: x_return_status := FND_API.G_RET_STS_ERROR;
2735: WHEN OTHERS THEN
2736: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2737: OE_MSG_PUB.Add_Exc_Msg ( G_PKG_NAME , 'FIRST_PERIOD_BILL_AMT' );
2738: END IF;
2739: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2740: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2733: WHEN FND_API.G_EXC_ERROR THEN
2734: x_return_status := FND_API.G_RET_STS_ERROR;
2735: WHEN OTHERS THEN
2736: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
2737: OE_MSG_PUB.Add_Exc_Msg ( G_PKG_NAME , 'FIRST_PERIOD_BILL_AMT' );
2738: END IF;
2739: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2740: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2741: END first_period_bill_amt;
2757: BEGIN
2758:
2759: oe_debug_pub.add('Entering UTIL.Update_Shipping'||p_line_id, 1);
2760: -- bug 4741573
2761: OE_MSG_PUB.set_msg_context ( p_entity_code => 'LINE'
2762: ,p_entity_id => p_line_id
2763: ,p_line_id => p_line_id );
2764:
2765: l_update_shipping_index := p_update_shipping_tbl.FIRST;
2821: END LOOP;
2822: END IF;
2823:
2824: -- bug 4741573
2825: OE_MSG_PUB.reset_msg_context('LINE');
2826:
2827: OE_Debug_PUB.Add('Exiting OE_Delayed_Requests_Util.Update_Shipping',1);
2828: EXCEPTION
2829: WHEN OTHERS THEN
2828: EXCEPTION
2829: WHEN OTHERS THEN
2830: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2831:
2832: IF OE_MSG_PUB.Check_Msg_Level
2833: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2834: THEN
2835: OE_MSG_PUB.Add_Exc_Msg
2836: ( G_PKG_NAME
2829: WHEN OTHERS THEN
2830: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2831:
2832: IF OE_MSG_PUB.Check_Msg_Level
2833: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2834: THEN
2835: OE_MSG_PUB.Add_Exc_Msg
2836: ( G_PKG_NAME
2837: , 'Update_Shipping'
2831:
2832: IF OE_MSG_PUB.Check_Msg_Level
2833: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2834: THEN
2835: OE_MSG_PUB.Add_Exc_Msg
2836: ( G_PKG_NAME
2837: , 'Update_Shipping'
2838: );
2839: END IF;
2896:
2897: EXCEPTION
2898: WHEN OTHERS THEN
2899: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2900: IF OE_MSG_PUB.Check_Msg_Level
2901: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2902: THEN
2903: OE_MSG_PUB.Add_Exc_Msg
2904: ( G_PKG_NAME
2897: EXCEPTION
2898: WHEN OTHERS THEN
2899: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2900: IF OE_MSG_PUB.Check_Msg_Level
2901: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2902: THEN
2903: OE_MSG_PUB.Add_Exc_Msg
2904: ( G_PKG_NAME
2905: , 'Ship_Confirmation'
2899: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2900: IF OE_MSG_PUB.Check_Msg_Level
2901: (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
2902: THEN
2903: OE_MSG_PUB.Add_Exc_Msg
2904: ( G_PKG_NAME
2905: , 'Ship_Confirmation'
2906: );
2907: END IF;
3151: x_return_status := FND_API.G_RET_STS_ERROR;
3152:
3153: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3154:
3155: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3156: THEN
3157: OE_MSG_PUB.Add_Exc_Msg
3158: ( G_PKG_NAME
3159: , 'Group_Schedule'
3153: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
3154:
3155: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3156: THEN
3157: OE_MSG_PUB.Add_Exc_Msg
3158: ( G_PKG_NAME
3159: , 'Group_Schedule'
3160: );
3161: END IF;
3163:
3164: WHEN OTHERS THEN
3165:
3166:
3167: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3168: THEN
3169: OE_MSG_PUB.Add_Exc_Msg
3170: ( G_PKG_NAME
3171: , 'Group_Schedule'
3165:
3166:
3167: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3168: THEN
3169: OE_MSG_PUB.Add_Exc_Msg
3170: ( G_PKG_NAME
3171: , 'Group_Schedule'
3172: );
3173: END IF;
3464: WHEN OTHERS THEN
3465:
3466: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3467:
3468: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3469: THEN
3470: OE_MSG_PUB.Add_Exc_Msg
3471: ( G_PKG_NAME
3472: , 'INSERT_RMA_OPTIONS_INCLUDED'
3466: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3467:
3468: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3469: THEN
3470: OE_MSG_PUB.Add_Exc_Msg
3471: ( G_PKG_NAME
3472: , 'INSERT_RMA_OPTIONS_INCLUDED'
3473: );
3474: END IF;
3872: WHEN OTHERS THEN
3873:
3874: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3875:
3876: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3877: THEN
3878: OE_MSG_PUB.Add_Exc_Msg
3879: ( G_PKG_NAME
3880: , 'INSERT_RMA_LOT_SERIAL'
3874: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3875:
3876: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
3877: THEN
3878: OE_MSG_PUB.Add_Exc_Msg
3879: ( G_PKG_NAME
3880: , 'INSERT_RMA_LOT_SERIAL'
3881: );
3882: END IF;
3952: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
3953: to_char(l_line_tbl(I).shipment_number));
3954: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
3955: to_char(l_line_tbl(I).line_number));
3956: OE_MSG_PUB.ADD;
3957: RAISE FND_API.G_EXC_ERROR;
3958: ELSIF (l_line_tbl(I).order_quantity_uom <>
3959: l_order_qty_uom ) THEN
3960: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
3962: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
3963: to_char(l_line_tbl(I).shipment_number));
3964: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
3965: to_char(l_line_tbl(I).line_number));
3966: OE_MSG_PUB.ADD;
3967: RAISE FND_API.G_EXC_ERROR;
3968: ELSIF (l_line_tbl(I).line_type_id <>
3969: l_line_type_id ) THEN
3970: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
3972: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
3973: to_char(l_line_tbl(I).shipment_number));
3974: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
3975: to_char(l_line_tbl(I).line_number));
3976: OE_MSG_PUB.ADD;
3977: RAISE FND_API.G_EXC_ERROR;
3978: ELSIF (l_line_tbl(I).ship_tolerance_above <>
3979: l_ship_tolerance_above ) THEN
3980: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
3982: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
3983: to_char(l_line_tbl(I).shipment_number));
3984: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
3985: to_char(l_line_tbl(I).line_number));
3986: OE_MSG_PUB.ADD;
3987: RAISE FND_API.G_EXC_ERROR;
3988: ELSIF (l_line_tbl(I).ship_tolerance_below <>
3989: l_ship_tolerance_below ) THEN
3990: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
3992: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
3993: to_char(l_line_tbl(I).shipment_number));
3994: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
3995: to_char(l_line_tbl(I).line_number));
3996: OE_MSG_PUB.ADD;
3997: RAISE FND_API.G_EXC_ERROR;
3998: ELSIF (l_line_tbl(I).project_id <>
3999: l_project_id ) THEN
4000: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
4002: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
4003: to_char(l_line_tbl(I).shipment_number));
4004: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
4005: to_char(l_line_tbl(I).line_number));
4006: OE_MSG_PUB.ADD;
4007: RAISE FND_API.G_EXC_ERROR;
4008: ELSIF (l_line_tbl(I).Task_id <>
4009: l_Task_id ) THEN
4010: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
4012: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
4013: to_char(l_line_tbl(I).shipment_number));
4014: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
4015: to_char(l_line_tbl(I).line_number));
4016: OE_MSG_PUB.ADD;
4017: RAISE FND_API.G_EXC_ERROR;
4018: ----ER#14763609
4019: ELSIF (Nvl(l_line_tbl(I).fulfillment_base,'P') <> l_fulfillment_base) THEN
4020: FND_MESSAGE.SET_NAME('ONT','OE_VAL_LINE_SET_ATTR');
4022: FND_MESSAGE.SET_TOKEN('LINE_NUMBER',
4023: to_char(l_line_tbl(I).shipment_number));
4024: FND_MESSAGE.SET_TOKEN('PARENT_LINE_NUMBER',
4025: to_char(l_line_tbl(I).line_number));
4026: OE_MSG_PUB.ADD;
4027: RAISE FND_API.G_EXC_ERROR;
4028: --END ER#14763609
4029: END IF;
4030: END IF; -- For Bug 5754554
4033: oe_debug_pub.add('Exiting oe_delayed_requests_util.Validate_Line_Set',1);
4034: EXCEPTION
4035: WHEN FND_API.G_EXC_ERROR THEN
4036:
4037: OE_MSG_PUB.reset_msg_context('SPLIT');
4038: RAISE;
4039:
4040: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4041:
4038: RAISE;
4039:
4040: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4041:
4042: OE_MSG_PUB.reset_msg_context('SPLIT');
4043: RAISE;
4044:
4045:
4046: WHEN OTHERS THEN
4043: RAISE;
4044:
4045:
4046: WHEN OTHERS THEN
4047: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4048: THEN
4049: OE_MSG_PUB.Add_Exc_Msg
4050: ( G_PKG_NAME ,
4051: 'Validate Line Set'
4045:
4046: WHEN OTHERS THEN
4047: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4048: THEN
4049: OE_MSG_PUB.Add_Exc_Msg
4050: ( G_PKG_NAME ,
4051: 'Validate Line Set'
4052: );
4053: END IF;
4183: x_return_status := FND_API.G_RET_STS_ERROR;
4184:
4185: -- Get message count and data
4186:
4187: OE_MSG_PUB.Count_And_Get
4188: ( p_count => x_msg_count
4189: , p_data => x_msg_data
4190: );
4191:
4193:
4194: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4195: -- Get message count and data
4196:
4197: OE_MSG_PUB.Count_And_Get
4198: ( p_count => x_msg_count
4199: , p_data => x_msg_data
4200: );
4201:
4202: WHEN OTHERS THEN
4203:
4204: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4205:
4206: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4207: THEN
4208: OE_MSG_PUB.Add_Exc_Msg
4209: ( G_PKG_NAME
4210: , 'Process_Adjustments'
4204: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
4205:
4206: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4207: THEN
4208: OE_MSG_PUB.Add_Exc_Msg
4209: ( G_PKG_NAME
4210: , 'Process_Adjustments'
4211: );
4212: END IF;
4211: );
4212: END IF;
4213: -- Get message count and data
4214:
4215: OE_MSG_PUB.Count_And_Get
4216: ( p_count => x_msg_count
4217: , p_data => x_msg_data
4218: );
4219:
4606:
4607: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4608: oe_debug_pub.add('Inside exception other error ',1);
4609:
4610: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4611: THEN
4612: OE_MSG_PUB.Add_Exc_Msg
4613: ( G_PKG_NAME
4614: , 'INSERT_SERVICE_FOR_OPTIONS'
4608: oe_debug_pub.add('Inside exception other error ',1);
4609:
4610: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4611: THEN
4612: OE_MSG_PUB.Add_Exc_Msg
4613: ( G_PKG_NAME
4614: , 'INSERT_SERVICE_FOR_OPTIONS'
4615: );
4616: END IF;
4853:
4854: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4855: oe_debug_pub.add('Inside exception other error ',1);
4856:
4857: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4858: THEN
4859: OE_MSG_PUB.Add_Exc_Msg
4860: ( G_PKG_NAME
4861: , 'CASCADE_SERVICE_FOR_OPTIONS'
4855: oe_debug_pub.add('Inside exception other error ',1);
4856:
4857: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4858: THEN
4859: OE_MSG_PUB.Add_Exc_Msg
4860: ( G_PKG_NAME
4861: , 'CASCADE_SERVICE_FOR_OPTIONS'
4862: );
4863: END IF;
4905: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4906: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4907: WHEN OTHERS THEN
4908: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4909: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4910: THEN
4911: OE_MSG_PUB.Add_Exc_Msg
4912: ( G_PKG_NAME
4913: , 'Apply_Automatic_Attachments'
4907: WHEN OTHERS THEN
4908: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4909: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4910: THEN
4911: OE_MSG_PUB.Add_Exc_Msg
4912: ( G_PKG_NAME
4913: , 'Apply_Automatic_Attachments'
4914: );
4915: END IF;
4952: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
4953: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4954: WHEN OTHERS THEN
4955: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4956: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4957: THEN
4958: OE_MSG_PUB.Add_Exc_Msg
4959: ( G_PKG_NAME
4960: , 'Copy_Attachments'
4954: WHEN OTHERS THEN
4955: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4956: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
4957: THEN
4958: OE_MSG_PUB.Add_Exc_Msg
4959: ( G_PKG_NAME
4960: , 'Copy_Attachments'
4961: );
4962: END IF;
5251:
5252: IF l_return_status = FND_API.G_RET_STS_ERROR THEN
5253:
5254: fnd_message.set_name('ONT','OE_SCH_SET_INS_FAILED');
5255: OE_MSG_PUB.Add;
5256:
5257: IF p_sch_set_tbl(I).request_type = OE_GLOBALS.G_SCHEDULE_LINE
5258: THEN
5259:
5298:
5299: -- Bug 2185769
5300: oe_debug_pub.add('Before failing the line',1);
5301: fnd_message.set_name('ONT','OE_SCH_SET_INS_FAILED');
5302: OE_MSG_PUB.Add;
5303:
5304: END IF;
5305:
5306: x_return_status := FND_API.G_RET_STS_SUCCESS;
5313: -- to a scheduled ATO or SMC PTO if it cannot be scheduled on
5314: -- the same date as that of the model.
5315:
5316: fnd_message.set_name('ONT','OE_SCH_SET_INS_FAILED');
5317: OE_MSG_PUB.Add;
5318:
5319: RAISE FND_API.G_EXC_ERROR;
5320:
5321:
5332: x_return_status := FND_API.G_RET_STS_ERROR;
5333:
5334: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5335:
5336: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
5337: THEN
5338: OE_MSG_PUB.Add_Exc_Msg
5339: ( G_PKG_NAME
5340: , 'Schedule_Line'
5334: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
5335:
5336: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
5337: THEN
5338: OE_MSG_PUB.Add_Exc_Msg
5339: ( G_PKG_NAME
5340: , 'Schedule_Line'
5341: );
5342: END IF;
5344:
5345: WHEN OTHERS THEN
5346:
5347:
5348: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
5349: THEN
5350: OE_MSG_PUB.Add_Exc_Msg
5351: ( G_PKG_NAME
5352: , 'Schedule_Line'
5346:
5347:
5348: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
5349: THEN
5350: OE_MSG_PUB.Add_Exc_Msg
5351: ( G_PKG_NAME
5352: , 'Schedule_Line'
5353: );
5354: END IF;
5967: oe_debug_pub.add('Tax_Order: In No DATA Found',2);
5968: END IF;
5969: x_return_status := FND_API.G_RET_STS_SUCCESS;
5970: WHEN OTHERS THEN
5971: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5972: OE_MSG_PUB.Add_Exc_Msg ( G_PKG_NAME , 'Tax Header' );
5973: END IF;
5974: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5975: l_tax_rec_out_tbl.delete;
5968: END IF;
5969: x_return_status := FND_API.G_RET_STS_SUCCESS;
5970: WHEN OTHERS THEN
5971: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
5972: OE_MSG_PUB.Add_Exc_Msg ( G_PKG_NAME , 'Tax Header' );
5973: END IF;
5974: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
5975: l_tax_rec_out_tbl.delete;
5976: l_l_line_adj_tbl.delete;
6088: LOOP
6089: j := j+1;
6090: IF cur_ord_line.item_type_code <> OE_GLOBALS.G_ITEM_STANDARD THEN
6091: fnd_message.set_name('ONT','ONT_ISO_ITEM_TYPE_NOT_STD');
6092: OE_MSG_PUB.Add;
6093: x_return_status := FND_API.G_RET_STS_ERROR;
6094: RAISE FND_API.G_EXC_ERROR;
6095: END IF;
6096: --get the destination organization id and deliver to location id for this order line
6189: --oe_debug_pub.add('auto_create_internal_req: In No DATA Found',2);
6190:
6191: WHEN OTHERS THEN
6192: oe_debug_pub.add('auto_create_internal_req: In Other error',2);
6193: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6194: THEN
6195: OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME,'auto_create_internal_req');
6196: END IF;
6197: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6191: WHEN OTHERS THEN
6192: oe_debug_pub.add('auto_create_internal_req: In Other error',2);
6193: IF OE_MSG_PUB.Check_Msg_Level (OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6194: THEN
6195: OE_MSG_PUB.Add_Exc_Msg (G_PKG_NAME,'auto_create_internal_req');
6196: END IF;
6197: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6198:
6199: END auto_create_internal_req;
6357:
6358: WHEN OTHERS THEN
6359:
6360: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6361: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6362: THEN
6363: OE_MSG_PUB.Add_Exc_Msg
6364: ( G_PKG_NAME
6365: , 'Reverse_Limits'
6359:
6360: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6361: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
6362: THEN
6363: OE_MSG_PUB.Add_Exc_Msg
6364: ( G_PKG_NAME
6365: , 'Reverse_Limits'
6366: );
6367: END IF;
6976: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
6977: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6978: WHEN OTHERS THEN
6979: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6980: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6981: OE_MSG_PUB.Add_Exc_Msg
6982: ( G_PKG_NAME
6983: , 'Update_Requisition_Info'
6984: );
6977: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6978: WHEN OTHERS THEN
6979: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6980: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
6981: OE_MSG_PUB.Add_Exc_Msg
6982: ( G_PKG_NAME
6983: , 'Update_Requisition_Info'
6984: );
6985: END IF;
7031: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
7032: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7033: WHEN OTHERS THEN
7034: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7035: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
7036: OE_MSG_PUB.Add_Exc_Msg
7037: ( G_PKG_NAME
7038: , 'Process_Pre_Exploded_Kits'
7039: );
7032: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7033: WHEN OTHERS THEN
7034: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7035: IF OE_MSG_PUB.Check_Msg_Level(OE_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
7036: OE_MSG_PUB.Add_Exc_Msg
7037: ( G_PKG_NAME
7038: , 'Process_Pre_Exploded_Kits'
7039: );
7040: END IF;