[Home] [Help]
1205:
1206: --------------------------------------------------------
1207: -- 4645092 set request id for get_mpa_accrual_context
1208: --------------------------------------------------------
1209: dbms_session.set_identifier (client_id => g_report_request_id);
1210: IF xla_context_pkg.get_mpa_accrual_context = 'Y' THEN
1211: g_mpa_accrual_exists := 'Y';
1212: ELSE
1213: g_mpa_accrual_exists := 'N';
2229: ----------------------------------------------------------------------------
2230: -- Following sets the session's client identifier for the purpose of global
2231: -- application context.
2232: ----------------------------------------------------------------------------
2233: dbms_session.set_identifier
2234: (client_id => g_parent_request_id);
2235:
2236: IF (C_LEVEL_EVENT >= g_log_level) THEN
2237: trace
2453: ||to_char(g_parent_request_id));
2454: print_logfile(to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')||' - postaccounting hook executed successfully');
2455:
2456: COMMIT;
2457: dbms_session.set_identifier(client_id => g_parent_request_id); -- added for bug11903966
2458: print_logfile('- Accounting Time = '||((l_acct_end_time - l_acct_begin_time)/100)||' secs');
2459: print_logfile('- Transfer Time = '||((l_transfer_end_time - l_transfer_begin_time)/100)||' secs');
2460:
2461: IF (C_LEVEL_EVENT >= g_log_level) THEN
2644: ----------------------------------------------------------------------------
2645: -- Following sets the session's client identifier for the purpose of global
2646: -- application context.
2647: ----------------------------------------------------------------------------
2648: dbms_session.set_identifier
2649: (client_id => g_parent_request_id);
2650:
2651: IF (C_LEVEL_EVENT >= g_log_level) THEN
2652: trace
3074: --
3075: SELECT xla_accounting_batches_s.nextval INTO p_accounting_batch_id FROM DUAL;
3076: g_accounting_batch_id := p_accounting_batch_id;
3077:
3078: dbms_session.set_identifier
3079: (client_id => g_accounting_batch_id);
3080:
3081: IF (g_accounting_mode ='F' AND g_budgetary_control_mode = 'NONE') THEN
3082: IF fnd_profile.value('XLA_BAL_PARALLEL_MODE') IS NULL THEN
3799: (p_seq_enabled_flag => g_seq_enabled_flag);
3800: l_seq_api_called_flag := 'Y';
3801: END IF;
3802:
3803: dbms_session.set_identifier(client_id => g_parent_request_id); -- added for bug11903966
3804: ----------------------------------------------------------------------------
3805: -- enqueue messages in the queue
3806: ----------------------------------------------------------------------------
3807: --enqueue_messages;
4346: (p_msg => 'BEGIN of procedure POST_ACCOUNTING'
4347: ,p_level => C_LEVEL_PROCEDURE
4348: ,p_module => l_log_module);
4349: END IF;
4350: dbms_session.set_identifier(client_id => g_parent_request_id); -- added for bug11903966
4351: ----------------------------------------------------------------------------
4352: -- Total error error counts are read into a local variable before the
4353: -- global context is cleared. This is later used to set the 'p_retcode'.
4354: -- bug # 2709397.
6613: ||to_char(g_parent_request_id)||'-'
6614: ||rawtohex(l_msgid));
6615: print_logfile(to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')||' - extract hook executed successfully');
6616:
6617: dbms_session.set_identifier(client_id => g_parent_request_id); -- added for bug11903966
6618: ----------------------------------------------------------------------
6619: -- Call accounting engine
6620: ----------------------------------------------------------------------
6621: IF (C_LEVEL_EVENT >= g_log_level) THEN
6676: ||to_char(g_parent_request_id)||'-'
6677: ||rawtohex(l_msgid));
6678: print_logfile(to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')||' - postprocessing hook executed successfully');
6679:
6680: dbms_session.set_identifier(client_id => g_parent_request_id); -- added for bug11903966
6681: -------------------------------------------------------------------------
6682: -- After processing each unit (fetched from the queue), accounting
6683: -- entries are sequenced (in FINAL mode) and commited in base tables and
6684: -- errors are moved from array to error table,