cancel
Showing results for 
Search instead for 
Did you mean: 

SAP .Net Connector doesn't seem to properly integrate in VS 2003

Former Member
0 Kudos

Hello,

I installed SAP .Net Connector 2.0 from the file SAP.Net.Setup_2.0.msi. It shows up in my Visual Studio under Help->Info under Installed Products as SAP .Net Connector.

But when I try to proceed like described here:

http://help.sap.com/saphelp_nw04/helpdata/en/a9/4a57c1bac80e4e977d8cd9b3ecab89/content.htm

I don't see the 'SAP Connector Class' template, when selecting Add new Item. I only have the option to add 'SAP Connection Proxy' which is of the type .sapwsdl instead of .cs.

When I do this no wizard opens up. I only get the design view of this proxy and the only thing I can do there is add Proxy Fields.

I tried the project types 'Windows Application' and 'Class Library', always the same result.

Please advise.

Edited by: Torsten Liebscher on Oct 17, 2008 12:11 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Torsten,

With .NET Connector 2.0 onward you do not get the wizard. The documentation you are refering may be for the older version of NCo.

The steps you may follow to develop application using NCo 2.0 are -

1. Open the server explorer in VS 2003. You will see the SAP node.

2. Register the SAP system (right clieck ADD) by providing the credentials.

3. All the Remote function enabled modules will be listed there.

4. Choose Add Item -> SAP Proxy. This will add a blank wsdl file to your project.

5. Now drag n drop the desired BAPI/RFC from server explorer window to wsdl file design view.

6. Click on save button. You will get the required proxy (.vb/.cs etc) class generated in your project.

Regards.

Former Member
0 Kudos

Hi,

thanks for your replys. But I'm already stuck at this point:

1. Open the server explorer in VS 2003. You will see the SAP node.

I don't see a SAP node. I tried a Class Library project as well as a Windows Application.

I attached a screenshot which should contain all relevant information.

[Screenshot VS SAP .Net Connector|http://tliebscher.free.fr/SAPNETConnector.jpg]

Former Member
0 Kudos

Hi Torsten,

Just click on the small Refresh icon on server explorer window. And it should appear.

Regards.

Former Member
0 Kudos

Hi Thorsten,

just extend the "SAGSWE6" (if this is your SAP server) and you will see all function modules

(which were RFC-enabled) from your SAP server.

Pick one and drag it over to your designer, it will automatically create all .cs - classes.

Former Member
0 Kudos

Great, it works!

Is there any documentation for this version of the SAPConnector? I was able to create the proxy classes, but when I call my remote function I'm getting an RfCException: You must set a connection before doing a call.

Former Member
0 Kudos

Hi Torsten,

When you install .Net Connector the help also gets added into Visual Studio. See in the visual studio help you will get a lot of information.

Try also searching the forums for the help file. There is one pdf file available somewhere either on SDN or Marketplace for this version of Connector.

Regards.

Former Member
0 Kudos

Did you Install a Java JRE ? You should do it or the drag an drop of a BAPI from server explorer to your proxy doesn't work

Answers (1)

Answers (1)

Former Member
0 Kudos

Try to connect to your SAP server via "Server Explorer".

Under "Application Service"->[Your SAP Server Name]->"Functions" choose the RFC-enabled function

module you need and move via drag-drop to your designer.

Build your project which creates consequently all the embedded classes used in the function module.