0

Well, I'm using SapConnector dll to make RFC from .Net to SAP. When I use dll in a Windows form application, everything is fine, but when I try to make connection in ASP.Net Web Site or Web Application, I get an error;

Bad Variant Type

My code:

if (Connector.StartConnection())
    {
        try
        {
            Connector.AddFunction("Z_SCL_SOMETHING");
            Connector.AddFunctionInputParameter("WPERNR", "999999");
            Connector.CallFunction();
        }
   }

I get the error in this line;

Connector.AddFunction("Z_SCL_SOMETHING");

Another weird case is that, in Windows Forms Application when I make this call in backgroundWorker I get the same error again.

Any idea about this error ?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Mtok
  • 1,600
  • 11
  • 36
  • 62

0 Answers0