DBA Data[Home] [Help]

APPS.FA_GAINLOSS_PKG dependencies on FA_DEBUG_PKG

Line 89: fa_debug_pkg.add

85: end if;
86: end if;
87:
88: if g_log_level_rec.statement_level then
89: fa_debug_pkg.add
90: (fname => l_calling_fn,
91: element => '+++ Do_Calc_GainLoss: Step 1',
92: value => '', p_log_level_rec => g_log_level_rec);
93: end if;

Line 103: fa_debug_pkg.add

99:
100: l_batch_size := nvl(fa_cache_pkg.fa_batch_size, 200);
101:
102: if g_log_level_rec.statement_level then
103: fa_debug_pkg.add
104: (fname => l_calling_fn,
105: element => '+++ Do_Calc_GainLoss: Step 2',
106: value => '', p_log_level_rec => g_log_level_rec);
107: end if;

Line 128: FA_DEBUG_PKG.Initialize;

124:
125: for l_loop_count in 1..l_retirement_id.count loop
126:
127: -- clear the debug stack for each asset
128: FA_DEBUG_PKG.Initialize;
129: -- reset the message level to prevent bogus errors
130: FA_SRVR_MSG.Set_Message_Level(message_level => 10, p_log_level_rec => g_log_level_rec);
131:
132: BEGIN

Line 166: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

162: value1 => l_asset_id(l_loop_count),
163: p_log_level_rec => g_log_level_rec);
164: --bug 3087644 fix ends.
165: if (g_log_level_rec.statement_level) then
166: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
167: end if;
168:
169: EXCEPTION
170: when gainloss_err then

Line 173: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

169: EXCEPTION
170: when gainloss_err then
171: FND_CONCURRENT.AF_ROLLBACK;
172: if (g_log_level_rec.statement_level) then
173: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
174: end if;
175: x_failure_count := x_failure_count + 1;
176: --for bug no.3883501.modified the message name to FA_RET_STATUS_FAIL
177: fa_srvr_msg.add_message(

Line 196: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

192:
193: when others then
194: FND_CONCURRENT.AF_ROLLBACK;
195: if (g_log_level_rec.statement_level) then
196: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
197: end if;
198: x_failure_count := x_failure_count + 1;
199: --for bug no. 3883501.modifying the value2 to display the asset number
200: fa_srvr_msg.add_message(

Line 225: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

221:
222: EXCEPTION
223: when done_exc then
224: if (g_log_level_rec.statement_level) then
225: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
226: end if;
227:
228: x_return_status := 0;
229:

Line 234: FA_DEBUG_PKG.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

230: when gainloss_err then
231: FND_CONCURRENT.AF_ROLLBACK;
232: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
233: if (g_log_level_rec.statement_level) then
234: FA_DEBUG_PKG.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
235: end if;
236: x_return_status := 2;
237:
238: when others then

Line 242: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);

238: when others then
239: FND_CONCURRENT.AF_ROLLBACK;
240: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => g_log_level_rec);
241: if (g_log_level_rec.statement_level) then
242: fa_debug_pkg.dump_debug_messages(max_mesgs => 0, p_log_level_rec => g_log_level_rec);
243: end if;
244:
245: x_return_status := 2;
246:

Line 302: fa_debug_pkg.add

298:
299: l_sysdate := SYSDATE;
300:
301: if p_log_level_rec.statement_level then
302: fa_debug_pkg.add
303: (fname => l_calling_fn,
304: element => '+++ Step 1 +++',
305: value => '', p_log_level_rec => p_log_level_rec);
306: end if;

Line 321: fa_debug_pkg.add

317: l_asset_hdr_rec.asset_id := l_asset_retire_rec.detail_info.asset_id;
318: l_asset_hdr_rec.book_type_code := l_asset_retire_rec.detail_info.book_type_code;
319:
320: if p_log_level_rec.statement_level then
321: fa_debug_pkg.add
322: (fname => l_calling_fn,
323: element => '+++ Step 2 +++',
324: value => '', p_log_level_rec => p_log_level_rec);
325: end if;

Line 328: fa_debug_pkg.add

324: value => '', p_log_level_rec => p_log_level_rec);
325: end if;
326:
327: if p_log_level_rec.statement_level then
328: fa_debug_pkg.add
329: (fname => l_calling_fn,
330: element => 'l_asset_hdr_rec.asset_id',
331: value => l_asset_hdr_rec.asset_id, p_log_level_rec => p_log_level_rec);
332: end if;

Line 335: fa_debug_pkg.add

331: value => l_asset_hdr_rec.asset_id, p_log_level_rec => p_log_level_rec);
332: end if;
333:
334: if p_log_level_rec.statement_level then
335: fa_debug_pkg.add
336: (fname => l_calling_fn,
337: element => 'l_asset_hdr_rec.book_type_code',
338: value => l_asset_hdr_rec.book_type_code, p_log_level_rec => p_log_level_rec);
339: end if;

Line 365: fa_debug_pkg.add

361: raise gainloss_err;
362: end if;
363:
364: if p_log_level_rec.statement_level then
365: fa_debug_pkg.add
366: (fname => l_calling_fn,
367: element => 'current_period: l_period_rec.period_name',
368: value => l_period_rec.period_name, p_log_level_rec => p_log_level_rec);
369: end if;

Line 400: fa_debug_pkg.add

396: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => p_log_level_rec);
397: end if;
398:
399: if p_log_level_rec.statement_level then
400: fa_debug_pkg.add
401: (fname => l_calling_fn,
402: element => 'Passed basic validation',
403: value => '', p_log_level_rec => p_log_level_rec);
404: end if;

Line 491: fa_debug_pkg.add

487: ret.dpr_evenly := 0;
488: end if;
489:
490: if p_log_level_rec.statement_level then
491: fa_debug_pkg.add
492: (fname => l_calling_fn,
493: element => 'l_asset_retire_rec.cost_retired',
494: value => l_asset_retire_rec.cost_retired, p_log_level_rec => p_log_level_rec);
495: end if;

Line 586: fa_debug_pkg.add

582: -- call sub routine for each
583: for l_sob_index in 1..l_sob_tbl.count loop
584:
585: if p_log_level_rec.statement_level then
586: fa_debug_pkg.add
587: (fname => l_calling_fn,
588: element => '+++ Step 2: in Reporting book loop: Set_of_books_id',
589: value => l_sob_tbl(l_sob_index));
590: end if;

Line 660: fa_debug_pkg.add

656: ret.dpr_evenly := 0;
657: end if;
658:
659: if p_log_level_rec.statement_level then
660: fa_debug_pkg.add
661: (fname => l_calling_fn,
662: element => 'lv_asset_retire_rec.cost_retired',
663: value => lv_asset_retire_rec.cost_retired, p_log_level_rec => p_log_level_rec);
664: end if;

Line 692: fa_debug_pkg.add

688: if (g_run_mode <> 'UPGRADE' and
689: G_release <> 11) then
690:
691: if p_log_level_rec.statement_level then
692: fa_debug_pkg.add
693: (fname => l_calling_fn,
694: element => 'getting asset type for asset ',
695: value => l_asset_hdr_rec.asset_id,
696: p_log_level_rec => p_log_level_rec);

Line 705: fa_debug_pkg.add

701: from fa_additions_b
702: where asset_id = l_asset_hdr_rec.asset_id;
703:
704: if p_log_level_rec.statement_level then
705: fa_debug_pkg.add
706: (fname => l_calling_fn,
707: element => 'setting up parameters for event update, ret_status',
708: value => l_asset_retire_rec.status,
709: p_log_level_rec => p_log_level_rec);

Line 763: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_secondary_sob_id ',value => l_secondary_sob_id); end if;

759: If primary and secondary sob_id is different then we need to
760: create event for secondary ledger*/
761: l_secondary_sob_id := FA_XLA_EVENTS_PVT.get_secondary_sob_id(l_asset_hdr_rec.book_type_code);
762:
763: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_secondary_sob_id ',value => l_secondary_sob_id); end if;
764: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_primary_sob_id ',value => l_primary_sob_id); end if;
765: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID ',value => fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID); end if;
766: if (l_secondary_sob_id is not null) then
767: l_secondary_asset_hdr_rec := l_asset_hdr_rec;

Line 764: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_primary_sob_id ',value => l_primary_sob_id); end if;

760: create event for secondary ledger*/
761: l_secondary_sob_id := FA_XLA_EVENTS_PVT.get_secondary_sob_id(l_asset_hdr_rec.book_type_code);
762:
763: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_secondary_sob_id ',value => l_secondary_sob_id); end if;
764: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_primary_sob_id ',value => l_primary_sob_id); end if;
765: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID ',value => fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID); end if;
766: if (l_secondary_sob_id is not null) then
767: l_secondary_asset_hdr_rec := l_asset_hdr_rec;
768: l_secondary_asset_hdr_rec.set_of_books_id := l_secondary_sob_id;

Line 765: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID ',value => fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID); end if;

761: l_secondary_sob_id := FA_XLA_EVENTS_PVT.get_secondary_sob_id(l_asset_hdr_rec.book_type_code);
762:
763: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_secondary_sob_id ',value => l_secondary_sob_id); end if;
764: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create l_primary_sob_id ',value => l_primary_sob_id); end if;
765: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary create fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID ',value => fa_cache_pkg.fazcbcs_record.SET_OF_BOOKS_ID); end if;
766: if (l_secondary_sob_id is not null) then
767: l_secondary_asset_hdr_rec := l_asset_hdr_rec;
768: l_secondary_asset_hdr_rec.set_of_books_id := l_secondary_sob_id;
769: l_secondary_trans_rec := l_trans_rec;

Line 790: fa_debug_pkg.add

786:
787: else
788:
789: if p_log_level_rec.statement_level then
790: fa_debug_pkg.add
791: (fname => l_calling_fn,
792: element => 'calling fa_xla_events_pvt.update_transaction_event with thid: ',
793: value => l_thid);
794: end if;

Line 815: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_secondary_sob_id ',value => l_secondary_sob_id); end if;

811: Secondary Changes Start
812: If primary and secondary sob_id is different then we need to
813: update event for secondary ledger*/
814: l_secondary_sob_id := FA_XLA_EVENTS_PVT.get_secondary_sob_id(l_asset_hdr_rec.book_type_code);
815: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_secondary_sob_id ',value => l_secondary_sob_id); end if;
816: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_primary_sob_id ',value => l_primary_sob_id); end if;
817:
818: if(l_secondary_sob_id is not null) then
819: if not fa_xla_events_pvt.update_transaction_event

Line 816: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_primary_sob_id ',value => l_primary_sob_id); end if;

812: If primary and secondary sob_id is different then we need to
813: update event for secondary ledger*/
814: l_secondary_sob_id := FA_XLA_EVENTS_PVT.get_secondary_sob_id(l_asset_hdr_rec.book_type_code);
815: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_secondary_sob_id ',value => l_secondary_sob_id); end if;
816: if p_log_level_rec.statement_level then fa_debug_pkg.add (fname => l_calling_fn,element => 'before secondary update l_primary_sob_id ',value => l_primary_sob_id); end if;
817:
818: if(l_secondary_sob_id is not null) then
819: if not fa_xla_events_pvt.update_transaction_event
820: (p_ledger_id => l_secondary_sob_id,

Line 873: fa_debug_pkg.add

869: end if; -- if trx in primary is either retirement or reinstatement
870:
871:
872: if p_log_level_rec.statement_level then
873: fa_debug_pkg.add
874: (fname => l_calling_fn,
875: element => 'Process status for retirement_id:'||p_retirement_id,
876: value => 'Success', p_log_level_rec => p_log_level_rec);
877: end if;

Line 886: fa_debug_pkg.add

882:
883: when gainloss_err then
884: ROLLBACK to Do_Calc_GainLoss_Asset;
885: if p_log_level_rec.statement_level then
886: fa_debug_pkg.add
887: (fname => l_calling_fn,
888: element => 'RETIREMENT_ID',
889: value => p_retirement_id, p_log_level_rec => p_log_level_rec);
890: end if;

Line 893: FA_DEBUG_PKG.dump_debug_messages(max_mesgs => 0, p_log_level_rec => p_log_level_rec);

889: value => p_retirement_id, p_log_level_rec => p_log_level_rec);
890: end if;
891: fa_srvr_msg.add_message(calling_fn => l_calling_fn, p_log_level_rec => p_log_level_rec);
892: if (g_log_level_rec.statement_level) then
893: FA_DEBUG_PKG.dump_debug_messages(max_mesgs => 0, p_log_level_rec => p_log_level_rec);
894: end if;
895: x_return_status := 2;
896:
897: when others then

Line 900: fa_debug_pkg.add

896:
897: when others then
898: ROLLBACK to Do_Calc_GainLoss_Asset;
899: if p_log_level_rec.statement_level then
900: fa_debug_pkg.add
901: (fname => l_calling_fn,
902: element => 'RETIREMENT_ID',
903: value => p_retirement_id, p_log_level_rec => p_log_level_rec);
904: end if;