234: end if;
235:
236: -- set the gl_sob profile to this reporting book
237: fnd_profile.put('GL_SET_OF_BKS_ID', c_rec.sob_id);
238: fnd_client_info.set_currency_context (c_rec.sob_id);
239:
240: h_dpr.asset_id := X_asset_id;
241: h_dpr.book := h_book;
242: h_dpr.period_ctr := 0;
365:
366: -- BUG# 2376085
367: -- reset GL sob id to original value before moving to next book
368: fnd_profile.put('GL_SET_OF_BKS_ID', h_profile_sob_id);
369: fnd_client_info.set_currency_context (h_currency_context);
370:
371: -- SLA: end loop / cursor
372:
373: -- reset GL sob id to original value
371: -- SLA: end loop / cursor
372:
373: -- reset GL sob id to original value
374: fnd_profile.put('GL_SET_OF_BKS_ID', h_profile_sob_id);
375: fnd_client_info.set_currency_context (h_currency_context);
376:
377: return (TRUE);
378:
379:
380: EXCEPTION
381: when ERROR_FOUND then
382: -- reset GL sob id to original value
383: fnd_profile.put('GL_SET_OF_BKS_ID', h_profile_sob_id);
384: fnd_client_info.set_currency_context (h_currency_context);
385:
386: fa_srvr_msg.add_message(calling_fn => 'FA_TRANSFER_XIT_PKG.fautfr',
387: name => h_msg_name
388: ,p_log_level_rec => p_log_level_rec);
392:
393: when others then
394: -- reset GL sob id to original value
395: fnd_profile.put('GL_SET_OF_BKS_ID', h_profile_sob_id);
396: fnd_client_info.set_currency_context (h_currency_context);
397:
398: fa_srvr_msg.add_sql_error(calling_fn => 'FA_TRANSFER_XIT_PKG.fautfr'
399: ,p_log_level_rec => p_log_level_rec);
400: