65: END IF;
66:
67: -- Initialize message list if p_init_msg_list is set to TRUE
68: IF FND_API.To_Boolean(p_init_msg_list) THEN
69: FND_MSG_PUB.initialize;
70: END IF;
71:
72: -- Implementation of User Hooks
73: /* Copy all parameters to local variables to be passed to Pre, Post and Business APIs */
164: IF FND_API.To_Boolean(p_commit) THEN
165: COMMIT WORK;
166: END IF;
167: -- Standard call to get message count and if count is 1, get message info
168: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count,
169: p_data => x_msg_data,
170: p_encoded => FND_API.G_FALSE);
171: EXCEPTION
172: WHEN FND_API.G_EXC_ERROR THEN
171: EXCEPTION
172: WHEN FND_API.G_EXC_ERROR THEN
173: ROLLBACK TO Get_Invoice_Lines_PVT;
174: x_return_status := FND_API.G_RET_STS_ERROR;
175: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count, p_data => x_msg_data);
176:
177: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
178: ROLLBACK TO Get_Invoice_Lines_PVT;
179: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
176:
177: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
178: ROLLBACK TO Get_Invoice_Lines_PVT;
179: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
180: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count, p_data => x_msg_data);
181:
182: WHEN OTHERS THEN
183: ROLLBACK TO Get_Invoice_Lines_PVT;
184: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
181:
182: WHEN OTHERS THEN
183: ROLLBACK TO Get_Invoice_Lines_PVT;
184: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
185: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
186: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
187: END IF;
188: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count, p_data => x_msg_data);
189: END Get_Invoice_Lines;
182: WHEN OTHERS THEN
183: ROLLBACK TO Get_Invoice_Lines_PVT;
184: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
185: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
186: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
187: END IF;
188: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count, p_data => x_msg_data);
189: END Get_Invoice_Lines;
190: END ast_Invoice_Lines_PVT;
184: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
185: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) THEN
186: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
187: END IF;
188: FND_MSG_PUB.Count_And_Get(p_count => x_msg_count, p_data => x_msg_data);
189: END Get_Invoice_Lines;
190: END ast_Invoice_Lines_PVT;