Martin Spedding's Blog

Adventures in a disconnected world

Connecting to SAP using the .Net Connector

I have just started on a small project that will display information retrieved from SAP on a web page which means I got my first chance to play around with the SAP .Net Connector. I have to say I was amazed how simple it was and also it was interesting to see so many different technologies working together.

Once you have installed the prerequisites, you install the .Net Connector. N.B: There is a version for VS 2002 and VS 2003 so it is important you  install the right one. The process is now similar to creating a web services : using a wizard you select the SAP functions you wish to call and then the wizard creates the proxy.  Once the proxy code has been created then you just program against the relevant classes. Interestingly, in order to create proxy code you need to have a Java JVM installed on your machine. But this is only required for development and not for deployment.

It am amazed how fast I was able to write a web page that retrieved the customer table from SAP and display it in a datagrid. We are talking less than 30 minutes from start to finish. I found this forum really useful. For example, when I had made a mistake and giving the client number as -1 or learning how to  create an SAP connection by hand rather than through the wizard.

Comments

Roy Osherove said:

If I remember correctly the last issue of HardCore Web services features an article about creating web services that talk to SAP. You might find more info there.
http://www.hardcorewebservices.com/
# September 3, 2003 8:36 AM

Niklas E said:

I get errors although I have the latest Sun Java VM installed 1.4.2. I have tried 1.3.1 as well, but no luck. Any ideas?
# February 10, 2004 4:58 PM

Nikz said:

cannot code yet for connecting to SAP using .NET Connector. Any idea
# February 19, 2004 2:17 AM

Axe Mathur said:

How do i get product docs and manuals etc (and download the s/w)?

The site asks for a SAP Id...I'm not sure how to get one. Can i download a SAP eval version e.g. SAP oneworld and use it?

pls. help--> akhilmathur_2000@yahoo.com
# June 10, 2004 12:04 AM

Mark Durell said:

I had an easy time connecting too as long as I created an SAP Login page.

I am looking for the code the will allow me to connect from any web page
# July 28, 2004 3:26 PM

Prabhjeet said:

I want to download .net connector. Please guide me
# August 5, 2004 7:19 AM

Mohammad Ali said:

I want to download .Net connector , Please guide me

# October 16, 2007 3:43 AM

Ramesh.M said:

I want to download .Net connector , Please guide me

# December 19, 2007 12:35 AM

Maruti Tathe (marutitathe@gmail.com) said:

Dear Mr. Roy Osherove the site you suggested shows an adult content web site. Have you properly spelled the website name...

regards

Maruti.Tathe

# May 30, 2008 3:10 AM

akn said:

the sap service marketplace webpage where the sap.net connnector is available, asks for login. to create a new login it asks for a Customer or Partner ID. I"m neither of those. then how can i download this connector?

thanks,

-akn

# February 19, 2009 5:37 AM

ReageasencyuI said:

На какие подкатегории стоит поделить Юмор?    

<a href=http://xn--c1aeb8eua.xn--p1ai/>пытки документальное видео</a>

# February 1, 2012 7:30 AM

boumperourogs said:

http://tor4.su - борьба с зависимостью

# February 26, 2012 8:10 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)