DBA Data[Home] [Help]

APPS.FA_PROCESS_IMPAIRMENT_PKG dependencies on FA_SRVR_MSG

Line 221: fa_srvr_msg.Init_Server_Message; -- Initialize server message stack

217: raise imp_err;
218: end if;
219: end if;
220:
221: fa_srvr_msg.Init_Server_Message; -- Initialize server message stack
222: fa_debug_pkg.Initialize; -- Initialize debug message stack
223:
224: if (g_log_level_rec.statement_level) then
225: fa_debug_pkg.add(l_calling_fn, 'process_impairment', 'BEGIN', p_log_level_rec => g_log_level_rec);

Line 364: fa_srvr_msg.add_message(

360: if (g_log_level_rec.statement_level) then
361: fa_debug_pkg.Write_Debug_Log;
362: end if;
363:
364: fa_srvr_msg.add_message(
365: calling_fn => l_calling_fn,
366: name => 'FA_SHARED_END_SUCCESS',
367: token1 => 'PROGRAM',
368: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);

Line 370: fa_srvr_msg.Write_Msg_Log(1, null, p_log_level_rec => g_log_level_rec);

366: name => 'FA_SHARED_END_SUCCESS',
367: token1 => 'PROGRAM',
368: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);
369:
370: fa_srvr_msg.Write_Msg_Log(1, null, p_log_level_rec => g_log_level_rec);
371:
372: -- Program needs to finish successfully even though there was nothing to do
373: -- return success to concurrent manager
374: retcode := 0;

Line 406: fa_srvr_msg.add_message(

402: fa_debug_pkg.add(l_calling_fn,'IAC is enabled..','Checking book is IAC enabled or not.', p_log_level_rec => g_log_level_rec);
403: end if;
404: /*Bug# 8887223 - to check if book is IAC enabled. */
405: if IGI_IAC_COMMON_UTILS.is_iac_book(p_book_type_code) then
406: fa_srvr_msg.add_message(
407: calling_fn => l_calling_fn,
408: name => 'FA_IMPAIR_IAC_ENABLED',
409: p_log_level_rec => g_log_level_rec);
410: if (g_log_level_rec.statement_level) then

Line 987: fa_srvr_msg.add_message(

983: --Bug# 7000391 start
984: l_ret_code:=0;
985: for i in 1..l_asset_id.count LOOP
986: if l_nbv_value(i) = 0 then
987: fa_srvr_msg.add_message(
988: calling_fn => null,
989: name => 'FA_IMPAIR_UPLOAD_WARN',
990: token1 => 'FA_ASSET_ID',
991: value1 => '' || l_asset_id(i),

Line 997: fa_srvr_msg.add_message(

993:
994: l_ret_code:=1;
995: -- Bug# 7045739 start - when multiple rows are uploaded for an asset in same request.
996: elsif l_nbv_value(i) = -1 then
997: fa_srvr_msg.add_message(
998: calling_fn => null,
999: name => 'FA_IMPAIR_MULTI_ASSET_UPLOAD',
1000: token1 => 'FA_ASSET_ID',
1001: value1 => '' || l_asset_id(i),

Line 1008: fa_srvr_msg.add_message(

1004: l_ret_code:=1;
1005: -- Bug# 7045739 end
1006: --Bug#7594562 - When an impairment is already posted in current period for an asset.
1007: elsif l_nbv_value(i) = -2 then
1008: fa_srvr_msg.add_message(
1009: calling_fn => null,
1010: name => 'FA_IMPAIR_ROLLBACK_ASSET',
1011: token1 => 'FA_ASSET_ID',
1012: value1 => '' || l_asset_id(i),

Line 1019: fa_srvr_msg.add_message(

1015: l_ret_code:=1;
1016: --Bug#7594562 end
1017: /*Bug#8555199 - Negative impairment loss amount is not allowed*/
1018: elsif l_nbv_value(i) = -3 then
1019: fa_srvr_msg.add_message(
1020: calling_fn => null,
1021: name => 'FA_NEG_IMPAIR_LOSS_AMOUNT',
1022: token1 => 'FA_ASSET_ID',
1023: value1 => '' || l_asset_id(i),

Line 1029: fa_srvr_msg.add_message(

1025:
1026: l_ret_code:=1;
1027: --Bug#8614268 - Impairment Accounts not defined.
1028: elsif l_nbv_value(i) = -4 then
1029: fa_srvr_msg.add_message(
1030: calling_fn => null,
1031: name => 'FA_IMPAIR_ACCTS_NOT_DEFINED',
1032: token1 => 'FA_ASSET_ID',
1033: value1 => '' || l_asset_id(i),

Line 1042: fa_srvr_msg.add_message(

1038: end if;
1039: end loop;
1040:
1041: if l_ret_code = 1 then --Bug# 7000391 added if condition
1042: fa_srvr_msg.add_message(
1043: calling_fn => null,
1044: name => 'FA_SHARED_END_WITH_WARNING',
1045: token1 => 'PROGRAM',
1046: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);

Line 1051: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);

1047: FND_MSG_PUB.Count_And_Get(
1048: p_count => l_msg_count,
1049: p_data => l_msg_data);
1050:
1051: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);
1052: --return warning to concurrent manager
1053: retcode := 1;
1054: else --Bug# 7000391 end
1055: fa_srvr_msg.add_message(

Line 1055: fa_srvr_msg.add_message(

1051: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);
1052: --return warning to concurrent manager
1053: retcode := 1;
1054: else --Bug# 7000391 end
1055: fa_srvr_msg.add_message(
1056: calling_fn => l_calling_fn,
1057: name => 'FA_SHARED_END_SUCCESS',
1058: token1 => 'PROGRAM',
1059: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);

Line 1065: fa_srvr_msg.Write_Msg_Log(1, null, p_log_level_rec => g_log_level_rec);

1061: -- FND_MSG_PUB.Count_And_Get(
1062: -- p_count => l_msg_count,
1063: -- p_data => l_msg_data);
1064:
1065: fa_srvr_msg.Write_Msg_Log(1, null, p_log_level_rec => g_log_level_rec);
1066:
1067: -- return success to concurrent manager
1068: retcode := 0;
1069: END IF; --Bug# 7000391

Line 1088: fa_srvr_msg.add_message(

1084: end if;
1085:
1086: end if;
1087: end if;
1088: fa_srvr_msg.add_message(
1089: calling_fn => 'fa_process_impairment_pkg.do_process_impairment',
1090: name => 'FA_SHARED_END_WITH_ERROR',
1091: token1 => 'PROGRAM',
1092: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);

Line 1100: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);

1096: end if;
1097: FND_MSG_PUB.Count_And_Get(
1098: p_count => l_msg_count,
1099: p_data => l_msg_data);
1100: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);
1101: -- return failure to concurrent manager
1102: retcode := 2;
1103:
1104: WHEN OTHERS THEN

Line 1122: fa_srvr_msg.add_sql_error (

1118:
1119: end if;
1120: end if;
1121:
1122: fa_srvr_msg.add_sql_error (
1123: calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1124: fa_srvr_msg.add_message(
1125: calling_fn => l_calling_fn,
1126: name => 'FA_SHARED_END_WITH_ERROR',

Line 1124: fa_srvr_msg.add_message(

1120: end if;
1121:
1122: fa_srvr_msg.add_sql_error (
1123: calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1124: fa_srvr_msg.add_message(
1125: calling_fn => l_calling_fn,
1126: name => 'FA_SHARED_END_WITH_ERROR',
1127: token1 => 'PROGRAM',
1128: value1 => 'FAPIMP', p_log_level_rec => g_log_level_rec);

Line 1136: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);

1132: end if;
1133: FND_MSG_PUB.Count_And_Get(
1134: p_count => l_msg_count,
1135: p_data => l_msg_data);
1136: fa_srvr_msg.Write_Msg_Log(l_msg_count, l_msg_data, p_log_level_rec => g_log_level_rec);
1137: -- return failure to concurrent manager
1138: retcode := 2;
1139: if (g_log_level_rec.statement_level) then
1140: fa_debug_pkg.add(l_calling_fn,'EXCEPTION(OTHERS)', sqlerrm);

Line 1773: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

1769: WHEN agn_err THEN
1770: if (g_log_level_rec.statement_level) then
1771: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'agn_err', p_log_level_rec => g_log_level_rec);
1772: end if;
1773: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1774: return FALSE;
1775:
1776: WHEN OTHERS THEN
1777: if (g_log_level_rec.statement_level) then

Line 1780: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

1776: WHEN OTHERS THEN
1777: if (g_log_level_rec.statement_level) then
1778: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'OTHERS', p_log_level_rec => g_log_level_rec);
1779: end if;
1780: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1781: return FALSE;
1782:
1783: END assign_workers;
1784:

Line 1901: fa_srvr_msg.add_message(calling_fn =>l_calling_fn,

1897:
1898: end if;
1899:
1900: if (l_je_post_count <> 0) OR (l_dp_post_count <> 0) then
1901: fa_srvr_msg.add_message(calling_fn =>l_calling_fn,
1902: name =>'FA_RJE_ROLLBACK_JE_NOT_RUN2', p_log_level_rec => g_log_level_rec);
1903: raise chk_err;
1904: end if;
1905:

Line 1920: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

1916: WHEN chk_err THEN
1917: if (g_log_level_rec.statement_level) then
1918: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'chk_err', p_log_level_rec => g_log_level_rec);
1919: end if;
1920: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1921: return FALSE;
1922:
1923: WHEN OTHERS THEN
1924: if (g_log_level_rec.statement_level) then

Line 1927: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

1923: WHEN OTHERS THEN
1924: if (g_log_level_rec.statement_level) then
1925: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'OTHERS', p_log_level_rec => g_log_level_rec);
1926: end if;
1927: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1928: return FALSE;
1929:
1930: END check_je_post;
1931:

Line 1998: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

1994: if (g_log_level_rec.statement_level) then
1995: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'rbi_err', p_log_level_rec => g_log_level_rec);
1996: fa_debug_pkg.add(l_calling_fn, 'sqlerrm', sqlerrm, p_log_level_rec => g_log_level_rec);
1997: end if;
1998: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
1999: return FALSE;
2000:
2001: /* bug #6658765 - Added NO_DATA_FOUND */
2002: WHEN NO_DATA_FOUND THEN

Line 2010: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);

2006: if (g_log_level_rec.statement_level) then
2007: fa_debug_pkg.add(l_calling_fn, 'EXCEPTION', 'OTHERS', p_log_level_rec => g_log_level_rec);
2008: fa_debug_pkg.add(l_calling_fn, 'sqlerrm', sqlerrm, p_log_level_rec => g_log_level_rec);
2009: end if;
2010: fa_srvr_msg.add_sql_error (calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
2011: return FALSE;
2012:
2013: END rollback_impairment;
2014: