70: | IN
71: | p_api_version
72: | Current version of this API.
73: | p_init_msg_list
74: | Flag indicating if FND_MSG_PUB should be initialized or not.
75: | p_commit
76: | Flag indicating if this API should commit after completion.
77: | p_object_type_code
78: | The Object Type Code of the calling program.
105: | Possible return status.
106: | x_msg_count
107: | Count of messages returned. If x_msg_count = 1, then the message
108: | is returned in x_msg_data. If x_msg_count > 1, then messages are
109: | returned via FND_MSG_PUB.
110: | x_msg_data
111: | Error message returned.
112: |
113: |
164: ) then
165: raise FND_API.G_EXC_UNEXPECTED_ERROR;
166: end if;
167:
168: -- Initialize Message Stack on FND_MSG_PUB
169: if (FND_API.To_Boolean(p_init_msg_list)) then
170: FND_MSG_PUB.Initialize;
171: end if;
172:
166: end if;
167:
168: -- Initialize Message Stack on FND_MSG_PUB
169: if (FND_API.To_Boolean(p_init_msg_list)) then
170: FND_MSG_PUB.Initialize;
171: end if;
172:
173: FEM_ENGINES_PKG.Tech_Message (
174: p_severity => G_LOG_LEVEL_2
275: commit work;
276: end if;
277:
278: -- Standard call to get message count and if count is 1, get message info
279: FND_MSG_PUB.Count_And_Get (
280: p_count => x_msg_count
281: ,p_data => x_msg_data
282: );
283:
292: when FND_API.G_EXC_ERROR then
293:
294: rollback to Populate_Cost_Object_Id_PVT;
295: x_return_status := FND_API.G_RET_STS_ERROR;
296: FND_MSG_PUB.Count_And_Get (
297: p_count => x_msg_count
298: ,p_data => x_msg_data
299: );
300:
301: when FND_API.G_EXC_UNEXPECTED_ERROR then
302:
303: rollback to Populate_Cost_Object_Id_PVT;
304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
305: FND_MSG_PUB.Count_And_Get (
306: p_count => x_msg_count
307: ,p_data => x_msg_data
308: );
309:
310: when others then
311:
312: rollback to Populate_Cost_Object_Id_PVT;
313: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
314: if FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) then
315: FND_MSG_PUB.Add_Exc_Msg (
316: p_pkg_name => G_PKG_NAME
317: ,p_procedure_name => l_api_name
318: );
311:
312: rollback to Populate_Cost_Object_Id_PVT;
313: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
314: if FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) then
315: FND_MSG_PUB.Add_Exc_Msg (
316: p_pkg_name => G_PKG_NAME
317: ,p_procedure_name => l_api_name
318: );
319: end if;
316: p_pkg_name => G_PKG_NAME
317: ,p_procedure_name => l_api_name
318: );
319: end if;
320: FND_MSG_PUB.Count_And_Get (
321: p_count => x_msg_count
322: ,p_data => x_msg_data
323: );
324:
340: | IN
341: | p_api_version
342: | Current version of this API.
343: | p_init_msg_list
344: | Flag indicating if FND_MSG_PUB should be initialized or not.
345: | p_commit
346: | Flag indicating if this API should commit after completion.
347: | p_object_type_code
348: | The Object Type Code of the calling program.
380: | Possible return status.
381: | x_msg_count
382: | Count of messages returned. If x_msg_count = 1, then the message
383: | is returned in x_msg_data. If x_msg_count > 1, then messages are
384: | returned via FND_MSG_PUB.
385: | x_msg_data
386: | Error message returned.
387: |
388: |
449: ) then
450: raise FND_API.G_EXC_UNEXPECTED_ERROR;
451: end if;
452:
453: -- Initialize Message Stack on FND_MSG_PUB
454: if (FND_API.To_Boolean(p_init_msg_list)) then
455: FND_MSG_PUB.Initialize;
456: end if;
457:
451: end if;
452:
453: -- Initialize Message Stack on FND_MSG_PUB
454: if (FND_API.To_Boolean(p_init_msg_list)) then
455: FND_MSG_PUB.Initialize;
456: end if;
457:
458: FEM_ENGINES_PKG.Tech_Message (
459: p_severity => G_LOG_LEVEL_2
584: commit work;
585: end if;
586:
587: -- Standard call to get message count and if count is 1, get message info
588: FND_MSG_PUB.Count_And_Get (
589: p_count => x_msg_count
590: ,p_data => x_msg_data
591: );
592:
601: when FND_API.G_EXC_ERROR then
602:
603: rollback to Populate_Activity_Id_PVT;
604: x_return_status := FND_API.G_RET_STS_ERROR;
605: FND_MSG_PUB.Count_And_Get (
606: p_count => x_msg_count
607: ,p_data => x_msg_data
608: );
609:
610: when FND_API.G_EXC_UNEXPECTED_ERROR then
611:
612: rollback to Populate_Activity_Id_PVT;
613: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
614: FND_MSG_PUB.Count_And_Get (
615: p_count => x_msg_count
616: ,p_data => x_msg_data
617: );
618:
619: when others then
620:
621: rollback to Populate_Activity_Id_PVT;
622: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
623: if FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) then
624: FND_MSG_PUB.Add_Exc_Msg (
625: p_pkg_name => G_PKG_NAME
626: ,p_procedure_name => l_api_name
627: );
620:
621: rollback to Populate_Activity_Id_PVT;
622: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
623: if FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR) then
624: FND_MSG_PUB.Add_Exc_Msg (
625: p_pkg_name => G_PKG_NAME
626: ,p_procedure_name => l_api_name
627: );
628: end if;
625: p_pkg_name => G_PKG_NAME
626: ,p_procedure_name => l_api_name
627: );
628: end if;
629: FND_MSG_PUB.Count_And_Get (
630: p_count => x_msg_count
631: ,p_data => x_msg_data
632: );
633: