SAP .net Connector 3.0
using System.Collections.Generic;
using System.Linq;
using System.Text; using SAP.Middleware.Connector;
namespace ConsoleApplication1.obj {
public class MyBackendConfig : IDestinationConfiguration { public RfcConfigParameters GetParameters(String destinationName) { if ("PRD_000".Equals(destinationName)) { RfcConfigParameters parms = new RfcConfigParameters(); parms.Add(RfcConfigParameters.MessageServerHost, "some.ABAP.host"); parms.Add(RfcConfigParameters.LogonGroup, "PUBLIC"); parms.Add(RfcConfigParameters.SystemID, "ABC"); parms.Add(RfcConfigParameters.User, "user"); parms.Add(RfcConfigParameters.Password, "password"); parms.Add(RfcConfigParameters.Client, "100"); parms.Add(RfcConfigParameters.Language, "en"); parms.Add(RfcConfigParameters.PoolSize, "5"); parms.Add(RfcConfigParameters.MaxPoolSize, "10"); parms.Add(RfcConfigParameters.IdleTimeout, "600"); return parms; } else return null; } // The following two are not used in this example: public bool ChangeEventsSupported() { return false; } public event RfcDestinationManager.ConfigurationChangeHandler ConfigurationChanged > } }