Skip to Content
1

SAP Connect .NET / Trace cannot be deactivated

Jan 16, 2017 at 10:06 AM

100

avatar image
Former Member

Dear all,

I'm using the SAP .NET Connector (3.0.6.0) 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


Rainer

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers