79: END IF;
80:
81: -- Debug Message
82: IF (AMW_DEBUG_HIGH_ON) THEN
83: AMW_UTILITY_PVT.debug_message('Private API: ' || l_api_name || 'start');
84: END IF;
85:
86:
87: -- Initialize API return status to SUCCESS
94: -- =========================================================================
95:
96: IF FND_GLOBAL.User_Id IS NULL
97: THEN
98: AMW_Utility_PVT.Error_Message(p_message_name => 'USER_PROFILE_MISSING');
99: RAISE FND_API.G_EXC_ERROR;
100: END IF;
101:
102: -- Debug Message
100: END IF;
101:
102: -- Debug Message
103: IF (AMW_DEBUG_HIGH_ON) THEN
104: AMW_UTILITY_PVT.debug_message( 'Private API: Calling table handler fnd_documents_pkg.insert_row');
105: END IF;
106:
107: l_media_id := p_Fnd_Attachment_rec.media_id;
108:
250:
251:
252: -- Debug Message
253: IF (AMW_DEBUG_HIGH_ON) THEN
254: AMW_UTILITY_PVT.debug_message('Private API: ' || l_api_name || 'end');
255: END IF;
256:
257: -- Standard call to get message count and if count is 1, get message info.
258: FND_MSG_PUB.Count_And_Get
262:
263:
264: EXCEPTION
265:
266: WHEN AMW_Utility_PVT.resource_locked THEN
267: x_return_status := FND_API.g_ret_sts_error;
268: AMW_Utility_PVT.Error_Message(p_message_name => 'AMW_API_RESOURCE_LOCKED');
269:
270: WHEN FND_API.G_EXC_ERROR THEN
264: EXCEPTION
265:
266: WHEN AMW_Utility_PVT.resource_locked THEN
267: x_return_status := FND_API.g_ret_sts_error;
268: AMW_Utility_PVT.Error_Message(p_message_name => 'AMW_API_RESOURCE_LOCKED');
269:
270: WHEN FND_API.G_EXC_ERROR THEN
271: ROLLBACK TO CREATE_Fnd_Attachment_PVT;
272: x_return_status := FND_API.G_RET_STS_ERROR;