19: IF p_arg_value IS NULL THEN
20: fnd_message.set_name('CSR', 'CSR_MANDATORY_FIELD_MISSING');
21: fnd_message.set_token('FIELD', p_arg_name);
22: fnd_message.set_token('TASK', p_api_name);
23: fnd_msg_pub.ADD;
24: RETURN FALSE;
25: END IF;
26: RETURN TRUE;
27: END valid_argument;
101: RAISE fnd_api.g_exc_unexpected_error;
102: END IF;
103:
104: IF fnd_api.to_boolean(p_init_msg_list) THEN
105: fnd_msg_pub.initialize;
106: END IF;
107:
108: x_return_status := fnd_api.g_ret_sts_success;
109:
174: END IF;
175: EXCEPTION
176: WHEN fnd_api.g_exc_error THEN
177: x_return_status := fnd_api.g_ret_sts_error;
178: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
179: WHEN fnd_api.g_exc_unexpected_error THEN
180: x_return_status := fnd_api.g_ret_sts_unexp_error;
181: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
182: WHEN OTHERS THEN
177: x_return_status := fnd_api.g_ret_sts_error;
178: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
179: WHEN fnd_api.g_exc_unexpected_error THEN
180: x_return_status := fnd_api.g_ret_sts_unexp_error;
181: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
182: WHEN OTHERS THEN
183: x_return_status := fnd_api.g_ret_sts_unexp_error;
184: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
185: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
180: x_return_status := fnd_api.g_ret_sts_unexp_error;
181: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
182: WHEN OTHERS THEN
183: x_return_status := fnd_api.g_ret_sts_unexp_error;
184: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
185: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
186: END IF;
187: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
188: END get_geometry;
181: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
182: WHEN OTHERS THEN
183: x_return_status := fnd_api.g_ret_sts_unexp_error;
184: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
185: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
186: END IF;
187: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
188: END get_geometry;
189:
183: x_return_status := fnd_api.g_ret_sts_unexp_error;
184: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
185: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
186: END IF;
187: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
188: END get_geometry;
189:
190: /**
191: * Gets the Server Timezone configured in the E-Business Suite
388: RAISE fnd_api.g_exc_unexpected_error;
389: END IF;
390:
391: IF fnd_api.to_boolean(p_init_msg_list) THEN
392: fnd_msg_pub.initialize;
393: END IF;
394:
395: x_return_status := fnd_api.g_ret_sts_success;
396:
463:
464: EXCEPTION
465: WHEN fnd_api.g_exc_error THEN
466: x_return_status := fnd_api.g_ret_sts_error;
467: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
468: WHEN fnd_api.g_exc_unexpected_error THEN
469: x_return_status := fnd_api.g_ret_sts_unexp_error;
470: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
471: WHEN OTHERS THEN
466: x_return_status := fnd_api.g_ret_sts_error;
467: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
468: WHEN fnd_api.g_exc_unexpected_error THEN
469: x_return_status := fnd_api.g_ret_sts_unexp_error;
470: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
471: WHEN OTHERS THEN
472: x_return_status := fnd_api.g_ret_sts_unexp_error;
473: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
474: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
469: x_return_status := fnd_api.g_ret_sts_unexp_error;
470: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
471: WHEN OTHERS THEN
472: x_return_status := fnd_api.g_ret_sts_unexp_error;
473: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
474: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
475: END IF;
476: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
477: END create_search_request;
470: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
471: WHEN OTHERS THEN
472: x_return_status := fnd_api.g_ret_sts_unexp_error;
473: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
474: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
475: END IF;
476: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
477: END create_search_request;
478:
472: x_return_status := fnd_api.g_ret_sts_unexp_error;
473: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
474: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
475: END IF;
476: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
477: END create_search_request;
478:
479: /**
480: * This API creates a request of type 'ScheduleOption'
512: RAISE fnd_api.g_exc_unexpected_error;
513: END IF;
514:
515: IF fnd_api.to_boolean(p_init_msg_list) THEN
516: fnd_msg_pub.initialize;
517: END IF;
518:
519: x_return_status := fnd_api.g_ret_sts_success;
520:
542:
543: EXCEPTION
544: WHEN fnd_api.g_exc_error THEN
545: x_return_status := fnd_api.g_ret_sts_error;
546: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
547: WHEN fnd_api.g_exc_unexpected_error THEN
548: x_return_status := fnd_api.g_ret_sts_unexp_error;
549: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
550: WHEN OTHERS THEN
545: x_return_status := fnd_api.g_ret_sts_error;
546: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
547: WHEN fnd_api.g_exc_unexpected_error THEN
548: x_return_status := fnd_api.g_ret_sts_unexp_error;
549: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
550: WHEN OTHERS THEN
551: x_return_status := fnd_api.g_ret_sts_unexp_error;
552: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
553: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
548: x_return_status := fnd_api.g_ret_sts_unexp_error;
549: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
550: WHEN OTHERS THEN
551: x_return_status := fnd_api.g_ret_sts_unexp_error;
552: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
553: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
554: END IF;
555: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
556: END create_schedule_option_request;
549: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
550: WHEN OTHERS THEN
551: x_return_status := fnd_api.g_ret_sts_unexp_error;
552: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
553: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
554: END IF;
555: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
556: END create_schedule_option_request;
557:
551: x_return_status := fnd_api.g_ret_sts_unexp_error;
552: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
553: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
554: END IF;
555: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
556: END create_schedule_option_request;
557:
558: PROCEDURE create_auto_request(
559: x_return_status OUT NOCOPY VARCHAR2
668: END LOOP;
669: EXCEPTION
670: WHEN fnd_api.g_exc_error THEN
671: x_return_status := fnd_api.g_ret_sts_error;
672: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
673: WHEN fnd_api.g_exc_unexpected_error THEN
674: x_return_status := fnd_api.g_ret_sts_unexp_error;
675: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
676: WHEN OTHERS THEN
671: x_return_status := fnd_api.g_ret_sts_error;
672: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
673: WHEN fnd_api.g_exc_unexpected_error THEN
674: x_return_status := fnd_api.g_ret_sts_unexp_error;
675: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
676: WHEN OTHERS THEN
677: x_return_status := fnd_api.g_ret_sts_unexp_error;
678: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
679: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
674: x_return_status := fnd_api.g_ret_sts_unexp_error;
675: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
676: WHEN OTHERS THEN
677: x_return_status := fnd_api.g_ret_sts_unexp_error;
678: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
679: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
680: END IF;
681: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
682: END create_auto_request;
675: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
676: WHEN OTHERS THEN
677: x_return_status := fnd_api.g_ret_sts_unexp_error;
678: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
679: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
680: END IF;
681: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
682: END create_auto_request;
683:
677: x_return_status := fnd_api.g_ret_sts_unexp_error;
678: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
679: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
680: END IF;
681: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
682: END create_auto_request;
683:
684: PROCEDURE fill_request_resources(
685: p_api_version IN NUMBER
729: RAISE fnd_api.g_exc_unexpected_error;
730: END IF;
731:
732: IF fnd_api.to_boolean(p_init_msg_list) THEN
733: fnd_msg_pub.initialize;
734: END IF;
735:
736: x_return_status := fnd_api.g_ret_sts_success;
737:
785: EXCEPTION
786: WHEN fnd_api.g_exc_error THEN
787: ROLLBACK TO fill_request_resources;
788: x_return_status := fnd_api.g_ret_sts_error;
789: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
790: WHEN fnd_api.g_exc_unexpected_error THEN
791: ROLLBACK TO fill_request_resources;
792: x_return_status := fnd_api.g_ret_sts_unexp_error;
793: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
789: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
790: WHEN fnd_api.g_exc_unexpected_error THEN
791: ROLLBACK TO fill_request_resources;
792: x_return_status := fnd_api.g_ret_sts_unexp_error;
793: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
794: WHEN OTHERS THEN
795: x_return_status := fnd_api.g_ret_sts_unexp_error;
796: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
797: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
792: x_return_status := fnd_api.g_ret_sts_unexp_error;
793: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
794: WHEN OTHERS THEN
795: x_return_status := fnd_api.g_ret_sts_unexp_error;
796: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
797: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
798: END IF;
799: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
800: ROLLBACK TO fill_request_resources;
793: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
794: WHEN OTHERS THEN
795: x_return_status := fnd_api.g_ret_sts_unexp_error;
796: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
797: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
798: END IF;
799: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
800: ROLLBACK TO fill_request_resources;
801: END fill_request_resources;
795: x_return_status := fnd_api.g_ret_sts_unexp_error;
796: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
797: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
798: END IF;
799: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
800: ROLLBACK TO fill_request_resources;
801: END fill_request_resources;
802:
803: PROCEDURE search_and_schedule_auto(
820: RAISE fnd_api.g_exc_unexpected_error;
821: END IF;
822:
823: IF fnd_api.to_boolean(p_init_msg_list) THEN
824: fnd_msg_pub.initialize;
825: END IF;
826:
827: x_return_status := fnd_api.g_ret_sts_success;
828:
868: EXCEPTION
869: WHEN fnd_api.g_exc_error THEN
870: ROLLBACK TO search_and_schedule_auto_pub;
871: x_return_status := fnd_api.g_ret_sts_error;
872: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
873: WHEN fnd_api.g_exc_unexpected_error THEN
874: ROLLBACK TO search_and_schedule_auto_pub;
875: x_return_status := fnd_api.g_ret_sts_unexp_error;
876: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
872: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
873: WHEN fnd_api.g_exc_unexpected_error THEN
874: ROLLBACK TO search_and_schedule_auto_pub;
875: x_return_status := fnd_api.g_ret_sts_unexp_error;
876: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
877: WHEN OTHERS THEN
878: x_return_status := fnd_api.g_ret_sts_unexp_error;
879: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
880: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
875: x_return_status := fnd_api.g_ret_sts_unexp_error;
876: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
877: WHEN OTHERS THEN
878: x_return_status := fnd_api.g_ret_sts_unexp_error;
879: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
880: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
881: END IF;
882: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
883: ROLLBACK TO search_and_schedule_auto_pub;
876: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
877: WHEN OTHERS THEN
878: x_return_status := fnd_api.g_ret_sts_unexp_error;
879: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
880: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
881: END IF;
882: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
883: ROLLBACK TO search_and_schedule_auto_pub;
884: END search_and_schedule_auto;
878: x_return_status := fnd_api.g_ret_sts_unexp_error;
879: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
880: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
881: END IF;
882: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
883: ROLLBACK TO search_and_schedule_auto_pub;
884: END search_and_schedule_auto;
885:
886: PROCEDURE create_auto_request(
907: RAISE fnd_api.g_exc_error;
908: END IF;
909:
910: IF fnd_api.to_boolean(p_init_msg_list) THEN
911: fnd_msg_pub.initialize;
912: END IF;
913:
914: IF NOT valid_argument(p_query_id, 'query_id', l_api_name) THEN
915: RAISE fnd_api.g_exc_error;
954: EXCEPTION
955: WHEN fnd_api.g_exc_error THEN
956: ROLLBACK TO create_auto_request_pub;
957: x_return_status := fnd_api.g_ret_sts_error;
958: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
959: WHEN fnd_api.g_exc_unexpected_error THEN
960: ROLLBACK TO create_auto_request_pub;
961: x_return_status := fnd_api.g_ret_sts_unexp_error;
962: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
958: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
959: WHEN fnd_api.g_exc_unexpected_error THEN
960: ROLLBACK TO create_auto_request_pub;
961: x_return_status := fnd_api.g_ret_sts_unexp_error;
962: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
963: WHEN OTHERS THEN
964: x_return_status := fnd_api.g_ret_sts_unexp_error;
965: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
966: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
961: x_return_status := fnd_api.g_ret_sts_unexp_error;
962: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
963: WHEN OTHERS THEN
964: x_return_status := fnd_api.g_ret_sts_unexp_error;
965: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
966: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
967: END IF;
968: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
969: ROLLBACK TO create_auto_request_pub;
962: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
963: WHEN OTHERS THEN
964: x_return_status := fnd_api.g_ret_sts_unexp_error;
965: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
966: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
967: END IF;
968: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
969: ROLLBACK TO create_auto_request_pub;
970: END create_auto_request;
964: x_return_status := fnd_api.g_ret_sts_unexp_error;
965: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
966: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
967: END IF;
968: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
969: ROLLBACK TO create_auto_request_pub;
970: END create_auto_request;
971:
972: PROCEDURE create_optimize_trips_request(
1001: RAISE fnd_api.g_exc_error;
1002: END IF;
1003:
1004: IF fnd_api.to_boolean(p_init_msg_list) THEN
1005: fnd_msg_pub.initialize;
1006: END IF;
1007:
1008: OPEN c_resources;
1009: FETCH c_resources BULK COLLECT INTO l_res_id_tbl, l_res_type_tbl;
1043: EXCEPTION
1044: WHEN fnd_api.g_exc_error THEN
1045: ROLLBACK TO create_opt_request_pub;
1046: x_return_status := fnd_api.g_ret_sts_error;
1047: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1048: WHEN fnd_api.g_exc_unexpected_error THEN
1049: ROLLBACK TO create_opt_request_pub;
1050: x_return_status := fnd_api.g_ret_sts_unexp_error;
1051: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1047: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1048: WHEN fnd_api.g_exc_unexpected_error THEN
1049: ROLLBACK TO create_opt_request_pub;
1050: x_return_status := fnd_api.g_ret_sts_unexp_error;
1051: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1052: WHEN OTHERS THEN
1053: x_return_status := fnd_api.g_ret_sts_unexp_error;
1054: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1055: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1050: x_return_status := fnd_api.g_ret_sts_unexp_error;
1051: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1052: WHEN OTHERS THEN
1053: x_return_status := fnd_api.g_ret_sts_unexp_error;
1054: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1055: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1056: END IF;
1057: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1058: ROLLBACK TO create_opt_request_pub;
1051: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1052: WHEN OTHERS THEN
1053: x_return_status := fnd_api.g_ret_sts_unexp_error;
1054: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1055: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1056: END IF;
1057: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1058: ROLLBACK TO create_opt_request_pub;
1059: END create_optimize_trips_request;
1053: x_return_status := fnd_api.g_ret_sts_unexp_error;
1054: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1055: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1056: END IF;
1057: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1058: ROLLBACK TO create_opt_request_pub;
1059: END create_optimize_trips_request;
1060:
1061: PROCEDURE get_qualified_resources(
1092: RAISE fnd_api.g_exc_error;
1093: END IF;
1094:
1095: IF fnd_api.to_boolean(p_init_msg_list) THEN
1096: fnd_msg_pub.initialize;
1097: END IF;
1098:
1099: x_return_status := fnd_api.g_ret_sts_success;
1100:
1161: END LOOP;
1162: EXCEPTION
1163: WHEN fnd_api.g_exc_error THEN
1164: x_return_status := fnd_api.g_ret_sts_error;
1165: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1166: WHEN fnd_api.g_exc_unexpected_error THEN
1167: x_return_status := fnd_api.g_ret_sts_unexp_error;
1168: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1169: WHEN OTHERS THEN
1164: x_return_status := fnd_api.g_ret_sts_error;
1165: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1166: WHEN fnd_api.g_exc_unexpected_error THEN
1167: x_return_status := fnd_api.g_ret_sts_unexp_error;
1168: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1169: WHEN OTHERS THEN
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1172: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1167: x_return_status := fnd_api.g_ret_sts_unexp_error;
1168: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1169: WHEN OTHERS THEN
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1172: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1173: END IF;
1174: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1175: END get_qualified_resources;
1168: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1169: WHEN OTHERS THEN
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1172: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1173: END IF;
1174: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1175: END get_qualified_resources;
1176:
1170: x_return_status := fnd_api.g_ret_sts_unexp_error;
1171: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1172: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1173: END IF;
1174: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1175: END get_qualified_resources;
1176:
1177: FUNCTION check_material_for_task(p_task_assignment_id IN NUMBER)
1178: RETURN VARCHAR2 IS
1295: RAISE fnd_api.g_exc_error;
1296: END IF;
1297:
1298: IF fnd_api.to_boolean(p_init_msg_list) THEN
1299: fnd_msg_pub.initialize;
1300: END IF;
1301:
1302: x_return_status := fnd_api.g_ret_sts_success;
1303:
1321: END LOOP;
1322:
1323: IF NOT l_objects_locked THEN
1324: fnd_message.set_name ('CSR', 'CSR_LOCKING_RES_TRIPS_FAILED');
1325: fnd_msg_pub.ADD;
1326: RAISE fnd_api.g_exc_error;
1327: END IF;
1328:
1329: EXCEPTION
1328:
1329: EXCEPTION
1330: WHEN fnd_api.g_exc_error THEN
1331: x_return_status := fnd_api.g_ret_sts_error;
1332: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1333: WHEN OTHERS THEN
1334: x_return_status := fnd_api.g_ret_sts_unexp_error;
1335: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1336: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1331: x_return_status := fnd_api.g_ret_sts_error;
1332: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1333: WHEN OTHERS THEN
1334: x_return_status := fnd_api.g_ret_sts_unexp_error;
1335: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1336: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1337: END IF;
1338: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1339: END lock_trips_and_tasks;
1332: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1333: WHEN OTHERS THEN
1334: x_return_status := fnd_api.g_ret_sts_unexp_error;
1335: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1336: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1337: END IF;
1338: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1339: END lock_trips_and_tasks;
1340:
1334: x_return_status := fnd_api.g_ret_sts_unexp_error;
1335: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1336: fnd_msg_pub.add_exc_msg(g_pkg_name, l_api_name);
1337: END IF;
1338: fnd_msg_pub.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
1339: END lock_trips_and_tasks;
1340:
1341: END csr_scheduler_pvt;