cancel
Showing results for 
Search instead for 
Did you mean: 

create object in VB .net connector RFC server

Former Member
0 Kudos

Hello all,

Im implementing an RFC Server in VB. The base works fine(made it like in the help "How to build a simple RFC Server in .net").

But now i tried to add code to create an instance of a class based on a dll. At this point when i debug the thing when it comes to the statement:

Dim DS As BS4ServerV3.BS4

Dim i As Integer

Aufnr = "nrnr"

Console.WriteLine("nach def 1")

DS = New BS4ServerV3.BS4 <=

i = 0

Debug.WriteLine("nach new")

where the Object is being created nothing happens anymore.

The output never appears on the console.

I've tested the code from the dll in a standard windows an d in another console application(without the sapconnector class) and it works fine.

I've asked a colleague which is quite better in .net development but he neither could find a fault in the code.

Any input very, very welcome

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

When you create a server, the code generator created (at least) two classes: The abstract Server Proxy and the non-abstract Server Implementation. The file and class is usually called <ProxyName>Impl . It seems that you try to create an instance of the abstract proxy class.

BTW: Are you using SAP .NET Connector 2.0? If yes, it migh be better having the server code directly in VB in your main project and not in a DLL.