113: ) IS
114:
115: l_api_version_number CONSTANT NUMBER := 1.0;
116: l_api_name CONSTANT VARCHAR2(30) := 'GET_CONSIGNED_QUANTITY';
117: l_return_status VARCHAR2(1) := fnd_api.g_ret_sts_success;
118: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
119:
120: BEGIN
121: -- Standard call to check for call compatibility
118: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
119:
120: BEGIN
121: -- Standard call to check for call compatibility
122: IF NOT fnd_api.compatible_api_call(l_api_version_number
123: , p_api_version_number
124: , l_api_name
125: , G_PKG_NAME
126: ) THEN
123: , p_api_version_number
124: , l_api_name
125: , G_PKG_NAME
126: ) THEN
127: RAISE fnd_api.g_exc_unexpected_error;
128: END IF;
129:
130: -- Initialize message list.
131: IF fnd_api.to_boolean(p_init_msg_lst) THEN
127: RAISE fnd_api.g_exc_unexpected_error;
128: END IF;
129:
130: -- Initialize message list.
131: IF fnd_api.to_boolean(p_init_msg_lst) THEN
132: fnd_msg_pub.initialize;
133: END IF;
134:
135: IF (l_debug = 1) THEN
177: , x_satt => x_satt -- invConv change
178: );
179:
180:
181: IF l_return_status = fnd_api.g_ret_sts_error THEN
182: RAISE fnd_api.g_exc_error;
183: END IF ;
184:
185: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
178: );
179:
180:
181: IF l_return_status = fnd_api.g_ret_sts_error THEN
182: RAISE fnd_api.g_exc_error;
183: END IF ;
184:
185: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
186: RAISE fnd_api.g_exc_unexpected_error;
181: IF l_return_status = fnd_api.g_ret_sts_error THEN
182: RAISE fnd_api.g_exc_error;
183: END IF ;
184:
185: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
186: RAISE fnd_api.g_exc_unexpected_error;
187: END IF;
188:
189: x_return_status := l_return_status;
182: RAISE fnd_api.g_exc_error;
183: END IF ;
184:
185: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
186: RAISE fnd_api.g_exc_unexpected_error;
187: END IF;
188:
189: x_return_status := l_return_status;
190:
192: inv_log_util.trace('Finished calling INV_CONSIGNED_VALIDATIONS.GET_CONSIGNED_QUANTITY','CONSIGNED_VALIDATIONS',9);
193: END IF;
194:
195: EXCEPTION
196: WHEN fnd_api.g_exc_error THEN
197: x_return_status := fnd_api.g_ret_sts_error;
198:
199: -- Get message count and data
200: fnd_msg_pub.count_and_get
193: END IF;
194:
195: EXCEPTION
196: WHEN fnd_api.g_exc_error THEN
197: x_return_status := fnd_api.g_ret_sts_error;
198:
199: -- Get message count and data
200: fnd_msg_pub.count_and_get
201: ( p_count => x_msg_count
201: ( p_count => x_msg_count
202: , p_data => x_msg_data
203: );
204:
205: WHEN fnd_api.g_exc_unexpected_error THEN
206: x_return_status := fnd_api.g_ret_sts_unexp_error ;
207:
208: -- Get message count and data
209: fnd_msg_pub.count_and_get
202: , p_data => x_msg_data
203: );
204:
205: WHEN fnd_api.g_exc_unexpected_error THEN
206: x_return_status := fnd_api.g_ret_sts_unexp_error ;
207:
208: -- Get message count and data
209: fnd_msg_pub.count_and_get
210: ( p_count => x_msg_count
211: , p_data => x_msg_data
212: );
213:
214: WHEN OTHERS THEN
215: x_return_status := fnd_api.g_ret_sts_unexp_error ;
216:
217: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error)
218: THEN
219: fnd_msg_pub.add_exc_msg
286:
287:
288: l_api_version_number CONSTANT NUMBER := 1.0;
289: l_api_name CONSTANT VARCHAR2(30) := 'GET_PLANNING_QUANTITY';
290: l_return_status VARCHAR2(1) := fnd_api.g_ret_sts_success;
291: l_qty NUMBER := 0;
292: l_sqty NUMBER := NULL;
293: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
294:
293: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
294:
295: BEGIN
296: -- Standard call to check for call compatibility
297: IF NOT fnd_api.compatible_api_call(l_api_version_number
298: , p_api_version_number
299: , l_api_name
300: , G_PKG_NAME
301: ) THEN
298: , p_api_version_number
299: , l_api_name
300: , G_PKG_NAME
301: ) THEN
302: RAISE fnd_api.g_exc_unexpected_error;
303: END IF;
304:
305: -- Initialize message list.
306: IF fnd_api.to_boolean(p_init_msg_lst) THEN
302: RAISE fnd_api.g_exc_unexpected_error;
303: END IF;
304:
305: -- Initialize message list.
306: IF fnd_api.to_boolean(p_init_msg_lst) THEN
307: fnd_msg_pub.initialize;
308: END IF;
309:
310: IF (l_debug=1) THEN
340: x_planning_qty := l_qty;
341: x_planning_sqty := l_sqty; -- invConv changes
342:
343: EXCEPTION
344: WHEN fnd_api.g_exc_error THEN
345: x_return_status := fnd_api.g_ret_sts_error;
346:
347: -- Get message count and data
348: fnd_msg_pub.count_and_get
341: x_planning_sqty := l_sqty; -- invConv changes
342:
343: EXCEPTION
344: WHEN fnd_api.g_exc_error THEN
345: x_return_status := fnd_api.g_ret_sts_error;
346:
347: -- Get message count and data
348: fnd_msg_pub.count_and_get
349: ( p_count => x_msg_count
349: ( p_count => x_msg_count
350: , p_data => x_msg_data
351: );
352:
353: WHEN fnd_api.g_exc_unexpected_error THEN
354: x_return_status := fnd_api.g_ret_sts_unexp_error ;
355:
356: -- Get message count and data
357: fnd_msg_pub.count_and_get
350: , p_data => x_msg_data
351: );
352:
353: WHEN fnd_api.g_exc_unexpected_error THEN
354: x_return_status := fnd_api.g_ret_sts_unexp_error ;
355:
356: -- Get message count and data
357: fnd_msg_pub.count_and_get
358: ( p_count => x_msg_count
359: , p_data => x_msg_data
360: );
361:
362: WHEN OTHERS THEN
363: x_return_status := fnd_api.g_ret_sts_unexp_error ;
364:
365: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error)
366: THEN
367: fnd_msg_pub.add_exc_msg
395: ) IS
396:
397: l_api_version_number CONSTANT NUMBER := 1.0;
398: l_api_name CONSTANT VARCHAR2(30) := 'GET_PLANNING_SD_QUANTITY';
399: l_return_status VARCHAR2(1) := fnd_api.g_ret_sts_success;
400: l_qty NUMBER := 0;
401: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
402:
403: BEGIN
401: l_debug number := NVL(FND_PROFILE.VALUE('INV_DEBUG_TRACE'),0);
402:
403: BEGIN
404: -- Standard call to check for call compatibility
405: IF NOT fnd_api.compatible_api_call
406: (l_api_version_number
407: , p_api_version_number
408: , l_api_name
409: , G_PKG_NAME
407: , p_api_version_number
408: , l_api_name
409: , G_PKG_NAME
410: ) THEN
411: RAISE fnd_api.g_exc_unexpected_error;
412: END IF;
413:
414: -- Initialize message list.
415: IF fnd_api.to_boolean(p_init_msg_lst) THEN
411: RAISE fnd_api.g_exc_unexpected_error;
412: END IF;
413:
414: -- Initialize message list.
415: IF fnd_api.to_boolean(p_init_msg_lst) THEN
416: fnd_msg_pub.initialize;
417: END IF;
418:
419: IF (l_debug=1) THEN
433: x_return_status := l_return_status;
434: x_planning_qty := l_qty;
435:
436: EXCEPTION
437: WHEN fnd_api.g_exc_error THEN
438: x_return_status := fnd_api.g_ret_sts_error;
439:
440: -- Get message count and data
441: fnd_msg_pub.count_and_get
434: x_planning_qty := l_qty;
435:
436: EXCEPTION
437: WHEN fnd_api.g_exc_error THEN
438: x_return_status := fnd_api.g_ret_sts_error;
439:
440: -- Get message count and data
441: fnd_msg_pub.count_and_get
442: ( p_count => x_msg_count
442: ( p_count => x_msg_count
443: , p_data => x_msg_data
444: );
445:
446: WHEN fnd_api.g_exc_unexpected_error THEN
447: x_return_status := fnd_api.g_ret_sts_unexp_error ;
448:
449: -- Get message count and data
450: fnd_msg_pub.count_and_get
443: , p_data => x_msg_data
444: );
445:
446: WHEN fnd_api.g_exc_unexpected_error THEN
447: x_return_status := fnd_api.g_ret_sts_unexp_error ;
448:
449: -- Get message count and data
450: fnd_msg_pub.count_and_get
451: ( p_count => x_msg_count
452: , p_data => x_msg_data
453: );
454:
455: WHEN OTHERS THEN
456: x_return_status := fnd_api.g_ret_sts_unexp_error ;
457:
458: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_unexp_error)
459: THEN
460: fnd_msg_pub.add_exc_msg