on 09-20-2005 11:28 AM
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
Hello,
thanks for your answer. The problem was that my connection didn't work properly, but now it works.
Best regards
Jochen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can have many reasons. You should at least post the detailed call-stack (including "Non-user code").
Of cause you need to make sure that you use the proxy correctly, e.g. create and open a connection before doing the call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.