DBA Data[Home] [Help]

APPS.CN_ACC_PERIODS_PVT dependencies on FND_MSG_PUB

Line 159: my_message := FND_MSG_PUB.get(p_msg_index => l_counter,

155: retcode := 2;
156: -- capture messages
157: l_msgs := '';
158: FOR l_counter IN 1..x_msg_count LOOP
159: my_message := FND_MSG_PUB.get(p_msg_index => l_counter,
160: p_encoded => FND_API.G_FALSE);
161: fnd_file.put_line(fnd_file.Log, my_message);
162: l_msgs := l_msgs || my_message || ' ';
163: end loop;

Line 367: FND_MSG_PUB.initialize;

363: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
364: END IF;
365: -- Initialize message list if p_init_msg_list is set to TRUE.
366: IF FND_API.to_Boolean( p_init_msg_list ) THEN
367: FND_MSG_PUB.initialize;
368: END IF;
369: -- Initialize API return status to success
370: x_return_status := FND_API.G_RET_STS_SUCCESS;
371:

Line 396: fnd_msg_pub.add;

392: -- IF (period_info%notfound) THEN
393: -- CLOSE period_info;
394: IF l_org_id <> p_org_id THEN
395: fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
396: fnd_msg_pub.add;
397: RAISE fnd_api.g_exc_unexpected_error;
398: END IF;
399: -- CLOSE period_info;
400:

Line 403: fnd_msg_pub.add;

399: -- CLOSE period_info;
400:
401: IF (l_object_version_number <> p_acc_period_tbl(i).object_version_number) THEN
402: fnd_message.set_name('FND', 'FORM_RECORD_CHANGED');
403: fnd_msg_pub.add;
404: RAISE fnd_api.g_exc_unexpected_error;
405: END IF;
406:
407: l_closing_status := get_closing_status(p_acc_period_tbl(i).closing_status_meaning);

Line 481: fnd_msg_pub.add;

477:
478: /* commented out for bug 5035044
479: IF (l_quarter_num NOT IN (1, 2, 3, 4)) THEN
480: fnd_message.set_name('CN', 'CNSYPR_QUARTER_NUMBER');
481: fnd_msg_pub.add;
482: RAISE fnd_api.g_exc_error;
483: END IF;
484: */
485:

Line 489: fnd_msg_pub.add;

485:
486: IF (l_closing_status = 'O' AND l_closing_status_old <> 'O' ) THEN
487: IF (l_closing_status_old = 'P') THEN
488: fnd_message.set_name('CN', 'CNSYPR_OPEN_PERIOD');
489: fnd_msg_pub.add;
490: RAISE fnd_api.g_exc_error;
491: END IF;
492:
493: -- can not open a period whose previous period is Never Opened

Line 496: fnd_msg_pub.add;

492:
493: -- can not open a period whose previous period is Never Opened
494: IF (l_pre_status = 'N') THEN
495: fnd_message.set_name('CN', 'CNSYPR_OPEN_PRE_NEVER');
496: fnd_msg_pub.add;
497: RAISE fnd_api.g_exc_error;
498: -- can not open a period whose previous period is Future Enterable
499: elsif (l_pre_status = 'F') then
500: fnd_message.set_name('CN', 'CNSYPR_OPEN_PRE_FUTURE');

Line 501: fnd_msg_pub.add;

497: RAISE fnd_api.g_exc_error;
498: -- can not open a period whose previous period is Future Enterable
499: elsif (l_pre_status = 'F') then
500: fnd_message.set_name('CN', 'CNSYPR_OPEN_PRE_FUTURE');
501: fnd_msg_pub.add;
502: raise fnd_api.g_exc_error;
503:
504: -- can not open a period whose next period is Closed or Permanently Closed
505: elsif (l_next_status IN ('P', 'C')) then

Line 507: fnd_msg_pub.add;

503:
504: -- can not open a period whose next period is Closed or Permanently Closed
505: elsif (l_next_status IN ('P', 'C')) then
506: fnd_message.set_name('CN', 'CNSYPR_OPEN_NEXT_CLOSE');
507: fnd_msg_pub.add;
508: raise fnd_api.g_exc_error;
509: end if;
510: END IF;
511:

Line 515: -- fnd_msg_pub.add;

511:
512: IF ((l_closing_status = 'C' AND l_closing_status_old <> 'C') OR (l_closing_status = 'P' AND l_closing_status_old <> 'P')) THEN
513: --IF ((l_closing_status = 'C' AND l_closing_status_old <> 'O') OR (l_closing_status = 'P' AND l_closing_status_old NOT IN ('O', 'C'))) THEN
514: -- fnd_message.set_name('CN', 'CN_CLOSE_PERIOD');
515: -- fnd_msg_pub.add;
516: -- RAISE fnd_api.g_exc_error;
517: --END IF;
518:
519: -- can not close/permanently close a period whose previous period is not closed

Line 523: fnd_msg_pub.add;

519: -- can not close/permanently close a period whose previous period is not closed
520: -- Note: when a period is open, it is impossible for its previous period to be Never Opened or Future Entry
521: if (l_pre_status = 'O') then
522: fnd_message.set_name('CN', 'CNSYPR_CLOSE_PRE_OPEN');
523: fnd_msg_pub.add;
524: raise fnd_api.g_exc_error;
525: END IF;
526: END IF;
527:

Line 531: fnd_msg_pub.add;

527:
528: IF (l_closing_status = 'F' AND l_closing_status_old <> 'F') THEN
529: IF (l_closing_status_old <> 'N') THEN
530: fnd_message.set_name('CN', 'CNSYPR_FUTURE_ENTERABLE');
531: fnd_msg_pub.add;
532: RAISE fnd_api.g_exc_error;
533: END IF;
534:
535: -- can not set a period to F whose previous period is Never Opened

Line 538: fnd_msg_pub.add;

534:
535: -- can not set a period to F whose previous period is Never Opened
536: if (l_pre_status = 'N') then
537: fnd_message.set_name('CN', 'CNSYPR_FUTURE_PRE_NEVER');
538: fnd_msg_pub.add;
539: raise fnd_api.g_exc_error;
540: END IF;
541: END IF;
542:

Line 582: fnd_msg_pub.add;

578: --bug # 2471028
579:
580: IF (l_update_flag = 'N') THEN
581: fnd_message.set_name('CN', 'CN_NO_CHANGES');
582: fnd_msg_pub.add;
583: END IF;
584:
585: -- Call concurrent program
586: -- commented since it has moved to start_request procedure

Line 608: FND_MSG_PUB.count_and_get

604: IF FND_API.To_Boolean( p_commit ) THEN
605: COMMIT WORK;
606: END IF;
607: -- Standard call to get message count and if count is 1, get message info.
608: FND_MSG_PUB.count_and_get
609: (p_count => x_msg_count ,
610: p_data => x_msg_data ,
611: p_encoded => FND_API.G_FALSE );
612: EXCEPTION

Line 615: FND_MSG_PUB.count_and_get

611: p_encoded => FND_API.G_FALSE );
612: EXCEPTION
613: WHEN FND_API.G_EXC_ERROR THEN
614: x_return_status := FND_API.G_RET_STS_ERROR ;
615: FND_MSG_PUB.count_and_get
616: (p_count => x_msg_count ,
617: p_data => x_msg_data ,
618: p_encoded => FND_API.G_FALSE );
619: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN

Line 621: FND_MSG_PUB.count_and_get

617: p_data => x_msg_data ,
618: p_encoded => FND_API.G_FALSE );
619: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
620: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
621: FND_MSG_PUB.count_and_get
622: (p_count => x_msg_count ,
623: p_data => x_msg_data ,
624: p_encoded => FND_API.G_FALSE );
625: WHEN OTHERS THEN

Line 627: IF FND_MSG_PUB.check_msg_level

623: p_data => x_msg_data ,
624: p_encoded => FND_API.G_FALSE );
625: WHEN OTHERS THEN
626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
627: IF FND_MSG_PUB.check_msg_level
628: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
629: THEN
630: FND_MSG_PUB.add_exc_msg
631: (G_PKG_NAME ,

Line 628: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)

624: p_encoded => FND_API.G_FALSE );
625: WHEN OTHERS THEN
626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
627: IF FND_MSG_PUB.check_msg_level
628: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
629: THEN
630: FND_MSG_PUB.add_exc_msg
631: (G_PKG_NAME ,
632: l_api_name );

Line 630: FND_MSG_PUB.add_exc_msg

626: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
627: IF FND_MSG_PUB.check_msg_level
628: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
629: THEN
630: FND_MSG_PUB.add_exc_msg
631: (G_PKG_NAME ,
632: l_api_name );
633: END IF;
634: FND_MSG_PUB.count_and_get

Line 634: FND_MSG_PUB.count_and_get

630: FND_MSG_PUB.add_exc_msg
631: (G_PKG_NAME ,
632: l_api_name );
633: END IF;
634: FND_MSG_PUB.count_and_get
635: (p_count => x_msg_count ,
636: p_data => x_msg_data ,
637: p_encoded => FND_API.G_FALSE );
638: END update_acc_periods;