Skip to Content
avatar image
Former Member

SAP Connect .NET / Trace cannot be deactivated

Dear all,

I'm using the SAP .NET Connector ( to make a RFC Call. The call can be executed correctly without any problems. If I change an input parameter the RFC Call creates an exception (Material not found -> NOT_FOUND) - this exception is ok and like the specification of the customer SAP developer.

The only problem is that this exception creates a trace/log file "dev_nco_rfc.log". I don't need this and I will deactivate the log file creation but I don't now how.

Therefore I added in the destination configuration the trace flag and set it to 0.


objParameters.Add(RfcConfigParameters.Trace, "0")


This doesn't work. In case of an exception this file will be created. I changed the directory via "RfcTrace.TraceDirectory = System.IO.Path.GetTempPath" to the temp folder (this works).

Therefore my question: How to deactivate the trace function?

Thank you all!

Best regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers