DBA Data[Home] [Help]

APPS.EAM_MATERIAL_REQUEST_PVT dependencies on FND_MSG_PUB

Line 59: FND_MSG_PUB.initialize;

55: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
56: END IF;
57: -- Initialize message list if p_init_msg_list is set to TRUE.
58: IF FND_API.to_Boolean( p_init_msg_list ) THEN
59: FND_MSG_PUB.initialize;
60: END IF;
61: -- Initialize API return status to success
62: x_return_status := FND_API.G_RET_STS_SUCCESS;
63:

Line 78: fnd_msg_pub.add;

74: if (p_requested_quantity < 0) then
75: x_return_status := FND_API.G_RET_STS_ERROR;
76: fnd_message.set_name('EAM','EAM_MR_NEGATIVE_REQ_QTY');
77: fnd_message.set_token('REQUESTED', to_char(p_requested_quantity) );
78: fnd_msg_pub.add;
79: FND_MSG_PUB.Count_And_Get(
80: p_count => x_msg_count,
81: p_data => x_msg_data);
82: return;

Line 79: FND_MSG_PUB.Count_And_Get(

75: x_return_status := FND_API.G_RET_STS_ERROR;
76: fnd_message.set_name('EAM','EAM_MR_NEGATIVE_REQ_QTY');
77: fnd_message.set_token('REQUESTED', to_char(p_requested_quantity) );
78: fnd_msg_pub.add;
79: FND_MSG_PUB.Count_And_Get(
80: p_count => x_msg_count,
81: p_data => x_msg_data);
82: return;
83: end if;

Line 153: FND_MSG_PUB.Count_And_Get(

149: end if;
150: x_return_status := l_return_status;
151: if (l_msg_data is not null) then
152: --needed since WIP does not put messages on stack while INV does.
153: FND_MSG_PUB.Count_And_Get(
154: p_count => x_msg_count,
155: p_data => x_msg_data);
156: if (x_msg_count = 0 ) then --means not on stack, add it.
157: fnd_message.set_name('EAM','EAM_GENERIC_ERROR');

Line 159: fnd_msg_pub.add;

155: p_data => x_msg_data);
156: if (x_msg_count = 0 ) then --means not on stack, add it.
157: fnd_message.set_name('EAM','EAM_GENERIC_ERROR');
158: fnd_message.set_token('EAM_ERROR', l_msg_data );
159: fnd_msg_pub.add;
160: end if;
161: end if;
162:
163: if (l_return_status = 'P') then

Line 171: fnd_msg_pub.add;

167: where request_number = x_request_number
168: and organization_id = p_organization_id);
169: if (l_partial_qty = 0) then
170: fnd_message.set_name('EAM','EAM_MR_NO_MATERIAL_AVAILABLE');
171: fnd_msg_pub.add;
172: else
173: fnd_message.set_name('EAM','EAM_MR_PARTIAL_ALLOCATION');
174: fnd_message.set_token('PARTIAL', to_char(l_partial_qty) );
175: fnd_message.set_token('REQUESTED', to_char(p_requested_quantity));

Line 176: fnd_msg_pub.add;

172: else
173: fnd_message.set_name('EAM','EAM_MR_PARTIAL_ALLOCATION');
174: fnd_message.set_token('PARTIAL', to_char(l_partial_qty) );
175: fnd_message.set_token('REQUESTED', to_char(p_requested_quantity));
176: fnd_msg_pub.add;
177: end if;
178: end if;
179:
180: if (x_return_status = FND_API.G_RET_STS_ERROR) then

Line 183: fnd_msg_pub.add;

179:
180: if (x_return_status = FND_API.G_RET_STS_ERROR) then
181: if l_msg_data is null then --should not happen, just a safeguard
182: fnd_message.set_name('EAM','EAM_MR_ALLOCATION_FAILED');
183: fnd_msg_pub.add;
184: end if;
185: RAISE FND_API.G_EXC_ERROR;
186: end if;
187: -- End of API body.

Line 195: FND_MSG_PUB.Count_And_Get(

191: COMMIT WORK;
192: END IF;
193:
194: -- Standard call to get message count and if count is 1, get message info.
195: FND_MSG_PUB.Count_And_Get(
196: p_count => x_msg_count,
197: p_data => x_msg_data);
198: if (l_pLog) then FND_LOG.STRING(FND_LOG.LEVEL_PROCEDURE, l_module,
199: 'End of ' || l_full_name );

Line 209: FND_MSG_PUB.Count_And_Get(

205: FND_LOG.STRING(FND_LOG.LEVEL_EXCEPTION, l_module,
206: 'Exception Block 1 - Expected Error' );
207: END IF;
208: x_return_status := FND_API.G_RET_STS_ERROR ;
209: FND_MSG_PUB.Count_And_Get(
210: p_count => x_msg_count,
211: p_data => x_msg_data);
212: WHEN FND_API.G_EXC_UNEXPECTED_ERROR THEN
213: ROLLBACK TO ALLOCATE_EAM;

Line 219: FND_MSG_PUB.Count_And_Get(

215: FND_LOG.STRING(FND_LOG.LEVEL_UNEXPECTED, l_module,
216: 'Exception Block 2 - Unexpected error' );
217: END IF ;
218: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
219: FND_MSG_PUB.Count_And_Get(
220: p_count => x_msg_count,
221: p_data => x_msg_data);
222: WHEN OTHERS THEN
223: ROLLBACK TO ALLOCATE_EAM;

Line 229: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)

225: FND_LOG.STRING(FND_LOG.LEVEL_UNEXPECTED, l_module,
226: 'Exception Block 3 - Others' );
227: END IF ;
228: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
229: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
230: THEN
231: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
232: END IF;
233: FND_MSG_PUB.Count_And_Get(

Line 231: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);

227: END IF ;
228: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR ;
229: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
230: THEN
231: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
232: END IF;
233: FND_MSG_PUB.Count_And_Get(
234: p_count => x_msg_count,
235: p_data => x_msg_data);

Line 233: FND_MSG_PUB.Count_And_Get(

229: IF FND_MSG_PUB.Check_Msg_Level(FND_MSG_PUB.G_MSG_LVL_UNEXP_ERROR)
230: THEN
231: FND_MSG_PUB.Add_Exc_Msg(G_PKG_NAME, l_api_name);
232: END IF;
233: FND_MSG_PUB.Count_And_Get(
234: p_count => x_msg_count,
235: p_data => x_msg_data);
236: END allocate;
237:

Line 563: fnd_file.put_line(which => fnd_file.output, buff => fnd_msg_pub.get(p_msg_index => l_msgCount - i + 1, p_encoded => fnd_api.g_false));

559: fnd_file.put_line(which => fnd_file.output, buff => '');
560: fnd_message.set_name('WIP', 'ERROR_DIALOG_TITLE');
561: fnd_file.put_line(which => fnd_file.output, buff => fnd_message.get);
562: for i in 1..l_msgCount loop
563: fnd_file.put_line(which => fnd_file.output, buff => fnd_msg_pub.get(p_msg_index => l_msgCount - i + 1, p_encoded => fnd_api.g_false));
564: end loop;
565: rollback to eam_allocate_concurrent;
566: end allocate_comp_mat;
567: