Use the Oracle R12 trace file
To get the R12 trace file and FND debug messages:
- Go toResponsibility,System Administrator,Profile,System, and thenQuery.
- User - User submitting the report
- Profile - Initialization SQL statement - custom
- Select the User column, edit the field, and enter.
- begin fnd_ctl.fnd_sess_ctl(",",'TRUE','TRUE','LOG','ALTER SESSION SET EVENTS='||''''||'10046 TRACE NAME CONTEXT FOREVER,LEVEL 12'||''''); end;
- Save.
- Upload the raw and tkprof'd trace file created. Use this SQL command to locate the file:
- select value
- from v$parameter
- where name = 'user_dump_dest';
- Upload the output formatted in a Excel spreadsheet.
- Next go toResponsibility,System Administrator,Profile,System, and thenQuery.
- User - User submitting the report
- Profile - FND:%Debug%
- Set these profile values at the user level:
- FND: Debug Log Enabled - Yes
- FND: Debug Log Filename - <empty>
- FND: Debug Log Level - STATEMENT
- FND: Debug Log Mode - Asynchronous with cross-tier sequencing
- FND: Debug Log Module - %
- Save.
- Go toPayables Responsibility,Other,Request,Run, and select and submit the report.
- Disable Trace and FND Debug messages.
- Derive debug message using this query:
- SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
- FROM fnd_log_messages msg, fnd_log_transaction_context tcon
- WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
- AND tcon.TRANSACTION_ID = <your child request ID>
- ORDER BY LOG_SEQUENCE
- Upload the output formatted in an Excel spreadsheet.
- Lastly, disable FND: Debug Log when you're done. If this isn't disabled, you could encounter tablespace issues.
- To capture FND debugging for Online Accounting (including accounting for a single document, set the profiles:
- FND: Debug Log Enabled - Yes
- FND: Debug Log Level - Statement
- FND: Debug Log Module - %
- Get the current log sequence in the FND table: select max(log_sequence_ from fnd_log_messages ; -- start.
- Run Online Accounting for 1 transaction/receipt/invoice/payment from the respective product workbench or screen.
- Get the log sequence in the FND table after online accounting completes: select max(log_sequence_ from fnd_log_messages ; -- end.
- Get the FND log data for Online Accounting: select * from fnd_log_messages where log_sequence between <start> and <end>;.
- Spool this into an Excel spreadsheet.
- And lastly, disable FND: Debug Log when you're done so you don't encounter tablespace issues.