Enterprise Administration > Windchill ESI > Administering Windchill ESI in an SAP Environment > Guidelines for Monitoring, Diagnosing, and Resolving Problems > Diagnosing Problems > Categorizing Problems: Key Areas of Focus for Troubleshooting > Logs and Error Handling Codes
  
Logs and Error Handling Codes
To help diagnose problems, you need to be thoroughly familiar with the key Windchill ESI logs, described in the Windchill Enterprise Systems Integration Installation and Configuration Guide - SAP. You also need to be familiar with the EAI error-handling architecture, and the error codes. The following lists the available logs and how to access them:
Logs
How to Access
Windchill Enterprise Systems Transaction Log
Windchill PDMLink user interface
TIBCO BusinessWorks Process engine logs
* 
Windchill ESI application messages appear with a role designation of ESI to distinguish them from the standard TIBCO product messages.
TIBCO Administrator tracing or <Tibco_Home>/tra/domain/<Domain_Name>/application/logs/<Application Name>.Process_Archive.log[.sequence #]
TIBCO EMS logs
File name and path are determined by log file configuration parameter in the tibemsd.conf file. If the logfile_max_size configuration parameter is not set to zero (0), there may be multiple log files appended with sequence numbers.
TIBCO Adapter for SAP logs
TIBCO Administrator tracing or <Tibco_Home>/tra/domain/<Domain_Name>/application/logs/<Application_Name>.[Adapter Configuration].log[.sequence #]
TIBCO Adapter for SAP gateway trace.
<Tibco_Home>/adapter/adr3/<version>/bin/dev_rfc.trc
* 
When a TIBCO Adapter for SAP error occurs, TIBCO creates the gateway trace (dev_rfc.trc) file in the <Tibco_Home>/adapter/adr3/<version>/bin directory. The error information in this file is often more detailed and helpful than the information that is provided in the standard adapter logs in the <Tibco_Home>/adapter/adr3/<version>/logs directory.
SAP gateway and application server logs
Consult your SAP Basis administrator. For Windchill ESI API call sequences that include CALO_INIT_API (that is, BOMs, CNs, and Part/Material Revisions), you may obtain additional logging information in the SAP application log (transaction SLG1). Refer to SAP online application help for further details on using this transaction.1
You should also be familiar with the SAP distribution targets and the data objects and attributes impacted by Windchill ESI. You may have direct responsibility for viewing and manipulating data in SAP, or may simply have to coordinate these activities with SAP Basis administrators. To view the data that was transferred into SAP by Windchill ESI, the following transactions are particularly important:
MM03 (View Material)
CS03 (View Material BOM)
CV03N (View Document)
CC03 (View Change Master)
CA03 (View Process Plan)

1 Windchill ESI uses CALO_INIT_API to activate logging to the SAP application log for subsequent API calls. This only occurs with the "CCAP" and "CSAP" APIs used for BOMs, CNs, and Part Revisions. SAP BAPIs, used for Parts and Documents, do not use the SAP application log.