144:
145: else
146: FND_MESSAGE.Set_Name('LNS', 'LNS_INVALID_INTERVAL');
147: FND_MESSAGE.SET_TOKEN('INTERVAL',p_interval_type);
148: FND_MSG_PUB.Add;
149: RAISE FND_API.G_EXC_ERROR;
150: end if;
151:
152: l_multiplier := l_multiplier * p_direction;
223: logMessage(FND_LOG.LEVEL_STATEMENT, G_PKG_NAME, l_api_name || ': p_day_count_method: ' || p_day_count_method);
224:
225: if p_end_date < p_start_date then
226: FND_MESSAGE.Set_Name('LNS', 'LNS_PERIOD_INVALID');
227: FND_MSG_PUB.Add;
228: RAISE FND_API.G_EXC_ERROR;
229: end if;
230:
231: if p_end_date is null then
229: end if;
230:
231: if p_end_date is null then
232: FND_MESSAGE.Set_Name('LNS', 'LNS_NO_END_DATE');
233: FND_MSG_PUB.Add;
234: RAISE FND_API.G_EXC_ERROR;
235: end if;
236:
237: if p_start_date is null then
235: end if;
236:
237: if p_start_date is null then
238: FND_MESSAGE.Set_Name('LNS', 'LNS_NO_START_DATE');
239: FND_MSG_PUB.Add;
240: RAISE FND_API.G_EXC_ERROR;
241: end if;
242:
243: if p_day_count_method is null then
241: end if;
242:
243: if p_day_count_method is null then
244: FND_MESSAGE.Set_Name('LNS', 'LNS_NO_COUNT_METHOD');
245: FND_MSG_PUB.Add;
246: RAISE FND_API.G_EXC_ERROR;
247: end if;
248:
249: l_day1 := to_number(to_char(p_start_date, 'DD'));
397: end if;
398:
399: else
400: FND_MESSAGE.Set_Name('LNS', 'LNS_NO_YEAR');
401: FND_MSG_PUB.Add;
402: RAISE FND_API.G_EXC_ERROR;
403: end if;
404:
405: logMessage(FND_LOG.LEVEL_STATEMENT, G_PKG_NAME, l_api_name || ': days in year is: ' || l_days_in_year);
445: else l_return := false;
446: end if;
447: else
448: FND_MESSAGE.Set_Name('LNS', 'LNS_NO_YEAR');
449: FND_MSG_PUB.Add;
450: RAISE FND_API.G_EXC_ERROR;
451: end if;
452: return l_return;
453:
917: if l_term is null or l_term_period is null or l_frequency is null
918: or p_start_date is null then
919: logMessage(FND_LOG.LEVEL_PROCEDURE, G_PKG_NAME, l_api_name || ' - CANNOT COMPUTE MATURITY DATE');
920: FND_MESSAGE.Set_Name('LNS', 'LNS_MATURITY_DATE_INVALID');
921: FND_MSG_PUB.Add;
922: RAISE FND_API.G_EXC_ERROR;
923: end if;
924:
925: -- Bug#6634845
1789:
1790: exception
1791: when others then
1792: FND_MESSAGE.Set_Name('LNS', 'LNS_CANNOT_DETERMINE_RATE');
1793: FND_MSG_PUB.Add;
1794: logMessage(FND_LOG.LEVEL_PROCEDURE, G_PKG_NAME, 'LNS_CANNOT_DETERMINE_RATE - END');
1795: --RAISE FND_API.G_EXC_ERROR;
1796: end;
1797: return l_active_rate;
1841: return l_rate;
1842:
1843: --exception when no_data_found then
1844: -- FND_MESSAGE.SET_NAME('LNS', 'LNS_RATES_ERROR');
1845: -- FND_MSG_PUB.ADD;
1846: end;
1847:
1848:
1849: END LNS_FIN_UTILS;