on 03-15-2023 12:26 PM
Hallo SAP .NET Connector developers,
currently I am facing a problem by using SAP Login 800 (x64) (Version 8000.1.0.1161) and the latest SAP .NET Connector (Version 3.1.2). As soon as I set the destination parameter “AbapDebug” or “UseSAPGui” the application crashes with the error “SAP.Middleware.Connector.RfcAbapRuntimeException: "'sapgui' start failed."”.
Is this any known issue or is there any known workaround for this problem?
Example C#-Code:
namespace SAP.Middleware.Connector.Test {
internal class Program {
static void Main(string[] args) {
RfcDestinationManager.RegisterDestinationConfiguration(new SAPDestinationConfig());
RfcDestination rfcDestination = RfcDestinationManager.GetDestination("Test");
//Throws SAP.Middleware.Connector.RfcAbapRuntimeException: "'sapgui' start failed."
rfcDestination.Ping();
}
}
public class SAPDestinationConfig : IDestinationConfiguration {
public event RfcDestinationManager.ConfigurationChangeHandler ConfigurationChanged;
public bool ChangeEventsSupported() {
return false;
}
public RfcConfigParameters GetParameters(string destinationName) {
RfcConfigParameters parms = new RfcConfigParameters();
parms.Add(RfcConfigParameters.AppServerHost, "Host");
parms.Add(RfcConfigParameters.SystemNumber, "00");
parms.Add(RfcConfigParameters.SystemID, "ID");
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");
//Causes SAP.Middleware.Connector.RfcAbapRuntimeException: "'sapgui' start failed.":
parms.Add(RfcConfigParameters.AbapDebug, "1");
parms.Add(RfcConfigParameters.UseSAPGui, "1");
return parms;
}
}
}
Thank you.
Best regards
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.