DBA Data[Home] [Help]

APPS.EAM_METER_READINGS_JSP dependencies on EAM_EXECUTION_JSP

Line 176: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_RESET_FIELDS'

172: if(nvl(p_reset_flag, 'N') = 'Y') then
173: -- reset
174: if( p_reading is null or p_reading_change is not null) then
175: -- reset only need reading field
176: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_RESET_FIELDS'
177: ,p_token1 => 'METER_NAME', p_value1 => p_meter_name);
178: l_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
179: -- can reset to anything
180: /* elsif( (nvl(p_meter_direction, 0) < 1 or nvl(p_meter_direction, 0) > 2) ) then

Line 185: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WRR_RESET_WHY');

181: -- or
182: -- (nvl(p_meter_direction, 0) = 1 and p_reading > nvl(p_before_reading, 0)) or
183: -- (nvl(p_meter_direction, 0) = 2 and p_reading < nvl(p_before_reading, 0)) ) then
184: -- why bother?
185: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WRR_RESET_WHY');
186: l_return_status := FND_API.G_RET_STS_UNEXP_ERROR; */
187: else
188: -- done!
189: l_current_reading := p_reading;

Line 204: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATA_CONFLICT'

200: end if;
201: -- if both not null , and not reset , check for confliction
202: if(p_reading is not null and p_reading_change is not null and
203: p_reading - nvl(p_before_reading, 0) <> p_reading_change) then
204: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATA_CONFLICT'
205: ,p_token1 => 'METER_NAME', p_value1 => p_meter_name);
206: l_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
207: end if;
208:

Line 243: eam_execution_jsp.add_message(

239: end if;
240: --baroy
241: --If the warning has already been shown, then don't show again
242: if(p_mtr_warning_shown <> 'Y') then
243: eam_execution_jsp.add_message(
244: p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_READING_RANGE'
245: ,p_token1 => 'FROM', p_value1 => l_range_from
246: ,p_token2 => 'TO', p_value2 => l_range_to
247: ,p_token3 => 'METER_NAME', p_value3 => p_meter_name

Line 265: eam_execution_jsp.add_message(

261: l_range_tmp := l_range_from;
262: l_range_from := l_range_to;
263: l_range_to := l_range_tmp;
264: end if;
265: eam_execution_jsp.add_message(
266: p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_CHANGE_RANGE'
267: ,p_token1 => 'FROM', p_value1 => l_range_from
268: ,p_token2 => 'TO', p_value2 => l_range_to
269: ,p_token3 => 'METER_NAME', p_value3 => p_meter_name

Line 302: eam_debug.init_err_stack('eam_execution_jsp.add_meter_reading');

298: l_asset_number VARCHAR2(250);
299: l_asset_group_id NUMBER;
300:
301: BEGIN
302: eam_debug.init_err_stack('eam_execution_jsp.add_meter_reading');
303:
304: -- not standalone? (can standalone have a wip_entity_id??)
305: if (p_wip_entity_id is not null) then
306: -- get the info for validation, probablly not useful

Line 313: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_NOT_FOUND');

309: from wip_discrete_jobs
310: where wip_entity_id = p_wip_entity_id;
311:
312: if( SQL%NOTFOUND) then -- wip_entity_id not found, should not happen.
313: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_NOT_FOUND');
314: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
315: elsif (l_org_id is null or l_asset_number is null or l_asset_group_id is null) then
316: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_DATA_NULL');
317: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 316: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_DATA_NULL');

312: if( SQL%NOTFOUND) then -- wip_entity_id not found, should not happen.
313: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_NOT_FOUND');
314: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
315: elsif (l_org_id is null or l_asset_number is null or l_asset_group_id is null) then
316: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_DATA_NULL');
317: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
318: elsif ( nvl(p_org_id, l_org_id) <> l_org_id or
319: nvl(p_asset_number, l_asset_number)<> l_asset_number or
320: nvl(p_asset_group_id, l_asset_group_id) <> l_asset_group_id ) then

Line 321: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_DATA_NULL');

317: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
318: elsif ( nvl(p_org_id, l_org_id) <> l_org_id or
319: nvl(p_asset_number, l_asset_number)<> l_asset_number or
320: nvl(p_asset_group_id, l_asset_group_id) <> l_asset_group_id ) then
321: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_DATA_NULL');
322: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
323: end if;
324: null;
325: elsif (p_org_id is null or p_asset_number is null or p_asset_group_id is null) then

Line 326: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_MRR_DATA_MISS');

322: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
323: end if;
324: null;
325: elsif (p_org_id is null or p_asset_number is null or p_asset_group_id is null) then
326: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_WO_MRR_DATA_MISS');
327: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
328: end if;
329:
330: EXCEPTION WHEN OTHERS THEN

Line 331: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.CHECK_ASSET_METER_ASSOCIATION',

327: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
328: end if;
329:
330: EXCEPTION WHEN OTHERS THEN
331: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.CHECK_ASSET_METER_ASSOCIATION',
332: p_procedure_name => EAM_DEBUG.G_err_stack);
333: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
334: END check_asset_meter_association;
335:

Line 463: eam_debug.init_err_stack('eam_execution_jsp.add_meter_reading');

459: IF p_commit = FND_API.G_TRUE THEN
460: SAVEPOINT add_meter_reaing;
461: END IF;
462:
463: eam_debug.init_err_stack('eam_execution_jsp.add_meter_reading');
464:
465: IF NOT FND_API.COMPATIBLE_API_CALL(l_api_version,
466: p_api_version,
467: l_api_name,

Line 490: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_NOT_FOUND'

486: from eam_meters
487: where meter_id = p_meter_id;
488:
489: EXCEPTION WHEN OTHERS THEN
490: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_NOT_FOUND'
491: ,p_token1 => 'METER_ID', p_value1 => l_meter_name);
492: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
493: END;
494:

Line 497: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_FIELD_REQUIRED'

493: END;
494:
495: -- value check
496: if(p_reading is null and p_reading_change is null) then
497: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_FIELD_REQUIRED'
498: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
499: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
500: end if;
501:

Line 506: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_NULL'

502: IF(x_return_status = FND_API.G_RET_STS_SUCCESS) THEN
503:
504: if (p_reading_date is null) then
505: -- no reading date
506: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_NULL'
507: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
508: x_return_status := FND_API.G_RET_STS_ERROR;
509: elsif (p_reading_date > sysdate) then
510: -- futhure reading

Line 511: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_BEYOND'

507: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
508: x_return_status := FND_API.G_RET_STS_ERROR;
509: elsif (p_reading_date > sysdate) then
510: -- futhure reading
511: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_BEYOND'
512: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
513: x_return_status := FND_API.G_RET_STS_ERROR;
514: elsif ( p_reading_date < nvl(l_effective_date_from, p_reading_date -1)
515: or p_reading_date > nvl(l_effective_date_to, sysdate) ) then

Line 517: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_EXPIRED'

513: x_return_status := FND_API.G_RET_STS_ERROR;
514: elsif ( p_reading_date < nvl(l_effective_date_from, p_reading_date -1)
515: or p_reading_date > nvl(l_effective_date_to, sysdate) ) then
516: -- not in the meter's effective date range
517: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_EXPIRED'
518: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
519: x_return_status := FND_API.G_RET_STS_ERROR;
520: else -- check reading
521:

Line 542: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_EXIST'

538: x_ltd_reading => l_after_ltd_reading);
539:
540: if( l_before_reading_date = p_reading_date ) then
541: -- reading at this time already exists
542: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_DATE_EXIST'
543: ,p_token1 => 'METER_NAME', p_value1 => l_meter_name);
544: x_return_status := FND_API.G_RET_STS_ERROR;
545: else
546: eam_meter_readings_jsp.get_current_reading_data(

Line 567: eam_execution_jsp.Get_Messages

563:
564: -- if validate not passed then raise error
565: l_msg_count := FND_MSG_PUB.count_msg;
566: IF l_msg_count = 1 THEN
567: eam_execution_jsp.Get_Messages
568: (p_encoded => FND_API.G_FALSE,
569: p_msg_index => 1,
570: p_msg_count => l_msg_count,
571: p_msg_data => nvl(l_msg_data,FND_API.g_MISS_CHAR),

Line 608: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',

604: IF p_commit = FND_API.G_TRUE THEN
605: ROLLBACK TO add_meter_reading;
606: END IF;
607:
608: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',
609: p_procedure_name => EAM_DEBUG.G_err_stack);
610: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
611: WHEN FND_API.G_EXC_ERROR THEN
612: IF p_commit = FND_API.G_TRUE THEN

Line 616: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',

612: IF p_commit = FND_API.G_TRUE THEN
613: ROLLBACK TO add_meter_reading;
614: END IF;
615:
616: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',
617: p_procedure_name => EAM_DEBUG.G_err_stack);
618: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
619: WHEN OTHERS THEN
620: IF p_commit = FND_API.G_TRUE THEN

Line 624: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',

620: IF p_commit = FND_API.G_TRUE THEN
621: ROLLBACK TO add_meter_reading;
622: END IF;
623:
624: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',
625: p_procedure_name => EAM_DEBUG.G_err_stack);
626:
627: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_EXCEPTION'
628: ,p_token1 => 'MESSAGE', p_value1 => SQLERRM);

Line 627: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_EXCEPTION'

623:
624: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'EAM_EXECUTION_JSP.ADD_METER_READING',
625: p_procedure_name => EAM_DEBUG.G_err_stack);
626:
627: eam_execution_jsp.add_message(p_app_short_name => 'EAM', p_msg_name => 'EAM_MRR_EXCEPTION'
628: ,p_token1 => 'MESSAGE', p_value1 => SQLERRM);
629: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
630:
631: END add_meter_reading;