DBA Data[Home] [Help]

APPS.OZF_ACTBUDGETS_PVT dependencies on FND_API

Line 119: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false

115: ,p_parent_process_key IN VARCHAR2
116: ,p_parent_context IN VARCHAR2
117: ,p_parent_approval_flag IN VARCHAR2
118: ,p_continue_flow IN VARCHAR2
119: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false
120: -- 10/22/2001 mpande Changed code different owner allocation bug
121: ,p_requestor_owner_flag IN VARCHAR2 := 'N'
122: ,x_start_flow_flag OUT NOCOPY VARCHAR2
123: -- added on 03/20/03

Line 200: RAISE Fnd_Api.g_exc_error;

196:
197:
198: EXCEPTION
199: WHEN OTHERS THEN
200: RAISE Fnd_Api.g_exc_error;
201: ozf_utility_pvt.debug_message('Exception in raising business event');
202: END;
203:
204:

Line 222: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

218: -- End of Comments
219: /*****************************************************************************************/
220: PROCEDURE create_act_budgets (
221: p_api_version IN NUMBER
222: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
223: ,p_commit IN VARCHAR2 := fnd_api.g_false
224: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
225: ,x_return_status OUT NOCOPY VARCHAR2
226: ,x_msg_count OUT NOCOPY NUMBER

Line 223: ,p_commit IN VARCHAR2 := fnd_api.g_false

219: /*****************************************************************************************/
220: PROCEDURE create_act_budgets (
221: p_api_version IN NUMBER
222: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
223: ,p_commit IN VARCHAR2 := fnd_api.g_false
224: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
225: ,x_return_status OUT NOCOPY VARCHAR2
226: ,x_msg_count OUT NOCOPY NUMBER
227: ,x_msg_data OUT NOCOPY VARCHAR2

Line 224: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

220: PROCEDURE create_act_budgets (
221: p_api_version IN NUMBER
222: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
223: ,p_commit IN VARCHAR2 := fnd_api.g_false
224: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
225: ,x_return_status OUT NOCOPY VARCHAR2
226: ,x_msg_count OUT NOCOPY NUMBER
227: ,x_msg_data OUT NOCOPY VARCHAR2
228: ,p_act_budgets_rec IN act_budgets_rec_type

Line 243: ,p_approval_flag => fnd_api.g_false

239: ,x_msg_data => x_msg_data
240: ,p_act_budgets_rec => p_act_budgets_rec
241: ,p_act_util_rec => G_MISS_ACT_UTIL_REC
242: ,x_act_budget_id => x_act_budget_id
243: ,p_approval_flag => fnd_api.g_false
244: --p_approval_flag IN VARCHAR2 := fnd_api.g_false means approval required
245: );
246:
247: END create_act_budgets;

Line 244: --p_approval_flag IN VARCHAR2 := fnd_api.g_false means approval required

240: ,p_act_budgets_rec => p_act_budgets_rec
241: ,p_act_util_rec => G_MISS_ACT_UTIL_REC
242: ,x_act_budget_id => x_act_budget_id
243: ,p_approval_flag => fnd_api.g_false
244: --p_approval_flag IN VARCHAR2 := fnd_api.g_false means approval required
245: );
246:
247: END create_act_budgets;
248:

Line 256: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

252: * added x_utilized_amount
253: */
254: PROCEDURE create_act_budgets (
255: p_api_version IN NUMBER
256: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
257: ,p_commit IN VARCHAR2 := fnd_api.g_false
258: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
259: ,x_return_status OUT NOCOPY VARCHAR2
260: ,x_msg_count OUT NOCOPY NUMBER

Line 257: ,p_commit IN VARCHAR2 := fnd_api.g_false

253: */
254: PROCEDURE create_act_budgets (
255: p_api_version IN NUMBER
256: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
257: ,p_commit IN VARCHAR2 := fnd_api.g_false
258: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
259: ,x_return_status OUT NOCOPY VARCHAR2
260: ,x_msg_count OUT NOCOPY NUMBER
261: ,x_msg_data OUT NOCOPY VARCHAR2

Line 258: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

254: PROCEDURE create_act_budgets (
255: p_api_version IN NUMBER
256: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
257: ,p_commit IN VARCHAR2 := fnd_api.g_false
258: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
259: ,x_return_status OUT NOCOPY VARCHAR2
260: ,x_msg_count OUT NOCOPY NUMBER
261: ,x_msg_data OUT NOCOPY VARCHAR2
262: ,p_act_budgets_rec IN act_budgets_rec_type

Line 265: ,p_approval_flag IN VARCHAR2 := fnd_api.g_false

261: ,x_msg_data OUT NOCOPY VARCHAR2
262: ,p_act_budgets_rec IN act_budgets_rec_type
263: ,p_act_util_rec IN act_util_rec_type
264: ,x_act_budget_id OUT NOCOPY NUMBER
265: ,p_approval_flag IN VARCHAR2 := fnd_api.g_false
266: ) IS
267: l_utilized_amount NUMBER;
268: BEGIN
269: create_act_budgets (

Line 301: -- p_approval_flag IN VARCHAR2 := fnd_api.g_false means approval required

297: -- 14-Aug-2000 choang Modified for spec signature change.
298: -- 22-Feb-2001 mpande Modified for Hornet changes.
299: -- 29-OCT-2001 feliu Modified for recalculating committment.
300: -- 12/18/2001 mpande Added code for checkbook _v
301: -- p_approval_flag IN VARCHAR2 := fnd_api.g_false means approval required
302: -- request amount would always be in act_budget_used_by curr
303: -- End of Comments
304: /*****************************************************************************************/
305: PROCEDURE create_act_budgets (

Line 307: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

303: -- End of Comments
304: /*****************************************************************************************/
305: PROCEDURE create_act_budgets (
306: p_api_version IN NUMBER
307: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
308: ,p_commit IN VARCHAR2 := fnd_api.g_false
309: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
310: ,x_return_status OUT NOCOPY VARCHAR2
311: ,x_msg_count OUT NOCOPY NUMBER

Line 308: ,p_commit IN VARCHAR2 := fnd_api.g_false

304: /*****************************************************************************************/
305: PROCEDURE create_act_budgets (
306: p_api_version IN NUMBER
307: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
308: ,p_commit IN VARCHAR2 := fnd_api.g_false
309: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
310: ,x_return_status OUT NOCOPY VARCHAR2
311: ,x_msg_count OUT NOCOPY NUMBER
312: ,x_msg_data OUT NOCOPY VARCHAR2

Line 309: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

305: PROCEDURE create_act_budgets (
306: p_api_version IN NUMBER
307: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
308: ,p_commit IN VARCHAR2 := fnd_api.g_false
309: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
310: ,x_return_status OUT NOCOPY VARCHAR2
311: ,x_msg_count OUT NOCOPY NUMBER
312: ,x_msg_data OUT NOCOPY VARCHAR2
313: ,p_act_budgets_rec IN act_budgets_rec_type

Line 316: ,p_approval_flag IN VARCHAR2 := fnd_api.g_false

312: ,x_msg_data OUT NOCOPY VARCHAR2
313: ,p_act_budgets_rec IN act_budgets_rec_type
314: ,p_act_util_rec IN act_util_rec_type
315: ,x_act_budget_id OUT NOCOPY NUMBER
316: ,p_approval_flag IN VARCHAR2 := fnd_api.g_false
317: ,x_utilized_amount OUT NOCOPY NUMBER -- yzhao: 06/21/2004 added for chargeback
318: ) IS
319: l_api_name CONSTANT VARCHAR2 (30) := 'Create_Act_Budgets';
320: l_api_version CONSTANT NUMBER := 1.0;

Line 370: l_exchange_rate_type VARCHAR2(150) := FND_API.G_MISS_CHAR;

366: l_fc_amount NUMBER;
367: l_set_of_books_id NUMBER;
368: l_mrc_sob_type_code VARCHAR2(30);
369: l_fc_currency_code VARCHAR2(150);
370: l_exchange_rate_type VARCHAR2(150) := FND_API.G_MISS_CHAR;
371: l_exchange_rate NUMBER;
372: -- mpande for changed checkbook view 12/17/2001
373: l_src_curr_request_amt NUMBER;
374: l_src_currency VARCHAR2(150);

Line 390: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN

386: -- Standard Start of API savepoint
387: SAVEPOINT create_act_budgets_pvt;
388:
389: -- Standard call to check for call compatibility.
390: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
391: RAISE fnd_api.g_exc_unexpected_error;
392: END IF;
393:
394: -- Initialize message list IF p_init_msg_list is set to TRUE.

Line 391: RAISE fnd_api.g_exc_unexpected_error;

387: SAVEPOINT create_act_budgets_pvt;
388:
389: -- Standard call to check for call compatibility.
390: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
391: RAISE fnd_api.g_exc_unexpected_error;
392: END IF;
393:
394: -- Initialize message list IF p_init_msg_list is set to TRUE.
395: IF fnd_api.to_boolean (p_init_msg_list) THEN

Line 395: IF fnd_api.to_boolean (p_init_msg_list) THEN

391: RAISE fnd_api.g_exc_unexpected_error;
392: END IF;
393:
394: -- Initialize message list IF p_init_msg_list is set to TRUE.
395: IF fnd_api.to_boolean (p_init_msg_list) THEN
396: fnd_msg_pub.initialize;
397: END IF;
398:
399: -- Initialize API return status to success

Line 400: x_return_status := fnd_api.g_ret_sts_success;

396: fnd_msg_pub.initialize;
397: END IF;
398:
399: -- Initialize API return status to success
400: x_return_status := fnd_api.g_ret_sts_success;
401:
402: -- API body
403: -- Initialize default values before validation
404: -- Get ID for activity budget from sequence.

Line 468: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

464: ,x_to_amount=> l_act_budgets_rec.request_amount
465: );
466: END IF;
467:
468: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
469: RAISE fnd_api.g_exc_unexpected_error;
470: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
471: RAISE fnd_api.g_exc_error;
472: END IF;

Line 469: RAISE fnd_api.g_exc_unexpected_error;

465: );
466: END IF;
467:
468: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
469: RAISE fnd_api.g_exc_unexpected_error;
470: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
471: RAISE fnd_api.g_exc_error;
472: END IF;
473: END IF;

Line 470: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

466: END IF;
467:
468: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
469: RAISE fnd_api.g_exc_unexpected_error;
470: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
471: RAISE fnd_api.g_exc_error;
472: END IF;
473: END IF;
474: END IF;

Line 471: RAISE fnd_api.g_exc_error;

467:
468: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
469: RAISE fnd_api.g_exc_unexpected_error;
470: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
471: RAISE fnd_api.g_exc_error;
472: END IF;
473: END IF;
474: END IF;
475: END IF;

Line 480: x_return_status := fnd_api.g_ret_sts_error;

476: /* End OF Change mpande 12/19/2001 */
477:
478: IF l_act_budgets_rec.request_currency IS NULL THEN
479: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
480: x_return_status := fnd_api.g_ret_sts_error;
481: END IF;
482:
483: IF l_return_status = fnd_api.g_ret_sts_error THEN
484: RAISE fnd_api.g_exc_error;

Line 483: IF l_return_status = fnd_api.g_ret_sts_error THEN

479: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
480: x_return_status := fnd_api.g_ret_sts_error;
481: END IF;
482:
483: IF l_return_status = fnd_api.g_ret_sts_error THEN
484: RAISE fnd_api.g_exc_error;
485: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
486: RAISE fnd_api.g_exc_unexpected_error;
487: END IF;

Line 484: RAISE fnd_api.g_exc_error;

480: x_return_status := fnd_api.g_ret_sts_error;
481: END IF;
482:
483: IF l_return_status = fnd_api.g_ret_sts_error THEN
484: RAISE fnd_api.g_exc_error;
485: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
486: RAISE fnd_api.g_exc_unexpected_error;
487: END IF;
488:

Line 485: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

481: END IF;
482:
483: IF l_return_status = fnd_api.g_ret_sts_error THEN
484: RAISE fnd_api.g_exc_error;
485: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
486: RAISE fnd_api.g_exc_unexpected_error;
487: END IF;
488:
489: -- Added 04/26/2001 mpande for new functionality changes for hornet

Line 486: RAISE fnd_api.g_exc_unexpected_error;

482:
483: IF l_return_status = fnd_api.g_ret_sts_error THEN
484: RAISE fnd_api.g_exc_error;
485: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
486: RAISE fnd_api.g_exc_unexpected_error;
487: END IF;
488:
489: -- Added 04/26/2001 mpande for new functionality changes for hornet
490: ---System Populates the parent Source Id

Line 497: ELSIF p_approval_flag = fnd_api.g_true THEN -- Added by feliu for recalculating committment.

493: l_act_budgets_rec.approved_amount := l_act_budgets_rec.request_amount;
494: l_act_budgets_rec.approved_original_amount := l_act_budgets_rec.request_amount;
495: l_act_budgets_rec.approved_in_currency := l_act_budgets_rec.request_currency;
496:
497: ELSIF p_approval_flag = fnd_api.g_true THEN -- Added by feliu for recalculating committment.
498: l_act_budgets_rec.status_code := 'APPROVED';
499: -- yzhao: 10/20/2003 automatically populate approved amount, currency information if it is not passed in
500: --l_act_budgets_rec.approved_amount := l_act_budgets_rec.approved_amount;
501: --l_act_budgets_rec.approved_original_amount := l_act_budgets_rec.approved_original_amount;

Line 530: l_act_budgets_rec.approval_date = fnd_api.g_miss_date THEN

526:
527: -- yzhao: 10/20/2003 automatically populate approved amount, currency information if it is not passed in
528: IF l_act_budgets_rec.status_code = 'APPROVED' THEN
529: IF l_act_budgets_rec.approval_date IS NULL OR
530: l_act_budgets_rec.approval_date = fnd_api.g_miss_date THEN
531: l_act_budgets_rec.approval_date := sysdate;
532: END IF;
533:
534: IF l_act_budgets_rec.approver_id IS NULL OR

Line 535: l_act_budgets_rec.approver_id = fnd_api.g_miss_num THEN

531: l_act_budgets_rec.approval_date := sysdate;
532: END IF;
533:
534: IF l_act_budgets_rec.approver_id IS NULL OR
535: l_act_budgets_rec.approver_id = fnd_api.g_miss_num THEN
536: l_act_budgets_rec.approver_id := ams_utility_pvt.get_resource_id (fnd_global.user_id);
537: END IF;
538:
539: IF l_act_budgets_rec.approved_amount IS NULL OR

Line 540: l_act_budgets_rec.approved_amount = fnd_api.g_miss_num THEN

536: l_act_budgets_rec.approver_id := ams_utility_pvt.get_resource_id (fnd_global.user_id);
537: END IF;
538:
539: IF l_act_budgets_rec.approved_amount IS NULL OR
540: l_act_budgets_rec.approved_amount = fnd_api.g_miss_num THEN
541: l_act_budgets_rec.approved_amount := l_act_budgets_rec.request_amount;
542: END IF;
543:
544: IF l_act_budgets_rec.approved_in_currency IS NULL OR

Line 545: l_act_budgets_rec.approved_in_currency = fnd_api.g_miss_char THEN

541: l_act_budgets_rec.approved_amount := l_act_budgets_rec.request_amount;
542: END IF;
543:
544: IF l_act_budgets_rec.approved_in_currency IS NULL OR
545: l_act_budgets_rec.approved_in_currency = fnd_api.g_miss_char THEN
546: l_act_budgets_rec.approved_in_currency :=
547: get_object_currency (
548: l_act_budgets_rec.budget_source_type
549: ,l_act_budgets_rec.budget_source_id

Line 552: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

548: l_act_budgets_rec.budget_source_type
549: ,l_act_budgets_rec.budget_source_id
550: ,l_return_status
551: );
552: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
553: RAISE fnd_api.g_exc_unexpected_error;
554: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
555: RAISE fnd_api.g_exc_error;
556: END IF;

Line 553: RAISE fnd_api.g_exc_unexpected_error;

549: ,l_act_budgets_rec.budget_source_id
550: ,l_return_status
551: );
552: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
553: RAISE fnd_api.g_exc_unexpected_error;
554: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
555: RAISE fnd_api.g_exc_error;
556: END IF;
557: END IF;

Line 554: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

550: ,l_return_status
551: );
552: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
553: RAISE fnd_api.g_exc_unexpected_error;
554: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
555: RAISE fnd_api.g_exc_error;
556: END IF;
557: END IF;
558:

Line 555: RAISE fnd_api.g_exc_error;

551: );
552: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
553: RAISE fnd_api.g_exc_unexpected_error;
554: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
555: RAISE fnd_api.g_exc_error;
556: END IF;
557: END IF;
558:
559:

Line 562: l_act_budgets_rec.approved_original_amount = fnd_api.g_miss_num THEN

558:
559:
560:
561: IF l_act_budgets_rec.approved_original_amount IS NULL OR
562: l_act_budgets_rec.approved_original_amount = fnd_api.g_miss_num THEN
563:
564:
565:
566: IF l_act_budgets_rec.request_currency = l_act_budgets_rec.approved_in_currency THEN

Line 601: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

597: );
598: END IF;
599:
600:
601: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
602: RAISE fnd_api.g_exc_unexpected_error;
603: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
604: RAISE fnd_api.g_exc_error;
605: END IF;

Line 602: RAISE fnd_api.g_exc_unexpected_error;

598: END IF;
599:
600:
601: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
602: RAISE fnd_api.g_exc_unexpected_error;
603: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
604: RAISE fnd_api.g_exc_error;
605: END IF;
606: END IF;

Line 603: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

599:
600:
601: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
602: RAISE fnd_api.g_exc_unexpected_error;
603: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
604: RAISE fnd_api.g_exc_error;
605: END IF;
606: END IF;
607: END IF;

Line 604: RAISE fnd_api.g_exc_error;

600:
601: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
602: RAISE fnd_api.g_exc_unexpected_error;
603: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
604: RAISE fnd_api.g_exc_error;
605: END IF;
606: END IF;
607: END IF;
608: END IF; -- IF l_act_budgets_rec.status_code = 'APPROVED' THEN

Line 613: IF l_return_status = fnd_api.g_ret_sts_error THEN

609:
610: l_act_budgets_rec.user_status_id :=
611: ozf_utility_pvt.get_default_user_status (l_status_type, l_act_budgets_rec.status_code);
612:
613: IF l_return_status = fnd_api.g_ret_sts_error THEN
614: RAISE fnd_api.g_exc_error;
615: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
616: RAISE fnd_api.g_exc_unexpected_error;
617: END IF;

Line 614: RAISE fnd_api.g_exc_error;

610: l_act_budgets_rec.user_status_id :=
611: ozf_utility_pvt.get_default_user_status (l_status_type, l_act_budgets_rec.status_code);
612:
613: IF l_return_status = fnd_api.g_ret_sts_error THEN
614: RAISE fnd_api.g_exc_error;
615: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
616: RAISE fnd_api.g_exc_unexpected_error;
617: END IF;
618:

Line 615: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

611: ozf_utility_pvt.get_default_user_status (l_status_type, l_act_budgets_rec.status_code);
612:
613: IF l_return_status = fnd_api.g_ret_sts_error THEN
614: RAISE fnd_api.g_exc_error;
615: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
616: RAISE fnd_api.g_exc_unexpected_error;
617: END IF;
618:
619:

Line 616: RAISE fnd_api.g_exc_unexpected_error;

612:
613: IF l_return_status = fnd_api.g_ret_sts_error THEN
614: RAISE fnd_api.g_exc_error;
615: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
616: RAISE fnd_api.g_exc_unexpected_error;
617: END IF;
618:
619:
620: ----------------------- validate -----------------------

Line 649: l_exchange_rate_type := FND_API.G_MISS_CHAR;

645: OPEN c_get_conversion_type(l_act_util_rec.org_id);
646: FETCH c_get_conversion_type INTO l_exchange_rate_type;
647: CLOSE c_get_conversion_type;
648: ELSE
649: l_exchange_rate_type := FND_API.G_MISS_CHAR;
650: END IF;
651:
652:
653: IF NVL(l_act_budgets_rec.request_amount,0) <> 0 THEN

Line 678: IF l_return_status = fnd_api.g_ret_sts_error THEN

674: ,x_return_status => l_return_status
675: ,x_to_amount => l_act_budgets_rec.src_curr_req_amt
676: ,x_rate => l_rate);
677: END IF;
678: IF l_return_status = fnd_api.g_ret_sts_error THEN
679: RAISE fnd_api.g_exc_error;
680: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
681: RAISE fnd_api.g_exc_unexpected_error;
682: END IF;

Line 679: RAISE fnd_api.g_exc_error;

675: ,x_to_amount => l_act_budgets_rec.src_curr_req_amt
676: ,x_rate => l_rate);
677: END IF;
678: IF l_return_status = fnd_api.g_ret_sts_error THEN
679: RAISE fnd_api.g_exc_error;
680: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
681: RAISE fnd_api.g_exc_unexpected_error;
682: END IF;
683: END IF;

Line 680: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

676: ,x_rate => l_rate);
677: END IF;
678: IF l_return_status = fnd_api.g_ret_sts_error THEN
679: RAISE fnd_api.g_exc_error;
680: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
681: RAISE fnd_api.g_exc_unexpected_error;
682: END IF;
683: END IF;
684:

Line 681: RAISE fnd_api.g_exc_unexpected_error;

677: END IF;
678: IF l_return_status = fnd_api.g_ret_sts_error THEN
679: RAISE fnd_api.g_exc_error;
680: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
681: RAISE fnd_api.g_exc_unexpected_error;
682: END IF;
683: END IF;
684:
685: validate_act_budgets (

Line 687: ,p_init_msg_list=> fnd_api.g_false

683: END IF;
684:
685: validate_act_budgets (
686: p_api_version=> 1.0
687: ,p_init_msg_list=> fnd_api.g_false
688: ,p_validation_level=> p_validation_level
689: ,x_return_status=> l_return_status
690: ,x_msg_count=> x_msg_count
691: ,x_msg_data=> x_msg_data

Line 696: IF l_return_status = fnd_api.g_ret_sts_error THEN

692: ,p_act_budgets_rec=> l_act_budgets_rec
693: );
694:
695: -- If any errors happen abort API.
696: IF l_return_status = fnd_api.g_ret_sts_error THEN
697: RAISE fnd_api.g_exc_error;
698: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
699: RAISE fnd_api.g_exc_unexpected_error;
700: END IF;

Line 697: RAISE fnd_api.g_exc_error;

693: );
694:
695: -- If any errors happen abort API.
696: IF l_return_status = fnd_api.g_ret_sts_error THEN
697: RAISE fnd_api.g_exc_error;
698: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
699: RAISE fnd_api.g_exc_unexpected_error;
700: END IF;
701: -- Added 04/26/2001 mpande for new functionality changes for hornet

Line 698: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

694:
695: -- If any errors happen abort API.
696: IF l_return_status = fnd_api.g_ret_sts_error THEN
697: RAISE fnd_api.g_exc_error;
698: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
699: RAISE fnd_api.g_exc_unexpected_error;
700: END IF;
701: -- Added 04/26/2001 mpande for new functionality changes for hornet
702: IF l_act_budgets_rec.budget_source_type = 'FUND'

Line 699: RAISE fnd_api.g_exc_unexpected_error;

695: -- If any errors happen abort API.
696: IF l_return_status = fnd_api.g_ret_sts_error THEN
697: RAISE fnd_api.g_exc_error;
698: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
699: RAISE fnd_api.g_exc_unexpected_error;
700: END IF;
701: -- Added 04/26/2001 mpande for new functionality changes for hornet
702: IF l_act_budgets_rec.budget_source_type = 'FUND'
703: AND l_act_budgets_rec.arc_act_budget_used_by = 'FUND' THEN

Line 742: IF l_return_status = fnd_api.g_ret_sts_error THEN

738: || l_act_budgets_rec.act_budget_used_by_id
739: || ') returns ' || l_return_status
740: || ' ledger_id=' || l_ledger_id);
741: END IF;
742: IF l_return_status = fnd_api.g_ret_sts_error THEN
743: RAISE fnd_api.g_exc_error;
744: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
745: RAISE fnd_api.g_exc_unexpected_error;
746: END IF;

Line 743: RAISE fnd_api.g_exc_error;

739: || ') returns ' || l_return_status
740: || ' ledger_id=' || l_ledger_id);
741: END IF;
742: IF l_return_status = fnd_api.g_ret_sts_error THEN
743: RAISE fnd_api.g_exc_error;
744: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
745: RAISE fnd_api.g_exc_unexpected_error;
746: END IF;
747: END IF;

Line 744: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

740: || ' ledger_id=' || l_ledger_id);
741: END IF;
742: IF l_return_status = fnd_api.g_ret_sts_error THEN
743: RAISE fnd_api.g_exc_error;
744: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
745: RAISE fnd_api.g_exc_unexpected_error;
746: END IF;
747: END IF;
748:

Line 745: RAISE fnd_api.g_exc_unexpected_error;

741: END IF;
742: IF l_return_status = fnd_api.g_ret_sts_error THEN
743: RAISE fnd_api.g_exc_error;
744: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
745: RAISE fnd_api.g_exc_unexpected_error;
746: END IF;
747: END IF;
748:
749: --kdass 16-NOV-2005 bug 4728515 - for quota, bypass ledger check

Line 773: x_return_status := fnd_api.g_ret_sts_error;

769: --fnd_message.set_token('OBJECT_TYPE', l_act_budgets_rec.arc_act_budget_used_by);
770: --fnd_message.set_token('OBJECT_ID', l_act_budgets_rec.act_budget_used_by_id);
771: fnd_msg_pub.ADD;
772: END IF;
773: x_return_status := fnd_api.g_ret_sts_error;
774: RAISE fnd_api.g_exc_error;
775: END IF;
776: ELSE
777: --Added for bug 7030415, l_act_util_rec.org_id is available. use it for time being.

Line 774: RAISE fnd_api.g_exc_error;

770: --fnd_message.set_token('OBJECT_ID', l_act_budgets_rec.act_budget_used_by_id);
771: fnd_msg_pub.ADD;
772: END IF;
773: x_return_status := fnd_api.g_ret_sts_error;
774: RAISE fnd_api.g_exc_error;
775: END IF;
776: ELSE
777: --Added for bug 7030415, l_act_util_rec.org_id is available. use it for time being.
778: --Column approved_amount_fc is used in Offer's Performance cuecard.

Line 832: IF l_return_status = fnd_api.g_ret_sts_error THEN

828: ,x_exchange_rate => l_exchange_rate
829: ,x_return_status => l_return_status);
830: */
831:
832: IF l_return_status = fnd_api.g_ret_sts_error THEN
833: RAISE fnd_api.g_exc_error;
834: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
835: RAISE fnd_api.g_exc_unexpected_error;
836: END IF;

Line 833: RAISE fnd_api.g_exc_error;

829: ,x_return_status => l_return_status);
830: */
831:
832: IF l_return_status = fnd_api.g_ret_sts_error THEN
833: RAISE fnd_api.g_exc_error;
834: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
835: RAISE fnd_api.g_exc_unexpected_error;
836: END IF;
837: END IF;

Line 834: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

830: */
831:
832: IF l_return_status = fnd_api.g_ret_sts_error THEN
833: RAISE fnd_api.g_exc_error;
834: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
835: RAISE fnd_api.g_exc_unexpected_error;
836: END IF;
837: END IF;
838: END IF;

Line 835: RAISE fnd_api.g_exc_unexpected_error;

831:
832: IF l_return_status = fnd_api.g_ret_sts_error THEN
833: RAISE fnd_api.g_exc_error;
834: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
835: RAISE fnd_api.g_exc_unexpected_error;
836: END IF;
837: END IF;
838: END IF;
839: END IF;

Line 945: IF l_return_status <> fnd_api.g_ret_sts_success THEN

941: ,x_return_status=> l_return_status
942: );
943: END IF;
944:
945: IF l_return_status <> fnd_api.g_ret_sts_success THEN
946: RAISE fnd_api.g_exc_error;
947: END IF;
948:
949: -- update the fudn for release and reserve

Line 946: RAISE fnd_api.g_exc_error;

942: );
943: END IF;
944:
945: IF l_return_status <> fnd_api.g_ret_sts_success THEN
946: RAISE fnd_api.g_exc_error;
947: END IF;
948:
949: -- update the fudn for release and reserve
950: -- if the adjust_flag = 'Y' or null then only update the fund otherwise donot.

Line 955: p_commit=> fnd_api.g_false

951: -- during fund updating this flag is passed 'N'
952: IF l_act_budgets_rec.transfer_type IN ('RELEASE', 'RESERVE')
953: AND NVL (l_act_budgets_rec.adjusted_flag, 'Y') = 'Y' THEN
954: ozf_fund_request_apr_pvt.approve_holdback (
955: p_commit=> fnd_api.g_false
956: ,p_act_budget_id=> l_act_budget_id
957: ,p_transfer_type=> l_act_budgets_rec.transfer_type
958: ,p_transac_fund_id=> l_act_budgets_rec.budget_source_id
959: ,p_requester_id=> l_act_budgets_rec.requester_id

Line 967: IF l_return_status <> fnd_api.g_ret_sts_success THEN

963: ,x_msg_count=> x_msg_count
964: ,x_msg_data=> x_msg_data
965: );
966:
967: IF l_return_status <> fnd_api.g_ret_sts_success THEN
968: RAISE fnd_api.g_exc_error;
969: END IF;
970: END IF;
971:

Line 968: RAISE fnd_api.g_exc_error;

964: ,x_msg_data=> x_msg_data
965: );
966:
967: IF l_return_status <> fnd_api.g_ret_sts_success THEN
968: RAISE fnd_api.g_exc_error;
969: END IF;
970: END IF;
971:
972: -- 02/23/2001 mpande whenever user enters a amount as utlized

Line 997: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

993: ,x_utilized_amount => x_utilized_amount
994: );
995:
996:
997: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
998: RAISE fnd_api.g_exc_unexpected_error;
999: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1000: RAISE fnd_api.g_exc_error;
1001: END IF;

Line 998: RAISE fnd_api.g_exc_unexpected_error;

994: );
995:
996:
997: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
998: RAISE fnd_api.g_exc_unexpected_error;
999: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1000: RAISE fnd_api.g_exc_error;
1001: END IF;
1002: END IF;

Line 999: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

995:
996:
997: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
998: RAISE fnd_api.g_exc_unexpected_error;
999: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1000: RAISE fnd_api.g_exc_error;
1001: END IF;
1002: END IF;
1003:

Line 1000: RAISE fnd_api.g_exc_error;

996:
997: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
998: RAISE fnd_api.g_exc_unexpected_error;
999: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1000: RAISE fnd_api.g_exc_error;
1001: END IF;
1002: END IF;
1003:
1004: IF (l_act_budgets_rec.arc_act_budget_used_by ='CAMP' AND l_act_budgets_rec.budget_source_type = 'CSCH') OR

Line 1017: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1013: p_exchange_rate_type => l_exchange_rate_type
1014:
1015: );
1016:
1017: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1018: RAISE fnd_api.g_exc_unexpected_error;
1019: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1020: RAISE fnd_api.g_exc_error;
1021: END IF;

Line 1018: RAISE fnd_api.g_exc_unexpected_error;

1014:
1015: );
1016:
1017: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1018: RAISE fnd_api.g_exc_unexpected_error;
1019: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1020: RAISE fnd_api.g_exc_error;
1021: END IF;
1022:

Line 1019: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1015: );
1016:
1017: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1018: RAISE fnd_api.g_exc_unexpected_error;
1019: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1020: RAISE fnd_api.g_exc_error;
1021: END IF;
1022:
1023: END IF;

Line 1020: RAISE fnd_api.g_exc_error;

1016:
1017: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1018: RAISE fnd_api.g_exc_unexpected_error;
1019: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1020: RAISE fnd_api.g_exc_error;
1021: END IF;
1022:
1023: END IF;
1024:

Line 1035: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1031: ,x_msg_data=> x_msg_data
1032: ,p_mode => 'CREATE'
1033: );
1034:
1035: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1036: RAISE fnd_api.g_exc_unexpected_error;
1037: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1038: RAISE fnd_api.g_exc_error;
1039: END IF;

Line 1036: RAISE fnd_api.g_exc_unexpected_error;

1032: ,p_mode => 'CREATE'
1033: );
1034:
1035: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1036: RAISE fnd_api.g_exc_unexpected_error;
1037: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1038: RAISE fnd_api.g_exc_error;
1039: END IF;
1040: END IF;

Line 1037: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1033: );
1034:
1035: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1036: RAISE fnd_api.g_exc_unexpected_error;
1037: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1038: RAISE fnd_api.g_exc_error;
1039: END IF;
1040: END IF;
1041: -- Add by feliu on 05/22/04 for referal.

Line 1038: RAISE fnd_api.g_exc_error;

1034:
1035: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1036: RAISE fnd_api.g_exc_unexpected_error;
1037: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1038: RAISE fnd_api.g_exc_error;
1039: END IF;
1040: END IF;
1041: -- Add by feliu on 05/22/04 for referal.
1042: IF l_act_budgets_rec.status_code = 'PENDING_VALIDATION' THEN

Line 1064: IF l_return_status <> fnd_api.g_ret_sts_success THEN

1060: ,x_msg_count=> x_msg_count
1061: ,x_msg_data=> x_msg_data
1062: );
1063:
1064: IF l_return_status <> fnd_api.g_ret_sts_success THEN
1065: RAISE fnd_api.g_exc_error;
1066: END IF;
1067: END IF;
1068: /***** END OF Addition for Partner ********/

Line 1065: RAISE fnd_api.g_exc_error;

1061: ,x_msg_data=> x_msg_data
1062: );
1063:
1064: IF l_return_status <> fnd_api.g_ret_sts_success THEN
1065: RAISE fnd_api.g_exc_error;
1066: END IF;
1067: END IF;
1068: /***** END OF Addition for Partner ********/
1069: --

Line 1073: IF fnd_api.to_boolean (p_commit) THEN

1069: --
1070: -- END of API body.
1071: --
1072: -- Standard check of p_commit.
1073: IF fnd_api.to_boolean (p_commit) THEN
1074: COMMIT WORK;
1075: END IF;
1076:
1077: -- Standard call to get message count AND IF count is 1, get message info.

Line 1081: ,p_encoded=> fnd_api.g_false

1077: -- Standard call to get message count AND IF count is 1, get message info.
1078: fnd_msg_pub.count_and_get (
1079: p_count=> x_msg_count
1080: ,p_data=> x_msg_data
1081: ,p_encoded=> fnd_api.g_false
1082: );
1083: EXCEPTION
1084: WHEN fnd_api.g_exc_error THEN
1085: ROLLBACK TO create_act_budgets_pvt;

Line 1084: WHEN fnd_api.g_exc_error THEN

1080: ,p_data=> x_msg_data
1081: ,p_encoded=> fnd_api.g_false
1082: );
1083: EXCEPTION
1084: WHEN fnd_api.g_exc_error THEN
1085: ROLLBACK TO create_act_budgets_pvt;
1086: x_return_status := fnd_api.g_ret_sts_error;
1087: fnd_msg_pub.count_and_get (
1088: p_count=> x_msg_count

Line 1086: x_return_status := fnd_api.g_ret_sts_error;

1082: );
1083: EXCEPTION
1084: WHEN fnd_api.g_exc_error THEN
1085: ROLLBACK TO create_act_budgets_pvt;
1086: x_return_status := fnd_api.g_ret_sts_error;
1087: fnd_msg_pub.count_and_get (
1088: p_count=> x_msg_count
1089: ,p_data=> x_msg_data
1090: ,p_encoded=> fnd_api.g_false

Line 1090: ,p_encoded=> fnd_api.g_false

1086: x_return_status := fnd_api.g_ret_sts_error;
1087: fnd_msg_pub.count_and_get (
1088: p_count=> x_msg_count
1089: ,p_data=> x_msg_data
1090: ,p_encoded=> fnd_api.g_false
1091: );
1092: WHEN fnd_api.g_exc_unexpected_error THEN
1093: ROLLBACK TO create_act_budgets_pvt;
1094: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 1092: WHEN fnd_api.g_exc_unexpected_error THEN

1088: p_count=> x_msg_count
1089: ,p_data=> x_msg_data
1090: ,p_encoded=> fnd_api.g_false
1091: );
1092: WHEN fnd_api.g_exc_unexpected_error THEN
1093: ROLLBACK TO create_act_budgets_pvt;
1094: x_return_status := fnd_api.g_ret_sts_unexp_error;
1095: fnd_msg_pub.count_and_get (
1096: p_count=> x_msg_count

Line 1094: x_return_status := fnd_api.g_ret_sts_unexp_error;

1090: ,p_encoded=> fnd_api.g_false
1091: );
1092: WHEN fnd_api.g_exc_unexpected_error THEN
1093: ROLLBACK TO create_act_budgets_pvt;
1094: x_return_status := fnd_api.g_ret_sts_unexp_error;
1095: fnd_msg_pub.count_and_get (
1096: p_count=> x_msg_count
1097: ,p_data=> x_msg_data
1098: ,p_encoded=> fnd_api.g_false

Line 1098: ,p_encoded=> fnd_api.g_false

1094: x_return_status := fnd_api.g_ret_sts_unexp_error;
1095: fnd_msg_pub.count_and_get (
1096: p_count=> x_msg_count
1097: ,p_data=> x_msg_data
1098: ,p_encoded=> fnd_api.g_false
1099: );
1100: WHEN OTHERS THEN
1101: ROLLBACK TO create_act_budgets_pvt;
1102: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 1102: x_return_status := fnd_api.g_ret_sts_unexp_error;

1098: ,p_encoded=> fnd_api.g_false
1099: );
1100: WHEN OTHERS THEN
1101: ROLLBACK TO create_act_budgets_pvt;
1102: x_return_status := fnd_api.g_ret_sts_unexp_error;
1103:
1104: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
1105: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
1106: END IF;

Line 1111: ,p_encoded=> fnd_api.g_false

1107:
1108: fnd_msg_pub.count_and_get (
1109: p_count=> x_msg_count
1110: ,p_data=> x_msg_data
1111: ,p_encoded=> fnd_api.g_false
1112: );
1113: END create_act_budgets;
1114:
1115:

Line 1133: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

1129: -- End of Comments
1130: /*****************************************************************************************/
1131: PROCEDURE update_act_budgets (
1132: p_api_version IN NUMBER
1133: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1134: ,p_commit IN VARCHAR2 := fnd_api.g_false
1135: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1136: ,x_return_status OUT NOCOPY VARCHAR2
1137: ,x_msg_count OUT NOCOPY NUMBER

Line 1134: ,p_commit IN VARCHAR2 := fnd_api.g_false

1130: /*****************************************************************************************/
1131: PROCEDURE update_act_budgets (
1132: p_api_version IN NUMBER
1133: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1134: ,p_commit IN VARCHAR2 := fnd_api.g_false
1135: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1136: ,x_return_status OUT NOCOPY VARCHAR2
1137: ,x_msg_count OUT NOCOPY NUMBER
1138: ,x_msg_data OUT NOCOPY VARCHAR2

Line 1135: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

1131: PROCEDURE update_act_budgets (
1132: p_api_version IN NUMBER
1133: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1134: ,p_commit IN VARCHAR2 := fnd_api.g_false
1135: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1136: ,x_return_status OUT NOCOPY VARCHAR2
1137: ,x_msg_count OUT NOCOPY NUMBER
1138: ,x_msg_data OUT NOCOPY VARCHAR2
1139: ,p_act_budgets_rec IN act_budgets_rec_type

Line 1152: ,p_parent_process_flag=> fnd_api.g_false

1148: ,x_return_status=> x_return_status
1149: ,x_msg_count=> x_msg_count
1150: ,x_msg_data=> x_msg_data
1151: ,p_act_budgets_rec=> p_act_budgets_rec
1152: ,p_parent_process_flag=> fnd_api.g_false
1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false

Line 1153: ,p_parent_process_key=> fnd_api.g_miss_char

1149: ,x_msg_count=> x_msg_count
1150: ,x_msg_data=> x_msg_data
1151: ,p_act_budgets_rec=> p_act_budgets_rec
1152: ,p_parent_process_flag=> fnd_api.g_false
1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false
1157: ,p_child_approval_flag=> fnd_api.g_false

Line 1154: ,p_parent_context=> fnd_api.g_miss_char

1150: ,x_msg_data=> x_msg_data
1151: ,p_act_budgets_rec=> p_act_budgets_rec
1152: ,p_parent_process_flag=> fnd_api.g_false
1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false
1157: ,p_child_approval_flag=> fnd_api.g_false
1158: -- 10/22/2001 mpande Changed code different owner allocation bug

Line 1155: ,p_parent_approval_flag=> fnd_api.g_false

1151: ,p_act_budgets_rec=> p_act_budgets_rec
1152: ,p_parent_process_flag=> fnd_api.g_false
1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false
1157: ,p_child_approval_flag=> fnd_api.g_false
1158: -- 10/22/2001 mpande Changed code different owner allocation bug
1159: ,p_requestor_owner_flag => 'N'

Line 1156: ,p_continue_flow=> fnd_api.g_false

1152: ,p_parent_process_flag=> fnd_api.g_false
1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false
1157: ,p_child_approval_flag=> fnd_api.g_false
1158: -- 10/22/2001 mpande Changed code different owner allocation bug
1159: ,p_requestor_owner_flag => 'N'
1160: ,x_utilized_amount => l_utilized_amount

Line 1157: ,p_child_approval_flag=> fnd_api.g_false

1153: ,p_parent_process_key=> fnd_api.g_miss_char
1154: ,p_parent_context=> fnd_api.g_miss_char
1155: ,p_parent_approval_flag=> fnd_api.g_false
1156: ,p_continue_flow=> fnd_api.g_false
1157: ,p_child_approval_flag=> fnd_api.g_false
1158: -- 10/22/2001 mpande Changed code different owner allocation bug
1159: ,p_requestor_owner_flag => 'N'
1160: ,x_utilized_amount => l_utilized_amount
1161: );

Line 1179: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

1175: -- End of Comments
1176: /*****************************************************************************************/
1177: PROCEDURE update_act_budgets (
1178: p_api_version IN NUMBER
1179: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1180: ,p_commit IN VARCHAR2 := fnd_api.g_false
1181: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1182: ,x_return_status OUT NOCOPY VARCHAR2
1183: ,x_msg_count OUT NOCOPY NUMBER

Line 1180: ,p_commit IN VARCHAR2 := fnd_api.g_false

1176: /*****************************************************************************************/
1177: PROCEDURE update_act_budgets (
1178: p_api_version IN NUMBER
1179: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1180: ,p_commit IN VARCHAR2 := fnd_api.g_false
1181: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1182: ,x_return_status OUT NOCOPY VARCHAR2
1183: ,x_msg_count OUT NOCOPY NUMBER
1184: ,x_msg_data OUT NOCOPY VARCHAR2

Line 1181: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

1177: PROCEDURE update_act_budgets (
1178: p_api_version IN NUMBER
1179: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1180: ,p_commit IN VARCHAR2 := fnd_api.g_false
1181: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1182: ,x_return_status OUT NOCOPY VARCHAR2
1183: ,x_msg_count OUT NOCOPY NUMBER
1184: ,x_msg_data OUT NOCOPY VARCHAR2
1185: ,p_act_budgets_rec IN act_budgets_rec_type

Line 1203: ,p_parent_process_flag=> fnd_api.g_false

1199: ,x_msg_count=> x_msg_count
1200: ,x_msg_data=> x_msg_data
1201: ,p_act_budgets_rec=> p_act_budgets_rec
1202: ,p_child_approval_flag=> p_child_approval_flag
1203: ,p_parent_process_flag=> fnd_api.g_false
1204: ,p_parent_process_key=> fnd_api.g_miss_char
1205: ,p_parent_context=> fnd_api.g_miss_char
1206: ,p_parent_approval_flag=> fnd_api.g_false
1207: ,p_continue_flow=> fnd_api.g_false

Line 1204: ,p_parent_process_key=> fnd_api.g_miss_char

1200: ,x_msg_data=> x_msg_data
1201: ,p_act_budgets_rec=> p_act_budgets_rec
1202: ,p_child_approval_flag=> p_child_approval_flag
1203: ,p_parent_process_flag=> fnd_api.g_false
1204: ,p_parent_process_key=> fnd_api.g_miss_char
1205: ,p_parent_context=> fnd_api.g_miss_char
1206: ,p_parent_approval_flag=> fnd_api.g_false
1207: ,p_continue_flow=> fnd_api.g_false
1208: -- 10/22/2001 mpande Changed code different owner allocation bug

Line 1205: ,p_parent_context=> fnd_api.g_miss_char

1201: ,p_act_budgets_rec=> p_act_budgets_rec
1202: ,p_child_approval_flag=> p_child_approval_flag
1203: ,p_parent_process_flag=> fnd_api.g_false
1204: ,p_parent_process_key=> fnd_api.g_miss_char
1205: ,p_parent_context=> fnd_api.g_miss_char
1206: ,p_parent_approval_flag=> fnd_api.g_false
1207: ,p_continue_flow=> fnd_api.g_false
1208: -- 10/22/2001 mpande Changed code different owner allocation bug
1209: ,p_requestor_owner_flag => p_requestor_owner_flag

Line 1206: ,p_parent_approval_flag=> fnd_api.g_false

1202: ,p_child_approval_flag=> p_child_approval_flag
1203: ,p_parent_process_flag=> fnd_api.g_false
1204: ,p_parent_process_key=> fnd_api.g_miss_char
1205: ,p_parent_context=> fnd_api.g_miss_char
1206: ,p_parent_approval_flag=> fnd_api.g_false
1207: ,p_continue_flow=> fnd_api.g_false
1208: -- 10/22/2001 mpande Changed code different owner allocation bug
1209: ,p_requestor_owner_flag => p_requestor_owner_flag
1210: ,p_act_util_rec => p_act_util_rec

Line 1207: ,p_continue_flow=> fnd_api.g_false

1203: ,p_parent_process_flag=> fnd_api.g_false
1204: ,p_parent_process_key=> fnd_api.g_miss_char
1205: ,p_parent_context=> fnd_api.g_miss_char
1206: ,p_parent_approval_flag=> fnd_api.g_false
1207: ,p_continue_flow=> fnd_api.g_false
1208: -- 10/22/2001 mpande Changed code different owner allocation bug
1209: ,p_requestor_owner_flag => p_requestor_owner_flag
1210: ,p_act_util_rec => p_act_util_rec
1211: ,x_utilized_amount => l_utilized_amount

Line 1221: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

1217: -- yzhao: 06/21/2004 added x_utilized_amount to return actual utilized amount
1218: */
1219: PROCEDURE update_act_budgets (
1220: p_api_version IN NUMBER
1221: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1222: ,p_commit IN VARCHAR2 := fnd_api.g_false
1223: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1224: ,x_return_status OUT NOCOPY VARCHAR2
1225: ,x_msg_count OUT NOCOPY NUMBER

Line 1222: ,p_commit IN VARCHAR2 := fnd_api.g_false

1218: */
1219: PROCEDURE update_act_budgets (
1220: p_api_version IN NUMBER
1221: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1222: ,p_commit IN VARCHAR2 := fnd_api.g_false
1223: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1224: ,x_return_status OUT NOCOPY VARCHAR2
1225: ,x_msg_count OUT NOCOPY NUMBER
1226: ,x_msg_data OUT NOCOPY VARCHAR2

Line 1223: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

1219: PROCEDURE update_act_budgets (
1220: p_api_version IN NUMBER
1221: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1222: ,p_commit IN VARCHAR2 := fnd_api.g_false
1223: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1224: ,x_return_status OUT NOCOPY VARCHAR2
1225: ,x_msg_count OUT NOCOPY NUMBER
1226: ,x_msg_data OUT NOCOPY VARCHAR2
1227: ,p_act_budgets_rec IN act_budgets_rec_type

Line 1245: ,p_parent_process_flag=> fnd_api.g_false

1241: ,x_msg_count=> x_msg_count
1242: ,x_msg_data=> x_msg_data
1243: ,p_act_budgets_rec=> p_act_budgets_rec
1244: ,p_child_approval_flag=> p_child_approval_flag
1245: ,p_parent_process_flag=> fnd_api.g_false
1246: ,p_parent_process_key=> fnd_api.g_miss_char
1247: ,p_parent_context=> fnd_api.g_miss_char
1248: ,p_parent_approval_flag=> fnd_api.g_false
1249: ,p_continue_flow=> fnd_api.g_false

Line 1246: ,p_parent_process_key=> fnd_api.g_miss_char

1242: ,x_msg_data=> x_msg_data
1243: ,p_act_budgets_rec=> p_act_budgets_rec
1244: ,p_child_approval_flag=> p_child_approval_flag
1245: ,p_parent_process_flag=> fnd_api.g_false
1246: ,p_parent_process_key=> fnd_api.g_miss_char
1247: ,p_parent_context=> fnd_api.g_miss_char
1248: ,p_parent_approval_flag=> fnd_api.g_false
1249: ,p_continue_flow=> fnd_api.g_false
1250: -- 10/22/2001 mpande Changed code different owner allocation bug

Line 1247: ,p_parent_context=> fnd_api.g_miss_char

1243: ,p_act_budgets_rec=> p_act_budgets_rec
1244: ,p_child_approval_flag=> p_child_approval_flag
1245: ,p_parent_process_flag=> fnd_api.g_false
1246: ,p_parent_process_key=> fnd_api.g_miss_char
1247: ,p_parent_context=> fnd_api.g_miss_char
1248: ,p_parent_approval_flag=> fnd_api.g_false
1249: ,p_continue_flow=> fnd_api.g_false
1250: -- 10/22/2001 mpande Changed code different owner allocation bug
1251: ,p_requestor_owner_flag => p_requestor_owner_flag

Line 1248: ,p_parent_approval_flag=> fnd_api.g_false

1244: ,p_child_approval_flag=> p_child_approval_flag
1245: ,p_parent_process_flag=> fnd_api.g_false
1246: ,p_parent_process_key=> fnd_api.g_miss_char
1247: ,p_parent_context=> fnd_api.g_miss_char
1248: ,p_parent_approval_flag=> fnd_api.g_false
1249: ,p_continue_flow=> fnd_api.g_false
1250: -- 10/22/2001 mpande Changed code different owner allocation bug
1251: ,p_requestor_owner_flag => p_requestor_owner_flag
1252: ,p_act_util_rec => p_act_util_rec

Line 1249: ,p_continue_flow=> fnd_api.g_false

1245: ,p_parent_process_flag=> fnd_api.g_false
1246: ,p_parent_process_key=> fnd_api.g_miss_char
1247: ,p_parent_context=> fnd_api.g_miss_char
1248: ,p_parent_approval_flag=> fnd_api.g_false
1249: ,p_continue_flow=> fnd_api.g_false
1250: -- 10/22/2001 mpande Changed code different owner allocation bug
1251: ,p_requestor_owner_flag => p_requestor_owner_flag
1252: ,p_act_util_rec => p_act_util_rec
1253: ,x_utilized_amount => x_utilized_amount

Line 1271: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

1267: -- End Of Comments
1268: /****************************************************************************/
1269: PROCEDURE update_act_budgets (
1270: p_api_version IN NUMBER
1271: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1272: ,p_commit IN VARCHAR2 := fnd_api.g_false
1273: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1274: ,x_return_status OUT NOCOPY VARCHAR2
1275: ,x_msg_count OUT NOCOPY NUMBER

Line 1272: ,p_commit IN VARCHAR2 := fnd_api.g_false

1268: /****************************************************************************/
1269: PROCEDURE update_act_budgets (
1270: p_api_version IN NUMBER
1271: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1272: ,p_commit IN VARCHAR2 := fnd_api.g_false
1273: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1274: ,x_return_status OUT NOCOPY VARCHAR2
1275: ,x_msg_count OUT NOCOPY NUMBER
1276: ,x_msg_data OUT NOCOPY VARCHAR2

Line 1273: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

1269: PROCEDURE update_act_budgets (
1270: p_api_version IN NUMBER
1271: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1272: ,p_commit IN VARCHAR2 := fnd_api.g_false
1273: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1274: ,x_return_status OUT NOCOPY VARCHAR2
1275: ,x_msg_count OUT NOCOPY NUMBER
1276: ,x_msg_data OUT NOCOPY VARCHAR2
1277: ,p_act_budgets_rec IN act_budgets_rec_type

Line 1283: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false

1279: ,p_parent_process_key IN VARCHAR2
1280: ,p_parent_context IN VARCHAR2
1281: ,p_parent_approval_flag IN VARCHAR2
1282: ,p_continue_flow IN VARCHAR2
1283: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false
1284: ,p_requestor_owner_flag IN VARCHAR2 := 'N'
1285: ,p_act_util_rec IN act_util_rec_type := NULL
1286: ) IS
1287: l_utilized_amount NUMBER;

Line 1325: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

1321: -- End Of Comments
1322: /****************************************************************************/
1323: PROCEDURE update_act_budgets (
1324: p_api_version IN NUMBER
1325: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1326: ,p_commit IN VARCHAR2 := fnd_api.g_false
1327: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1328: ,x_return_status OUT NOCOPY VARCHAR2
1329: ,x_msg_count OUT NOCOPY NUMBER

Line 1326: ,p_commit IN VARCHAR2 := fnd_api.g_false

1322: /****************************************************************************/
1323: PROCEDURE update_act_budgets (
1324: p_api_version IN NUMBER
1325: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1326: ,p_commit IN VARCHAR2 := fnd_api.g_false
1327: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1328: ,x_return_status OUT NOCOPY VARCHAR2
1329: ,x_msg_count OUT NOCOPY NUMBER
1330: ,x_msg_data OUT NOCOPY VARCHAR2

Line 1327: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

1323: PROCEDURE update_act_budgets (
1324: p_api_version IN NUMBER
1325: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
1326: ,p_commit IN VARCHAR2 := fnd_api.g_false
1327: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
1328: ,x_return_status OUT NOCOPY VARCHAR2
1329: ,x_msg_count OUT NOCOPY NUMBER
1330: ,x_msg_data OUT NOCOPY VARCHAR2
1331: ,p_act_budgets_rec IN act_budgets_rec_type

Line 1337: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false

1333: ,p_parent_process_key IN VARCHAR2
1334: ,p_parent_context IN VARCHAR2
1335: ,p_parent_approval_flag IN VARCHAR2
1336: ,p_continue_flow IN VARCHAR2
1337: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false
1338: ,p_requestor_owner_flag IN VARCHAR2 := 'N'
1339: ,p_act_util_rec IN act_util_rec_type := NULL
1340: ,x_utilized_amount OUT NOCOPY NUMBER -- yzhao: 06/21/2004 added to return actual utilized amount
1341: ) IS

Line 1393: l_exchange_rate_type VARCHAR2(30) := FND_API.G_MISS_CHAR; --Added for bug 7030415

1389: l_fc_amount NUMBER;
1390: l_set_of_books_id NUMBER;
1391: l_mrc_sob_type_code VARCHAR2(30);
1392: l_fc_currency_code VARCHAR2(150);
1393: l_exchange_rate_type VARCHAR2(30) := FND_API.G_MISS_CHAR; --Added for bug 7030415
1394: l_exchange_rate NUMBER;
1395: -- mpande for changed checkbook view 12/17/2001
1396: l_src_curr_request_amt NUMBER;
1397: l_src_currency VARCHAR2(150);

Line 1449: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN

1445: -- Standard Start of API savepoint
1446: SAVEPOINT update_act_budgets_pvt;
1447:
1448: -- Standard call to check for call compatibility.
1449: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
1450: RAISE fnd_api.g_exc_unexpected_error;
1451: END IF;
1452:
1453: -- Initialize message list IF p_init_msg_list is set to TRUE.

Line 1450: RAISE fnd_api.g_exc_unexpected_error;

1446: SAVEPOINT update_act_budgets_pvt;
1447:
1448: -- Standard call to check for call compatibility.
1449: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
1450: RAISE fnd_api.g_exc_unexpected_error;
1451: END IF;
1452:
1453: -- Initialize message list IF p_init_msg_list is set to TRUE.
1454: IF fnd_api.to_boolean (p_init_msg_list) THEN

Line 1454: IF fnd_api.to_boolean (p_init_msg_list) THEN

1450: RAISE fnd_api.g_exc_unexpected_error;
1451: END IF;
1452:
1453: -- Initialize message list IF p_init_msg_list is set to TRUE.
1454: IF fnd_api.to_boolean (p_init_msg_list) THEN
1455: fnd_msg_pub.initialize;
1456: END IF;
1457:
1458: -- Initialize API return status to success

Line 1459: x_return_status := fnd_api.g_ret_sts_success;

1455: fnd_msg_pub.initialize;
1456: END IF;
1457:
1458: -- Initialize API return status to success
1459: x_return_status := fnd_api.g_ret_sts_success;
1460: --
1461: -- API body
1462: --
1463: complete_act_budgets_rec (p_act_budgets_rec, l_act_budgets_rec);

Line 1489: AND p_act_budgets_rec.src_curr_req_amt <> FND_API.g_miss_num THEN

1485: ,l_return_status
1486: );
1487: -- do this only if it is null because , in other case request amount should be passed correctly
1488: IF p_act_budgets_rec.request_amount IS NULL AND p_act_budgets_rec.src_curr_req_amt IS NOT NULL
1489: AND p_act_budgets_rec.src_curr_req_amt <> FND_API.g_miss_num THEN
1490:
1491: IF l_act_budgets_rec.request_currency = l_act_budgets_rec.approved_in_currency THEN
1492: -- don't need to convert if currencies are equal
1493: l_act_budgets_rec.request_amount := l_act_budgets_rec.src_curr_req_amt;

Line 1521: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1517: ,x_to_amount=> l_act_budgets_rec.request_amount
1518: );
1519: END IF;
1520:
1521: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1522: RAISE fnd_api.g_exc_unexpected_error;
1523: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1524: RAISE fnd_api.g_exc_error;
1525: END IF;

Line 1522: RAISE fnd_api.g_exc_unexpected_error;

1518: );
1519: END IF;
1520:
1521: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1522: RAISE fnd_api.g_exc_unexpected_error;
1523: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1524: RAISE fnd_api.g_exc_error;
1525: END IF;
1526: END IF;

Line 1523: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1519: END IF;
1520:
1521: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1522: RAISE fnd_api.g_exc_unexpected_error;
1523: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1524: RAISE fnd_api.g_exc_error;
1525: END IF;
1526: END IF;
1527: END IF;

Line 1524: RAISE fnd_api.g_exc_error;

1520:
1521: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1522: RAISE fnd_api.g_exc_unexpected_error;
1523: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1524: RAISE fnd_api.g_exc_error;
1525: END IF;
1526: END IF;
1527: END IF;
1528: END IF;

Line 1533: x_return_status := fnd_api.g_ret_sts_error;

1529: /* End OF CHange mpande 12/19/2001 */
1530:
1531: IF l_act_budgets_rec.request_currency IS NULL THEN
1532: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
1533: x_return_status := fnd_api.g_ret_sts_error;
1534: END IF;
1535:
1536: IF l_return_status = fnd_api.g_ret_sts_error THEN
1537: RAISE fnd_api.g_exc_error;

Line 1536: IF l_return_status = fnd_api.g_ret_sts_error THEN

1532: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
1533: x_return_status := fnd_api.g_ret_sts_error;
1534: END IF;
1535:
1536: IF l_return_status = fnd_api.g_ret_sts_error THEN
1537: RAISE fnd_api.g_exc_error;
1538: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1539: RAISE fnd_api.g_exc_unexpected_error;
1540: END IF;

Line 1537: RAISE fnd_api.g_exc_error;

1533: x_return_status := fnd_api.g_ret_sts_error;
1534: END IF;
1535:
1536: IF l_return_status = fnd_api.g_ret_sts_error THEN
1537: RAISE fnd_api.g_exc_error;
1538: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1539: RAISE fnd_api.g_exc_unexpected_error;
1540: END IF;
1541:

Line 1538: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1534: END IF;
1535:
1536: IF l_return_status = fnd_api.g_ret_sts_error THEN
1537: RAISE fnd_api.g_exc_error;
1538: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1539: RAISE fnd_api.g_exc_unexpected_error;
1540: END IF;
1541:
1542: IF l_act_budgets_rec.user_status_id IS NULL THEN

Line 1539: RAISE fnd_api.g_exc_unexpected_error;

1535:
1536: IF l_return_status = fnd_api.g_ret_sts_error THEN
1537: RAISE fnd_api.g_exc_error;
1538: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1539: RAISE fnd_api.g_exc_unexpected_error;
1540: END IF;
1541:
1542: IF l_act_budgets_rec.user_status_id IS NULL THEN
1543: l_act_budgets_rec.user_status_id :=

Line 1559: RAISE fnd_api.g_exc_unexpected_error;

1555:
1556: IF c_current_status%NOTFOUND THEN
1557: CLOSE c_current_status;
1558: ozf_utility_pvt.error_message ('OZF_API_RECORD_NOT_FOUND');
1559: RAISE fnd_api.g_exc_unexpected_error;
1560: END IF;
1561:
1562: CLOSE c_current_status;
1563:

Line 1571: RAISE fnd_api.g_exc_error;

1567: ozf_utility_pvt.debug_message(' status_code :'|| l_act_budgets_rec.status_code );
1568:
1569: IF l_old_status_code = 'CLOSED' THEN
1570: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_REJECTED');
1571: RAISE fnd_api.g_exc_error;
1572: ELSIF l_old_status_code = 'REJECTED' THEN
1573: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_REJECTED');
1574: RAISE fnd_api.g_exc_error;
1575: --

Line 1574: RAISE fnd_api.g_exc_error;

1570: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_REJECTED');
1571: RAISE fnd_api.g_exc_error;
1572: ELSIF l_old_status_code = 'REJECTED' THEN
1573: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_REJECTED');
1574: RAISE fnd_api.g_exc_error;
1575: --
1576: -- Cases of valid approval:
1577: -- 1) WF approval process responds to request to APPROVE, in which case, old status
1578: -- equals PENDING and new status equals APPROVED.

Line 1605: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1601: ,x_msg_count=> x_msg_count
1602: ,x_msg_data=> x_msg_data
1603: );
1604:
1605: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1606: RAISE fnd_api.g_exc_unexpected_error;
1607: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1608: RAISE fnd_api.g_exc_error;
1609: END IF;

Line 1606: RAISE fnd_api.g_exc_unexpected_error;

1602: ,x_msg_data=> x_msg_data
1603: );
1604:
1605: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1606: RAISE fnd_api.g_exc_unexpected_error;
1607: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1608: RAISE fnd_api.g_exc_error;
1609: END IF;
1610:

Line 1607: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1603: );
1604:
1605: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1606: RAISE fnd_api.g_exc_unexpected_error;
1607: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1608: RAISE fnd_api.g_exc_error;
1609: END IF;
1610:
1611: complete_act_budgets_rec (l_temp_rec, l_act_budgets_rec);

Line 1608: RAISE fnd_api.g_exc_error;

1604:
1605: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1606: RAISE fnd_api.g_exc_unexpected_error;
1607: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1608: RAISE fnd_api.g_exc_error;
1609: END IF;
1610:
1611: complete_act_budgets_rec (l_temp_rec, l_act_budgets_rec);
1612: ELSIF l_old_status_code = 'PENDING'

Line 1642: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1638: ,p_from_amount=> l_act_budgets_rec.request_amount
1639: ,x_to_amount=> l_fund_rec.planned_amt
1640: );
1641:
1642: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1643: RAISE fnd_api.g_exc_unexpected_error;
1644: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1645: RAISE fnd_api.g_exc_error;
1646: END IF;

Line 1643: RAISE fnd_api.g_exc_unexpected_error;

1639: ,x_to_amount=> l_fund_rec.planned_amt
1640: );
1641:
1642: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1643: RAISE fnd_api.g_exc_unexpected_error;
1644: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1645: RAISE fnd_api.g_exc_error;
1646: END IF;
1647: END IF;

Line 1644: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1640: );
1641:
1642: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1643: RAISE fnd_api.g_exc_unexpected_error;
1644: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1645: RAISE fnd_api.g_exc_error;
1646: END IF;
1647: END IF;
1648:

Line 1645: RAISE fnd_api.g_exc_error;

1641:
1642: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1643: RAISE fnd_api.g_exc_unexpected_error;
1644: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1645: RAISE fnd_api.g_exc_error;
1646: END IF;
1647: END IF;
1648:
1649: -- R12: yzhao BEGIN ozf_object_fund_summary decrease planned_amount

Line 1663: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1659: ,p_from_amount=> l_act_budgets_rec.request_amount
1660: ,x_to_amount=> l_univ_amount
1661: );
1662:
1663: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1664: RAISE fnd_api.g_exc_unexpected_error;
1665: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1666: RAISE fnd_api.g_exc_error;
1667: END IF;

Line 1664: RAISE fnd_api.g_exc_unexpected_error;

1660: ,x_to_amount=> l_univ_amount
1661: );
1662:
1663: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1664: RAISE fnd_api.g_exc_unexpected_error;
1665: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1666: RAISE fnd_api.g_exc_error;
1667: END IF;
1668: END IF;

Line 1665: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1661: );
1662:
1663: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1664: RAISE fnd_api.g_exc_unexpected_error;
1665: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1666: RAISE fnd_api.g_exc_error;
1667: END IF;
1668: END IF;
1669:

Line 1666: RAISE fnd_api.g_exc_error;

1662:
1663: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1664: RAISE fnd_api.g_exc_unexpected_error;
1665: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1666: RAISE fnd_api.g_exc_error;
1667: END IF;
1668: END IF;
1669:
1670: l_objfundsum_rec := NULL;

Line 1685: RAISE fnd_api.g_exc_error;

1681: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_error) THEN
1682: fnd_message.set_name('OZF', 'OZF_OBJFUNDSUM_RECORD_NOT_FOUND');
1683: fnd_msg_pub.add;
1684: END IF;
1685: RAISE fnd_api.g_exc_error;
1686: END IF;
1687: CLOSE c_get_objfundsum_rec;
1688: l_objfundsum_rec.planned_amt := NVL(l_objfundsum_rec.planned_amt, 0) + NVL (l_fund_rec.planned_amt, 0);
1689: l_objfundsum_rec.plan_curr_planned_amt := NVL(l_objfundsum_rec.plan_curr_planned_amt, 0)

Line 1694: p_init_msg_list => Fnd_Api.G_FALSE,

1690: + NVL(l_act_budgets_rec.request_amount, 0);
1691: l_objfundsum_rec.univ_curr_planned_amt := NVL(l_objfundsum_rec.univ_curr_planned_amt, 0) + NVL(l_univ_amount, 0);
1692: ozf_objfundsum_pvt.update_objfundsum(
1693: p_api_version => 1.0,
1694: p_init_msg_list => Fnd_Api.G_FALSE,
1695: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1696: p_objfundsum_rec => l_objfundsum_rec,
1697: x_return_status => l_return_status,
1698: x_msg_count => x_msg_count,

Line 1695: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

1691: l_objfundsum_rec.univ_curr_planned_amt := NVL(l_objfundsum_rec.univ_curr_planned_amt, 0) + NVL(l_univ_amount, 0);
1692: ozf_objfundsum_pvt.update_objfundsum(
1693: p_api_version => 1.0,
1694: p_init_msg_list => Fnd_Api.G_FALSE,
1695: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1696: p_objfundsum_rec => l_objfundsum_rec,
1697: x_return_status => l_return_status,
1698: x_msg_count => x_msg_count,
1699: x_msg_data => x_msg_data

Line 1701: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1697: x_return_status => l_return_status,
1698: x_msg_count => x_msg_count,
1699: x_msg_data => x_msg_data
1700: );
1701: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1702: RAISE fnd_api.g_exc_unexpected_error;
1703: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1704: RAISE fnd_api.g_exc_error;
1705: END IF;

Line 1702: RAISE fnd_api.g_exc_unexpected_error;

1698: x_msg_count => x_msg_count,
1699: x_msg_data => x_msg_data
1700: );
1701: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1702: RAISE fnd_api.g_exc_unexpected_error;
1703: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1704: RAISE fnd_api.g_exc_error;
1705: END IF;
1706: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount

Line 1703: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1699: x_msg_data => x_msg_data
1700: );
1701: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1702: RAISE fnd_api.g_exc_unexpected_error;
1703: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1704: RAISE fnd_api.g_exc_error;
1705: END IF;
1706: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount
1707:

Line 1704: RAISE fnd_api.g_exc_error;

1700: );
1701: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1702: RAISE fnd_api.g_exc_unexpected_error;
1703: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1704: RAISE fnd_api.g_exc_error;
1705: END IF;
1706: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount
1707:
1708: -- subtract the request amount, l_fund_rec.planned_amt, to the

Line 1714: ,p_init_msg_list=> fnd_api.g_false

1710: l_fund_rec.planned_amt := l_fund_planned_amount
1711: - l_fund_rec.planned_amt;
1712: ozf_funds_pvt.update_fund (
1713: p_api_version=> 1.0
1714: ,p_init_msg_list=> fnd_api.g_false
1715: , -- allow the calling API to handle
1716: p_commit=> fnd_api.g_false
1717: , -- allow the calling API to handle
1718: p_validation_level=> p_validation_level

Line 1716: p_commit=> fnd_api.g_false

1712: ozf_funds_pvt.update_fund (
1713: p_api_version=> 1.0
1714: ,p_init_msg_list=> fnd_api.g_false
1715: , -- allow the calling API to handle
1716: p_commit=> fnd_api.g_false
1717: , -- allow the calling API to handle
1718: p_validation_level=> p_validation_level
1719: ,x_return_status=> l_return_status
1720: ,x_msg_count=> x_msg_count

Line 1726: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1722: ,p_fund_rec=> l_fund_rec
1723: ,p_mode=> g_cons_fund_mode
1724: );
1725:
1726: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1727: RAISE fnd_api.g_exc_unexpected_error;
1728: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1729: RAISE fnd_api.g_exc_error;
1730: END IF;

Line 1727: RAISE fnd_api.g_exc_unexpected_error;

1723: ,p_mode=> g_cons_fund_mode
1724: );
1725:
1726: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1727: RAISE fnd_api.g_exc_unexpected_error;
1728: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1729: RAISE fnd_api.g_exc_error;
1730: END IF;
1731:

Line 1728: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1724: );
1725:
1726: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1727: RAISE fnd_api.g_exc_unexpected_error;
1728: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1729: RAISE fnd_api.g_exc_error;
1730: END IF;
1731:
1732: END IF; -- if source type = FUND

Line 1729: RAISE fnd_api.g_exc_error;

1725:
1726: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1727: RAISE fnd_api.g_exc_unexpected_error;
1728: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1729: RAISE fnd_api.g_exc_error;
1730: END IF;
1731:
1732: END IF; -- if source type = FUND
1733: ELSIF (l_old_status_code = 'PENDING' OR l_old_status_code = 'PENDING_VALIDATION')

Line 1801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1797: ,p_from_amount=> l_act_budgets_rec.request_amount
1798: ,x_to_amount=> l_fund_rec.planned_amt
1799: );
1800:
1801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1802: RAISE fnd_api.g_exc_unexpected_error;
1803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1804: RAISE fnd_api.g_exc_error;
1805: END IF;

Line 1802: RAISE fnd_api.g_exc_unexpected_error;

1798: ,x_to_amount=> l_fund_rec.planned_amt
1799: );
1800:
1801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1802: RAISE fnd_api.g_exc_unexpected_error;
1803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1804: RAISE fnd_api.g_exc_error;
1805: END IF;
1806: END IF;

Line 1803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1799: );
1800:
1801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1802: RAISE fnd_api.g_exc_unexpected_error;
1803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1804: RAISE fnd_api.g_exc_error;
1805: END IF;
1806: END IF;
1807:

Line 1804: RAISE fnd_api.g_exc_error;

1800:
1801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1802: RAISE fnd_api.g_exc_unexpected_error;
1803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1804: RAISE fnd_api.g_exc_error;
1805: END IF;
1806: END IF;
1807:
1808: -- R12: yzhao BEGIN ozf_object_fund_summary increase planned_amount

Line 1822: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1818: ,p_from_amount=> l_act_budgets_rec.request_amount
1819: ,x_to_amount=> l_univ_amount
1820: );
1821:
1822: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1823: RAISE fnd_api.g_exc_unexpected_error;
1824: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1825: RAISE fnd_api.g_exc_error;
1826: END IF;

Line 1823: RAISE fnd_api.g_exc_unexpected_error;

1819: ,x_to_amount=> l_univ_amount
1820: );
1821:
1822: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1823: RAISE fnd_api.g_exc_unexpected_error;
1824: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1825: RAISE fnd_api.g_exc_error;
1826: END IF;
1827: END IF;

Line 1824: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1820: );
1821:
1822: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1823: RAISE fnd_api.g_exc_unexpected_error;
1824: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1825: RAISE fnd_api.g_exc_error;
1826: END IF;
1827: END IF;
1828:

Line 1825: RAISE fnd_api.g_exc_error;

1821:
1822: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1823: RAISE fnd_api.g_exc_unexpected_error;
1824: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1825: RAISE fnd_api.g_exc_error;
1826: END IF;
1827: END IF;
1828:
1829: l_objfundsum_rec := NULL;

Line 1851: p_init_msg_list => Fnd_Api.G_FALSE,

1847: l_objfundsum_rec.univ_curr_planned_amt := NVL(l_objfundsum_rec.univ_curr_planned_amt, 0) + NVL(l_univ_amount, 0);
1848: IF l_objfundsum_rec.objfundsum_id IS NULL THEN
1849: ozf_objfundsum_pvt.create_objfundsum(
1850: p_api_version => 1.0,
1851: p_init_msg_list => Fnd_Api.G_FALSE,
1852: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1853: p_objfundsum_rec => l_objfundsum_rec,
1854: x_return_status => l_return_status,
1855: x_msg_count => x_msg_count,

Line 1852: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

1848: IF l_objfundsum_rec.objfundsum_id IS NULL THEN
1849: ozf_objfundsum_pvt.create_objfundsum(
1850: p_api_version => 1.0,
1851: p_init_msg_list => Fnd_Api.G_FALSE,
1852: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1853: p_objfundsum_rec => l_objfundsum_rec,
1854: x_return_status => l_return_status,
1855: x_msg_count => x_msg_count,
1856: x_msg_data => x_msg_data,

Line 1862: p_init_msg_list => Fnd_Api.G_FALSE,

1858: );
1859: ELSE
1860: ozf_objfundsum_pvt.update_objfundsum(
1861: p_api_version => 1.0,
1862: p_init_msg_list => Fnd_Api.G_FALSE,
1863: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1864: p_objfundsum_rec => l_objfundsum_rec,
1865: x_return_status => l_return_status,
1866: x_msg_count => x_msg_count,

Line 1863: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

1859: ELSE
1860: ozf_objfundsum_pvt.update_objfundsum(
1861: p_api_version => 1.0,
1862: p_init_msg_list => Fnd_Api.G_FALSE,
1863: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
1864: p_objfundsum_rec => l_objfundsum_rec,
1865: x_return_status => l_return_status,
1866: x_msg_count => x_msg_count,
1867: x_msg_data => x_msg_data

Line 1870: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1866: x_msg_count => x_msg_count,
1867: x_msg_data => x_msg_data
1868: );
1869: END IF;
1870: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1871: RAISE fnd_api.g_exc_unexpected_error;
1872: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1873: RAISE fnd_api.g_exc_error;
1874: END IF;

Line 1871: RAISE fnd_api.g_exc_unexpected_error;

1867: x_msg_data => x_msg_data
1868: );
1869: END IF;
1870: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1871: RAISE fnd_api.g_exc_unexpected_error;
1872: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1873: RAISE fnd_api.g_exc_error;
1874: END IF;
1875: -- R12: yzhao END insert/update ozf_object_fund_summary table for planned_amount

Line 1872: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1868: );
1869: END IF;
1870: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1871: RAISE fnd_api.g_exc_unexpected_error;
1872: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1873: RAISE fnd_api.g_exc_error;
1874: END IF;
1875: -- R12: yzhao END insert/update ozf_object_fund_summary table for planned_amount
1876:

Line 1873: RAISE fnd_api.g_exc_error;

1869: END IF;
1870: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1871: RAISE fnd_api.g_exc_unexpected_error;
1872: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1873: RAISE fnd_api.g_exc_error;
1874: END IF;
1875: -- R12: yzhao END insert/update ozf_object_fund_summary table for planned_amount
1876:
1877: -- increase fund's planned amount by the new request amount

Line 1889: ) = fnd_api.g_false THEN

1885: IF l_exceed_flag = 'N' THEN
1886: IF OZF_ACTBUDGETRULES_PVT.budget_has_enough_money (
1887: p_source_id=> l_act_budgets_rec.budget_source_id
1888: ,p_approved_amount=> l_fund_rec.planned_amt
1889: ) = fnd_api.g_false THEN
1890: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_MONEY');
1891: RAISE fnd_api.g_exc_error;
1892: END IF;
1893: END IF;

Line 1891: RAISE fnd_api.g_exc_error;

1887: p_source_id=> l_act_budgets_rec.budget_source_id
1888: ,p_approved_amount=> l_fund_rec.planned_amt
1889: ) = fnd_api.g_false THEN
1890: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_MONEY');
1891: RAISE fnd_api.g_exc_error;
1892: END IF;
1893: END IF;
1894:
1895: ozf_funds_pvt.update_fund (

Line 1897: ,p_init_msg_list=> fnd_api.g_false

1893: END IF;
1894:
1895: ozf_funds_pvt.update_fund (
1896: p_api_version=> 1.0
1897: ,p_init_msg_list=> fnd_api.g_false
1898: ,p_commit=> fnd_api.g_false
1899: ,p_validation_level=> p_validation_level
1900: ,x_return_status=> l_return_status
1901: ,x_msg_count=> x_msg_count

Line 1898: ,p_commit=> fnd_api.g_false

1894:
1895: ozf_funds_pvt.update_fund (
1896: p_api_version=> 1.0
1897: ,p_init_msg_list=> fnd_api.g_false
1898: ,p_commit=> fnd_api.g_false
1899: ,p_validation_level=> p_validation_level
1900: ,x_return_status=> l_return_status
1901: ,x_msg_count=> x_msg_count
1902: ,x_msg_data=> x_msg_data

Line 1907: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1903: ,p_fund_rec=> l_fund_rec
1904: ,p_mode=> g_cons_fund_mode
1905: );
1906:
1907: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1908: RAISE fnd_api.g_exc_unexpected_error;
1909: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1910: RAISE fnd_api.g_exc_error;
1911: END IF;

Line 1908: RAISE fnd_api.g_exc_unexpected_error;

1904: ,p_mode=> g_cons_fund_mode
1905: );
1906:
1907: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1908: RAISE fnd_api.g_exc_unexpected_error;
1909: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1910: RAISE fnd_api.g_exc_error;
1911: END IF;
1912:

Line 1909: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1905: );
1906:
1907: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1908: RAISE fnd_api.g_exc_unexpected_error;
1909: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1910: RAISE fnd_api.g_exc_error;
1911: END IF;
1912:
1913: END IF; -- if source type = FUND

Line 1910: RAISE fnd_api.g_exc_error;

1906:
1907: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1908: RAISE fnd_api.g_exc_unexpected_error;
1909: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1910: RAISE fnd_api.g_exc_error;
1911: END IF;
1912:
1913: END IF; -- if source type = FUND
1914:

Line 1933: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1929: ,p_requestor_owner_flag => p_requestor_owner_flag ---- added 10/19/2001 mpande
1930: ,x_start_flow_flag => l_start_flow_flag -- if 'Y', need start workflow after updating.
1931: );
1932:
1933: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1934: RAISE fnd_api.g_exc_unexpected_error;
1935: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1936: RAISE fnd_api.g_exc_error;
1937: END IF;

Line 1934: RAISE fnd_api.g_exc_unexpected_error;

1930: ,x_start_flow_flag => l_start_flow_flag -- if 'Y', need start workflow after updating.
1931: );
1932:
1933: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1934: RAISE fnd_api.g_exc_unexpected_error;
1935: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1936: RAISE fnd_api.g_exc_error;
1937: END IF;
1938:

Line 1935: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1931: );
1932:
1933: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1934: RAISE fnd_api.g_exc_unexpected_error;
1935: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1936: RAISE fnd_api.g_exc_error;
1937: END IF;
1938:
1939: END IF; -- if new.status_code = APPROVED

Line 1936: RAISE fnd_api.g_exc_error;

1932:
1933: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1934: RAISE fnd_api.g_exc_unexpected_error;
1935: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1936: RAISE fnd_api.g_exc_error;
1937: END IF;
1938:
1939: END IF; -- if new.status_code = APPROVED
1940:

Line 1954: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1950: ,l_act_budgets_rec.act_budget_used_by_id
1951: ,l_return_status
1952: );
1953:
1954: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1955: RAISE fnd_api.g_exc_unexpected_error;
1956: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1957: RAISE fnd_api.g_exc_error;
1958: END IF;

Line 1955: RAISE fnd_api.g_exc_unexpected_error;

1951: ,l_return_status
1952: );
1953:
1954: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1955: RAISE fnd_api.g_exc_unexpected_error;
1956: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1957: RAISE fnd_api.g_exc_error;
1958: END IF;
1959:

Line 1956: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1952: );
1953:
1954: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1955: RAISE fnd_api.g_exc_unexpected_error;
1956: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1957: RAISE fnd_api.g_exc_error;
1958: END IF;
1959:
1960: IF l_act_budgets_rec.request_currency = l_act_budgets_rec.approved_in_currency THEN

Line 1957: RAISE fnd_api.g_exc_error;

1953:
1954: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
1955: RAISE fnd_api.g_exc_unexpected_error;
1956: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
1957: RAISE fnd_api.g_exc_error;
1958: END IF;
1959:
1960: IF l_act_budgets_rec.request_currency = l_act_budgets_rec.approved_in_currency THEN
1961: -- don't need to convert if currencies are equal

Line 2000: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

1996:
1997:
1998: END IF;
1999:
2000: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2001: RAISE fnd_api.g_exc_unexpected_error;
2002: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2003: RAISE fnd_api.g_exc_error;
2004: END IF;

Line 2001: RAISE fnd_api.g_exc_unexpected_error;

1997:
1998: END IF;
1999:
2000: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2001: RAISE fnd_api.g_exc_unexpected_error;
2002: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2003: RAISE fnd_api.g_exc_error;
2004: END IF;
2005: END IF;

Line 2002: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

1998: END IF;
1999:
2000: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2001: RAISE fnd_api.g_exc_unexpected_error;
2002: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2003: RAISE fnd_api.g_exc_error;
2004: END IF;
2005: END IF;
2006: END IF;

Line 2003: RAISE fnd_api.g_exc_error;

1999:
2000: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2001: RAISE fnd_api.g_exc_unexpected_error;
2002: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2003: RAISE fnd_api.g_exc_error;
2004: END IF;
2005: END IF;
2006: END IF;
2007: END IF;

Line 2040: l_exchange_rate_type := FND_API.G_MISS_CHAR;

2036: OPEN c_get_conversion_type(l_act_util_rec.org_id);
2037: FETCH c_get_conversion_type INTO l_exchange_rate_type;
2038: CLOSE c_get_conversion_type;
2039: ELSE
2040: l_exchange_rate_type := FND_API.G_MISS_CHAR;
2041: END IF;
2042:
2043: IF NVL(l_act_budgets_rec.request_amount,0) <> 0 THEN
2044: --Added for bug 7425189

Line 2070: IF l_return_status = fnd_api.g_ret_sts_error THEN

2066: ,x_to_amount => l_act_budgets_rec.src_curr_req_amt
2067: ,x_rate => l_rate);
2068: END IF;
2069:
2070: IF l_return_status = fnd_api.g_ret_sts_error THEN
2071: RAISE fnd_api.g_exc_error;
2072: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2073: RAISE fnd_api.g_exc_unexpected_error;
2074: END IF;

Line 2071: RAISE fnd_api.g_exc_error;

2067: ,x_rate => l_rate);
2068: END IF;
2069:
2070: IF l_return_status = fnd_api.g_ret_sts_error THEN
2071: RAISE fnd_api.g_exc_error;
2072: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2073: RAISE fnd_api.g_exc_unexpected_error;
2074: END IF;
2075: END IF;

Line 2072: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2068: END IF;
2069:
2070: IF l_return_status = fnd_api.g_ret_sts_error THEN
2071: RAISE fnd_api.g_exc_error;
2072: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2073: RAISE fnd_api.g_exc_unexpected_error;
2074: END IF;
2075: END IF;
2076:

Line 2073: RAISE fnd_api.g_exc_unexpected_error;

2069:
2070: IF l_return_status = fnd_api.g_ret_sts_error THEN
2071: RAISE fnd_api.g_exc_error;
2072: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2073: RAISE fnd_api.g_exc_unexpected_error;
2074: END IF;
2075: END IF;
2076:
2077:

Line 2086: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2082: ,x_return_status=> l_return_status
2083: );
2084:
2085: -- If any errors happen abort API.
2086: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2087: RAISE fnd_api.g_exc_unexpected_error;
2088: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2089: RAISE fnd_api.g_exc_error;
2090: END IF;

Line 2087: RAISE fnd_api.g_exc_unexpected_error;

2083: );
2084:
2085: -- If any errors happen abort API.
2086: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2087: RAISE fnd_api.g_exc_unexpected_error;
2088: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2089: RAISE fnd_api.g_exc_error;
2090: END IF;
2091: END IF;

Line 2088: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

2084:
2085: -- If any errors happen abort API.
2086: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2087: RAISE fnd_api.g_exc_unexpected_error;
2088: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2089: RAISE fnd_api.g_exc_error;
2090: END IF;
2091: END IF;
2092:

Line 2089: RAISE fnd_api.g_exc_error;

2085: -- If any errors happen abort API.
2086: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2087: RAISE fnd_api.g_exc_unexpected_error;
2088: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2089: RAISE fnd_api.g_exc_error;
2090: END IF;
2091: END IF;
2092:
2093: IF G_DEBUG THEN

Line 2105: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2101: ,p_validation_mode=> jtf_plsql_api.g_update
2102: ,x_return_status=> l_return_status
2103: );
2104:
2105: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2106: RAISE fnd_api.g_exc_unexpected_error;
2107: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2108: RAISE fnd_api.g_exc_error;
2109: END IF;

Line 2106: RAISE fnd_api.g_exc_unexpected_error;

2102: ,x_return_status=> l_return_status
2103: );
2104:
2105: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2106: RAISE fnd_api.g_exc_unexpected_error;
2107: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2108: RAISE fnd_api.g_exc_error;
2109: END IF;
2110: END IF;

Line 2107: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

2103: );
2104:
2105: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2106: RAISE fnd_api.g_exc_unexpected_error;
2107: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2108: RAISE fnd_api.g_exc_error;
2109: END IF;
2110: END IF;
2111:

Line 2108: RAISE fnd_api.g_exc_error;

2104:
2105: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2106: RAISE fnd_api.g_exc_unexpected_error;
2107: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2108: RAISE fnd_api.g_exc_error;
2109: END IF;
2110: END IF;
2111:
2112: -- Added 04/26/2001 mpande for new functionality changes for hornet

Line 2121: IF l_return_status = fnd_api.g_ret_sts_error THEN

2117: l_act_budgets_rec.approval_date := SYSDATE;
2118: END IF;
2119: END IF;
2120:
2121: IF l_return_status = fnd_api.g_ret_sts_error THEN
2122: RAISE fnd_api.g_exc_error;
2123: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2124: RAISE fnd_api.g_exc_unexpected_error;
2125: END IF;

Line 2122: RAISE fnd_api.g_exc_error;

2118: END IF;
2119: END IF;
2120:
2121: IF l_return_status = fnd_api.g_ret_sts_error THEN
2122: RAISE fnd_api.g_exc_error;
2123: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2124: RAISE fnd_api.g_exc_unexpected_error;
2125: END IF;
2126:

Line 2123: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2119: END IF;
2120:
2121: IF l_return_status = fnd_api.g_ret_sts_error THEN
2122: RAISE fnd_api.g_exc_error;
2123: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2124: RAISE fnd_api.g_exc_unexpected_error;
2125: END IF;
2126:
2127:

Line 2124: RAISE fnd_api.g_exc_unexpected_error;

2120:
2121: IF l_return_status = fnd_api.g_ret_sts_error THEN
2122: RAISE fnd_api.g_exc_error;
2123: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2124: RAISE fnd_api.g_exc_unexpected_error;
2125: END IF;
2126:
2127:
2128: ozf_utility_pvt.write_conc_log('NP '||l_api_name ||' l_act_util_rec.org_id '||l_act_util_rec.org_id);

Line 2175: IF l_return_status = fnd_api.g_ret_sts_error THEN

2171: || ' id('
2172: || l_act_budgets_rec.act_budget_used_by_id
2173: || ') returns ' || l_return_status
2174: || ' ledger_id=' || l_ledger_id);
2175: IF l_return_status = fnd_api.g_ret_sts_error THEN
2176: RAISE fnd_api.g_exc_error;
2177: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2178: RAISE fnd_api.g_exc_unexpected_error;
2179: END IF;

Line 2176: RAISE fnd_api.g_exc_error;

2172: || l_act_budgets_rec.act_budget_used_by_id
2173: || ') returns ' || l_return_status
2174: || ' ledger_id=' || l_ledger_id);
2175: IF l_return_status = fnd_api.g_ret_sts_error THEN
2176: RAISE fnd_api.g_exc_error;
2177: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2178: RAISE fnd_api.g_exc_unexpected_error;
2179: END IF;
2180: END IF;

Line 2177: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2173: || ') returns ' || l_return_status
2174: || ' ledger_id=' || l_ledger_id);
2175: IF l_return_status = fnd_api.g_ret_sts_error THEN
2176: RAISE fnd_api.g_exc_error;
2177: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2178: RAISE fnd_api.g_exc_unexpected_error;
2179: END IF;
2180: END IF;
2181:

Line 2178: RAISE fnd_api.g_exc_unexpected_error;

2174: || ' ledger_id=' || l_ledger_id);
2175: IF l_return_status = fnd_api.g_ret_sts_error THEN
2176: RAISE fnd_api.g_exc_error;
2177: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2178: RAISE fnd_api.g_exc_unexpected_error;
2179: END IF;
2180: END IF;
2181:
2182:

Line 2208: x_return_status := fnd_api.g_ret_sts_error;

2204: --fnd_message.set_token('OBJECT_TYPE', l_act_budgets_rec.arc_act_budget_used_by);
2205: --fnd_message.set_token('OBJECT_ID', l_act_budgets_rec.act_budget_used_by_id);
2206: fnd_msg_pub.ADD;
2207: END IF;
2208: x_return_status := fnd_api.g_ret_sts_error;
2209: RAISE fnd_api.g_exc_error;
2210: END IF;
2211: ELSE
2212: --Added for bug 7030415

Line 2209: RAISE fnd_api.g_exc_error;

2205: --fnd_message.set_token('OBJECT_ID', l_act_budgets_rec.act_budget_used_by_id);
2206: fnd_msg_pub.ADD;
2207: END IF;
2208: x_return_status := fnd_api.g_ret_sts_error;
2209: RAISE fnd_api.g_exc_error;
2210: END IF;
2211: ELSE
2212: --Added for bug 7030415
2213: OPEN c_get_conversion_type(l_act_util_rec.org_id);

Line 2249: IF l_return_status = fnd_api.g_ret_sts_error THEN

2245: ,x_return_status => l_return_status);
2246: END IF;
2247:
2248:
2249: IF l_return_status = fnd_api.g_ret_sts_error THEN
2250: RAISE fnd_api.g_exc_error;
2251: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2252: RAISE fnd_api.g_exc_unexpected_error;
2253: END IF;

Line 2250: RAISE fnd_api.g_exc_error;

2246: END IF;
2247:
2248:
2249: IF l_return_status = fnd_api.g_ret_sts_error THEN
2250: RAISE fnd_api.g_exc_error;
2251: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2252: RAISE fnd_api.g_exc_unexpected_error;
2253: END IF;
2254: END IF;

Line 2251: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2247:
2248:
2249: IF l_return_status = fnd_api.g_ret_sts_error THEN
2250: RAISE fnd_api.g_exc_error;
2251: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2252: RAISE fnd_api.g_exc_unexpected_error;
2253: END IF;
2254: END IF;
2255: END IF;

Line 2252: RAISE fnd_api.g_exc_unexpected_error;

2248:
2249: IF l_return_status = fnd_api.g_ret_sts_error THEN
2250: RAISE fnd_api.g_exc_error;
2251: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2252: RAISE fnd_api.g_exc_unexpected_error;
2253: END IF;
2254: END IF;
2255: END IF;
2256: END IF;

Line 2335: RAISE fnd_api.g_exc_unexpected_error;

2331: fnd_message.set_name ('OZF', 'OZF_API_RECORD_NOT_FOUND');
2332: fnd_msg_pub.ADD;
2333: END IF;
2334:
2335: RAISE fnd_api.g_exc_unexpected_error;
2336: END IF;
2337:
2338:
2339: IF l_start_flow_flag = 'Y' THEN

Line 2364: AND l_act_budgets_rec.COMMENT <> fnd_api.g_miss_char THEN

2360:
2361: END IF;
2362:
2363: IF l_act_budgets_rec.COMMENT IS NOT NULL
2364: AND l_act_budgets_rec.COMMENT <> fnd_api.g_miss_char THEN
2365: OZF_ACTBUDGETRULES_PVT.create_note (
2366: p_activity_type=> 'FREQ'
2367: ,p_activity_id=> l_act_budgets_rec.activity_budget_id
2368: ,p_note=> l_act_budgets_rec.COMMENT

Line 2379: IF l_return_status <> fnd_api.g_ret_sts_success THEN

2375: ,x_msg_data=> x_msg_data
2376: ,x_return_status=> l_return_status
2377: );
2378:
2379: IF l_return_status <> fnd_api.g_ret_sts_success THEN
2380: RAISE fnd_api.g_exc_error;
2381: END IF;
2382: END IF;
2383:

Line 2380: RAISE fnd_api.g_exc_error;

2376: ,x_return_status=> l_return_status
2377: );
2378:
2379: IF l_return_status <> fnd_api.g_ret_sts_success THEN
2380: RAISE fnd_api.g_exc_error;
2381: END IF;
2382: END IF;
2383:
2384: IF l_act_budgets_rec.justification IS NOT NULL

Line 2385: AND l_act_budgets_rec.justification <> fnd_api.g_miss_char THEN

2381: END IF;
2382: END IF;
2383:
2384: IF l_act_budgets_rec.justification IS NOT NULL
2385: AND l_act_budgets_rec.justification <> fnd_api.g_miss_char THEN
2386: OZF_ACTBUDGETRULES_PVT.create_note (
2387: p_activity_type=> 'FREQ'
2388: ,p_activity_id=> l_act_budgets_rec.activity_budget_id
2389: ,p_note=> l_act_budgets_rec.justification

Line 2400: IF l_return_status <> fnd_api.g_ret_sts_success THEN

2396: ,x_msg_data=> x_msg_data
2397: ,x_return_status=> l_return_status
2398: );
2399:
2400: IF l_return_status <> fnd_api.g_ret_sts_success THEN
2401: RAISE fnd_api.g_exc_error;
2402: END IF;
2403: END IF;
2404:

Line 2401: RAISE fnd_api.g_exc_error;

2397: ,x_return_status=> l_return_status
2398: );
2399:
2400: IF l_return_status <> fnd_api.g_ret_sts_success THEN
2401: RAISE fnd_api.g_exc_error;
2402: END IF;
2403: END IF;
2404:
2405: -- 06/25/2001 mpande changed

Line 2440: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2436: ,x_utilized_amount => x_utilized_amount -- yzhao: 06/21/2004 added to return actual utilized amount
2437: );
2438:
2439:
2440: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2441: RAISE fnd_api.g_exc_unexpected_error;
2442: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2443: RAISE fnd_api.g_exc_error;
2444: END IF;

Line 2441: RAISE fnd_api.g_exc_unexpected_error;

2437: );
2438:
2439:
2440: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2441: RAISE fnd_api.g_exc_unexpected_error;
2442: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2443: RAISE fnd_api.g_exc_error;
2444: END IF;
2445: END IF; --l_act_budgets_rec.transfer_type = 'UTILIZED'

Line 2442: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

2438:
2439:
2440: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2441: RAISE fnd_api.g_exc_unexpected_error;
2442: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2443: RAISE fnd_api.g_exc_error;
2444: END IF;
2445: END IF; --l_act_budgets_rec.transfer_type = 'UTILIZED'
2446:

Line 2443: RAISE fnd_api.g_exc_error;

2439:
2440: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2441: RAISE fnd_api.g_exc_unexpected_error;
2442: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2443: RAISE fnd_api.g_exc_error;
2444: END IF;
2445: END IF; --l_act_budgets_rec.transfer_type = 'UTILIZED'
2446:
2447: IF (l_act_budgets_rec.budget_source_type ='CAMP' AND l_act_budgets_rec.arc_act_budget_used_by = 'CSCH') OR

Line 2464: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2460: p_exchange_rate_type => l_exchange_rate_type
2461: );
2462:
2463:
2464: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2465: RAISE fnd_api.g_exc_unexpected_error;
2466: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2467: RAISE fnd_api.g_exc_error;
2468: END IF;

Line 2465: RAISE fnd_api.g_exc_unexpected_error;

2461: );
2462:
2463:
2464: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2465: RAISE fnd_api.g_exc_unexpected_error;
2466: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2467: RAISE fnd_api.g_exc_error;
2468: END IF;
2469:

Line 2466: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

2462:
2463:
2464: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2465: RAISE fnd_api.g_exc_unexpected_error;
2466: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2467: RAISE fnd_api.g_exc_error;
2468: END IF;
2469:
2470: END IF;

Line 2467: RAISE fnd_api.g_exc_error;

2463:
2464: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2465: RAISE fnd_api.g_exc_unexpected_error;
2466: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2467: RAISE fnd_api.g_exc_error;
2468: END IF;
2469:
2470: END IF;
2471:

Line 2487: IF fnd_api.to_boolean (p_commit) THEN

2483: -- initiate WF approval and return; WF will
2484: -- call an API to update the relevent columns.
2485:
2486: -- check to see if commit is needed before returning
2487: IF fnd_api.to_boolean (p_commit) THEN
2488: COMMIT WORK;
2489: END IF;
2490:
2491: RETURN;

Line 2520: IF fnd_api.to_boolean (p_commit) THEN

2516:
2517: -- END of API body.
2518: --
2519: -- Standard check of p_commit.
2520: IF fnd_api.to_boolean (p_commit) THEN
2521: COMMIT WORK;
2522: END IF;
2523:
2524: -- Standard call to get message count AND IF count is 1, get message info.

Line 2528: ,p_encoded=> fnd_api.g_false

2524: -- Standard call to get message count AND IF count is 1, get message info.
2525: fnd_msg_pub.count_and_get (
2526: p_count=> x_msg_count
2527: ,p_data=> x_msg_data
2528: ,p_encoded=> fnd_api.g_false
2529: );
2530: EXCEPTION
2531: WHEN fnd_api.g_exc_error THEN
2532: ROLLBACK TO update_act_budgets_pvt;

Line 2531: WHEN fnd_api.g_exc_error THEN

2527: ,p_data=> x_msg_data
2528: ,p_encoded=> fnd_api.g_false
2529: );
2530: EXCEPTION
2531: WHEN fnd_api.g_exc_error THEN
2532: ROLLBACK TO update_act_budgets_pvt;
2533: x_return_status := fnd_api.g_ret_sts_error;
2534: fnd_msg_pub.count_and_get (
2535: p_count=> x_msg_count

Line 2533: x_return_status := fnd_api.g_ret_sts_error;

2529: );
2530: EXCEPTION
2531: WHEN fnd_api.g_exc_error THEN
2532: ROLLBACK TO update_act_budgets_pvt;
2533: x_return_status := fnd_api.g_ret_sts_error;
2534: fnd_msg_pub.count_and_get (
2535: p_count=> x_msg_count
2536: ,p_data=> x_msg_data
2537: ,p_encoded=> fnd_api.g_false

Line 2537: ,p_encoded=> fnd_api.g_false

2533: x_return_status := fnd_api.g_ret_sts_error;
2534: fnd_msg_pub.count_and_get (
2535: p_count=> x_msg_count
2536: ,p_data=> x_msg_data
2537: ,p_encoded=> fnd_api.g_false
2538: );
2539: WHEN fnd_api.g_exc_unexpected_error THEN
2540: ROLLBACK TO update_act_budgets_pvt;
2541: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 2539: WHEN fnd_api.g_exc_unexpected_error THEN

2535: p_count=> x_msg_count
2536: ,p_data=> x_msg_data
2537: ,p_encoded=> fnd_api.g_false
2538: );
2539: WHEN fnd_api.g_exc_unexpected_error THEN
2540: ROLLBACK TO update_act_budgets_pvt;
2541: x_return_status := fnd_api.g_ret_sts_unexp_error;
2542: fnd_msg_pub.count_and_get (
2543: p_count=> x_msg_count

Line 2541: x_return_status := fnd_api.g_ret_sts_unexp_error;

2537: ,p_encoded=> fnd_api.g_false
2538: );
2539: WHEN fnd_api.g_exc_unexpected_error THEN
2540: ROLLBACK TO update_act_budgets_pvt;
2541: x_return_status := fnd_api.g_ret_sts_unexp_error;
2542: fnd_msg_pub.count_and_get (
2543: p_count=> x_msg_count
2544: ,p_data=> x_msg_data
2545: ,p_encoded=> fnd_api.g_false

Line 2545: ,p_encoded=> fnd_api.g_false

2541: x_return_status := fnd_api.g_ret_sts_unexp_error;
2542: fnd_msg_pub.count_and_get (
2543: p_count=> x_msg_count
2544: ,p_data=> x_msg_data
2545: ,p_encoded=> fnd_api.g_false
2546: );
2547: WHEN OTHERS THEN
2548: ROLLBACK TO update_act_budgets_pvt;
2549: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 2549: x_return_status := fnd_api.g_ret_sts_unexp_error;

2545: ,p_encoded=> fnd_api.g_false
2546: );
2547: WHEN OTHERS THEN
2548: ROLLBACK TO update_act_budgets_pvt;
2549: x_return_status := fnd_api.g_ret_sts_unexp_error;
2550:
2551: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
2552: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
2553: END IF;

Line 2558: ,p_encoded=> fnd_api.g_false

2554:
2555: fnd_msg_pub.count_and_get (
2556: p_count=> x_msg_count
2557: ,p_data=> x_msg_data
2558: ,p_encoded=> fnd_api.g_false
2559: );
2560: END update_act_budgets;
2561:
2562:

Line 2579: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

2575: -- End of Comments
2576: /*****************************************************************************************/
2577: PROCEDURE delete_act_budgets (
2578: p_api_version IN NUMBER
2579: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2580: ,p_commit IN VARCHAR2 := fnd_api.g_false
2581: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2582: ,x_return_status OUT NOCOPY VARCHAR2
2583: ,x_msg_count OUT NOCOPY NUMBER

Line 2580: ,p_commit IN VARCHAR2 := fnd_api.g_false

2576: /*****************************************************************************************/
2577: PROCEDURE delete_act_budgets (
2578: p_api_version IN NUMBER
2579: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2580: ,p_commit IN VARCHAR2 := fnd_api.g_false
2581: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2582: ,x_return_status OUT NOCOPY VARCHAR2
2583: ,x_msg_count OUT NOCOPY NUMBER
2584: ,x_msg_data OUT NOCOPY VARCHAR2

Line 2581: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

2577: PROCEDURE delete_act_budgets (
2578: p_api_version IN NUMBER
2579: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2580: ,p_commit IN VARCHAR2 := fnd_api.g_false
2581: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2582: ,x_return_status OUT NOCOPY VARCHAR2
2583: ,x_msg_count OUT NOCOPY NUMBER
2584: ,x_msg_data OUT NOCOPY VARCHAR2
2585: ,p_act_budget_id IN NUMBER

Line 2605: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN

2601: -- Standard Start of API savepoint
2602: SAVEPOINT delete_act_budgets_pvt;
2603:
2604: -- Standard call to check for call compatibility.
2605: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2606: RAISE fnd_api.g_exc_unexpected_error;
2607: END IF;
2608:
2609: -- Initialize message list IF p_init_msg_list is set to TRUE.

Line 2606: RAISE fnd_api.g_exc_unexpected_error;

2602: SAVEPOINT delete_act_budgets_pvt;
2603:
2604: -- Standard call to check for call compatibility.
2605: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2606: RAISE fnd_api.g_exc_unexpected_error;
2607: END IF;
2608:
2609: -- Initialize message list IF p_init_msg_list is set to TRUE.
2610: IF fnd_api.to_boolean (p_init_msg_list) THEN

Line 2610: IF fnd_api.to_boolean (p_init_msg_list) THEN

2606: RAISE fnd_api.g_exc_unexpected_error;
2607: END IF;
2608:
2609: -- Initialize message list IF p_init_msg_list is set to TRUE.
2610: IF fnd_api.to_boolean (p_init_msg_list) THEN
2611: fnd_msg_pub.initialize;
2612: END IF;
2613:
2614: -- Initialize API return status to success

Line 2615: x_return_status := fnd_api.g_ret_sts_success;

2611: fnd_msg_pub.initialize;
2612: END IF;
2613:
2614: -- Initialize API return status to success
2615: x_return_status := fnd_api.g_ret_sts_success;
2616: --
2617: -- API body
2618: --
2619:

Line 2630: RAISE fnd_api.g_exc_error;

2626: fnd_message.set_name ('OZF', 'OZF_ACT_BUDGET_NO_DELETE');
2627: fnd_msg_pub.ADD;
2628: END IF;
2629:
2630: RAISE fnd_api.g_exc_error;
2631: END IF;
2632:
2633: -- Perform the database operation
2634: -- Delete header data

Line 2648: RAISE fnd_api.g_exc_error;

2644: fnd_message.set_name ('OZF', 'OZF_API_RECORD_NOT_FOUND');
2645: fnd_msg_pub.ADD;
2646: END IF;
2647:
2648: RAISE fnd_api.g_exc_error;
2649: END IF;
2650:
2651: --
2652: -- END of API body.

Line 2655: IF fnd_api.to_boolean (p_commit) THEN

2651: --
2652: -- END of API body.
2653: --
2654: -- Standard check of p_commit.
2655: IF fnd_api.to_boolean (p_commit) THEN
2656: COMMIT WORK;
2657: END IF;
2658:
2659: -- Standard call to get message count AND IF count is 1, get message info.

Line 2663: ,p_encoded=> fnd_api.g_false

2659: -- Standard call to get message count AND IF count is 1, get message info.
2660: fnd_msg_pub.count_and_get (
2661: p_count=> x_msg_count
2662: ,p_data=> x_msg_data
2663: ,p_encoded=> fnd_api.g_false
2664: );
2665: EXCEPTION
2666: WHEN fnd_api.g_exc_error THEN
2667: ROLLBACK TO delete_act_budgets_pvt;

Line 2666: WHEN fnd_api.g_exc_error THEN

2662: ,p_data=> x_msg_data
2663: ,p_encoded=> fnd_api.g_false
2664: );
2665: EXCEPTION
2666: WHEN fnd_api.g_exc_error THEN
2667: ROLLBACK TO delete_act_budgets_pvt;
2668: x_return_status := fnd_api.g_ret_sts_error;
2669: fnd_msg_pub.count_and_get (
2670: p_count=> x_msg_count

Line 2668: x_return_status := fnd_api.g_ret_sts_error;

2664: );
2665: EXCEPTION
2666: WHEN fnd_api.g_exc_error THEN
2667: ROLLBACK TO delete_act_budgets_pvt;
2668: x_return_status := fnd_api.g_ret_sts_error;
2669: fnd_msg_pub.count_and_get (
2670: p_count=> x_msg_count
2671: ,p_data=> x_msg_data
2672: ,p_encoded=> fnd_api.g_false

Line 2672: ,p_encoded=> fnd_api.g_false

2668: x_return_status := fnd_api.g_ret_sts_error;
2669: fnd_msg_pub.count_and_get (
2670: p_count=> x_msg_count
2671: ,p_data=> x_msg_data
2672: ,p_encoded=> fnd_api.g_false
2673: );
2674: WHEN fnd_api.g_exc_unexpected_error THEN
2675: ROLLBACK TO delete_act_budgets_pvt;
2676: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 2674: WHEN fnd_api.g_exc_unexpected_error THEN

2670: p_count=> x_msg_count
2671: ,p_data=> x_msg_data
2672: ,p_encoded=> fnd_api.g_false
2673: );
2674: WHEN fnd_api.g_exc_unexpected_error THEN
2675: ROLLBACK TO delete_act_budgets_pvt;
2676: x_return_status := fnd_api.g_ret_sts_unexp_error;
2677: fnd_msg_pub.count_and_get (
2678: p_count=> x_msg_count

Line 2676: x_return_status := fnd_api.g_ret_sts_unexp_error;

2672: ,p_encoded=> fnd_api.g_false
2673: );
2674: WHEN fnd_api.g_exc_unexpected_error THEN
2675: ROLLBACK TO delete_act_budgets_pvt;
2676: x_return_status := fnd_api.g_ret_sts_unexp_error;
2677: fnd_msg_pub.count_and_get (
2678: p_count=> x_msg_count
2679: ,p_data=> x_msg_data
2680: ,p_encoded=> fnd_api.g_false

Line 2680: ,p_encoded=> fnd_api.g_false

2676: x_return_status := fnd_api.g_ret_sts_unexp_error;
2677: fnd_msg_pub.count_and_get (
2678: p_count=> x_msg_count
2679: ,p_data=> x_msg_data
2680: ,p_encoded=> fnd_api.g_false
2681: );
2682: WHEN OTHERS THEN
2683: ROLLBACK TO delete_act_budgets_pvt;
2684: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 2684: x_return_status := fnd_api.g_ret_sts_unexp_error;

2680: ,p_encoded=> fnd_api.g_false
2681: );
2682: WHEN OTHERS THEN
2683: ROLLBACK TO delete_act_budgets_pvt;
2684: x_return_status := fnd_api.g_ret_sts_unexp_error;
2685:
2686: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
2687: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
2688: END IF;

Line 2693: ,p_encoded=> fnd_api.g_false

2689:
2690: fnd_msg_pub.count_and_get (
2691: p_count=> x_msg_count
2692: ,p_data=> x_msg_data
2693: ,p_encoded=> fnd_api.g_false
2694: );
2695: END delete_act_budgets;
2696:
2697:

Line 2713: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

2709: -- End of Comments
2710: /*****************************************************************************************/
2711: PROCEDURE lock_act_budgets (
2712: p_api_version IN NUMBER
2713: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2714: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2715: ,x_return_status OUT NOCOPY VARCHAR2
2716: ,x_msg_count OUT NOCOPY NUMBER
2717: ,x_msg_data OUT NOCOPY VARCHAR2

Line 2714: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

2710: /*****************************************************************************************/
2711: PROCEDURE lock_act_budgets (
2712: p_api_version IN NUMBER
2713: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2714: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2715: ,x_return_status OUT NOCOPY VARCHAR2
2716: ,x_msg_count OUT NOCOPY NUMBER
2717: ,x_msg_data OUT NOCOPY VARCHAR2
2718: ,p_act_budget_id IN NUMBER

Line 2735: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN

2731: AND object_version_number = p_object_version
2732: FOR UPDATE OF activity_budget_id NOWAIT;
2733: BEGIN
2734: -- Standard call to check for call compatibility.
2735: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2736: RAISE fnd_api.g_exc_unexpected_error;
2737: END IF;
2738:
2739: -- Initialize message list if p_init_msg_list is set to TRUE.

Line 2736: RAISE fnd_api.g_exc_unexpected_error;

2732: FOR UPDATE OF activity_budget_id NOWAIT;
2733: BEGIN
2734: -- Standard call to check for call compatibility.
2735: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2736: RAISE fnd_api.g_exc_unexpected_error;
2737: END IF;
2738:
2739: -- Initialize message list if p_init_msg_list is set to TRUE.
2740: IF fnd_api.to_boolean (p_init_msg_list) THEN

Line 2740: IF fnd_api.to_boolean (p_init_msg_list) THEN

2736: RAISE fnd_api.g_exc_unexpected_error;
2737: END IF;
2738:
2739: -- Initialize message list if p_init_msg_list is set to TRUE.
2740: IF fnd_api.to_boolean (p_init_msg_list) THEN
2741: fnd_msg_pub.initialize;
2742: END IF;
2743:
2744: -- Initialize API return status to success

Line 2745: x_return_status := fnd_api.g_ret_sts_success;

2741: fnd_msg_pub.initialize;
2742: END IF;
2743:
2744: -- Initialize API return status to success
2745: x_return_status := fnd_api.g_ret_sts_success;
2746: --
2747: -- API body
2748: --
2749: -- Perform the database operation

Line 2763: RAISE fnd_api.g_exc_error;

2759: fnd_message.set_name ('OZF', 'OZF_API_RECORD_NOT_FOUND');
2760: fnd_msg_pub.ADD;
2761: END IF;
2762:
2763: RAISE fnd_api.g_exc_error;
2764: END IF;
2765:
2766: CLOSE c_act_budget;
2767: --

Line 2774: ,p_encoded=> fnd_api.g_false

2770: -- Standard call to get message count AND IF count is 1, get message info.
2771: fnd_msg_pub.count_and_get (
2772: p_count=> x_msg_count
2773: ,p_data=> x_msg_data
2774: ,p_encoded=> fnd_api.g_false
2775: );
2776: EXCEPTION
2777: WHEN fnd_api.g_exc_error THEN
2778: x_return_status := fnd_api.g_ret_sts_error;

Line 2777: WHEN fnd_api.g_exc_error THEN

2773: ,p_data=> x_msg_data
2774: ,p_encoded=> fnd_api.g_false
2775: );
2776: EXCEPTION
2777: WHEN fnd_api.g_exc_error THEN
2778: x_return_status := fnd_api.g_ret_sts_error;
2779: fnd_msg_pub.count_and_get (
2780: p_count=> x_msg_count
2781: ,p_data=> x_msg_data

Line 2778: x_return_status := fnd_api.g_ret_sts_error;

2774: ,p_encoded=> fnd_api.g_false
2775: );
2776: EXCEPTION
2777: WHEN fnd_api.g_exc_error THEN
2778: x_return_status := fnd_api.g_ret_sts_error;
2779: fnd_msg_pub.count_and_get (
2780: p_count=> x_msg_count
2781: ,p_data=> x_msg_data
2782: ,p_encoded=> fnd_api.g_false

Line 2782: ,p_encoded=> fnd_api.g_false

2778: x_return_status := fnd_api.g_ret_sts_error;
2779: fnd_msg_pub.count_and_get (
2780: p_count=> x_msg_count
2781: ,p_data=> x_msg_data
2782: ,p_encoded=> fnd_api.g_false
2783: );
2784: WHEN fnd_api.g_exc_unexpected_error THEN
2785: x_return_status := fnd_api.g_ret_sts_unexp_error;
2786: fnd_msg_pub.count_and_get (

Line 2784: WHEN fnd_api.g_exc_unexpected_error THEN

2780: p_count=> x_msg_count
2781: ,p_data=> x_msg_data
2782: ,p_encoded=> fnd_api.g_false
2783: );
2784: WHEN fnd_api.g_exc_unexpected_error THEN
2785: x_return_status := fnd_api.g_ret_sts_unexp_error;
2786: fnd_msg_pub.count_and_get (
2787: p_count=> x_msg_count
2788: ,p_data=> x_msg_data

Line 2785: x_return_status := fnd_api.g_ret_sts_unexp_error;

2781: ,p_data=> x_msg_data
2782: ,p_encoded=> fnd_api.g_false
2783: );
2784: WHEN fnd_api.g_exc_unexpected_error THEN
2785: x_return_status := fnd_api.g_ret_sts_unexp_error;
2786: fnd_msg_pub.count_and_get (
2787: p_count=> x_msg_count
2788: ,p_data=> x_msg_data
2789: ,p_encoded=> fnd_api.g_false

Line 2789: ,p_encoded=> fnd_api.g_false

2785: x_return_status := fnd_api.g_ret_sts_unexp_error;
2786: fnd_msg_pub.count_and_get (
2787: p_count=> x_msg_count
2788: ,p_data=> x_msg_data
2789: ,p_encoded=> fnd_api.g_false
2790: );
2791: WHEN ozf_utility_pvt.resource_locked THEN
2792: x_return_status := fnd_api.g_ret_sts_error;
2793:

Line 2792: x_return_status := fnd_api.g_ret_sts_error;

2788: ,p_data=> x_msg_data
2789: ,p_encoded=> fnd_api.g_false
2790: );
2791: WHEN ozf_utility_pvt.resource_locked THEN
2792: x_return_status := fnd_api.g_ret_sts_error;
2793:
2794: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
2795: fnd_message.set_name ('OZF', 'OZF_API_RESOURCE_LOCKED');
2796: fnd_msg_pub.ADD;

Line 2802: ,p_encoded=> fnd_api.g_false

2798:
2799: fnd_msg_pub.count_and_get (
2800: p_count=> x_msg_count
2801: ,p_data=> x_msg_data
2802: ,p_encoded=> fnd_api.g_false
2803: );
2804: WHEN OTHERS THEN
2805: x_return_status := fnd_api.g_ret_sts_unexp_error;
2806:

Line 2805: x_return_status := fnd_api.g_ret_sts_unexp_error;

2801: ,p_data=> x_msg_data
2802: ,p_encoded=> fnd_api.g_false
2803: );
2804: WHEN OTHERS THEN
2805: x_return_status := fnd_api.g_ret_sts_unexp_error;
2806:
2807: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
2808: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
2809: END IF;

Line 2814: ,p_encoded=> fnd_api.g_false

2810:
2811: fnd_msg_pub.count_and_get (
2812: p_count=> x_msg_count
2813: ,p_data=> x_msg_data
2814: ,p_encoded=> fnd_api.g_false
2815: );
2816: END lock_act_budgets;
2817:
2818:

Line 2834: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false

2830: -- End of Comments
2831: /*****************************************************************************************/
2832: PROCEDURE validate_act_budgets (
2833: p_api_version IN NUMBER
2834: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2835: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2836: ,x_return_status OUT NOCOPY VARCHAR2
2837: ,x_msg_count OUT NOCOPY NUMBER
2838: ,x_msg_data OUT NOCOPY VARCHAR2

Line 2835: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full

2831: /*****************************************************************************************/
2832: PROCEDURE validate_act_budgets (
2833: p_api_version IN NUMBER
2834: ,p_init_msg_list IN VARCHAR2 := fnd_api.g_false
2835: ,p_validation_level IN NUMBER := fnd_api.g_valid_level_full
2836: ,x_return_status OUT NOCOPY VARCHAR2
2837: ,x_msg_count OUT NOCOPY NUMBER
2838: ,x_msg_data OUT NOCOPY VARCHAR2
2839: ,p_act_budgets_rec IN act_budgets_rec_type

Line 2852: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN

2848: l_act_budgets_rec act_budgets_rec_type := p_act_budgets_rec;
2849: l_act_budget_id NUMBER;
2850: BEGIN
2851: -- Standard call to check for call compatibility.
2852: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2853: RAISE fnd_api.g_exc_unexpected_error;
2854: END IF;
2855:
2856: -- Initialize message list if p_init_msg_list is set to TRUE.

Line 2853: RAISE fnd_api.g_exc_unexpected_error;

2849: l_act_budget_id NUMBER;
2850: BEGIN
2851: -- Standard call to check for call compatibility.
2852: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_package_name) THEN
2853: RAISE fnd_api.g_exc_unexpected_error;
2854: END IF;
2855:
2856: -- Initialize message list if p_init_msg_list is set to TRUE.
2857: IF fnd_api.to_boolean (p_init_msg_list) THEN

Line 2857: IF fnd_api.to_boolean (p_init_msg_list) THEN

2853: RAISE fnd_api.g_exc_unexpected_error;
2854: END IF;
2855:
2856: -- Initialize message list if p_init_msg_list is set to TRUE.
2857: IF fnd_api.to_boolean (p_init_msg_list) THEN
2858: fnd_msg_pub.initialize;
2859: END IF;
2860:
2861: -- Initialize API return status to success

Line 2862: x_return_status := fnd_api.g_ret_sts_success;

2858: fnd_msg_pub.initialize;
2859: END IF;
2860:
2861: -- Initialize API return status to success
2862: x_return_status := fnd_api.g_ret_sts_success;
2863: --
2864: -- API body
2865: --
2866: IF G_DEBUG THEN

Line 2879: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2875: ,x_return_status=> l_return_status
2876: );
2877:
2878: -- If any errors happen abort API.
2879: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2880: RAISE fnd_api.g_exc_unexpected_error;
2881: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2882: RAISE fnd_api.g_exc_error;
2883: END IF;

Line 2880: RAISE fnd_api.g_exc_unexpected_error;

2876: );
2877:
2878: -- If any errors happen abort API.
2879: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2880: RAISE fnd_api.g_exc_unexpected_error;
2881: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2882: RAISE fnd_api.g_exc_error;
2883: END IF;
2884: END IF;

Line 2881: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

2877:
2878: -- If any errors happen abort API.
2879: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2880: RAISE fnd_api.g_exc_unexpected_error;
2881: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2882: RAISE fnd_api.g_exc_error;
2883: END IF;
2884: END IF;
2885:

Line 2882: RAISE fnd_api.g_exc_error;

2878: -- If any errors happen abort API.
2879: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2880: RAISE fnd_api.g_exc_unexpected_error;
2881: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
2882: RAISE fnd_api.g_exc_error;
2883: END IF;
2884: END IF;
2885:
2886: -- Perform cross attribute validation and missing attribute checks. Record

Line 2901: IF l_return_status = fnd_api.g_ret_sts_error THEN

2897: ,x_return_status=> l_return_status
2898: );
2899:
2900: -- If any errors happen abort API.
2901: IF l_return_status = fnd_api.g_ret_sts_error THEN
2902: RAISE fnd_api.g_exc_error;
2903: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2904: RAISE fnd_api.g_exc_unexpected_error;
2905: END IF;

Line 2902: RAISE fnd_api.g_exc_error;

2898: );
2899:
2900: -- If any errors happen abort API.
2901: IF l_return_status = fnd_api.g_ret_sts_error THEN
2902: RAISE fnd_api.g_exc_error;
2903: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2904: RAISE fnd_api.g_exc_unexpected_error;
2905: END IF;
2906: END IF;

Line 2903: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

2899:
2900: -- If any errors happen abort API.
2901: IF l_return_status = fnd_api.g_ret_sts_error THEN
2902: RAISE fnd_api.g_exc_error;
2903: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2904: RAISE fnd_api.g_exc_unexpected_error;
2905: END IF;
2906: END IF;
2907:

Line 2904: RAISE fnd_api.g_exc_unexpected_error;

2900: -- If any errors happen abort API.
2901: IF l_return_status = fnd_api.g_ret_sts_error THEN
2902: RAISE fnd_api.g_exc_error;
2903: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
2904: RAISE fnd_api.g_exc_unexpected_error;
2905: END IF;
2906: END IF;
2907:
2908:

Line 2914: p_encoded=> fnd_api.g_false

2910: -- END of API body.
2911: --
2912: -------------------- finish --------------------------
2913: fnd_msg_pub.count_and_get (
2914: p_encoded=> fnd_api.g_false
2915: ,p_count=> x_msg_count
2916: ,p_data=> x_msg_data
2917: );
2918: EXCEPTION

Line 2919: WHEN fnd_api.g_exc_error THEN

2915: ,p_count=> x_msg_count
2916: ,p_data=> x_msg_data
2917: );
2918: EXCEPTION
2919: WHEN fnd_api.g_exc_error THEN
2920: x_return_status := fnd_api.g_ret_sts_error;
2921: fnd_msg_pub.count_and_get (
2922: p_count=> x_msg_count
2923: ,p_data=> x_msg_data

Line 2920: x_return_status := fnd_api.g_ret_sts_error;

2916: ,p_data=> x_msg_data
2917: );
2918: EXCEPTION
2919: WHEN fnd_api.g_exc_error THEN
2920: x_return_status := fnd_api.g_ret_sts_error;
2921: fnd_msg_pub.count_and_get (
2922: p_count=> x_msg_count
2923: ,p_data=> x_msg_data
2924: ,p_encoded=> fnd_api.g_false

Line 2924: ,p_encoded=> fnd_api.g_false

2920: x_return_status := fnd_api.g_ret_sts_error;
2921: fnd_msg_pub.count_and_get (
2922: p_count=> x_msg_count
2923: ,p_data=> x_msg_data
2924: ,p_encoded=> fnd_api.g_false
2925: );
2926: WHEN fnd_api.g_exc_unexpected_error THEN
2927: x_return_status := fnd_api.g_ret_sts_unexp_error;
2928: fnd_msg_pub.count_and_get (

Line 2926: WHEN fnd_api.g_exc_unexpected_error THEN

2922: p_count=> x_msg_count
2923: ,p_data=> x_msg_data
2924: ,p_encoded=> fnd_api.g_false
2925: );
2926: WHEN fnd_api.g_exc_unexpected_error THEN
2927: x_return_status := fnd_api.g_ret_sts_unexp_error;
2928: fnd_msg_pub.count_and_get (
2929: p_count=> x_msg_count
2930: ,p_data=> x_msg_data

Line 2927: x_return_status := fnd_api.g_ret_sts_unexp_error;

2923: ,p_data=> x_msg_data
2924: ,p_encoded=> fnd_api.g_false
2925: );
2926: WHEN fnd_api.g_exc_unexpected_error THEN
2927: x_return_status := fnd_api.g_ret_sts_unexp_error;
2928: fnd_msg_pub.count_and_get (
2929: p_count=> x_msg_count
2930: ,p_data=> x_msg_data
2931: ,p_encoded=> fnd_api.g_false

Line 2931: ,p_encoded=> fnd_api.g_false

2927: x_return_status := fnd_api.g_ret_sts_unexp_error;
2928: fnd_msg_pub.count_and_get (
2929: p_count=> x_msg_count
2930: ,p_data=> x_msg_data
2931: ,p_encoded=> fnd_api.g_false
2932: );
2933: WHEN OTHERS THEN
2934: x_return_status := fnd_api.g_ret_sts_unexp_error;
2935:

Line 2934: x_return_status := fnd_api.g_ret_sts_unexp_error;

2930: ,p_data=> x_msg_data
2931: ,p_encoded=> fnd_api.g_false
2932: );
2933: WHEN OTHERS THEN
2934: x_return_status := fnd_api.g_ret_sts_unexp_error;
2935:
2936: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
2937: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
2938: END IF;

Line 2943: ,p_encoded=> fnd_api.g_false

2939:
2940: fnd_msg_pub.count_and_get (
2941: p_count=> x_msg_count
2942: ,p_data=> x_msg_data
2943: ,p_encoded=> fnd_api.g_false
2944: );
2945: END validate_act_budgets;
2946:
2947:

Line 2971: x_return_status := fnd_api.g_ret_sts_success;

2967: l_pk_name VARCHAR2 (30);
2968: l_pk_value VARCHAR2 (30);
2969: BEGIN
2970: -- Initialize API/Procedure return status to success
2971: x_return_status := fnd_api.g_ret_sts_success;
2972:
2973: -- Check required parameters
2974: IF ( p_act_budgets_rec.act_budget_used_by_id = fnd_api.g_miss_num
2975: OR p_act_budgets_rec.act_budget_used_by_id IS NULL

Line 2974: IF ( p_act_budgets_rec.act_budget_used_by_id = fnd_api.g_miss_num

2970: -- Initialize API/Procedure return status to success
2971: x_return_status := fnd_api.g_ret_sts_success;
2972:
2973: -- Check required parameters
2974: IF ( p_act_budgets_rec.act_budget_used_by_id = fnd_api.g_miss_num
2975: OR p_act_budgets_rec.act_budget_used_by_id IS NULL
2976: ) THEN
2977: -- missing required fields
2978: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN

Line 2983: x_return_status := fnd_api.g_ret_sts_error;

2979: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_NO_USEDBYID');
2980: fnd_msg_pub.ADD;
2981: END IF;
2982:
2983: x_return_status := fnd_api.g_ret_sts_error;
2984: -- If any error happens abort API.
2985: RETURN;
2986: END IF;
2987:

Line 2989: IF ( p_act_budgets_rec.budget_source_id = fnd_api.g_miss_num

2985: RETURN;
2986: END IF;
2987:
2988: --- budget sourrce id
2989: IF ( p_act_budgets_rec.budget_source_id = fnd_api.g_miss_num
2990: OR p_act_budgets_rec.budget_source_id IS NULL
2991: ) THEN
2992: -- missing required fields
2993: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN

Line 2998: x_return_status := fnd_api.g_ret_sts_error;

2994: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_NO_SOURCEID');
2995: fnd_msg_pub.ADD;
2996: END IF;
2997:
2998: x_return_status := fnd_api.g_ret_sts_error;
2999: -- If any error happens abort API.
3000: RETURN;
3001: END IF;
3002:

Line 3004: IF ( p_act_budgets_rec.budget_source_type = fnd_api.g_miss_char

3000: RETURN;
3001: END IF;
3002:
3003: -- budget source type
3004: IF ( p_act_budgets_rec.budget_source_type = fnd_api.g_miss_char
3005: OR p_act_budgets_rec.budget_source_type IS NULL
3006: ) THEN
3007: -- missing required fields
3008: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN

Line 3013: x_return_status := fnd_api.g_ret_sts_error;

3009: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_NO_SOURCETYPE');
3010: fnd_msg_pub.ADD;
3011: END IF;
3012:
3013: x_return_status := fnd_api.g_ret_sts_error;
3014: -- If any error happens abort API.
3015: RETURN;
3016: END IF;
3017:

Line 3019: IF ( p_act_budgets_rec.transfer_type = fnd_api.g_miss_char

3015: RETURN;
3016: END IF;
3017:
3018: -- transfer type
3019: IF ( p_act_budgets_rec.transfer_type = fnd_api.g_miss_char
3020: OR p_act_budgets_rec.transfer_type IS NULL
3021: ) THEN
3022: -- missing required fields
3023: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN

Line 3028: x_return_status := fnd_api.g_ret_sts_error;

3024: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_NO_TRANSYPE');
3025: fnd_msg_pub.ADD;
3026: END IF;
3027:
3028: x_return_status := fnd_api.g_ret_sts_error;
3029: -- If any error happens abort API.
3030: RETURN;
3031: END IF;
3032:

Line 3034: IF ( p_act_budgets_rec.arc_act_budget_used_by = fnd_api.g_miss_char

3030: RETURN;
3031: END IF;
3032:
3033: -- arc_act_budget_used_by
3034: IF ( p_act_budgets_rec.arc_act_budget_used_by = fnd_api.g_miss_char
3035: OR p_act_budgets_rec.arc_act_budget_used_by IS NULL
3036: ) THEN
3037: -- missing required fields
3038: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN

Line 3043: x_return_status := fnd_api.g_ret_sts_error;

3039: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_NO_USEDBY');
3040: fnd_msg_pub.ADD;
3041: END IF;
3042:
3043: x_return_status := fnd_api.g_ret_sts_error;
3044: -- If any error happens abort API.
3045: RETURN;
3046: END IF;
3047:

Line 3054: OR p_act_budgets_rec.request_currency = fnd_api.g_miss_char

3050: -- cannot be updated, so failure condition should
3051: -- only happen during create.
3052:
3053: IF ( p_act_budgets_rec.request_currency IS NULL
3054: OR p_act_budgets_rec.request_currency = fnd_api.g_miss_char
3055: ) THEN
3056: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
3057: x_return_status := fnd_api.g_ret_sts_error;
3058: RETURN;

Line 3057: x_return_status := fnd_api.g_ret_sts_error;

3053: IF ( p_act_budgets_rec.request_currency IS NULL
3054: OR p_act_budgets_rec.request_currency = fnd_api.g_miss_char
3055: ) THEN
3056: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
3057: x_return_status := fnd_api.g_ret_sts_error;
3058: RETURN;
3059: END IF;
3060: -- Validate uniqueness
3061: IF p_validation_mode = jtf_plsql_api.g_create

Line 3067: ) = fnd_api.g_false THEN

3063: IF ozf_utility_pvt.check_uniqueness (
3064: 'ozf_Act_budgets'
3065: , 'ACTIVITY_BUDGET_ID = '
3066: || p_act_budgets_rec.activity_budget_id
3067: ) = fnd_api.g_false THEN
3068: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3069: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_DUPLICATE_ID');
3070: fnd_msg_pub.ADD;
3071: END IF;

Line 3073: x_return_status := fnd_api.g_ret_sts_error;

3069: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_DUPLICATE_ID');
3070: fnd_msg_pub.ADD;
3071: END IF;
3072:
3073: x_return_status := fnd_api.g_ret_sts_error;
3074: RETURN;
3075: END IF;
3076: END IF;
3077:

Line 3082: IF p_act_budgets_rec.arc_act_budget_used_by <> fnd_api.g_miss_char THEN

3078: --
3079: -- check for lookups....arc_act_budget_used_by
3080: -- TO DO: check ozf object in ozf lookup OZF_SYS_ARC_QUALIFIER, ams object in ams lookup AMS_SYS_ARC_QUALIFIER
3081:
3082: IF p_act_budgets_rec.arc_act_budget_used_by <> fnd_api.g_miss_char THEN
3083: IF ams_utility_pvt.check_lookup_exists (
3084: p_lookup_type=> 'AMS_SYS_ARC_QUALIFIER'
3085: ,p_lookup_code=> p_act_budgets_rec.arc_act_budget_used_by
3086: ) = fnd_api.g_false THEN

Line 3086: ) = fnd_api.g_false THEN

3082: IF p_act_budgets_rec.arc_act_budget_used_by <> fnd_api.g_miss_char THEN
3083: IF ams_utility_pvt.check_lookup_exists (
3084: p_lookup_type=> 'AMS_SYS_ARC_QUALIFIER'
3085: ,p_lookup_code=> p_act_budgets_rec.arc_act_budget_used_by
3086: ) = fnd_api.g_false THEN
3087: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3088: ozf_utility_pvt.debug_message ( 'Used By:'||p_act_budgets_rec.arc_act_budget_used_by);
3089: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_USEDBY');
3090: fnd_msg_pub.ADD;

Line 3093: x_return_status := fnd_api.g_ret_sts_error;

3089: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_USEDBY');
3090: fnd_msg_pub.ADD;
3091: END IF;
3092:
3093: x_return_status := fnd_api.g_ret_sts_error;
3094: RETURN;
3095: END IF;
3096: END IF;
3097:

Line 3101: IF p_act_budgets_rec.budget_source_type <> fnd_api.g_miss_char THEN

3097:
3098: --
3099: -- check for lookups....BUDGET_SOURCE_TYPE
3100: --
3101: IF p_act_budgets_rec.budget_source_type <> fnd_api.g_miss_char THEN
3102: IF ozf_utility_pvt.check_lookup_exists (
3103: p_lookup_type=> 'OZF_FUND_SOURCE'
3104: ,p_lookup_code=> p_act_budgets_rec.budget_source_type
3105: ) = fnd_api.g_false THEN

Line 3105: ) = fnd_api.g_false THEN

3101: IF p_act_budgets_rec.budget_source_type <> fnd_api.g_miss_char THEN
3102: IF ozf_utility_pvt.check_lookup_exists (
3103: p_lookup_type=> 'OZF_FUND_SOURCE'
3104: ,p_lookup_code=> p_act_budgets_rec.budget_source_type
3105: ) = fnd_api.g_false THEN
3106: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3107: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_SRCTYPE');
3108: fnd_msg_pub.ADD;
3109: END IF;

Line 3111: x_return_status := fnd_api.g_ret_sts_error;

3107: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_SRCTYPE');
3108: fnd_msg_pub.ADD;
3109: END IF;
3110:
3111: x_return_status := fnd_api.g_ret_sts_error;
3112: RETURN;
3113: END IF;
3114: END IF;
3115:

Line 3120: IF p_act_budgets_rec.act_budget_used_by_id <> fnd_api.g_miss_num THEN

3116: --
3117: -- Begin Validate Referential
3118: --
3119: -- Check FK parameter: act_budget_used_by_id #1
3120: IF p_act_budgets_rec.act_budget_used_by_id <> fnd_api.g_miss_num THEN
3121: IF p_act_budgets_rec.arc_act_budget_used_by = ('EVEH') THEN
3122: l_table_name := 'AMS_EVENT_HEADERS_VL';
3123: l_pk_name := 'EVENT_HEADER_ID';
3124: ELSIF p_act_budgets_rec.arc_act_budget_used_by IN ( 'EVEO','EONE') THEN

Line 3166: ) = fnd_api.g_false THEN

3162: IF ozf_utility_pvt.check_fk_exists (
3163: p_table_name=> l_table_name
3164: ,p_pk_name=> l_pk_name
3165: ,p_pk_value=> l_pk_value
3166: ) = fnd_api.g_false THEN
3167: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3168: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_USEDBYID');
3169: fnd_msg_pub.ADD;
3170: END IF;

Line 3172: x_return_status := fnd_api.g_ret_sts_error;

3168: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_USEDBYID');
3169: fnd_msg_pub.ADD;
3170: END IF;
3171:
3172: x_return_status := fnd_api.g_ret_sts_error;
3173: -- If any errors happen abort API/Procedure.
3174: RETURN;
3175: END IF; -- check_fk_exists
3176: END IF;

Line 3180: IF p_act_budgets_rec.budget_source_id <> fnd_api.g_miss_num

3176: END IF;
3177:
3178: -- Check FK parameter: BUDGET_SOURCE_ID #2
3179: -- Partner funds will not have a budget source ID
3180: IF p_act_budgets_rec.budget_source_id <> fnd_api.g_miss_num
3181: AND p_act_budgets_rec.budget_source_id IS NOT NULL THEN
3182: IF p_act_budgets_rec.budget_source_type = 'EVEH' THEN
3183: l_table_name := 'AMS_EVENT_HEADERS_VL';
3184: l_pk_name := 'EVENT_HEADER_ID';

Line 3219: p_act_budgets_rec.owner_id <> FND_API.g_miss_num THEN

3215: OR p_act_budgets_rec.budget_source_type = 'PRIC' THEN
3216: l_table_name := 'QP_LIST_HEADERS_B';
3217: l_pk_name := 'LIST_HEADER_ID';
3218: ELSIF p_act_budgets_rec.owner_id IS NOT NULL or
3219: p_act_budgets_rec.owner_id <> FND_API.g_miss_num THEN
3220: l_table_name := 'ams_jtf_rs_emp_v';
3221: l_pk_name := 'RESOURCE_ID';
3222: -- 03/21/2002 mpande added because Deliverables reconciliation was not working properly
3223: ELSIF p_act_budgets_rec.budget_source_type = 'DELV' THEN

Line 3234: ) = fnd_api.g_false THEN

3230: IF ozf_utility_pvt.check_fk_exists (
3231: p_table_name=> l_table_name
3232: ,p_pk_name=> l_pk_name
3233: ,p_pk_value=> l_pk_value
3234: ) = fnd_api.g_false THEN
3235: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3236: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_SRCID');
3237: fnd_msg_pub.ADD;
3238: END IF;

Line 3240: x_return_status := fnd_api.g_ret_sts_error;

3236: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_SRCID');
3237: fnd_msg_pub.ADD;
3238: END IF;
3239:
3240: x_return_status := fnd_api.g_ret_sts_error;
3241: -- If any errors happen abort API/Procedure.
3242: RETURN;
3243: END IF; -- check_fk_exists
3244: END IF;

Line 3254: IF p_act_budgets_rec.approver_id <> fnd_api.g_miss_num THEN

3250: following update on UTILIZED record failed with approver not exists error,
3251: which does not make sense.
3252:
3253: -- Check FK parameter: approver_id
3254: IF p_act_budgets_rec.approver_id <> fnd_api.g_miss_num THEN
3255: l_table_name := 'ams_jtf_rs_emp_v';
3256: l_pk_name := 'RESOURCE_ID';
3257: l_pk_value := p_act_budgets_rec.approver_id;
3258:

Line 3263: ) = fnd_api.g_false THEN

3259: IF ozf_utility_pvt.check_fk_exists (
3260: p_table_name=> l_table_name
3261: ,p_pk_name=> l_pk_name
3262: ,p_pk_value=> l_pk_value
3263: ) = fnd_api.g_false THEN
3264: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3265: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_APPRID');
3266: fnd_msg_pub.ADD;
3267: END IF;

Line 3269: x_return_status := fnd_api.g_ret_sts_error;

3265: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_APPRID');
3266: fnd_msg_pub.ADD;
3267: END IF;
3268:
3269: x_return_status := fnd_api.g_ret_sts_error;
3270: -- If any errors happen abort API/Procedure.
3271: RETURN;
3272: END IF; -- check_fk_exists
3273: END IF;

Line 3276: IF p_act_budgets_rec.requester_id <> fnd_api.g_miss_num THEN

3272: END IF; -- check_fk_exists
3273: END IF;
3274:
3275: -- Check FK parameter: approver_id
3276: IF p_act_budgets_rec.requester_id <> fnd_api.g_miss_num THEN
3277: l_table_name := 'ams_jtf_rs_emp_v';
3278: l_pk_name := 'RESOURCE_ID';
3279: l_pk_value := p_act_budgets_rec.requester_id;
3280:

Line 3285: ) = fnd_api.g_false THEN

3281: IF ozf_utility_pvt.check_fk_exists (
3282: p_table_name=> l_table_name
3283: ,p_pk_name=> l_pk_name
3284: ,p_pk_value=> l_pk_value
3285: ) = fnd_api.g_false THEN
3286: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_error) THEN
3287: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_APPRID');
3288: fnd_msg_pub.ADD;
3289: END IF;

Line 3291: x_return_status := fnd_api.g_ret_sts_error;

3287: fnd_message.set_name ('OZF', 'OZF_ACT_BUDG_BAD_APPRID');
3288: fnd_msg_pub.ADD;
3289: END IF;
3290:
3291: x_return_status := fnd_api.g_ret_sts_error;
3292: -- If any errors happen abort API/Procedure.
3293: RETURN;
3294: END IF; -- check_fk_exists
3295: END IF;

Line 3334: l_fund_transfer_flag VARCHAR2 (1) := fnd_api.g_false;

3330: -- Status Local Variables
3331: l_return_status VARCHAR2 (1); -- Return value from procedures
3332: l_owner_currency VARCHAR2 (15);
3333: -- flag indicating it is a fund to fund transfer.
3334: l_fund_transfer_flag VARCHAR2 (1) := fnd_api.g_false;
3335: l_check_amount NUMBER := 0 ;
3336: l_old_approved_amount NUMBER := 0 ;
3337: l_dummy VARCHAR2(3);
3338: l_exc_util_check VARCHAR2(1):= 'F';

Line 3375: IF NOT fnd_api.compatible_api_call (l_api_version, l_api_version, l_api_name, g_package_name) THEN

3371:
3372:
3373: BEGIN
3374: -- Standard call to check for call compatibility.
3375: IF NOT fnd_api.compatible_api_call (l_api_version, l_api_version, l_api_name, g_package_name) THEN
3376: RAISE fnd_api.g_exc_unexpected_error;
3377: END IF;
3378:
3379: -- Initialize API return status to success

Line 3376: RAISE fnd_api.g_exc_unexpected_error;

3372:
3373: BEGIN
3374: -- Standard call to check for call compatibility.
3375: IF NOT fnd_api.compatible_api_call (l_api_version, l_api_version, l_api_name, g_package_name) THEN
3376: RAISE fnd_api.g_exc_unexpected_error;
3377: END IF;
3378:
3379: -- Initialize API return status to success
3380: x_return_status := fnd_api.g_ret_sts_success;

Line 3380: x_return_status := fnd_api.g_ret_sts_success;

3376: RAISE fnd_api.g_exc_unexpected_error;
3377: END IF;
3378:
3379: -- Initialize API return status to success
3380: x_return_status := fnd_api.g_ret_sts_success;
3381:
3382: --
3383: -- API body
3384: /****************** commented by mpande 02/10/2001 only for INternal rollout*************

Line 3389: x_return_status := FND_API.g_ret_sts_error;

3385: /****************** changed by mpande**********************
3386: ---budget requested amount should always be positive be it credit or debit transaction --
3387: IF NVL(p_act_budgets_rec.request_amount,0) <= 0 THEN
3388: OZF_Utility_PVT.error_message ('OZF_ACT_BUDG_NEG_REQUEST');
3389: x_return_status := FND_API.g_ret_sts_error;
3390: END IF;
3391: ********************************************************************************************/
3392:
3393: -- 22-Feb-2001 mpande

Line 3412: x_return_status := fnd_api.g_ret_sts_error;

3408: -- fixed by feliu on 02/02/2006.
3409: IF p_act_budgets_rec.transfer_type <> 'UTILIZED' THEN
3410: IF NVL (p_act_budgets_rec.request_amount, 0) <0 THEN
3411: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NEG_REQUEST');
3412: x_return_status := fnd_api.g_ret_sts_error;
3413: END IF;
3414: END IF;
3415: -- END IF;
3416:

Line 3422: x_return_status := fnd_api.g_ret_sts_error;

3418: --budget spent amount cannot be greateer than the approved amount
3419: /* 03/01/2002 mpande commented this is not there any more
3420: IF NVL (p_act_budgets_rec.spent_amount, 0) > NVL (p_act_budgets_rec.approved_amount, 0) THEN
3421: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_EXCESS_SPENT');
3422: x_return_status := fnd_api.g_ret_sts_error;
3423: END IF;
3424: */
3425:
3426: -- 04/10/2001 mpande Hornet changes

Line 3429: l_fund_transfer_flag := fnd_api.g_true;

3425:
3426: -- 04/10/2001 mpande Hornet changes
3427: IF p_act_budgets_rec.arc_act_budget_used_by = 'FUND'
3428: AND p_act_budgets_rec.budget_source_type = 'FUND' THEN
3429: l_fund_transfer_flag := fnd_api.g_true;
3430: END IF;
3431:
3432: IF l_fund_transfer_flag = fnd_api.g_false THEN
3433: -- only utilized records could be updated. transfer, request cannot be updated

Line 3432: IF l_fund_transfer_flag = fnd_api.g_false THEN

3428: AND p_act_budgets_rec.budget_source_type = 'FUND' THEN
3429: l_fund_transfer_flag := fnd_api.g_true;
3430: END IF;
3431:
3432: IF l_fund_transfer_flag = fnd_api.g_false THEN
3433: -- only utilized records could be updated. transfer, request cannot be updated
3434: IF p_validation_mode = jtf_plsql_api.g_update THEN
3435: OPEN c_current_amount;
3436: FETCH c_current_amount INTO l_old_approved_amount;

Line 3441: RAISE fnd_api.g_exc_unexpected_error;

3437:
3438: IF c_current_amount%NOTFOUND THEN
3439: CLOSE c_current_amount;
3440: ozf_utility_pvt.error_message ('OZF_API_RECORD_NOT_FOUND');
3441: RAISE fnd_api.g_exc_unexpected_error;
3442: END IF;
3443:
3444: CLOSE c_current_amount;
3445: END IF;

Line 3477: x_return_status := fnd_api.g_ret_sts_error;

3473: CLOSE c_get_budget_ledger_id;
3474:
3475: IF NVL(l_budgetLedger, 0) <> 0 AND NVL(l_budgetLedger, 0) <> l_offerLedger THEN
3476: ozf_utility_pvt.error_message ('OZF_BUDGET_OFFR_LEDG_MISMATCH');
3477: x_return_status := fnd_api.g_ret_sts_error;
3478: RAISE fnd_api.g_exc_error;
3479: END IF;
3480:
3481: END IF;

Line 3478: RAISE fnd_api.g_exc_error;

3474:
3475: IF NVL(l_budgetLedger, 0) <> 0 AND NVL(l_budgetLedger, 0) <> l_offerLedger THEN
3476: ozf_utility_pvt.error_message ('OZF_BUDGET_OFFR_LEDG_MISMATCH');
3477: x_return_status := fnd_api.g_ret_sts_error;
3478: RAISE fnd_api.g_exc_error;
3479: END IF;
3480:
3481: END IF;
3482: END IF;

Line 3544: IF l_return_status <> fnd_api.g_ret_sts_success THEN

3540: ,l_return_status
3541: );
3542: END IF;
3543:
3544: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3545: x_return_status := fnd_api.g_ret_sts_error;
3546: END IF;
3547: -- donot check for utilized and transfer records -- they are not souring 08/09/2001 mpande
3548: -- Request amount can not more than estimated amount when object is DRAFT status.

Line 3545: x_return_status := fnd_api.g_ret_sts_error;

3541: );
3542: END IF;
3543:
3544: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3545: x_return_status := fnd_api.g_ret_sts_error;
3546: END IF;
3547: -- donot check for utilized and transfer records -- they are not souring 08/09/2001 mpande
3548: -- Request amount can not more than estimated amount when object is DRAFT status.
3549: -- don't validate for child records from sourcing from parent.

Line 3557: ) = fnd_api.g_false THEN

3553: p_object_type=> p_act_budgets_rec.arc_act_budget_used_by
3554: ,p_object_id=> p_act_budgets_rec.act_budget_used_by_id
3555: ,p_request_amount=> p_act_budgets_rec.request_amount
3556: ,p_act_budget_id=> p_act_budgets_rec.activity_budget_id
3557: ) = fnd_api.g_false THEN
3558: ozf_utility_pvt.error_message ( 'OZF_ACT_BUDG_EXC_OBJ_AMT');
3559: x_return_status := fnd_api.g_ret_sts_error;
3560: END IF;
3561: END IF ;

Line 3559: x_return_status := fnd_api.g_ret_sts_error;

3555: ,p_request_amount=> p_act_budgets_rec.request_amount
3556: ,p_act_budget_id=> p_act_budgets_rec.activity_budget_id
3557: ) = fnd_api.g_false THEN
3558: ozf_utility_pvt.error_message ( 'OZF_ACT_BUDG_EXC_OBJ_AMT');
3559: x_return_status := fnd_api.g_ret_sts_error;
3560: END IF;
3561: END IF ;
3562:
3563: --- we will match activity and category for others also later

Line 3574: IF l_return_status <> fnd_api.g_ret_sts_success THEN

3570: ,p_act_budgets_rec.budget_source_id
3571: ,l_return_status
3572: );
3573:
3574: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3575: x_return_status := fnd_api.g_ret_sts_error;
3576: END IF;
3577: END IF; */
3578: -- 10/30/2001 mpande commented prod and market validation

Line 3575: x_return_status := fnd_api.g_ret_sts_error;

3571: ,l_return_status
3572: );
3573:
3574: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3575: x_return_status := fnd_api.g_ret_sts_error;
3576: END IF;
3577: END IF; */
3578: -- 10/30/2001 mpande commented prod and market validation
3579: -- as per Leela.

Line 3589: IF l_return_status <> fnd_api.g_ret_sts_success THEN

3585: ,p_act_budgets_rec.budget_source_id
3586: ,l_return_status
3587: );
3588:
3589: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3590: x_return_status := fnd_api.g_ret_sts_error;
3591: ELSE
3592: /* yzhao: 07/20/2001 check product eligibility
3593: OZF_ACTBUDGETRULES_PVT.check_prod_elig_match (

Line 3590: x_return_status := fnd_api.g_ret_sts_error;

3586: ,l_return_status
3587: );
3588:
3589: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3590: x_return_status := fnd_api.g_ret_sts_error;
3591: ELSE
3592: /* yzhao: 07/20/2001 check product eligibility
3593: OZF_ACTBUDGETRULES_PVT.check_prod_elig_match (
3594: p_act_budgets_rec.act_budget_used_by_id,

Line 3600: IF l_return_status <> fnd_api.g_ret_sts_success THEN

3596: p_act_budgets_rec.budget_source_id,
3597: l_return_status
3598: );
3599:
3600: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3601: x_return_status := fnd_api.g_ret_sts_error;
3602: END IF;
3603: END IF;
3604: END IF;

Line 3601: x_return_status := fnd_api.g_ret_sts_error;

3597: l_return_status
3598: );
3599:
3600: IF l_return_status <> fnd_api.g_ret_sts_success THEN
3601: x_return_status := fnd_api.g_ret_sts_error;
3602: END IF;
3603: END IF;
3604: END IF;
3605: */

Line 3614: x_return_status := fnd_api.g_ret_sts_error;

3610: IF p_act_budgets_rec.transfer_type NOT IN ('UTILIZED', 'RELEASE', 'RESERVE') THEN
3611: IF p_act_budgets_rec.arc_act_budget_used_by = p_act_budgets_rec.budget_source_type THEN
3612: IF p_act_budgets_rec.act_budget_used_by_id = p_act_budgets_rec.budget_source_id THEN
3613: ozf_utility_pvt.error_message ('OZF_FROM_TO_TRANSFER_SAME');
3614: x_return_status := fnd_api.g_ret_sts_error;
3615: END IF;
3616: END IF;
3617: END IF;
3618: -- put in checks for date: required by date cannot be less than sysdate

Line 3621: AND p_act_budgets_rec.date_required_by <> FND_API.G_MISS_DATE THEN

3617: END IF;
3618: -- put in checks for date: required by date cannot be less than sysdate
3619:
3620: IF p_act_budgets_rec.date_required_by IS NOT NULL
3621: AND p_act_budgets_rec.date_required_by <> FND_API.G_MISS_DATE THEN
3622: IF p_act_budgets_rec.date_required_by < TRUNC(SYSDATE) THEN
3623: Fnd_Message.SET_NAME('OZF','OZF_ACT_REQDBYDATE_LT_SYSDATE');
3624: Fnd_Msg_Pub.ADD;
3625: RAISE FND_API.G_EXC_ERROR;

Line 3625: RAISE FND_API.G_EXC_ERROR;

3621: AND p_act_budgets_rec.date_required_by <> FND_API.G_MISS_DATE THEN
3622: IF p_act_budgets_rec.date_required_by < TRUNC(SYSDATE) THEN
3623: Fnd_Message.SET_NAME('OZF','OZF_ACT_REQDBYDATE_LT_SYSDATE');
3624: Fnd_Msg_Pub.ADD;
3625: RAISE FND_API.G_EXC_ERROR;
3626: END IF;
3627: END IF;
3628:
3629: --

Line 3670: RAISE fnd_api.g_exc_error;

3666: fnd_message.set_name ('OZF', 'OZF_API_RECORD_NOT_FOUND');
3667: fnd_msg_pub.ADD;
3668: END IF;
3669:
3670: RAISE fnd_api.g_exc_error;
3671: END IF;
3672:
3673: CLOSE c_budget;
3674:

Line 3680: IF p_act_budgets_rec.object_version_number = fnd_api.g_miss_num THEN

3676: -- Usually, object_version_number is required from API calls,
3677: -- but this exception is made because approvals and rejections
3678: -- do not have to be synced to the screen record. The same
3679: -- may apply for account closing.
3680: IF p_act_budgets_rec.object_version_number = fnd_api.g_miss_num THEN
3681: x_act_budgets_rec.object_version_number := NULL;
3682: END IF;
3683: IF p_act_budgets_rec.object_version_number IS NULL THEN
3684: x_act_budgets_rec.object_version_number := l_act_budgets_rec.object_version_number;

Line 3687: IF p_act_budgets_rec.act_budget_used_by_id = fnd_api.g_miss_num THEN

3683: IF p_act_budgets_rec.object_version_number IS NULL THEN
3684: x_act_budgets_rec.object_version_number := l_act_budgets_rec.object_version_number;
3685: END IF;
3686:
3687: IF p_act_budgets_rec.act_budget_used_by_id = fnd_api.g_miss_num THEN
3688: x_act_budgets_rec.act_budget_used_by_id := NULL;
3689: END IF;
3690: IF p_act_budgets_rec.act_budget_used_by_id IS NULL THEN
3691: x_act_budgets_rec.act_budget_used_by_id := l_act_budgets_rec.act_budget_used_by_id;

Line 3694: IF p_act_budgets_rec.arc_act_budget_used_by = fnd_api.g_miss_char THEN

3690: IF p_act_budgets_rec.act_budget_used_by_id IS NULL THEN
3691: x_act_budgets_rec.act_budget_used_by_id := l_act_budgets_rec.act_budget_used_by_id;
3692: END IF;
3693:
3694: IF p_act_budgets_rec.arc_act_budget_used_by = fnd_api.g_miss_char THEN
3695: x_act_budgets_rec.arc_act_budget_used_by := NULL;
3696: END IF;
3697: IF p_act_budgets_rec.arc_act_budget_used_by IS NULL THEN
3698: x_act_budgets_rec.arc_act_budget_used_by := l_act_budgets_rec.arc_act_budget_used_by;

Line 3701: IF p_act_budgets_rec.budget_source_type = fnd_api.g_miss_char THEN

3697: IF p_act_budgets_rec.arc_act_budget_used_by IS NULL THEN
3698: x_act_budgets_rec.arc_act_budget_used_by := l_act_budgets_rec.arc_act_budget_used_by;
3699: END IF;
3700:
3701: IF p_act_budgets_rec.budget_source_type = fnd_api.g_miss_char THEN
3702: x_act_budgets_rec.budget_source_type := NULL;
3703: END IF;
3704: IF p_act_budgets_rec.budget_source_type IS NULL THEN
3705: x_act_budgets_rec.budget_source_type := l_act_budgets_rec.budget_source_type;

Line 3708: IF p_act_budgets_rec.budget_source_id = fnd_api.g_miss_num THEN

3704: IF p_act_budgets_rec.budget_source_type IS NULL THEN
3705: x_act_budgets_rec.budget_source_type := l_act_budgets_rec.budget_source_type;
3706: END IF;
3707:
3708: IF p_act_budgets_rec.budget_source_id = fnd_api.g_miss_num THEN
3709: x_act_budgets_rec.budget_source_id := NULL;
3710: END IF;
3711: IF p_act_budgets_rec.budget_source_id IS NULL THEN
3712: x_act_budgets_rec.budget_source_id := l_act_budgets_rec.budget_source_id;

Line 3715: IF p_act_budgets_rec.transaction_type = fnd_api.g_miss_char THEN

3711: IF p_act_budgets_rec.budget_source_id IS NULL THEN
3712: x_act_budgets_rec.budget_source_id := l_act_budgets_rec.budget_source_id;
3713: END IF;
3714:
3715: IF p_act_budgets_rec.transaction_type = fnd_api.g_miss_char THEN
3716: x_act_budgets_rec.transaction_type := NULL;
3717: END IF;
3718: IF p_act_budgets_rec.transaction_type IS NULL THEN
3719: x_act_budgets_rec.transaction_type := l_act_budgets_rec.transaction_type;

Line 3722: IF p_act_budgets_rec.request_amount = fnd_api.g_miss_num THEN

3718: IF p_act_budgets_rec.transaction_type IS NULL THEN
3719: x_act_budgets_rec.transaction_type := l_act_budgets_rec.transaction_type;
3720: END IF;
3721:
3722: IF p_act_budgets_rec.request_amount = fnd_api.g_miss_num THEN
3723: x_act_budgets_rec.request_amount := NULL;
3724: END IF;
3725: IF p_act_budgets_rec.request_amount IS NULL THEN
3726: x_act_budgets_rec.request_amount := l_act_budgets_rec.request_amount;

Line 3729: IF p_act_budgets_rec.request_currency = fnd_api.g_miss_char THEN

3725: IF p_act_budgets_rec.request_amount IS NULL THEN
3726: x_act_budgets_rec.request_amount := l_act_budgets_rec.request_amount;
3727: END IF;
3728:
3729: IF p_act_budgets_rec.request_currency = fnd_api.g_miss_char THEN
3730: x_act_budgets_rec.request_currency := NULL;
3731: END IF;
3732: IF p_act_budgets_rec.request_currency IS NULL THEN
3733: x_act_budgets_rec.request_currency := l_act_budgets_rec.request_currency;

Line 3736: IF p_act_budgets_rec.request_date = fnd_api.g_miss_date THEN

3732: IF p_act_budgets_rec.request_currency IS NULL THEN
3733: x_act_budgets_rec.request_currency := l_act_budgets_rec.request_currency;
3734: END IF;
3735:
3736: IF p_act_budgets_rec.request_date = fnd_api.g_miss_date THEN
3737: x_act_budgets_rec.request_date := NULL;
3738: END IF;
3739: IF p_act_budgets_rec.request_date IS NULL THEN
3740: x_act_budgets_rec.request_date := l_act_budgets_rec.request_date;

Line 3743: IF p_act_budgets_rec.status_code = fnd_api.g_miss_char THEN

3739: IF p_act_budgets_rec.request_date IS NULL THEN
3740: x_act_budgets_rec.request_date := l_act_budgets_rec.request_date;
3741: END IF;
3742:
3743: IF p_act_budgets_rec.status_code = fnd_api.g_miss_char THEN
3744: x_act_budgets_rec.status_code := NULL;
3745: END IF;
3746: IF p_act_budgets_rec.status_code IS NULL THEN
3747: x_act_budgets_rec.status_code := l_act_budgets_rec.status_code;

Line 3750: IF p_act_budgets_rec.approved_amount = fnd_api.g_miss_num THEN

3746: IF p_act_budgets_rec.status_code IS NULL THEN
3747: x_act_budgets_rec.status_code := l_act_budgets_rec.status_code;
3748: END IF;
3749:
3750: IF p_act_budgets_rec.approved_amount = fnd_api.g_miss_num THEN
3751: x_act_budgets_rec.approved_amount := NULL;
3752: END IF;
3753: IF p_act_budgets_rec.approved_amount IS NULL THEN
3754: x_act_budgets_rec.approved_amount := l_act_budgets_rec.approved_amount;

Line 3757: IF p_act_budgets_rec.approved_original_amount = fnd_api.g_miss_num THEN

3753: IF p_act_budgets_rec.approved_amount IS NULL THEN
3754: x_act_budgets_rec.approved_amount := l_act_budgets_rec.approved_amount;
3755: END IF;
3756:
3757: IF p_act_budgets_rec.approved_original_amount = fnd_api.g_miss_num THEN
3758: x_act_budgets_rec.approved_original_amount := NULL;
3759: END IF;
3760: IF p_act_budgets_rec.approved_original_amount IS NULL THEN
3761: x_act_budgets_rec.approved_original_amount := l_act_budgets_rec.approved_original_amount;

Line 3764: IF p_act_budgets_rec.approved_in_currency = fnd_api.g_miss_char THEN

3760: IF p_act_budgets_rec.approved_original_amount IS NULL THEN
3761: x_act_budgets_rec.approved_original_amount := l_act_budgets_rec.approved_original_amount;
3762: END IF;
3763:
3764: IF p_act_budgets_rec.approved_in_currency = fnd_api.g_miss_char THEN
3765: x_act_budgets_rec.approved_in_currency := NULL;
3766: END IF;
3767: IF p_act_budgets_rec.approved_in_currency IS NULL THEN
3768: x_act_budgets_rec.approved_in_currency := l_act_budgets_rec.approved_in_currency;

Line 3771: IF p_act_budgets_rec.approval_date = fnd_api.g_miss_date THEN

3767: IF p_act_budgets_rec.approved_in_currency IS NULL THEN
3768: x_act_budgets_rec.approved_in_currency := l_act_budgets_rec.approved_in_currency;
3769: END IF;
3770:
3771: IF p_act_budgets_rec.approval_date = fnd_api.g_miss_date THEN
3772: x_act_budgets_rec.approval_date := NULL;
3773: END IF;
3774: IF p_act_budgets_rec.approval_date IS NULL THEN
3775: x_act_budgets_rec.approval_date := l_act_budgets_rec.approval_date;

Line 3778: IF p_act_budgets_rec.approver_id = fnd_api.g_miss_num THEN

3774: IF p_act_budgets_rec.approval_date IS NULL THEN
3775: x_act_budgets_rec.approval_date := l_act_budgets_rec.approval_date;
3776: END IF;
3777:
3778: IF p_act_budgets_rec.approver_id = fnd_api.g_miss_num THEN
3779: x_act_budgets_rec.approver_id := NULL;
3780: END IF;
3781: IF p_act_budgets_rec.approver_id IS NULL THEN
3782: x_act_budgets_rec.approver_id := l_act_budgets_rec.approver_id;

Line 3785: IF p_act_budgets_rec.spent_amount = fnd_api.g_miss_num THEN

3781: IF p_act_budgets_rec.approver_id IS NULL THEN
3782: x_act_budgets_rec.approver_id := l_act_budgets_rec.approver_id;
3783: END IF;
3784:
3785: IF p_act_budgets_rec.spent_amount = fnd_api.g_miss_num THEN
3786: x_act_budgets_rec.spent_amount := NULL;
3787: END IF;
3788: IF p_act_budgets_rec.spent_amount IS NULL THEN
3789: x_act_budgets_rec.spent_amount := l_act_budgets_rec.spent_amount;

Line 3792: IF p_act_budgets_rec.partner_po_number = fnd_api.g_miss_char THEN

3788: IF p_act_budgets_rec.spent_amount IS NULL THEN
3789: x_act_budgets_rec.spent_amount := l_act_budgets_rec.spent_amount;
3790: END IF;
3791:
3792: IF p_act_budgets_rec.partner_po_number = fnd_api.g_miss_char THEN
3793: x_act_budgets_rec.partner_po_number := NULL;
3794: END IF;
3795: IF p_act_budgets_rec.partner_po_number IS NULL THEN
3796: x_act_budgets_rec.partner_po_number := l_act_budgets_rec.partner_po_number;

Line 3799: IF p_act_budgets_rec.partner_po_date = fnd_api.g_miss_date THEN

3795: IF p_act_budgets_rec.partner_po_number IS NULL THEN
3796: x_act_budgets_rec.partner_po_number := l_act_budgets_rec.partner_po_number;
3797: END IF;
3798:
3799: IF p_act_budgets_rec.partner_po_date = fnd_api.g_miss_date THEN
3800: x_act_budgets_rec.partner_po_date := NULL;
3801: END IF;
3802: IF p_act_budgets_rec.partner_po_date IS NULL THEN
3803: x_act_budgets_rec.partner_po_date := l_act_budgets_rec.partner_po_date;

Line 3806: IF p_act_budgets_rec.partner_po_approver = fnd_api.g_miss_char THEN

3802: IF p_act_budgets_rec.partner_po_date IS NULL THEN
3803: x_act_budgets_rec.partner_po_date := l_act_budgets_rec.partner_po_date;
3804: END IF;
3805:
3806: IF p_act_budgets_rec.partner_po_approver = fnd_api.g_miss_char THEN
3807: x_act_budgets_rec.partner_po_approver := NULL;
3808: END IF;
3809: IF p_act_budgets_rec.partner_po_approver IS NULL THEN
3810: x_act_budgets_rec.partner_po_approver := l_act_budgets_rec.partner_po_approver;

Line 3813: IF p_act_budgets_rec.posted_flag = fnd_api.g_miss_char THEN

3809: IF p_act_budgets_rec.partner_po_approver IS NULL THEN
3810: x_act_budgets_rec.partner_po_approver := l_act_budgets_rec.partner_po_approver;
3811: END IF;
3812:
3813: IF p_act_budgets_rec.posted_flag = fnd_api.g_miss_char THEN
3814: x_act_budgets_rec.posted_flag := NULL;
3815: END IF;
3816: IF p_act_budgets_rec.posted_flag IS NULL THEN
3817: x_act_budgets_rec.posted_flag := l_act_budgets_rec.posted_flag;

Line 3820: IF p_act_budgets_rec.adjusted_flag = fnd_api.g_miss_char THEN

3816: IF p_act_budgets_rec.posted_flag IS NULL THEN
3817: x_act_budgets_rec.posted_flag := l_act_budgets_rec.posted_flag;
3818: END IF;
3819:
3820: IF p_act_budgets_rec.adjusted_flag = fnd_api.g_miss_char THEN
3821: x_act_budgets_rec.adjusted_flag := NULL;
3822: END IF;
3823: IF p_act_budgets_rec.adjusted_flag IS NULL THEN
3824: x_act_budgets_rec.adjusted_flag := l_act_budgets_rec.adjusted_flag;

Line 3827: IF p_act_budgets_rec.transfer_type = fnd_api.g_miss_char THEN

3823: IF p_act_budgets_rec.adjusted_flag IS NULL THEN
3824: x_act_budgets_rec.adjusted_flag := l_act_budgets_rec.adjusted_flag;
3825: END IF;
3826:
3827: IF p_act_budgets_rec.transfer_type = fnd_api.g_miss_char THEN
3828: x_act_budgets_rec.transfer_type := NULL;
3829: END IF;
3830: IF p_act_budgets_rec.transfer_type IS NULL THEN
3831: x_act_budgets_rec.transfer_type := l_act_budgets_rec.transfer_type;

Line 3834: IF p_act_budgets_rec.reason_code = fnd_api.g_miss_char THEN

3830: IF p_act_budgets_rec.transfer_type IS NULL THEN
3831: x_act_budgets_rec.transfer_type := l_act_budgets_rec.transfer_type;
3832: END IF;
3833:
3834: IF p_act_budgets_rec.reason_code = fnd_api.g_miss_char THEN
3835: x_act_budgets_rec.reason_code := NULL;
3836: END IF;
3837: IF p_act_budgets_rec.reason_code IS NULL THEN
3838: x_act_budgets_rec.reason_code := l_act_budgets_rec.reason_code;

Line 3841: IF p_act_budgets_rec.requester_id = fnd_api.g_miss_num THEN

3837: IF p_act_budgets_rec.reason_code IS NULL THEN
3838: x_act_budgets_rec.reason_code := l_act_budgets_rec.reason_code;
3839: END IF;
3840:
3841: IF p_act_budgets_rec.requester_id = fnd_api.g_miss_num THEN
3842: x_act_budgets_rec.requester_id := NULL;
3843: END IF;
3844: IF p_act_budgets_rec.requester_id IS NULL THEN
3845: x_act_budgets_rec.requester_id := l_act_budgets_rec.requester_id;

Line 3848: IF p_act_budgets_rec.date_required_by = fnd_api.g_miss_date THEN

3844: IF p_act_budgets_rec.requester_id IS NULL THEN
3845: x_act_budgets_rec.requester_id := l_act_budgets_rec.requester_id;
3846: END IF;
3847:
3848: IF p_act_budgets_rec.date_required_by = fnd_api.g_miss_date THEN
3849: x_act_budgets_rec.date_required_by := NULL;
3850: END IF;
3851: IF p_act_budgets_rec.date_required_by IS NULL THEN
3852: x_act_budgets_rec.date_required_by := l_act_budgets_rec.date_required_by;

Line 3855: IF p_act_budgets_rec.contact_id = fnd_api.g_miss_num THEN

3851: IF p_act_budgets_rec.date_required_by IS NULL THEN
3852: x_act_budgets_rec.date_required_by := l_act_budgets_rec.date_required_by;
3853: END IF;
3854:
3855: IF p_act_budgets_rec.contact_id = fnd_api.g_miss_num THEN
3856: x_act_budgets_rec.contact_id := NULL;
3857: END IF;
3858: IF p_act_budgets_rec.contact_id IS NULL THEN
3859: x_act_budgets_rec.contact_id := l_act_budgets_rec.contact_id;

Line 3862: IF p_act_budgets_rec.parent_act_budget_id = fnd_api.g_miss_num THEN

3858: IF p_act_budgets_rec.contact_id IS NULL THEN
3859: x_act_budgets_rec.contact_id := l_act_budgets_rec.contact_id;
3860: END IF;
3861:
3862: IF p_act_budgets_rec.parent_act_budget_id = fnd_api.g_miss_num THEN
3863: x_act_budgets_rec.parent_act_budget_id := NULL;
3864: END IF;
3865: IF p_act_budgets_rec.parent_act_budget_id IS NULL THEN
3866: x_act_budgets_rec.parent_act_budget_id := l_act_budgets_rec.parent_act_budget_id;

Line 3872: IF p_act_budgets_rec.parent_source_id = fnd_api.g_miss_num THEN

3868:
3869: --kdass 24-JUN-2005 fix for bug 4440342, set parent_source_id to null so that the API get_parent_src is called
3870: /*
3871:
3872: IF p_act_budgets_rec.parent_source_id = fnd_api.g_miss_num THEN
3873: x_act_budgets_rec.parent_source_id := NULL;
3874: END IF;
3875: IF p_act_budgets_rec.parent_source_id IS NULL THEN
3876: x_act_budgets_rec.parent_source_id := l_act_budgets_rec.parent_source_id;

Line 3880: IF p_act_budgets_rec.src_curr_req_amt = fnd_api.g_miss_num THEN

3876: x_act_budgets_rec.parent_source_id := l_act_budgets_rec.parent_source_id;
3877: END IF;
3878: */
3879:
3880: IF p_act_budgets_rec.src_curr_req_amt = fnd_api.g_miss_num THEN
3881: x_act_budgets_rec.src_curr_req_amt := NULL;
3882: END IF;
3883: IF p_act_budgets_rec.src_curr_req_amt IS NULL THEN
3884: x_act_budgets_rec.src_curr_req_amt := l_act_budgets_rec.src_curr_request_amt;

Line 3888: IF p_act_budgets_rec.partner_holding_type = fnd_api.g_miss_char THEN

3884: x_act_budgets_rec.src_curr_req_amt := l_act_budgets_rec.src_curr_request_amt;
3885: END IF;
3886:
3887:
3888: IF p_act_budgets_rec.partner_holding_type = fnd_api.g_miss_char THEN
3889: x_act_budgets_rec.partner_holding_type := NULL;
3890: END IF;
3891: IF p_act_budgets_rec.partner_holding_type IS NULL THEN
3892: x_act_budgets_rec.partner_holding_type := l_act_budgets_rec.partner_holding_type;

Line 3895: IF p_act_budgets_rec.partner_address_id = fnd_api.g_miss_num THEN

3891: IF p_act_budgets_rec.partner_holding_type IS NULL THEN
3892: x_act_budgets_rec.partner_holding_type := l_act_budgets_rec.partner_holding_type;
3893: END IF;
3894:
3895: IF p_act_budgets_rec.partner_address_id = fnd_api.g_miss_num THEN
3896: x_act_budgets_rec.partner_address_id := NULL;
3897: END IF;
3898: IF p_act_budgets_rec.partner_address_id IS NULL THEN
3899: x_act_budgets_rec.partner_address_id := l_act_budgets_rec.partner_address_id;

Line 3902: IF p_act_budgets_rec.vendor_id = fnd_api.g_miss_num THEN

3898: IF p_act_budgets_rec.partner_address_id IS NULL THEN
3899: x_act_budgets_rec.partner_address_id := l_act_budgets_rec.partner_address_id;
3900: END IF;
3901:
3902: IF p_act_budgets_rec.vendor_id = fnd_api.g_miss_num THEN
3903: x_act_budgets_rec.vendor_id := NULL;
3904: END IF;
3905: IF p_act_budgets_rec.vendor_id IS NULL THEN
3906: x_act_budgets_rec.vendor_id := l_act_budgets_rec.vendor_id;

Line 3909: IF p_act_budgets_rec.owner_id = fnd_api.g_miss_num THEN

3905: IF p_act_budgets_rec.vendor_id IS NULL THEN
3906: x_act_budgets_rec.vendor_id := l_act_budgets_rec.vendor_id;
3907: END IF;
3908:
3909: IF p_act_budgets_rec.owner_id = fnd_api.g_miss_num THEN
3910: x_act_budgets_rec.owner_id := NULL;
3911: END IF;
3912: IF p_act_budgets_rec.owner_id IS NULL THEN
3913: x_act_budgets_rec.owner_id := l_act_budgets_rec.owner_id;

Line 3916: IF p_act_budgets_rec.recal_flag = fnd_api.g_miss_char THEN

3912: IF p_act_budgets_rec.owner_id IS NULL THEN
3913: x_act_budgets_rec.owner_id := l_act_budgets_rec.owner_id;
3914: END IF;
3915:
3916: IF p_act_budgets_rec.recal_flag = fnd_api.g_miss_char THEN
3917: x_act_budgets_rec.recal_flag := NULL;
3918: END IF;
3919: IF p_act_budgets_rec.recal_flag IS NULL THEN
3920: x_act_budgets_rec.recal_flag := l_act_budgets_rec.recal_flag;

Line 3923: IF p_act_budgets_rec.attribute_category = fnd_api.g_miss_char THEN

3919: IF p_act_budgets_rec.recal_flag IS NULL THEN
3920: x_act_budgets_rec.recal_flag := l_act_budgets_rec.recal_flag;
3921: END IF;
3922:
3923: IF p_act_budgets_rec.attribute_category = fnd_api.g_miss_char THEN
3924: x_act_budgets_rec.attribute_category := NULL;
3925: END IF;
3926: IF p_act_budgets_rec.attribute_category IS NULL THEN
3927: x_act_budgets_rec.attribute_category := l_act_budgets_rec.attribute_category;

Line 3930: IF p_act_budgets_rec.attribute1 = fnd_api.g_miss_char THEN

3926: IF p_act_budgets_rec.attribute_category IS NULL THEN
3927: x_act_budgets_rec.attribute_category := l_act_budgets_rec.attribute_category;
3928: END IF;
3929:
3930: IF p_act_budgets_rec.attribute1 = fnd_api.g_miss_char THEN
3931: x_act_budgets_rec.attribute1 := NULL;
3932: END IF;
3933: IF p_act_budgets_rec.attribute1 IS NULL THEN
3934: x_act_budgets_rec.attribute1 := l_act_budgets_rec.attribute1;

Line 3937: IF p_act_budgets_rec.attribute2 = fnd_api.g_miss_char THEN

3933: IF p_act_budgets_rec.attribute1 IS NULL THEN
3934: x_act_budgets_rec.attribute1 := l_act_budgets_rec.attribute1;
3935: END IF;
3936:
3937: IF p_act_budgets_rec.attribute2 = fnd_api.g_miss_char THEN
3938: x_act_budgets_rec.attribute2 := NULL;
3939: END IF;
3940: IF p_act_budgets_rec.attribute2 IS NULL THEN
3941: x_act_budgets_rec.attribute2 := l_act_budgets_rec.attribute2;

Line 3944: IF p_act_budgets_rec.attribute3 = fnd_api.g_miss_char THEN

3940: IF p_act_budgets_rec.attribute2 IS NULL THEN
3941: x_act_budgets_rec.attribute2 := l_act_budgets_rec.attribute2;
3942: END IF;
3943:
3944: IF p_act_budgets_rec.attribute3 = fnd_api.g_miss_char THEN
3945: x_act_budgets_rec.attribute3 := NULL;
3946: END IF;
3947: IF p_act_budgets_rec.attribute3 IS NULL THEN
3948: x_act_budgets_rec.attribute3 := l_act_budgets_rec.attribute3;

Line 3951: IF p_act_budgets_rec.attribute4 = fnd_api.g_miss_char THEN

3947: IF p_act_budgets_rec.attribute3 IS NULL THEN
3948: x_act_budgets_rec.attribute3 := l_act_budgets_rec.attribute3;
3949: END IF;
3950:
3951: IF p_act_budgets_rec.attribute4 = fnd_api.g_miss_char THEN
3952: x_act_budgets_rec.attribute4 := NULL;
3953: END IF;
3954: IF p_act_budgets_rec.attribute4 IS NULL THEN
3955: x_act_budgets_rec.attribute4 := l_act_budgets_rec.attribute4;

Line 3958: IF p_act_budgets_rec.attribute5 = fnd_api.g_miss_char THEN

3954: IF p_act_budgets_rec.attribute4 IS NULL THEN
3955: x_act_budgets_rec.attribute4 := l_act_budgets_rec.attribute4;
3956: END IF;
3957:
3958: IF p_act_budgets_rec.attribute5 = fnd_api.g_miss_char THEN
3959: x_act_budgets_rec.attribute5 := NULL;
3960: END IF;
3961: IF p_act_budgets_rec.attribute5 IS NULL THEN
3962: x_act_budgets_rec.attribute5 := l_act_budgets_rec.attribute5;

Line 3965: IF p_act_budgets_rec.attribute6 = fnd_api.g_miss_char THEN

3961: IF p_act_budgets_rec.attribute5 IS NULL THEN
3962: x_act_budgets_rec.attribute5 := l_act_budgets_rec.attribute5;
3963: END IF;
3964:
3965: IF p_act_budgets_rec.attribute6 = fnd_api.g_miss_char THEN
3966: x_act_budgets_rec.attribute6 := NULL;
3967: END IF;
3968: IF p_act_budgets_rec.attribute6 IS NULL THEN
3969: x_act_budgets_rec.attribute6 := l_act_budgets_rec.attribute6;

Line 3972: IF p_act_budgets_rec.attribute7 = fnd_api.g_miss_char THEN

3968: IF p_act_budgets_rec.attribute6 IS NULL THEN
3969: x_act_budgets_rec.attribute6 := l_act_budgets_rec.attribute6;
3970: END IF;
3971:
3972: IF p_act_budgets_rec.attribute7 = fnd_api.g_miss_char THEN
3973: x_act_budgets_rec.attribute7 := NULL;
3974: END IF;
3975: IF p_act_budgets_rec.attribute7 IS NULL THEN
3976: x_act_budgets_rec.attribute7 := l_act_budgets_rec.attribute7;

Line 3979: IF p_act_budgets_rec.attribute8 = fnd_api.g_miss_char THEN

3975: IF p_act_budgets_rec.attribute7 IS NULL THEN
3976: x_act_budgets_rec.attribute7 := l_act_budgets_rec.attribute7;
3977: END IF;
3978:
3979: IF p_act_budgets_rec.attribute8 = fnd_api.g_miss_char THEN
3980: x_act_budgets_rec.attribute8 := NULL;
3981: END IF;
3982: IF p_act_budgets_rec.attribute8 IS NULL THEN
3983: x_act_budgets_rec.attribute8 := l_act_budgets_rec.attribute8;

Line 3986: IF p_act_budgets_rec.attribute9 = fnd_api.g_miss_char THEN

3982: IF p_act_budgets_rec.attribute8 IS NULL THEN
3983: x_act_budgets_rec.attribute8 := l_act_budgets_rec.attribute8;
3984: END IF;
3985:
3986: IF p_act_budgets_rec.attribute9 = fnd_api.g_miss_char THEN
3987: x_act_budgets_rec.attribute9 := NULL;
3988: END IF;
3989: IF p_act_budgets_rec.attribute9 IS NULL THEN
3990: x_act_budgets_rec.attribute9 := l_act_budgets_rec.attribute9;

Line 3993: IF p_act_budgets_rec.attribute10 = fnd_api.g_miss_char THEN

3989: IF p_act_budgets_rec.attribute9 IS NULL THEN
3990: x_act_budgets_rec.attribute9 := l_act_budgets_rec.attribute9;
3991: END IF;
3992:
3993: IF p_act_budgets_rec.attribute10 = fnd_api.g_miss_char THEN
3994: x_act_budgets_rec.attribute10 := NULL;
3995: END IF;
3996: IF p_act_budgets_rec.attribute10 IS NULL THEN
3997: x_act_budgets_rec.attribute10 := l_act_budgets_rec.attribute10;

Line 4000: IF p_act_budgets_rec.attribute11 = fnd_api.g_miss_char THEN

3996: IF p_act_budgets_rec.attribute10 IS NULL THEN
3997: x_act_budgets_rec.attribute10 := l_act_budgets_rec.attribute10;
3998: END IF;
3999:
4000: IF p_act_budgets_rec.attribute11 = fnd_api.g_miss_char THEN
4001: x_act_budgets_rec.attribute11 := NULL;
4002: END IF;
4003: IF p_act_budgets_rec.attribute11 IS NULL THEN
4004: x_act_budgets_rec.attribute11 := l_act_budgets_rec.attribute11;

Line 4007: IF p_act_budgets_rec.attribute12 = fnd_api.g_miss_char THEN

4003: IF p_act_budgets_rec.attribute11 IS NULL THEN
4004: x_act_budgets_rec.attribute11 := l_act_budgets_rec.attribute11;
4005: END IF;
4006:
4007: IF p_act_budgets_rec.attribute12 = fnd_api.g_miss_char THEN
4008: x_act_budgets_rec.attribute12 := NULL;
4009: END IF;
4010: IF p_act_budgets_rec.attribute12 IS NULL THEN
4011: x_act_budgets_rec.attribute12 := l_act_budgets_rec.attribute12;

Line 4014: IF p_act_budgets_rec.attribute13 = fnd_api.g_miss_char THEN

4010: IF p_act_budgets_rec.attribute12 IS NULL THEN
4011: x_act_budgets_rec.attribute12 := l_act_budgets_rec.attribute12;
4012: END IF;
4013:
4014: IF p_act_budgets_rec.attribute13 = fnd_api.g_miss_char THEN
4015: x_act_budgets_rec.attribute13 := NULL;
4016: END IF;
4017: IF p_act_budgets_rec.attribute13 IS NULL THEN
4018: x_act_budgets_rec.attribute13 := l_act_budgets_rec.attribute13;

Line 4021: IF p_act_budgets_rec.attribute14 = fnd_api.g_miss_char THEN

4017: IF p_act_budgets_rec.attribute13 IS NULL THEN
4018: x_act_budgets_rec.attribute13 := l_act_budgets_rec.attribute13;
4019: END IF;
4020:
4021: IF p_act_budgets_rec.attribute14 = fnd_api.g_miss_char THEN
4022: x_act_budgets_rec.attribute14 := NULL;
4023: END IF;
4024: IF p_act_budgets_rec.attribute14 IS NULL THEN
4025: x_act_budgets_rec.attribute14 := l_act_budgets_rec.attribute14;

Line 4028: IF p_act_budgets_rec.attribute15 = fnd_api.g_miss_char THEN

4024: IF p_act_budgets_rec.attribute14 IS NULL THEN
4025: x_act_budgets_rec.attribute14 := l_act_budgets_rec.attribute14;
4026: END IF;
4027:
4028: IF p_act_budgets_rec.attribute15 = fnd_api.g_miss_char THEN
4029: x_act_budgets_rec.attribute15 := NULL;
4030: END IF;
4031: IF p_act_budgets_rec.attribute15 IS NULL THEN
4032: x_act_budgets_rec.attribute15 := l_act_budgets_rec.attribute15;

Line 4035: /* IF p_act_budgets_rec.user_status_id = fnd_api.g_miss_num THEN

4031: IF p_act_budgets_rec.attribute15 IS NULL THEN
4032: x_act_budgets_rec.attribute15 := l_act_budgets_rec.attribute15;
4033: END IF;
4034: --added by feliu since 11.5.9
4035: /* IF p_act_budgets_rec.user_status_id = fnd_api.g_miss_num THEN
4036: x_act_budgets_rec.user_status_id := l_act_budgets_rec.user_status_id;
4037: END IF;
4038: */
4039: IF p_act_budgets_rec.parent_src_curr = fnd_api.g_miss_char THEN

Line 4039: IF p_act_budgets_rec.parent_src_curr = fnd_api.g_miss_char THEN

4035: /* IF p_act_budgets_rec.user_status_id = fnd_api.g_miss_num THEN
4036: x_act_budgets_rec.user_status_id := l_act_budgets_rec.user_status_id;
4037: END IF;
4038: */
4039: IF p_act_budgets_rec.parent_src_curr = fnd_api.g_miss_char THEN
4040: x_act_budgets_rec.parent_src_curr := NULL;
4041: END IF;
4042: IF p_act_budgets_rec.parent_src_curr IS NULL THEN
4043: x_act_budgets_rec.parent_src_curr := l_act_budgets_rec.parent_src_curr;

Line 4046: IF p_act_budgets_rec.parent_src_apprvd_amt = fnd_api.g_miss_num THEN

4042: IF p_act_budgets_rec.parent_src_curr IS NULL THEN
4043: x_act_budgets_rec.parent_src_curr := l_act_budgets_rec.parent_src_curr;
4044: END IF;
4045:
4046: IF p_act_budgets_rec.parent_src_apprvd_amt = fnd_api.g_miss_num THEN
4047: x_act_budgets_rec.parent_src_apprvd_amt := NULL;
4048: END IF;
4049: IF p_act_budgets_rec.parent_src_apprvd_amt IS NULL THEN
4050: x_act_budgets_rec.parent_src_apprvd_amt := l_act_budgets_rec.parent_src_apprvd_amt;

Line 4063: -- Initialize all column values to FND_API.g_miss_char/num/date

4059: --
4060: -- NAME
4061: -- Init_Act_Budgets_Rec
4062: -- PURPOSE
4063: -- Initialize all column values to FND_API.g_miss_char/num/date
4064: -- HISTORY
4065: -- 15-Aug-2000 choang Created.
4066: -- 22-Feb-2001 mpande Modified for Hornet changes.
4067: /*****************************************************************************************/

Line 4097: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false -- -- added 05/22/2001 mpande

4093: ,p_parent_process_key IN VARCHAR2
4094: ,p_parent_context IN VARCHAR2
4095: ,p_parent_approval_flag IN VARCHAR2
4096: ,p_continue_flow IN VARCHAR2
4097: ,p_child_approval_flag IN VARCHAR2 := fnd_api.g_false -- -- added 05/22/2001 mpande
4098: ,p_requestor_owner_flag IN VARCHAR2 := 'N' -- -- added 10/19/2001 mpande
4099: ,x_start_flow_flag OUT NOCOPY VARCHAR2
4100: ) IS
4101: l_budget_status_type CONSTANT VARCHAR2 (30) := 'OZF_BUDGETSOURCE_STATUS';

Line 4147: IF p_child_approval_flag = fnd_api.g_false THEN

4143: l_approval_for_id := p_act_budget_rec.act_budget_used_by_id;
4144: l_approval_fm_id := p_act_budget_rec.budget_source_id;
4145:
4146: -- submit for budget approval
4147: IF p_child_approval_flag = fnd_api.g_false THEN
4148: -- yzhao: 03/14/2003 when p_requestor_owner_flag=Y, it is from allocation, should bypass workflow approval
4149: l_allocation_flag := p_requestor_owner_flag;
4150: ozf_fund_request_apr_pvt.create_fund_request (
4151: p_commit=> fnd_api.g_false

Line 4151: p_commit=> fnd_api.g_false

4147: IF p_child_approval_flag = fnd_api.g_false THEN
4148: -- yzhao: 03/14/2003 when p_requestor_owner_flag=Y, it is from allocation, should bypass workflow approval
4149: l_allocation_flag := p_requestor_owner_flag;
4150: ozf_fund_request_apr_pvt.create_fund_request (
4151: p_commit=> fnd_api.g_false
4152: ,p_approval_for_id=> l_approval_for_id
4153: ,p_requester_id=> p_act_budget_rec.requester_id
4154: ,p_requested_amount=> p_act_budget_rec.request_amount
4155: ,p_approval_fm=> 'FUND'

Line 4174: IF l_return_status = fnd_api.g_ret_sts_error THEN

4170: IF l_is_requestor_owner ='N' THEN
4171: l_start_flow_flag := 'Y';
4172: END IF;
4173:
4174: IF l_return_status = fnd_api.g_ret_sts_error THEN
4175: RAISE fnd_api.g_exc_error;
4176: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4177: RAISE fnd_api.g_exc_unexpected_error;
4178: END IF;

Line 4175: RAISE fnd_api.g_exc_error;

4171: l_start_flow_flag := 'Y';
4172: END IF;
4173:
4174: IF l_return_status = fnd_api.g_ret_sts_error THEN
4175: RAISE fnd_api.g_exc_error;
4176: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4177: RAISE fnd_api.g_exc_unexpected_error;
4178: END IF;
4179:

Line 4176: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4172: END IF;
4173:
4174: IF l_return_status = fnd_api.g_ret_sts_error THEN
4175: RAISE fnd_api.g_exc_error;
4176: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4177: RAISE fnd_api.g_exc_unexpected_error;
4178: END IF;
4179:
4180: ELSE

Line 4177: RAISE fnd_api.g_exc_unexpected_error;

4173:
4174: IF l_return_status = fnd_api.g_ret_sts_error THEN
4175: RAISE fnd_api.g_exc_error;
4176: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4177: RAISE fnd_api.g_exc_unexpected_error;
4178: END IF;
4179:
4180: ELSE
4181: -- 10/22/2001 mpande Changed code different owner allocation bug

Line 4193: IF l_return_status = fnd_api.g_ret_sts_error THEN

4189: ,p_act_budget_rec.budget_source_id
4190: ,l_return_status
4191: );
4192:
4193: IF l_return_status = fnd_api.g_ret_sts_error THEN
4194: RAISE fnd_api.g_exc_error;
4195: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4196: RAISE fnd_api.g_exc_unexpected_error;
4197: END IF;

Line 4194: RAISE fnd_api.g_exc_error;

4190: ,l_return_status
4191: );
4192:
4193: IF l_return_status = fnd_api.g_ret_sts_error THEN
4194: RAISE fnd_api.g_exc_error;
4195: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4196: RAISE fnd_api.g_exc_unexpected_error;
4197: END IF;
4198:

Line 4195: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4191: );
4192:
4193: IF l_return_status = fnd_api.g_ret_sts_error THEN
4194: RAISE fnd_api.g_exc_error;
4195: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4196: RAISE fnd_api.g_exc_unexpected_error;
4197: END IF;
4198:
4199: IF l_approved_in_currency <> p_act_budget_rec.request_currency THEN

Line 4196: RAISE fnd_api.g_exc_unexpected_error;

4192:
4193: IF l_return_status = fnd_api.g_ret_sts_error THEN
4194: RAISE fnd_api.g_exc_error;
4195: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4196: RAISE fnd_api.g_exc_unexpected_error;
4197: END IF;
4198:
4199: IF l_approved_in_currency <> p_act_budget_rec.request_currency THEN
4200: ozf_utility_pvt.convert_currency (

Line 4208: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4204: ,p_from_amount=> p_act_budget_rec.request_amount
4205: ,x_to_amount=> l_approved_amount
4206: );
4207:
4208: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4209: RAISE fnd_api.g_exc_unexpected_error;
4210: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4211: RAISE fnd_api.g_exc_error;
4212: END IF;

Line 4209: RAISE fnd_api.g_exc_unexpected_error;

4205: ,x_to_amount=> l_approved_amount
4206: );
4207:
4208: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4209: RAISE fnd_api.g_exc_unexpected_error;
4210: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4211: RAISE fnd_api.g_exc_error;
4212: END IF;
4213: ELSE

Line 4210: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4206: );
4207:
4208: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4209: RAISE fnd_api.g_exc_unexpected_error;
4210: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4211: RAISE fnd_api.g_exc_error;
4212: END IF;
4213: ELSE
4214: l_approved_amount := p_act_budget_rec.request_amount;

Line 4211: RAISE fnd_api.g_exc_error;

4207:
4208: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4209: RAISE fnd_api.g_exc_unexpected_error;
4210: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4211: RAISE fnd_api.g_exc_error;
4212: END IF;
4213: ELSE
4214: l_approved_amount := p_act_budget_rec.request_amount;
4215: END IF;

Line 4241: ) = fnd_api.g_true THEN

4237: ,p_act_budget_rec.act_budget_used_by_id
4238: ,p_act_budget_rec.budget_source_type
4239: ,p_act_budget_rec.budget_source_id
4240: ,p_act_budget_rec.transfer_type
4241: ) = fnd_api.g_true THEN
4242:
4243: --
4244: -- For performance considerations, consolidate the three
4245: -- cursor open and fetches into one by using DECODE on

Line 4258: ,p_init_msg_list=> fnd_api.g_false

4254: FETCH c_user_status_id INTO l_reject_status;
4255: CLOSE c_user_status_id;
4256: ams_approval_pvt.start_lineapproval (
4257: p_api_version=> 1.0
4258: ,p_init_msg_list=> fnd_api.g_false
4259: ,p_commit=> fnd_api.g_false
4260: ,p_validation_level=> fnd_api.g_valid_level_full
4261: ,x_return_status=> l_return_status
4262: ,x_msg_data=> x_msg_data

Line 4259: ,p_commit=> fnd_api.g_false

4255: CLOSE c_user_status_id;
4256: ams_approval_pvt.start_lineapproval (
4257: p_api_version=> 1.0
4258: ,p_init_msg_list=> fnd_api.g_false
4259: ,p_commit=> fnd_api.g_false
4260: ,p_validation_level=> fnd_api.g_valid_level_full
4261: ,x_return_status=> l_return_status
4262: ,x_msg_data=> x_msg_data
4263: ,x_msg_count=> x_msg_count

Line 4260: ,p_validation_level=> fnd_api.g_valid_level_full

4256: ams_approval_pvt.start_lineapproval (
4257: p_api_version=> 1.0
4258: ,p_init_msg_list=> fnd_api.g_false
4259: ,p_commit=> fnd_api.g_false
4260: ,p_validation_level=> fnd_api.g_valid_level_full
4261: ,x_return_status=> l_return_status
4262: ,x_msg_data=> x_msg_data
4263: ,x_msg_count=> x_msg_count
4264: ,p_user_id=> ozf_utility_pvt.get_resource_id (fnd_global.user_id)

Line 4276: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4272: ,p_parent_approval_flag=> p_parent_approval_flag
4273: ,p_continue_flow=> p_continue_flow
4274: );
4275:
4276: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4277: RAISE fnd_api.g_exc_unexpected_error;
4278: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4279: RAISE fnd_api.g_exc_error;
4280: END IF;

Line 4277: RAISE fnd_api.g_exc_unexpected_error;

4273: ,p_continue_flow=> p_continue_flow
4274: );
4275:
4276: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4277: RAISE fnd_api.g_exc_unexpected_error;
4278: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4279: RAISE fnd_api.g_exc_error;
4280: END IF;
4281: ELSE

Line 4278: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4274: );
4275:
4276: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4277: RAISE fnd_api.g_exc_unexpected_error;
4278: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4279: RAISE fnd_api.g_exc_error;
4280: END IF;
4281: ELSE
4282:

Line 4279: RAISE fnd_api.g_exc_error;

4275:
4276: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4277: RAISE fnd_api.g_exc_unexpected_error;
4278: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4279: RAISE fnd_api.g_exc_error;
4280: END IF;
4281: ELSE
4282:
4283: l_approved_in_currency := get_object_currency (

Line 4289: IF l_return_status = fnd_api.g_ret_sts_error THEN

4285: ,p_act_budget_rec.budget_source_id
4286: ,l_return_status
4287: );
4288:
4289: IF l_return_status = fnd_api.g_ret_sts_error THEN
4290: RAISE fnd_api.g_exc_error;
4291: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4292: RAISE fnd_api.g_exc_unexpected_error;
4293: END IF;

Line 4290: RAISE fnd_api.g_exc_error;

4286: ,l_return_status
4287: );
4288:
4289: IF l_return_status = fnd_api.g_ret_sts_error THEN
4290: RAISE fnd_api.g_exc_error;
4291: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4292: RAISE fnd_api.g_exc_unexpected_error;
4293: END IF;
4294:

Line 4291: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4287: );
4288:
4289: IF l_return_status = fnd_api.g_ret_sts_error THEN
4290: RAISE fnd_api.g_exc_error;
4291: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4292: RAISE fnd_api.g_exc_unexpected_error;
4293: END IF;
4294:
4295: IF l_approved_in_currency <> p_act_budget_rec.request_currency THEN

Line 4292: RAISE fnd_api.g_exc_unexpected_error;

4288:
4289: IF l_return_status = fnd_api.g_ret_sts_error THEN
4290: RAISE fnd_api.g_exc_error;
4291: ELSIF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4292: RAISE fnd_api.g_exc_unexpected_error;
4293: END IF;
4294:
4295: IF l_approved_in_currency <> p_act_budget_rec.request_currency THEN
4296: ozf_utility_pvt.convert_currency (

Line 4304: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4300: ,p_from_amount=> p_act_budget_rec.request_amount
4301: ,x_to_amount=> l_approved_amount
4302: );
4303:
4304: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4305: RAISE fnd_api.g_exc_unexpected_error;
4306: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4307: RAISE fnd_api.g_exc_error;
4308: END IF;

Line 4305: RAISE fnd_api.g_exc_unexpected_error;

4301: ,x_to_amount=> l_approved_amount
4302: );
4303:
4304: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4305: RAISE fnd_api.g_exc_unexpected_error;
4306: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4307: RAISE fnd_api.g_exc_error;
4308: END IF;
4309: ELSE

Line 4306: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4302: );
4303:
4304: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4305: RAISE fnd_api.g_exc_unexpected_error;
4306: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4307: RAISE fnd_api.g_exc_error;
4308: END IF;
4309: ELSE
4310: l_approved_amount := p_act_budget_rec.request_amount;

Line 4307: RAISE fnd_api.g_exc_error;

4303:
4304: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4305: RAISE fnd_api.g_exc_unexpected_error;
4306: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4307: RAISE fnd_api.g_exc_error;
4308: END IF;
4309: ELSE
4310: l_approved_amount := p_act_budget_rec.request_amount;
4311: END IF;

Line 4435: x_return_status := fnd_api.g_ret_sts_success;

4431: FROM ozf_request_headers_all_b
4432: WHERE request_header_id = p_object_id;
4433:
4434: BEGIN
4435: x_return_status := fnd_api.g_ret_sts_success;
4436:
4437: -- Campaign
4438: IF p_object = 'CAMP' THEN
4439: OPEN c_campaign;

Line 4445: x_return_status := fnd_api.g_ret_sts_error;

4441:
4442: IF c_campaign%NOTFOUND THEN
4443: CLOSE c_campaign;
4444: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4445: x_return_status := fnd_api.g_ret_sts_error;
4446: RAISE fnd_api.g_exc_error;
4447: END IF;
4448:
4449: CLOSE c_campaign;

Line 4446: RAISE fnd_api.g_exc_error;

4442: IF c_campaign%NOTFOUND THEN
4443: CLOSE c_campaign;
4444: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4445: x_return_status := fnd_api.g_ret_sts_error;
4446: RAISE fnd_api.g_exc_error;
4447: END IF;
4448:
4449: CLOSE c_campaign;
4450: -- Campaign Schdules

Line 4458: x_return_status := fnd_api.g_ret_sts_error;

4454:
4455: IF c_campaign_schl%NOTFOUND THEN
4456: CLOSE c_campaign_schl;
4457: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4458: x_return_status := fnd_api.g_ret_sts_error;
4459: RAISE fnd_api.g_exc_error;
4460: END IF;
4461:
4462: CLOSE c_campaign_schl;

Line 4459: RAISE fnd_api.g_exc_error;

4455: IF c_campaign_schl%NOTFOUND THEN
4456: CLOSE c_campaign_schl;
4457: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4458: x_return_status := fnd_api.g_ret_sts_error;
4459: RAISE fnd_api.g_exc_error;
4460: END IF;
4461:
4462: CLOSE c_campaign_schl;
4463: -- Event Header/Rollup Event

Line 4471: x_return_status := fnd_api.g_ret_sts_error;

4467:
4468: IF c_eheader%NOTFOUND THEN
4469: CLOSE c_eheader;
4470: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4471: x_return_status := fnd_api.g_ret_sts_error;
4472: RAISE fnd_api.g_exc_error;
4473: END IF;
4474:
4475: CLOSE c_eheader;

Line 4472: RAISE fnd_api.g_exc_error;

4468: IF c_eheader%NOTFOUND THEN
4469: CLOSE c_eheader;
4470: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4471: x_return_status := fnd_api.g_ret_sts_error;
4472: RAISE fnd_api.g_exc_error;
4473: END IF;
4474:
4475: CLOSE c_eheader;
4476: -- Event Offer/Execution Event

Line 4484: x_return_status := fnd_api.g_ret_sts_error;

4480:
4481: IF c_eoffer%NOTFOUND THEN
4482: CLOSE c_eoffer;
4483: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4484: x_return_status := fnd_api.g_ret_sts_error;
4485: RAISE fnd_api.g_exc_error;
4486: END IF;
4487:
4488: CLOSE c_eoffer;

Line 4485: RAISE fnd_api.g_exc_error;

4481: IF c_eoffer%NOTFOUND THEN
4482: CLOSE c_eoffer;
4483: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4484: x_return_status := fnd_api.g_ret_sts_error;
4485: RAISE fnd_api.g_exc_error;
4486: END IF;
4487:
4488: CLOSE c_eoffer;
4489: -- Deliverable

Line 4497: x_return_status := fnd_api.g_ret_sts_error;

4493:
4494: IF c_deliverable%NOTFOUND THEN
4495: CLOSE c_deliverable;
4496: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4497: x_return_status := fnd_api.g_ret_sts_error;
4498: RAISE fnd_api.g_exc_error;
4499: END IF;
4500:
4501: CLOSE c_deliverable;

Line 4498: RAISE fnd_api.g_exc_error;

4494: IF c_deliverable%NOTFOUND THEN
4495: CLOSE c_deliverable;
4496: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4497: x_return_status := fnd_api.g_ret_sts_error;
4498: RAISE fnd_api.g_exc_error;
4499: END IF;
4500:
4501: CLOSE c_deliverable;
4502: ELSIF p_object = 'FUND' THEN

Line 4509: x_return_status := fnd_api.g_ret_sts_error;

4505:
4506: IF c_fund%NOTFOUND THEN
4507: CLOSE c_fund;
4508: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4509: x_return_status := fnd_api.g_ret_sts_error;
4510: RAISE fnd_api.g_exc_error;
4511: END IF;
4512:
4513: CLOSE c_fund;

Line 4510: RAISE fnd_api.g_exc_error;

4506: IF c_fund%NOTFOUND THEN
4507: CLOSE c_fund;
4508: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4509: x_return_status := fnd_api.g_ret_sts_error;
4510: RAISE fnd_api.g_exc_error;
4511: END IF;
4512:
4513: CLOSE c_fund;
4514: -- yzhao: 10/20/2003 for price list ELSIF p_object = 'OFFR' THEN

Line 4522: x_return_status := fnd_api.g_ret_sts_error;

4518:
4519: IF c_offer%NOTFOUND THEN
4520: CLOSE c_offer;
4521: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4522: x_return_status := fnd_api.g_ret_sts_error;
4523: RAISE fnd_api.g_exc_error;
4524: END IF;
4525:
4526: CLOSE c_offer;

Line 4523: RAISE fnd_api.g_exc_error;

4519: IF c_offer%NOTFOUND THEN
4520: CLOSE c_offer;
4521: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4522: x_return_status := fnd_api.g_ret_sts_error;
4523: RAISE fnd_api.g_exc_error;
4524: END IF;
4525:
4526: CLOSE c_offer;
4527: ELSIF p_object = 'PRIC' THEN

Line 4534: x_return_status := fnd_api.g_ret_sts_error;

4530:
4531: IF c_pricelist%NOTFOUND THEN
4532: CLOSE c_pricelist;
4533: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4534: x_return_status := fnd_api.g_ret_sts_error;
4535: RAISE fnd_api.g_exc_error;
4536: END IF;
4537:
4538: CLOSE c_pricelist;

Line 4535: RAISE fnd_api.g_exc_error;

4531: IF c_pricelist%NOTFOUND THEN
4532: CLOSE c_pricelist;
4533: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4534: x_return_status := fnd_api.g_ret_sts_error;
4535: RAISE fnd_api.g_exc_error;
4536: END IF;
4537:
4538: CLOSE c_pricelist;
4539: ELSIF p_object = 'WKST' THEN

Line 4546: x_return_status := fnd_api.g_ret_sts_error;

4542:
4543: IF c_worksheet%NOTFOUND THEN
4544: CLOSE c_worksheet;
4545: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4546: x_return_status := fnd_api.g_ret_sts_error;
4547: RAISE fnd_api.g_exc_error;
4548: END IF;
4549:
4550: CLOSE c_worksheet;

Line 4547: RAISE fnd_api.g_exc_error;

4543: IF c_worksheet%NOTFOUND THEN
4544: CLOSE c_worksheet;
4545: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4546: x_return_status := fnd_api.g_ret_sts_error;
4547: RAISE fnd_api.g_exc_error;
4548: END IF;
4549:
4550: CLOSE c_worksheet;
4551: ELSIF p_object = 'SOFT_FUND' THEN

Line 4558: x_return_status := fnd_api.g_ret_sts_error;

4554:
4555: IF c_soft_fund%NOTFOUND THEN
4556: CLOSE c_soft_fund;
4557: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4558: x_return_status := fnd_api.g_ret_sts_error;
4559: RAISE fnd_api.g_exc_error;
4560: END IF;
4561:
4562: CLOSE c_soft_fund;

Line 4559: RAISE fnd_api.g_exc_error;

4555: IF c_soft_fund%NOTFOUND THEN
4556: CLOSE c_soft_fund;
4557: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4558: x_return_status := fnd_api.g_ret_sts_error;
4559: RAISE fnd_api.g_exc_error;
4560: END IF;
4561:
4562: CLOSE c_soft_fund;
4563: ELSIF p_object = 'SPECIAL_PRICE' THEN

Line 4570: x_return_status := fnd_api.g_ret_sts_error;

4566:
4567: IF c_special_price%NOTFOUND THEN
4568: CLOSE c_special_price;
4569: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4570: x_return_status := fnd_api.g_ret_sts_error;
4571: RAISE fnd_api.g_exc_error;
4572: END IF;
4573:
4574: CLOSE c_special_price;

Line 4571: RAISE fnd_api.g_exc_error;

4567: IF c_special_price%NOTFOUND THEN
4568: CLOSE c_special_price;
4569: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4570: x_return_status := fnd_api.g_ret_sts_error;
4571: RAISE fnd_api.g_exc_error;
4572: END IF;
4573:
4574: CLOSE c_special_price;
4575: ELSE

Line 4578: x_return_status := fnd_api.g_ret_sts_error;

4574: CLOSE c_special_price;
4575: ELSE
4576:
4577: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4578: x_return_status := fnd_api.g_ret_sts_error;
4579: RAISE fnd_api.g_exc_error;
4580: END IF;
4581:
4582: RETURN l_currency_code;

Line 4579: RAISE fnd_api.g_exc_error;

4575: ELSE
4576:
4577: ozf_utility_pvt.error_message ('OZF_ACT_BUDG_NO_CURRENCY');
4578: x_return_status := fnd_api.g_ret_sts_error;
4579: RAISE fnd_api.g_exc_error;
4580: END IF;
4581:
4582: RETURN l_currency_code;
4583: EXCEPTION

Line 4585: x_return_status := fnd_api.g_ret_sts_error;

4581:
4582: RETURN l_currency_code;
4583: EXCEPTION
4584: WHEN OTHERS THEN
4585: x_return_status := fnd_api.g_ret_sts_error;
4586:
4587: IF c_campaign%ISOPEN THEN
4588: CLOSE c_campaign;
4589: END IF;

Line 4656: l_fund_transfer_flag VARCHAR2 (1) := fnd_api.g_false;

4652: l_fund_object_version_number NUMBER;
4653: l_fund_currency_tc VARCHAR2 (15); -- a fund's transactional currency code
4654: l_fund_planned_amount NUMBER;
4655: l_fund_committed_amount NUMBER;
4656: l_fund_transfer_flag VARCHAR2 (1) := fnd_api.g_false;
4657: l_fund_recal_committed_amount NUMBER;
4658: l_univ_planned_amount NUMBER;
4659: l_univ_committed_amount NUMBER;
4660: l_objfundsum_rec ozf_objfundsum_pvt.objfundsum_rec_type := NULL;

Line 4700: OR p_act_budget_rec.approved_in_currency = fnd_api.g_miss_char THEN

4696:
4697: -- The from currency should be passed in before currency
4698: -- conversion can be performed.
4699: IF p_act_budget_rec.approved_in_currency IS NULL
4700: OR p_act_budget_rec.approved_in_currency = fnd_api.g_miss_char THEN
4701: ozf_utility_pvt.error_message ('OZF_ACT_BUDGET_NO_APPR_CURR');
4702: RAISE fnd_api.g_exc_error;
4703: END IF;
4704:

Line 4702: RAISE fnd_api.g_exc_error;

4698: -- conversion can be performed.
4699: IF p_act_budget_rec.approved_in_currency IS NULL
4700: OR p_act_budget_rec.approved_in_currency = fnd_api.g_miss_char THEN
4701: ozf_utility_pvt.error_message ('OZF_ACT_BUDGET_NO_APPR_CURR');
4702: RAISE fnd_api.g_exc_error;
4703: END IF;
4704:
4705: --Added for bug 7425189
4706: l_fund_reconc_msg := fnd_message.get_string ('OZF', 'OZF_FUND_RECONCILE');

Line 4718: ) = FND_API.g_false THEN

4714: IF ozf_ACTBUDGETRULES_PVT.source_has_enough_money (
4715: p_source_type => p_act_budget_rec.budget_source_type,
4716: p_source_id => p_act_budget_rec.budget_source_id,
4717: p_approved_amount => p_act_budget_rec.approved_original_amount
4718: ) = FND_API.g_false THEN
4719: ozf_Utility_PVT.error_message ('OZF_ACT_BUDG_NO_MONEY');
4720: RAISE FND_API.g_exc_error;
4721: END IF;
4722: END IF;

Line 4720: RAISE FND_API.g_exc_error;

4716: p_source_id => p_act_budget_rec.budget_source_id,
4717: p_approved_amount => p_act_budget_rec.approved_original_amount
4718: ) = FND_API.g_false THEN
4719: ozf_Utility_PVT.error_message ('OZF_ACT_BUDG_NO_MONEY');
4720: RAISE FND_API.g_exc_error;
4721: END IF;
4722: END IF;
4723:
4724: IF p_mode = 'UPDATE' THEN

Line 4801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4797: );
4798: END IF;
4799:
4800:
4801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4802: RAISE fnd_api.g_exc_unexpected_error;
4803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4804: RAISE fnd_api.g_exc_error;
4805: END IF;

Line 4802: RAISE fnd_api.g_exc_unexpected_error;

4798: END IF;
4799:
4800:
4801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4802: RAISE fnd_api.g_exc_unexpected_error;
4803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4804: RAISE fnd_api.g_exc_error;
4805: END IF;
4806: END IF;

Line 4803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4799:
4800:
4801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4802: RAISE fnd_api.g_exc_unexpected_error;
4803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4804: RAISE fnd_api.g_exc_error;
4805: END IF;
4806: END IF;
4807: ELSE

Line 4804: RAISE fnd_api.g_exc_error;

4800:
4801: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4802: RAISE fnd_api.g_exc_unexpected_error;
4803: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4804: RAISE fnd_api.g_exc_error;
4805: END IF;
4806: END IF;
4807: ELSE
4808: -- approved_original_amount is not null.

Line 4840: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4836: );
4837:
4838: END IF;
4839:
4840: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4841: RAISE fnd_api.g_exc_unexpected_error;
4842: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4843: RAISE fnd_api.g_exc_error;
4844: END IF;

Line 4841: RAISE fnd_api.g_exc_unexpected_error;

4837:
4838: END IF;
4839:
4840: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4841: RAISE fnd_api.g_exc_unexpected_error;
4842: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4843: RAISE fnd_api.g_exc_error;
4844: END IF;
4845: END IF;

Line 4842: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4838: END IF;
4839:
4840: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4841: RAISE fnd_api.g_exc_unexpected_error;
4842: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4843: RAISE fnd_api.g_exc_error;
4844: END IF;
4845: END IF;
4846: END IF;

Line 4843: RAISE fnd_api.g_exc_error;

4839:
4840: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4841: RAISE fnd_api.g_exc_unexpected_error;
4842: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4843: RAISE fnd_api.g_exc_error;
4844: END IF;
4845: END IF;
4846: END IF;
4847: END IF;

Line 4855: l_fund_transfer_flag := fnd_api.g_true;

4851: l_temp_rec.approval_date := NVL (p_act_budget_rec.approval_date, SYSDATE);
4852:
4853: IF l_temp_rec.budget_source_type = 'FUND'
4854: AND l_temp_rec.arc_act_budget_used_by = 'FUND' THEN
4855: l_fund_transfer_flag := fnd_api.g_true;
4856: END IF;
4857:
4858: IF l_fund_transfer_flag = fnd_api.g_false THEN
4859: -- if the budget source is a fund , then the

Line 4858: IF l_fund_transfer_flag = fnd_api.g_false THEN

4854: AND l_temp_rec.arc_act_budget_used_by = 'FUND' THEN
4855: l_fund_transfer_flag := fnd_api.g_true;
4856: END IF;
4857:
4858: IF l_fund_transfer_flag = fnd_api.g_false THEN
4859: -- if the budget source is a fund , then the
4860: -- fund's planned amount must be decreased
4861: -- by the request_amount during approval
4862: -- submission.

Line 4908: RAISE fnd_api.g_exc_error;

4904: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_error) THEN
4905: fnd_message.set_name('OZF', 'OZF_OBJFUNDSUM_RECORD_NOT_FOUND');
4906: fnd_msg_pub.add;
4907: END IF;
4908: RAISE fnd_api.g_exc_error;
4909: END IF;
4910: */
4911: FETCH c_get_objfundsum_rec INTO l_objfundsum_rec.objfundsum_id
4912: , l_objfundsum_rec.object_version_number

Line 4961: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4957: ,p_from_amount=> l_temp_rec.request_amount
4958: ,x_to_amount=> l_fund_rec.planned_amt
4959: );
4960: END IF;
4961: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4962: RAISE fnd_api.g_exc_unexpected_error;
4963: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4964: RAISE fnd_api.g_exc_error;
4965: END IF;

Line 4962: RAISE fnd_api.g_exc_unexpected_error;

4958: ,x_to_amount=> l_fund_rec.planned_amt
4959: );
4960: END IF;
4961: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4962: RAISE fnd_api.g_exc_unexpected_error;
4963: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4964: RAISE fnd_api.g_exc_error;
4965: END IF;
4966: END IF;

Line 4963: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4959: );
4960: END IF;
4961: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4962: RAISE fnd_api.g_exc_unexpected_error;
4963: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4964: RAISE fnd_api.g_exc_error;
4965: END IF;
4966: END IF;
4967:

Line 4964: RAISE fnd_api.g_exc_error;

4960: END IF;
4961: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4962: RAISE fnd_api.g_exc_unexpected_error;
4963: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4964: RAISE fnd_api.g_exc_error;
4965: END IF;
4966: END IF;
4967:
4968: IF l_temp_rec.transfer_type = 'REQUEST' THEN

Line 4993: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

4989: ,p_from_amount=> l_temp_rec.approved_original_amount
4990: ,x_to_amount=> l_fund_rec.committed_amt
4991: );
4992:
4993: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4994: RAISE fnd_api.g_exc_unexpected_error;
4995: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4996: RAISE fnd_api.g_exc_error;
4997: END IF;

Line 4994: RAISE fnd_api.g_exc_unexpected_error;

4990: ,x_to_amount=> l_fund_rec.committed_amt
4991: );
4992:
4993: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4994: RAISE fnd_api.g_exc_unexpected_error;
4995: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4996: RAISE fnd_api.g_exc_error;
4997: END IF;
4998: END IF;

Line 4995: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

4991: );
4992:
4993: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4994: RAISE fnd_api.g_exc_unexpected_error;
4995: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4996: RAISE fnd_api.g_exc_error;
4997: END IF;
4998: END IF;
4999: ELSE

Line 4996: RAISE fnd_api.g_exc_error;

4992:
4993: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
4994: RAISE fnd_api.g_exc_unexpected_error;
4995: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
4996: RAISE fnd_api.g_exc_error;
4997: END IF;
4998: END IF;
4999: ELSE
5000: -- in case of transfer the fund amount is approved amount

Line 5036: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5032: ,p_from_amount=> l_temp_rec.request_amount
5033: ,x_to_amount=> l_univ_planned_amount
5034: );
5035: END IF;
5036: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5037: RAISE fnd_api.g_exc_unexpected_error;
5038: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5039: RAISE fnd_api.g_exc_error;
5040: END IF;

Line 5037: RAISE fnd_api.g_exc_unexpected_error;

5033: ,x_to_amount=> l_univ_planned_amount
5034: );
5035: END IF;
5036: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5037: RAISE fnd_api.g_exc_unexpected_error;
5038: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5039: RAISE fnd_api.g_exc_error;
5040: END IF;
5041:

Line 5038: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5034: );
5035: END IF;
5036: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5037: RAISE fnd_api.g_exc_unexpected_error;
5038: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5039: RAISE fnd_api.g_exc_error;
5040: END IF;
5041:
5042: IF l_temp_rec.request_amount = l_temp_rec.approved_amount THEN

Line 5039: RAISE fnd_api.g_exc_error;

5035: END IF;
5036: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5037: RAISE fnd_api.g_exc_unexpected_error;
5038: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5039: RAISE fnd_api.g_exc_error;
5040: END IF;
5041:
5042: IF l_temp_rec.request_amount = l_temp_rec.approved_amount THEN
5043: l_univ_committed_amount := l_univ_planned_amount;

Line 5066: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5062: ,p_from_amount=> l_temp_rec.approved_amount
5063: ,x_to_amount=> l_univ_committed_amount
5064: );
5065: END IF;
5066: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5067: RAISE fnd_api.g_exc_unexpected_error;
5068: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5069: RAISE fnd_api.g_exc_error;
5070: END IF;

Line 5067: RAISE fnd_api.g_exc_unexpected_error;

5063: ,x_to_amount=> l_univ_committed_amount
5064: );
5065: END IF;
5066: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5067: RAISE fnd_api.g_exc_unexpected_error;
5068: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5069: RAISE fnd_api.g_exc_error;
5070: END IF;
5071: END IF;

Line 5068: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5064: );
5065: END IF;
5066: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5067: RAISE fnd_api.g_exc_unexpected_error;
5068: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5069: RAISE fnd_api.g_exc_error;
5070: END IF;
5071: END IF;
5072: END IF;

Line 5069: RAISE fnd_api.g_exc_error;

5065: END IF;
5066: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5067: RAISE fnd_api.g_exc_unexpected_error;
5068: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5069: RAISE fnd_api.g_exc_error;
5070: END IF;
5071: END IF;
5072: END IF;
5073:

Line 5196: ,p_init_msg_list=> fnd_api.g_false

5192: END IF;
5193:
5194: ozf_funds_pvt.update_fund (
5195: p_api_version=> 1.0
5196: ,p_init_msg_list=> fnd_api.g_false
5197: ,p_commit=> fnd_api.g_false
5198: ,p_validation_level=> fnd_api.g_valid_level_full
5199: ,x_return_status=> l_return_status
5200: ,x_msg_count=> x_msg_count

Line 5197: ,p_commit=> fnd_api.g_false

5193:
5194: ozf_funds_pvt.update_fund (
5195: p_api_version=> 1.0
5196: ,p_init_msg_list=> fnd_api.g_false
5197: ,p_commit=> fnd_api.g_false
5198: ,p_validation_level=> fnd_api.g_valid_level_full
5199: ,x_return_status=> l_return_status
5200: ,x_msg_count=> x_msg_count
5201: ,x_msg_data=> x_msg_data

Line 5198: ,p_validation_level=> fnd_api.g_valid_level_full

5194: ozf_funds_pvt.update_fund (
5195: p_api_version=> 1.0
5196: ,p_init_msg_list=> fnd_api.g_false
5197: ,p_commit=> fnd_api.g_false
5198: ,p_validation_level=> fnd_api.g_valid_level_full
5199: ,x_return_status=> l_return_status
5200: ,x_msg_count=> x_msg_count
5201: ,x_msg_data=> x_msg_data
5202: ,p_fund_rec=> l_fund_rec

Line 5206: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5202: ,p_fund_rec=> l_fund_rec
5203: ,p_mode=> g_cons_fund_mode
5204: );
5205:
5206: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5207: RAISE fnd_api.g_exc_unexpected_error;
5208: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5209: RAISE fnd_api.g_exc_error;
5210: END IF;

Line 5207: RAISE fnd_api.g_exc_unexpected_error;

5203: ,p_mode=> g_cons_fund_mode
5204: );
5205:
5206: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5207: RAISE fnd_api.g_exc_unexpected_error;
5208: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5209: RAISE fnd_api.g_exc_error;
5210: END IF;
5211:

Line 5208: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5204: );
5205:
5206: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5207: RAISE fnd_api.g_exc_unexpected_error;
5208: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5209: RAISE fnd_api.g_exc_error;
5210: END IF;
5211:
5212: -- R12: yzhao ozf_object_fund_summary update planned_amount/committed_amount

Line 5209: RAISE fnd_api.g_exc_error;

5205:
5206: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5207: RAISE fnd_api.g_exc_unexpected_error;
5208: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5209: RAISE fnd_api.g_exc_error;
5210: END IF;
5211:
5212: -- R12: yzhao ozf_object_fund_summary update planned_amount/committed_amount
5213:

Line 5236: p_init_msg_list => Fnd_Api.G_FALSE,

5232: END IF;
5233:
5234: ozf_objfundsum_pvt.create_objfundsum(
5235: p_api_version => 1.0,
5236: p_init_msg_list => Fnd_Api.G_FALSE,
5237: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5238: p_objfundsum_rec => l_objfundsum_rec,
5239: x_return_status => l_return_status,
5240: x_msg_count => x_msg_count,

Line 5237: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

5233:
5234: ozf_objfundsum_pvt.create_objfundsum(
5235: p_api_version => 1.0,
5236: p_init_msg_list => Fnd_Api.G_FALSE,
5237: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5238: p_objfundsum_rec => l_objfundsum_rec,
5239: x_return_status => l_return_status,
5240: x_msg_count => x_msg_count,
5241: x_msg_data => x_msg_data,

Line 5256: p_init_msg_list => Fnd_Api.G_FALSE,

5252: ozf_utility_pvt.debug_message('******************************************************************');
5253: END IF;
5254: update_reconcile_objfundsum(
5255: p_api_version => 1.0,
5256: p_init_msg_list => Fnd_Api.G_FALSE,
5257: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5258: p_objfundsum_rec => l_objfundsum_rec,
5259: p_conv_date => p_act_budget_rec.exchange_rate_date,
5260: x_return_status => l_return_status,

Line 5257: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

5253: END IF;
5254: update_reconcile_objfundsum(
5255: p_api_version => 1.0,
5256: p_init_msg_list => Fnd_Api.G_FALSE,
5257: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5258: p_objfundsum_rec => l_objfundsum_rec,
5259: p_conv_date => p_act_budget_rec.exchange_rate_date,
5260: x_return_status => l_return_status,
5261: x_msg_count => x_msg_count,

Line 5267: p_init_msg_list => Fnd_Api.G_FALSE,

5263: );
5264: ELSE
5265: ozf_objfundsum_pvt.update_objfundsum(
5266: p_api_version => 1.0,
5267: p_init_msg_list => Fnd_Api.G_FALSE,
5268: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5269: p_objfundsum_rec => l_objfundsum_rec,
5270: x_return_status => l_return_status,
5271: x_msg_count => x_msg_count,

Line 5268: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

5264: ELSE
5265: ozf_objfundsum_pvt.update_objfundsum(
5266: p_api_version => 1.0,
5267: p_init_msg_list => Fnd_Api.G_FALSE,
5268: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5269: p_objfundsum_rec => l_objfundsum_rec,
5270: x_return_status => l_return_status,
5271: x_msg_count => x_msg_count,
5272: x_msg_data => x_msg_data

Line 5278: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5274: END IF;
5275: END IF;
5276:
5277:
5278: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5279: RAISE fnd_api.g_exc_unexpected_error;
5280: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5281: RAISE fnd_api.g_exc_error;
5282: END IF;

Line 5279: RAISE fnd_api.g_exc_unexpected_error;

5275: END IF;
5276:
5277:
5278: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5279: RAISE fnd_api.g_exc_unexpected_error;
5280: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5281: RAISE fnd_api.g_exc_error;
5282: END IF;
5283: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount/committed_amount

Line 5280: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5276:
5277:
5278: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5279: RAISE fnd_api.g_exc_unexpected_error;
5280: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5281: RAISE fnd_api.g_exc_error;
5282: END IF;
5283: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount/committed_amount
5284:

Line 5281: RAISE fnd_api.g_exc_error;

5277:
5278: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5279: RAISE fnd_api.g_exc_unexpected_error;
5280: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5281: RAISE fnd_api.g_exc_error;
5282: END IF;
5283: -- R12: yzhao END ozf_object_fund_summary decrease planned_amount/committed_amount
5284:
5285: END IF; -- end for fund check

Line 5379: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5375: ,p_from_amount=> l_temp_rec.request_amount
5376: ,x_to_amount=> l_fund_rec.planned_amt
5377: );
5378:
5379: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5380: RAISE fnd_api.g_exc_unexpected_error;
5381: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5382: RAISE fnd_api.g_exc_error;
5383: END IF;

Line 5380: RAISE fnd_api.g_exc_unexpected_error;

5376: ,x_to_amount=> l_fund_rec.planned_amt
5377: );
5378:
5379: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5380: RAISE fnd_api.g_exc_unexpected_error;
5381: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5382: RAISE fnd_api.g_exc_error;
5383: END IF;
5384: END IF;

Line 5381: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5377: );
5378:
5379: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5380: RAISE fnd_api.g_exc_unexpected_error;
5381: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5382: RAISE fnd_api.g_exc_error;
5383: END IF;
5384: END IF;
5385:

Line 5382: RAISE fnd_api.g_exc_error;

5378:
5379: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5380: RAISE fnd_api.g_exc_unexpected_error;
5381: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5382: RAISE fnd_api.g_exc_error;
5383: END IF;
5384: END IF;
5385:
5386: -- R12: yzhao ozf_object_fund_summary decrease planned_amt

Line 5401: RAISE fnd_api.g_exc_error;

5397: IF fnd_msg_pub.check_msg_level(fnd_msg_pub.g_msg_lvl_error) THEN
5398: fnd_message.set_name('OZF', 'OZF_OBJFUNDSUM_RECORD_NOT_FOUND');
5399: fnd_msg_pub.add;
5400: END IF;
5401: RAISE fnd_api.g_exc_error;
5402: END IF;
5403: CLOSE c_get_objfundsum_rec;
5404: IF g_universal_currency = l_temp_rec.request_currency THEN
5405: l_univ_planned_amount := l_temp_rec.request_amount;

Line 5416: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5412: ,p_to_currency=> g_universal_currency
5413: ,p_from_amount=> l_temp_rec.request_amount
5414: ,x_to_amount=> l_univ_planned_amount
5415: );
5416: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5417: RAISE fnd_api.g_exc_unexpected_error;
5418: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5419: RAISE fnd_api.g_exc_error;
5420: END IF;

Line 5417: RAISE fnd_api.g_exc_unexpected_error;

5413: ,p_from_amount=> l_temp_rec.request_amount
5414: ,x_to_amount=> l_univ_planned_amount
5415: );
5416: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5417: RAISE fnd_api.g_exc_unexpected_error;
5418: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5419: RAISE fnd_api.g_exc_error;
5420: END IF;
5421: END IF;

Line 5418: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5414: ,x_to_amount=> l_univ_planned_amount
5415: );
5416: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5417: RAISE fnd_api.g_exc_unexpected_error;
5418: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5419: RAISE fnd_api.g_exc_error;
5420: END IF;
5421: END IF;
5422: l_objfundsum_rec.planned_amt := NVL(l_objfundsum_rec.planned_amt, 0) - NVL(l_fund_rec.planned_amt, 0);

Line 5419: RAISE fnd_api.g_exc_error;

5415: );
5416: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5417: RAISE fnd_api.g_exc_unexpected_error;
5418: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5419: RAISE fnd_api.g_exc_error;
5420: END IF;
5421: END IF;
5422: l_objfundsum_rec.planned_amt := NVL(l_objfundsum_rec.planned_amt, 0) - NVL(l_fund_rec.planned_amt, 0);
5423: l_objfundsum_rec.plan_curr_planned_amt := NVL(l_objfundsum_rec.plan_curr_planned_amt, 0)

Line 5429: p_init_msg_list => Fnd_Api.G_FALSE,

5425: l_objfundsum_rec.univ_curr_planned_amt := NVL(l_objfundsum_rec.univ_curr_planned_amt, 0)
5426: - NVL(l_univ_planned_amount, 0);
5427: ozf_objfundsum_pvt.update_objfundsum(
5428: p_api_version => 1.0,
5429: p_init_msg_list => Fnd_Api.G_FALSE,
5430: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5431: p_objfundsum_rec => l_objfundsum_rec,
5432: x_return_status => l_return_status,
5433: x_msg_count => x_msg_count,

Line 5430: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,

5426: - NVL(l_univ_planned_amount, 0);
5427: ozf_objfundsum_pvt.update_objfundsum(
5428: p_api_version => 1.0,
5429: p_init_msg_list => Fnd_Api.G_FALSE,
5430: p_validation_level => Fnd_Api.G_VALID_LEVEL_NONE,
5431: p_objfundsum_rec => l_objfundsum_rec,
5432: x_return_status => l_return_status,
5433: x_msg_count => x_msg_count,
5434: x_msg_data => x_msg_data

Line 5436: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5432: x_return_status => l_return_status,
5433: x_msg_count => x_msg_count,
5434: x_msg_data => x_msg_data
5435: );
5436: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5437: RAISE fnd_api.g_exc_unexpected_error;
5438: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5439: RAISE fnd_api.g_exc_error;
5440: END IF;

Line 5437: RAISE fnd_api.g_exc_unexpected_error;

5433: x_msg_count => x_msg_count,
5434: x_msg_data => x_msg_data
5435: );
5436: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5437: RAISE fnd_api.g_exc_unexpected_error;
5438: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5439: RAISE fnd_api.g_exc_error;
5440: END IF;
5441: -- R12: yzhao END ozf_object_fund_summary decrease planned amount

Line 5438: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5434: x_msg_data => x_msg_data
5435: );
5436: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5437: RAISE fnd_api.g_exc_unexpected_error;
5438: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5439: RAISE fnd_api.g_exc_error;
5440: END IF;
5441: -- R12: yzhao END ozf_object_fund_summary decrease planned amount
5442:

Line 5439: RAISE fnd_api.g_exc_error;

5435: );
5436: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5437: RAISE fnd_api.g_exc_unexpected_error;
5438: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5439: RAISE fnd_api.g_exc_error;
5440: END IF;
5441: -- R12: yzhao END ozf_object_fund_summary decrease planned amount
5442:
5443: -- subtract the request amount, l_fund_rec.planned_amt, from the

Line 5450: ,p_init_msg_list=> fnd_api.g_false

5446: NVL (l_fund_planned_amount, 0)
5447: - NVL (l_fund_rec.planned_amt, 0);
5448: ozf_funds_pvt.update_fund (
5449: p_api_version=> 1.0
5450: ,p_init_msg_list=> fnd_api.g_false
5451: , -- allow the calling API to handle
5452: p_commit=> fnd_api.g_false
5453: , -- allow the calling API to handle
5454: p_validation_level=> fnd_api.g_valid_level_full

Line 5452: p_commit=> fnd_api.g_false

5448: ozf_funds_pvt.update_fund (
5449: p_api_version=> 1.0
5450: ,p_init_msg_list=> fnd_api.g_false
5451: , -- allow the calling API to handle
5452: p_commit=> fnd_api.g_false
5453: , -- allow the calling API to handle
5454: p_validation_level=> fnd_api.g_valid_level_full
5455: ,x_return_status=> l_return_status
5456: ,x_msg_count=> x_msg_count

Line 5454: p_validation_level=> fnd_api.g_valid_level_full

5450: ,p_init_msg_list=> fnd_api.g_false
5451: , -- allow the calling API to handle
5452: p_commit=> fnd_api.g_false
5453: , -- allow the calling API to handle
5454: p_validation_level=> fnd_api.g_valid_level_full
5455: ,x_return_status=> l_return_status
5456: ,x_msg_count=> x_msg_count
5457: ,x_msg_data=> x_msg_data
5458: ,p_fund_rec=> l_fund_rec

Line 5462: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5458: ,p_fund_rec=> l_fund_rec
5459: ,p_mode=> g_cons_fund_mode
5460: );
5461:
5462: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5463: RAISE fnd_api.g_exc_unexpected_error;
5464: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5465: RAISE fnd_api.g_exc_error;
5466: END IF;

Line 5463: RAISE fnd_api.g_exc_unexpected_error;

5459: ,p_mode=> g_cons_fund_mode
5460: );
5461:
5462: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5463: RAISE fnd_api.g_exc_unexpected_error;
5464: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5465: RAISE fnd_api.g_exc_error;
5466: END IF;
5467: END IF; -- if source type = FUND

Line 5464: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5460: );
5461:
5462: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5463: RAISE fnd_api.g_exc_unexpected_error;
5464: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5465: RAISE fnd_api.g_exc_error;
5466: END IF;
5467: END IF; -- if source type = FUND
5468:

Line 5465: RAISE fnd_api.g_exc_error;

5461:
5462: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5463: RAISE fnd_api.g_exc_unexpected_error;
5464: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5465: RAISE fnd_api.g_exc_error;
5466: END IF;
5467: END IF; -- if source type = FUND
5468:
5469: x_act_budget_rec := l_temp_rec;

Line 5498: p_exchange_rate_type IN VARCHAR2 DEFAULT FND_API.G_MISS_CHAR

5494: x_return_status OUT NOCOPY VARCHAR2,
5495: x_msg_count OUT NOCOPY NUMBER,
5496: x_msg_data OUT NOCOPY VARCHAR2,
5497: p_act_budgets_rec IN ozf_actbudgets_pvt.act_budgets_rec_type,
5498: p_exchange_rate_type IN VARCHAR2 DEFAULT FND_API.G_MISS_CHAR
5499: ) IS
5500:
5501: l_return_status VARCHAR2 (10) := fnd_api.g_ret_sts_success;
5502: l_api_name CONSTANT VARCHAR2 (30) := 'create_child_act_budget';

Line 5501: l_return_status VARCHAR2 (10) := fnd_api.g_ret_sts_success;

5497: p_act_budgets_rec IN ozf_actbudgets_pvt.act_budgets_rec_type,
5498: p_exchange_rate_type IN VARCHAR2 DEFAULT FND_API.G_MISS_CHAR
5499: ) IS
5500:
5501: l_return_status VARCHAR2 (10) := fnd_api.g_ret_sts_success;
5502: l_api_name CONSTANT VARCHAR2 (30) := 'create_child_act_budget';
5503: l_api_version CONSTANT NUMBER := 1.0;
5504: l_msg_data VARCHAR2 (2000);
5505: l_msg_count NUMBER;

Line 5544: x_return_status := fnd_api.g_ret_sts_success;

5540: IF G_DEBUG THEN
5541: ozf_utility_pvt.debug_message ( l_full_name || ': start');
5542: END IF;
5543:
5544: x_return_status := fnd_api.g_ret_sts_success;
5545:
5546: /* IF fnd_api.to_boolean (p_init_msg_list) THEN
5547: fnd_msg_pub.initialize;
5548: END IF;

Line 5546: /* IF fnd_api.to_boolean (p_init_msg_list) THEN

5542: END IF;
5543:
5544: x_return_status := fnd_api.g_ret_sts_success;
5545:
5546: /* IF fnd_api.to_boolean (p_init_msg_list) THEN
5547: fnd_msg_pub.initialize;
5548: END IF;
5549:
5550: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name) THEN

Line 5550: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name) THEN

5546: /* IF fnd_api.to_boolean (p_init_msg_list) THEN
5547: fnd_msg_pub.initialize;
5548: END IF;
5549:
5550: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name) THEN
5551: RAISE fnd_api.g_exc_unexpected_error;
5552: END IF;
5553: */
5554:

Line 5551: RAISE fnd_api.g_exc_unexpected_error;

5547: fnd_msg_pub.initialize;
5548: END IF;
5549:
5550: IF NOT fnd_api.compatible_api_call (l_api_version, p_api_version, l_api_name, g_pkg_name) THEN
5551: RAISE fnd_api.g_exc_unexpected_error;
5552: END IF;
5553: */
5554:
5555: l_act_budgets_rec.transfer_type := p_act_budgets_rec.transfer_type;

Line 5646: ,p_approval_flag=> fnd_api.g_true

5642: ,x_msg_data=> l_msg_data
5643: ,p_act_budgets_rec=> l_act_budgets_rec
5644: ,p_act_util_rec=> l_act_util_rec
5645: ,x_act_budget_id=> l_act_budget_id
5646: ,p_approval_flag=> fnd_api.g_true
5647: );
5648:
5649:
5650: IF NOT (l_return_status = fnd_api.g_ret_sts_success) THEN

Line 5650: IF NOT (l_return_status = fnd_api.g_ret_sts_success) THEN

5646: ,p_approval_flag=> fnd_api.g_true
5647: );
5648:
5649:
5650: IF NOT (l_return_status = fnd_api.g_ret_sts_success) THEN
5651: ROLLBACK TO create_child_act_budget;
5652: fnd_msg_pub.count_and_get (
5653: p_count=> x_msg_count
5654: ,p_data=> x_msg_data

Line 5655: ,p_encoded=> fnd_api.g_false

5651: ROLLBACK TO create_child_act_budget;
5652: fnd_msg_pub.count_and_get (
5653: p_count=> x_msg_count
5654: ,p_data=> x_msg_data
5655: ,p_encoded=> fnd_api.g_false
5656: );
5657: END IF;
5658:
5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

Line 5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5655: ,p_encoded=> fnd_api.g_false
5656: );
5657: END IF;
5658:
5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5660: RAISE fnd_api.g_exc_unexpected_error;
5661: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5662: RAISE fnd_api.g_exc_error;
5663: END IF;

Line 5660: RAISE fnd_api.g_exc_unexpected_error;

5656: );
5657: END IF;
5658:
5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5660: RAISE fnd_api.g_exc_unexpected_error;
5661: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5662: RAISE fnd_api.g_exc_error;
5663: END IF;
5664:

Line 5661: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5657: END IF;
5658:
5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5660: RAISE fnd_api.g_exc_unexpected_error;
5661: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5662: RAISE fnd_api.g_exc_error;
5663: END IF;
5664:
5665: EXIT WHEN l_amount_remaining <= 0;

Line 5662: RAISE fnd_api.g_exc_error;

5658:
5659: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5660: RAISE fnd_api.g_exc_unexpected_error;
5661: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5662: RAISE fnd_api.g_exc_error;
5663: END IF;
5664:
5665: EXIT WHEN l_amount_remaining <= 0;
5666:

Line 5671: p_encoded=> fnd_api.g_false

5667:
5668: END LOOP;
5669:
5670: fnd_msg_pub.count_and_get (
5671: p_encoded=> fnd_api.g_false
5672: ,p_count=> x_msg_count
5673: ,p_data=> x_msg_data
5674: );
5675:

Line 5683: WHEN fnd_api.g_exc_error THEN

5679: || ': end');
5680: END IF;
5681:
5682: EXCEPTION
5683: WHEN fnd_api.g_exc_error THEN
5684: ROLLBACK TO create_child_act_budget;
5685: x_return_status := fnd_api.g_ret_sts_error;
5686: fnd_msg_pub.count_and_get (
5687: p_count=> x_msg_count

Line 5685: x_return_status := fnd_api.g_ret_sts_error;

5681:
5682: EXCEPTION
5683: WHEN fnd_api.g_exc_error THEN
5684: ROLLBACK TO create_child_act_budget;
5685: x_return_status := fnd_api.g_ret_sts_error;
5686: fnd_msg_pub.count_and_get (
5687: p_count=> x_msg_count
5688: ,p_data=> x_msg_data
5689: ,p_encoded=> fnd_api.g_false

Line 5689: ,p_encoded=> fnd_api.g_false

5685: x_return_status := fnd_api.g_ret_sts_error;
5686: fnd_msg_pub.count_and_get (
5687: p_count=> x_msg_count
5688: ,p_data=> x_msg_data
5689: ,p_encoded=> fnd_api.g_false
5690: );
5691: WHEN fnd_api.g_exc_unexpected_error THEN
5692: ROLLBACK TO create_child_act_budget;
5693: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 5691: WHEN fnd_api.g_exc_unexpected_error THEN

5687: p_count=> x_msg_count
5688: ,p_data=> x_msg_data
5689: ,p_encoded=> fnd_api.g_false
5690: );
5691: WHEN fnd_api.g_exc_unexpected_error THEN
5692: ROLLBACK TO create_child_act_budget;
5693: x_return_status := fnd_api.g_ret_sts_unexp_error;
5694: fnd_msg_pub.count_and_get (
5695: p_count=> x_msg_count

Line 5693: x_return_status := fnd_api.g_ret_sts_unexp_error;

5689: ,p_encoded=> fnd_api.g_false
5690: );
5691: WHEN fnd_api.g_exc_unexpected_error THEN
5692: ROLLBACK TO create_child_act_budget;
5693: x_return_status := fnd_api.g_ret_sts_unexp_error;
5694: fnd_msg_pub.count_and_get (
5695: p_count=> x_msg_count
5696: ,p_data=> x_msg_data
5697: ,p_encoded=> fnd_api.g_false

Line 5697: ,p_encoded=> fnd_api.g_false

5693: x_return_status := fnd_api.g_ret_sts_unexp_error;
5694: fnd_msg_pub.count_and_get (
5695: p_count=> x_msg_count
5696: ,p_data=> x_msg_data
5697: ,p_encoded=> fnd_api.g_false
5698: );
5699: WHEN OTHERS THEN
5700: ROLLBACK TO create_child_act_budget;
5701: x_return_status := fnd_api.g_ret_sts_unexp_error;

Line 5701: x_return_status := fnd_api.g_ret_sts_unexp_error;

5697: ,p_encoded=> fnd_api.g_false
5698: );
5699: WHEN OTHERS THEN
5700: ROLLBACK TO create_child_act_budget;
5701: x_return_status := fnd_api.g_ret_sts_unexp_error;
5702:
5703: IF fnd_msg_pub.check_msg_level (fnd_msg_pub.g_msg_lvl_unexp_error) THEN
5704: fnd_msg_pub.add_exc_msg (g_package_name, l_api_name);
5705: END IF;

Line 5710: ,p_encoded=> fnd_api.g_false

5706:
5707: fnd_msg_pub.count_and_get (
5708: p_count=> x_msg_count
5709: ,p_data=> x_msg_data
5710: ,p_encoded=> fnd_api.g_false
5711: );
5712:
5713: END create_child_act_budget;
5714:

Line 5767: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5763: ,p_conv_date=> p_conv_date
5764: ,p_from_amount=> p_amount_1
5765: ,x_to_amount=> x_amount_2
5766: );
5767: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5768: RAISE fnd_api.g_exc_unexpected_error;
5769: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5770: RAISE fnd_api.g_exc_error;
5771: END IF;

Line 5768: RAISE fnd_api.g_exc_unexpected_error;

5764: ,p_from_amount=> p_amount_1
5765: ,x_to_amount=> x_amount_2
5766: );
5767: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5768: RAISE fnd_api.g_exc_unexpected_error;
5769: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5770: RAISE fnd_api.g_exc_error;
5771: END IF;
5772: END IF;

Line 5769: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5765: ,x_to_amount=> x_amount_2
5766: );
5767: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5768: RAISE fnd_api.g_exc_unexpected_error;
5769: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5770: RAISE fnd_api.g_exc_error;
5771: END IF;
5772: END IF;
5773: END IF;

Line 5770: RAISE fnd_api.g_exc_error;

5766: );
5767: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5768: RAISE fnd_api.g_exc_unexpected_error;
5769: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5770: RAISE fnd_api.g_exc_error;
5771: END IF;
5772: END IF;
5773: END IF;
5774:

Line 5788: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5784: ,p_conv_date=> p_conv_date
5785: ,p_from_amount=> p_amount_1
5786: ,x_to_amount=> x_amount_3
5787: );
5788: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5789: RAISE fnd_api.g_exc_unexpected_error;
5790: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5791: RAISE fnd_api.g_exc_error;
5792: END IF;

Line 5789: RAISE fnd_api.g_exc_unexpected_error;

5785: ,p_from_amount=> p_amount_1
5786: ,x_to_amount=> x_amount_3
5787: );
5788: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5789: RAISE fnd_api.g_exc_unexpected_error;
5790: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5791: RAISE fnd_api.g_exc_error;
5792: END IF;
5793: END IF;

Line 5790: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5786: ,x_to_amount=> x_amount_3
5787: );
5788: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5789: RAISE fnd_api.g_exc_unexpected_error;
5790: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5791: RAISE fnd_api.g_exc_error;
5792: END IF;
5793: END IF;
5794: END IF;

Line 5791: RAISE fnd_api.g_exc_error;

5787: );
5788: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5789: RAISE fnd_api.g_exc_unexpected_error;
5790: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5791: RAISE fnd_api.g_exc_error;
5792: END IF;
5793: END IF;
5794: END IF;
5795: ELSE

Line 5809: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5805: ,p_conv_date=> p_conv_date
5806: ,p_from_amount=> p_amount_2
5807: ,x_to_amount=> x_amount_1
5808: );
5809: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5810: RAISE fnd_api.g_exc_unexpected_error;
5811: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5812: RAISE fnd_api.g_exc_error;
5813: END IF;

Line 5810: RAISE fnd_api.g_exc_unexpected_error;

5806: ,p_from_amount=> p_amount_2
5807: ,x_to_amount=> x_amount_1
5808: );
5809: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5810: RAISE fnd_api.g_exc_unexpected_error;
5811: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5812: RAISE fnd_api.g_exc_error;
5813: END IF;
5814: END IF;

Line 5811: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5807: ,x_to_amount=> x_amount_1
5808: );
5809: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5810: RAISE fnd_api.g_exc_unexpected_error;
5811: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5812: RAISE fnd_api.g_exc_error;
5813: END IF;
5814: END IF;
5815:

Line 5812: RAISE fnd_api.g_exc_error;

5808: );
5809: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5810: RAISE fnd_api.g_exc_unexpected_error;
5811: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5812: RAISE fnd_api.g_exc_error;
5813: END IF;
5814: END IF;
5815:
5816: IF NVL(p_amount_3, 0) = 0 THEN

Line 5829: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN

5825: ,p_conv_date=> p_conv_date
5826: ,p_from_amount=> p_amount_2
5827: ,x_to_amount=> x_amount_3
5828: );
5829: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5830: RAISE fnd_api.g_exc_unexpected_error;
5831: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5832: RAISE fnd_api.g_exc_error;
5833: END IF;

Line 5830: RAISE fnd_api.g_exc_unexpected_error;

5826: ,p_from_amount=> p_amount_2
5827: ,x_to_amount=> x_amount_3
5828: );
5829: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5830: RAISE fnd_api.g_exc_unexpected_error;
5831: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5832: RAISE fnd_api.g_exc_error;
5833: END IF;
5834: END IF;

Line 5831: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN

5827: ,x_to_amount=> x_amount_3
5828: );
5829: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5830: RAISE fnd_api.g_exc_unexpected_error;
5831: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5832: RAISE fnd_api.g_exc_error;
5833: END IF;
5834: END IF;
5835: END IF;

Line 5832: RAISE fnd_api.g_exc_error;

5828: );
5829: IF l_return_status = fnd_api.g_ret_sts_unexp_error THEN
5830: RAISE fnd_api.g_exc_unexpected_error;
5831: ELSIF l_return_status = fnd_api.g_ret_sts_error THEN
5832: RAISE fnd_api.g_exc_error;
5833: END IF;
5834: END IF;
5835: END IF;
5836: END IF;

Line 5854: p_init_msg_list IN VARCHAR2 := Fnd_Api.G_FALSE,

5850: -- HISTORY
5851:
5852: PROCEDURE update_reconcile_objfundsum (
5853: p_api_version IN NUMBER,
5854: p_init_msg_list IN VARCHAR2 := Fnd_Api.G_FALSE,
5855: p_validation_level IN NUMBER := Fnd_Api.G_VALID_LEVEL_FULL,
5856: p_objfundsum_rec IN OZF_OBJFUNDSUM_PVT.objfundsum_rec_type,
5857: p_conv_date IN DATE,
5858: x_return_status OUT NOCOPY VARCHAR2,

Line 5855: p_validation_level IN NUMBER := Fnd_Api.G_VALID_LEVEL_FULL,

5851:
5852: PROCEDURE update_reconcile_objfundsum (
5853: p_api_version IN NUMBER,
5854: p_init_msg_list IN VARCHAR2 := Fnd_Api.G_FALSE,
5855: p_validation_level IN NUMBER := Fnd_Api.G_VALID_LEVEL_FULL,
5856: p_objfundsum_rec IN OZF_OBJFUNDSUM_PVT.objfundsum_rec_type,
5857: p_conv_date IN DATE,
5858: x_return_status OUT NOCOPY VARCHAR2,
5859: x_msg_count OUT NOCOPY NUMBER,

Line 5868: l_return_status VARCHAR2(1) := FND_API.G_RET_STS_SUCCESS;

5864: L_API_VERSION CONSTANT NUMBER := 1.0;
5865: L_API_NAME CONSTANT VARCHAR2(30) := 'update_reconcile_objfundsum';
5866: L_FULL_NAME CONSTANT VARCHAR2(60) := g_pkg_name ||'.'|| l_api_name;
5867:
5868: l_return_status VARCHAR2(1) := FND_API.G_RET_STS_SUCCESS;
5869: l_objfundsum_rec OZF_OBJFUNDSUM_PVT.objfundsum_rec_type := p_objfundsum_rec;
5870: l_amount_1 NUMBER;
5871: l_amount_2 NUMBER;
5872: l_amount_3 NUMBER;

Line 5886: IF Fnd_Api.To_Boolean (p_init_msg_list) THEN

5882: IF (G_DEBUG) THEN
5883: ozf_utility_pvt.debug_message(l_full_name||': start');
5884: END IF;
5885:
5886: IF Fnd_Api.To_Boolean (p_init_msg_list) THEN
5887: Fnd_Msg_Pub.Initialize;
5888: END IF;
5889:
5890: IF NOT Fnd_Api.Compatible_API_Call (L_API_VERSION,

Line 5890: IF NOT Fnd_Api.Compatible_API_Call (L_API_VERSION,

5886: IF Fnd_Api.To_Boolean (p_init_msg_list) THEN
5887: Fnd_Msg_Pub.Initialize;
5888: END IF;
5889:
5890: IF NOT Fnd_Api.Compatible_API_Call (L_API_VERSION,
5891: p_api_version,
5892: L_API_NAME,
5893: G_PKG_NAME)
5894: THEN

Line 5895: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

5891: p_api_version,
5892: L_API_NAME,
5893: G_PKG_NAME)
5894: THEN
5895: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5896: END IF;
5897:
5898: x_return_status := Fnd_Api.G_RET_STS_SUCCESS;
5899:

Line 5898: x_return_status := Fnd_Api.G_RET_STS_SUCCESS;

5894: THEN
5895: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5896: END IF;
5897:
5898: x_return_status := Fnd_Api.G_RET_STS_SUCCESS;
5899:
5900: IF (G_DEBUG) THEN
5901: ozf_utility_pvt.debug_message(l_full_name ||': validate');
5902: END IF;

Line 5924: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

5920: x_msg_data => x_msg_data
5921: );
5922:
5923:
5924: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5925: RAISE Fnd_Api.G_EXC_ERROR;
5926: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5927: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5928: END IF;

Line 5925: RAISE Fnd_Api.G_EXC_ERROR;

5921: );
5922:
5923:
5924: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5925: RAISE Fnd_Api.G_EXC_ERROR;
5926: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5927: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5928: END IF;
5929: l_objfundsum_rec.plan_curr_planned_amt := l_amount_1;

Line 5926: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

5922:
5923:
5924: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5925: RAISE Fnd_Api.G_EXC_ERROR;
5926: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5927: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5928: END IF;
5929: l_objfundsum_rec.plan_curr_planned_amt := l_amount_1;
5930: l_objfundsum_rec.planned_amt := l_amount_2;

Line 5927: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

5923:
5924: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5925: RAISE Fnd_Api.G_EXC_ERROR;
5926: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5927: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5928: END IF;
5929: l_objfundsum_rec.plan_curr_planned_amt := l_amount_1;
5930: l_objfundsum_rec.planned_amt := l_amount_2;
5931: l_objfundsum_rec.univ_curr_planned_amt := l_amount_3;

Line 5950: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

5946: x_return_status => l_return_status,
5947: x_msg_count => x_msg_count,
5948: x_msg_data => x_msg_data
5949: );
5950: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5951: RAISE Fnd_Api.G_EXC_ERROR;
5952: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5953: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5954: END IF;

Line 5951: RAISE Fnd_Api.G_EXC_ERROR;

5947: x_msg_count => x_msg_count,
5948: x_msg_data => x_msg_data
5949: );
5950: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5951: RAISE Fnd_Api.G_EXC_ERROR;
5952: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5953: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5954: END IF;
5955:

Line 5952: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

5948: x_msg_data => x_msg_data
5949: );
5950: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5951: RAISE Fnd_Api.G_EXC_ERROR;
5952: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5953: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5954: END IF;
5955:
5956:

Line 5953: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

5949: );
5950: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5951: RAISE Fnd_Api.G_EXC_ERROR;
5952: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5953: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5954: END IF;
5955:
5956:
5957:

Line 5979: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

5975: x_return_status => l_return_status,
5976: x_msg_count => x_msg_count,
5977: x_msg_data => x_msg_data
5978: );
5979: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5980: RAISE Fnd_Api.G_EXC_ERROR;
5981: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5982: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5983: END IF;

Line 5980: RAISE Fnd_Api.G_EXC_ERROR;

5976: x_msg_count => x_msg_count,
5977: x_msg_data => x_msg_data
5978: );
5979: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5980: RAISE Fnd_Api.G_EXC_ERROR;
5981: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5982: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5983: END IF;
5984: l_objfundsum_rec.plan_curr_recal_committed_amt := l_amount_1;

Line 5981: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

5977: x_msg_data => x_msg_data
5978: );
5979: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5980: RAISE Fnd_Api.G_EXC_ERROR;
5981: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5982: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5983: END IF;
5984: l_objfundsum_rec.plan_curr_recal_committed_amt := l_amount_1;
5985: l_objfundsum_rec.recal_committed_amt := l_amount_2;

Line 5982: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

5978: );
5979: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
5980: RAISE Fnd_Api.G_EXC_ERROR;
5981: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
5982: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
5983: END IF;
5984: l_objfundsum_rec.plan_curr_recal_committed_amt := l_amount_1;
5985: l_objfundsum_rec.recal_committed_amt := l_amount_2;
5986: l_objfundsum_rec.univ_curr_recal_committed_amt := l_amount_3;

Line 6003: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

5999: x_return_status => l_return_status,
6000: x_msg_count => x_msg_count,
6001: x_msg_data => x_msg_data
6002: );
6003: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6004: RAISE Fnd_Api.G_EXC_ERROR;
6005: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6006: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6007: END IF;

Line 6004: RAISE Fnd_Api.G_EXC_ERROR;

6000: x_msg_count => x_msg_count,
6001: x_msg_data => x_msg_data
6002: );
6003: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6004: RAISE Fnd_Api.G_EXC_ERROR;
6005: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6006: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6007: END IF;
6008:

Line 6005: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

6001: x_msg_data => x_msg_data
6002: );
6003: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6004: RAISE Fnd_Api.G_EXC_ERROR;
6005: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6006: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6007: END IF;
6008:
6009: l_objfundsum_rec.plan_curr_utilized_amt := l_amount_1;

Line 6006: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

6002: );
6003: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6004: RAISE Fnd_Api.G_EXC_ERROR;
6005: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6006: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6007: END IF;
6008:
6009: l_objfundsum_rec.plan_curr_utilized_amt := l_amount_1;
6010: l_objfundsum_rec.utilized_amt := l_amount_2;

Line 6028: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

6024: x_return_status => l_return_status,
6025: x_msg_count => x_msg_count,
6026: x_msg_data => x_msg_data
6027: );
6028: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6029: RAISE Fnd_Api.G_EXC_ERROR;
6030: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6031: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6032: END IF;

Line 6029: RAISE Fnd_Api.G_EXC_ERROR;

6025: x_msg_count => x_msg_count,
6026: x_msg_data => x_msg_data
6027: );
6028: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6029: RAISE Fnd_Api.G_EXC_ERROR;
6030: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6031: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6032: END IF;
6033: l_objfundsum_rec.plan_curr_earned_amt := l_amount_1;

Line 6030: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

6026: x_msg_data => x_msg_data
6027: );
6028: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6029: RAISE Fnd_Api.G_EXC_ERROR;
6030: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6031: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6032: END IF;
6033: l_objfundsum_rec.plan_curr_earned_amt := l_amount_1;
6034: l_objfundsum_rec.earned_amt := l_amount_2;

Line 6031: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

6027: );
6028: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6029: RAISE Fnd_Api.G_EXC_ERROR;
6030: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6031: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6032: END IF;
6033: l_objfundsum_rec.plan_curr_earned_amt := l_amount_1;
6034: l_objfundsum_rec.earned_amt := l_amount_2;
6035: l_objfundsum_rec.univ_curr_earned_amt := l_amount_3;

Line 6052: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN

6048: x_return_status => l_return_status,
6049: x_msg_count => x_msg_count,
6050: x_msg_data => x_msg_data
6051: );
6052: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6053: RAISE Fnd_Api.G_EXC_ERROR;
6054: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6055: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6056: END IF;

Line 6053: RAISE Fnd_Api.G_EXC_ERROR;

6049: x_msg_count => x_msg_count,
6050: x_msg_data => x_msg_data
6051: );
6052: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6053: RAISE Fnd_Api.G_EXC_ERROR;
6054: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6055: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6056: END IF;
6057: l_objfundsum_rec.plan_curr_paid_amt := l_amount_1;

Line 6054: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN

6050: x_msg_data => x_msg_data
6051: );
6052: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6053: RAISE Fnd_Api.G_EXC_ERROR;
6054: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6055: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6056: END IF;
6057: l_objfundsum_rec.plan_curr_paid_amt := l_amount_1;
6058: l_objfundsum_rec.paid_amt := l_amount_2;

Line 6055: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;

6051: );
6052: IF l_return_status = Fnd_Api.G_RET_STS_ERROR THEN
6053: RAISE Fnd_Api.G_EXC_ERROR;
6054: ELSIF l_return_status = Fnd_Api.G_RET_STS_UNEXP_ERROR THEN
6055: RAISE Fnd_Api.G_EXC_UNEXPECTED_ERROR;
6056: END IF;
6057: l_objfundsum_rec.plan_curr_paid_amt := l_amount_1;
6058: l_objfundsum_rec.paid_amt := l_amount_2;
6059: l_objfundsum_rec.univ_curr_paid_amt := l_amount_3;

Line 6071: IF l_return_status = Fnd_Api.g_ret_sts_unexp_error THEN

6067: x_msg_count => x_msg_count,
6068: x_msg_data => x_msg_data,
6069: x_return_status => l_return_status
6070: );
6071: IF l_return_status = Fnd_Api.g_ret_sts_unexp_error THEN
6072: RAISE Fnd_Api.g_exc_unexpected_error;
6073: ELSIF l_return_status = Fnd_Api.g_ret_sts_error THEN
6074: RAISE Fnd_Api.g_exc_error;
6075: END IF;

Line 6072: RAISE Fnd_Api.g_exc_unexpected_error;

6068: x_msg_data => x_msg_data,
6069: x_return_status => l_return_status
6070: );
6071: IF l_return_status = Fnd_Api.g_ret_sts_unexp_error THEN
6072: RAISE Fnd_Api.g_exc_unexpected_error;
6073: ELSIF l_return_status = Fnd_Api.g_ret_sts_error THEN
6074: RAISE Fnd_Api.g_exc_error;
6075: END IF;
6076: END IF;

Line 6073: ELSIF l_return_status = Fnd_Api.g_ret_sts_error THEN

6069: x_return_status => l_return_status
6070: );
6071: IF l_return_status = Fnd_Api.g_ret_sts_unexp_error THEN
6072: RAISE Fnd_Api.g_exc_unexpected_error;
6073: ELSIF l_return_status = Fnd_Api.g_ret_sts_error THEN
6074: RAISE Fnd_Api.g_exc_error;
6075: END IF;
6076: END IF;
6077:

Line 6074: RAISE Fnd_Api.g_exc_error;

6070: );
6071: IF l_return_status = Fnd_Api.g_ret_sts_unexp_error THEN
6072: RAISE Fnd_Api.g_exc_unexpected_error;
6073: ELSIF l_return_status = Fnd_Api.g_ret_sts_error THEN
6074: RAISE Fnd_Api.g_exc_error;
6075: END IF;
6076: END IF;
6077:
6078:

Line 6138: RAISE Fnd_Api.g_exc_error;

6134: IF Fnd_Msg_Pub.check_msg_level(Fnd_Msg_Pub.g_msg_lvl_error) THEN
6135: Fnd_Message.set_name('OZF', 'OZF_API_RECORD_NOT_FOUND');
6136: Fnd_Msg_Pub.ADD;
6137: END IF;
6138: RAISE Fnd_Api.g_exc_error;
6139: END IF;
6140:
6141: Fnd_Msg_Pub.Count_And_Get (
6142: p_count => x_msg_count,

Line 6144: p_encoded => Fnd_Api.G_FALSE

6140:
6141: Fnd_Msg_Pub.Count_And_Get (
6142: p_count => x_msg_count,
6143: p_data => x_msg_data,
6144: p_encoded => Fnd_Api.G_FALSE
6145: );
6146:
6147: IF (G_DEBUG) THEN
6148: ozf_utility_pvt.debug_message(l_full_name ||': end');

Line 6153: WHEN Fnd_Api.G_EXC_ERROR THEN

6149: END IF;
6150:
6151:
6152: EXCEPTION
6153: WHEN Fnd_Api.G_EXC_ERROR THEN
6154: ROLLBACK TO SP_update_reconcile_objfundsum;
6155: x_return_status := Fnd_Api.G_RET_STS_ERROR;
6156: Fnd_Msg_Pub.Count_And_Get (
6157: p_count => x_msg_count,

Line 6155: x_return_status := Fnd_Api.G_RET_STS_ERROR;

6151:
6152: EXCEPTION
6153: WHEN Fnd_Api.G_EXC_ERROR THEN
6154: ROLLBACK TO SP_update_reconcile_objfundsum;
6155: x_return_status := Fnd_Api.G_RET_STS_ERROR;
6156: Fnd_Msg_Pub.Count_And_Get (
6157: p_count => x_msg_count,
6158: p_data => x_msg_data,
6159: p_encoded => FND_API.G_FALSE

Line 6159: p_encoded => FND_API.G_FALSE

6155: x_return_status := Fnd_Api.G_RET_STS_ERROR;
6156: Fnd_Msg_Pub.Count_And_Get (
6157: p_count => x_msg_count,
6158: p_data => x_msg_data,
6159: p_encoded => FND_API.G_FALSE
6160: );
6161: WHEN Fnd_Api.G_EXC_UNEXPECTED_ERROR THEN
6162: ROLLBACK TO SP_update_reconcile_objfundsum;
6163: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;

Line 6161: WHEN Fnd_Api.G_EXC_UNEXPECTED_ERROR THEN

6157: p_count => x_msg_count,
6158: p_data => x_msg_data,
6159: p_encoded => FND_API.G_FALSE
6160: );
6161: WHEN Fnd_Api.G_EXC_UNEXPECTED_ERROR THEN
6162: ROLLBACK TO SP_update_reconcile_objfundsum;
6163: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
6164: Fnd_Msg_Pub.Count_And_Get (
6165: p_count => x_msg_count,

Line 6163: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;

6159: p_encoded => FND_API.G_FALSE
6160: );
6161: WHEN Fnd_Api.G_EXC_UNEXPECTED_ERROR THEN
6162: ROLLBACK TO SP_update_reconcile_objfundsum;
6163: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
6164: Fnd_Msg_Pub.Count_And_Get (
6165: p_count => x_msg_count,
6166: p_data => x_msg_data,
6167: p_encoded => FND_API.G_FALSE

Line 6167: p_encoded => FND_API.G_FALSE

6163: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
6164: Fnd_Msg_Pub.Count_And_Get (
6165: p_count => x_msg_count,
6166: p_data => x_msg_data,
6167: p_encoded => FND_API.G_FALSE
6168: );
6169: WHEN OTHERS THEN
6170: ROLLBACK TO SP_update_reconcile_objfundsum;
6171: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;

Line 6171: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;

6167: p_encoded => FND_API.G_FALSE
6168: );
6169: WHEN OTHERS THEN
6170: ROLLBACK TO SP_update_reconcile_objfundsum;
6171: x_return_status := Fnd_Api.G_RET_STS_UNEXP_ERROR;
6172: IF Fnd_Msg_Pub.Check_Msg_Level (Fnd_Msg_Pub.G_MSG_LVL_UNEXP_ERROR) THEN
6173: Fnd_Msg_Pub.Add_Exc_Msg (G_PKG_NAME, L_API_NAME);
6174: END IF;
6175: Fnd_Msg_Pub.Count_And_Get (

Line 6178: p_encoded => FND_API.G_FALSE

6174: END IF;
6175: Fnd_Msg_Pub.Count_And_Get (
6176: p_count => x_msg_count,
6177: p_data => x_msg_data,
6178: p_encoded => FND_API.G_FALSE
6179: );
6180: END update_reconcile_objfundsum;
6181:
6182: