Skip to Content
0
Former Member
Sep 20, 2005 at 10:28 AM

System.NullReferenceException

55 Views

Hello,

I tried to call a simple RFC-function using the .Net-Connector. The Wizard generates "SAPProxyDll1.sapwsdll" which contains the following void:

public void Z_Vb_Test_Fg_Called_By_Vb (

)

{

object[]results = null;

results = this.SAPInvoke("Z_Vb_Test_Fg_Called_By_Vb",new object[] {

});

return;

}

When I call this void by clicking a button in my Windows-Form (whithout making any changes at the rest of the coding) the following Error appears:

"An unhandled exception of type 'System.NullReferenceException' occurred in sap.connector.dll

Additional information: Object reference not set to an instance of an object."

Do I have to make any changes at the automatically generated coding, or what is the problem?

Thanks a lot.

Jochen