262:
263: -- Initialize message list if p_init_msg_list is set to TRUE.
264: IF FND_API.to_Boolean( p_init_msg_list )
265: THEN
266: FND_MSG_PUB.initialize;
267: END IF;
268:
269: --
270: -- API body
676:
677: -- Initialize message list if p_init_msg_list is set to TRUE.
678: IF FND_API.to_Boolean( p_init_msg_list )
679: THEN
680: FND_MSG_PUB.initialize;
681: END IF;
682:
683: -- Debug Message
684: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW)
680: FND_MSG_PUB.initialize;
681: END IF;
682:
683: -- Debug Message
684: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW)
685: THEN
686: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_WIN_ACCT_START');
687: FND_MSG_PUB.Add;
688: END IF;
683: -- Debug Message
684: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW)
685: THEN
686: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_WIN_ACCT_START');
687: FND_MSG_PUB.Add;
688: END IF;
689:
690: -- Initialize API return status to success
691: x_return_status := FND_API.G_RET_STS_SUCCESS;
752: END OF CODE USED BY AMS (Oracle Marketing)
753: =======================================================================================*/
754:
755: -- Debug Message
756: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW)
757: THEN
758: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_WIN_ACCT_END');
759: FND_MSG_PUB.Add;
760: END IF;
755: -- Debug Message
756: IF FND_MSG_PUB.Check_Msg_Level (FND_MSG_PUB.G_MSG_LVL_DEBUG_LOW)
757: THEN
758: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_WIN_ACCT_END');
759: FND_MSG_PUB.Add;
760: END IF;
761:
762: -- Standard call to get message count and if count is 1, get message info.
763: FND_MSG_PUB.Count_And_Get
759: FND_MSG_PUB.Add;
760: END IF;
761:
762: -- Standard call to get message count and if count is 1, get message info.
763: FND_MSG_PUB.Count_And_Get
764: ( p_count => x_msg_count,
765: p_data => x_msg_data
766: );
767:
770:
771: WHEN FND_API.G_EXC_ERROR THEN
772: x_return_status := FND_API.G_RET_STS_ERROR ;
773:
774: FND_MSG_PUB.Count_And_Get
775: ( p_count => x_msg_count,
776: p_data => x_msg_data
777: );
778:
779:
780: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
781: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
782:
783: FND_MSG_PUB.Count_And_Get
784: ( p_count => x_msg_count,
785: p_data => x_msg_data
786: );
787:
788:
789: WHEN OTHERS THEN
790: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
791:
792: IF FND_MSG_PUB.Check_Msg_Level ( FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR ) THEN
793: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_GEN_TERR_PACKAGE');
794: FND_MESSAGE.Set_Token('JTF', 'JTF_TERR_1001_ACCOUNT_DYN');
795: FND_MSG_PUB.Add;
796: END IF;
791:
792: IF FND_MSG_PUB.Check_Msg_Level ( FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR ) THEN
793: FND_MESSAGE.Set_Name('JTF', 'JTF_TERR_GEN_TERR_PACKAGE');
794: FND_MESSAGE.Set_Token('JTF', 'JTF_TERR_1001_ACCOUNT_DYN');
795: FND_MSG_PUB.Add;
796: END IF;
797:
798: FND_MSG_PUB.Count_And_Get
799: ( p_count => x_msg_count,
794: FND_MESSAGE.Set_Token('JTF', 'JTF_TERR_1001_ACCOUNT_DYN');
795: FND_MSG_PUB.Add;
796: END IF;
797:
798: FND_MSG_PUB.Count_And_Get
799: ( p_count => x_msg_count,
800: p_data => x_msg_data
801: );
802: --