Environment variable: RFC_TRACE=0 will turn off the trace files from being generated.
Environment variable: CPIC_TRACE=0 will turn off the CPIC trace.
You might also have to turn off Trace option on the RFC destination in SAP for this to work.
And, to redirect the files to a different location, you can use RFC_TRACE_DIR and CPIC_TRACE_DIR environment variables. Please note that, once you do this, the SAP adapter page may not be able to find the trace files for display.
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods