84:
85: -- Initialize message list if p_init_msg_list is set to TRUE.
86: IF FND_API.to_Boolean( p_init_msg_list )
87: THEN
88: FND_MSG_PUB.initialize;
89: END IF;
90:
91: -- Initialize API return status to SUCCESS
92: x_return_status := FND_API.G_RET_STS_SUCCESS;
206: END IF;
207:
208:
209: -- Standard callto get message count and if count is 1, get message info.
210: FND_MSG_PUB.Count_And_Get
211: ( p_count => x_msg_count,
212: p_data => x_msg_data
213: );
214:
216:
217: WHEN FND_API.G_EXC_ERROR THEN
218: ROLLBACK TO create_arch_msgdtls_PVT;
219: x_return_status := FND_API.G_RET_STS_ERROR ;
220: FND_MSG_PUB.Count_And_Get
221:
222: ( p_count => x_msg_count,
223: p_data => x_msg_data
224: );
225:
226: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
227: ROLLBACK TO create_arch_msgdtls_PVT;
228: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
229: FND_MSG_PUB.Count_And_Get
230: ( p_count => x_msg_count,
231: p_data => x_msg_data
232: );
233:
233:
234: WHEN OTHERS THEN
235: ROLLBACK TO create_arch_msgdtls_PVT;
236: x_return_status := FND_API.G_RET_STS_ERROR;
237: IF FND_MSG_PUB.Check_Msg_Level
238: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
239: THEN
240: FND_MSG_PUB.Add_Exc_Msg
241: ( G_PKG_NAME ,
234: WHEN OTHERS THEN
235: ROLLBACK TO create_arch_msgdtls_PVT;
236: x_return_status := FND_API.G_RET_STS_ERROR;
237: IF FND_MSG_PUB.Check_Msg_Level
238: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
239: THEN
240: FND_MSG_PUB.Add_Exc_Msg
241: ( G_PKG_NAME ,
242: l_api_name
236: x_return_status := FND_API.G_RET_STS_ERROR;
237: IF FND_MSG_PUB.Check_Msg_Level
238: (FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
239: THEN
240: FND_MSG_PUB.Add_Exc_Msg
241: ( G_PKG_NAME ,
242: l_api_name
243: );
244: END IF;
242: l_api_name
243: );
244: END IF;
245:
246: FND_MSG_PUB.Count_And_Get
247: ( p_count => x_msg_count,
248: p_data => x_msg_data
249:
250: );