cancel
Showing results for 
Search instead for 
Did you mean: 

How to Extract Data Using NCo 3.0 in c#

Former Member
0 Kudos

Hello Guys,

I am new to SAP, and i have one project where i have to extract the data from SAP Tables to SQL using C#.net.

I have tried to find a sample code to extract the data from SAP table using .Net Connector 3.0, but was not able to find so. Can any one help me in this regards.

Looking forward for a help.

Thanks

Snehal

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member197445
Contributor
0 Kudos

The primary method of interaction with SAP using the NCo is through remote-enabled RFC function modules/BAPIs.  If you want to pull data from an SAP table, you can look for a standard SAP BAPI that delivers this data or write your own function module that exports the data you need..

Example using BAPI_COMPANY_DETAIL can be found here: http://scn.sap.com/people/thomas.weiss/blog/2011/01/14/a-spotlight-on-the-new-net-connector-30

(VB.NET translation here:  http://scn.sap.com/thread/1870950)

You should be able to use this code and tweak it a little to extract pretty much any data you want to.  You're only limited by having a remote function module that provides the data you need.