Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP with .NET

Former Member
0 Likes
392

Hi all,

I have successfully connected to .NET to SAP and i can assess the bapi function from .NET plat form.BUT now i need to get data from sap to .Net plat form.(need to read SAP table or structure and get data to .NET) any one can help for this.

Thanks

kanishka

Hi all,

I have successfully connected to .NET to SAP and i can assess the bapi function from .NET plat form.BUT now i need to get data from sap to .Net plat form.(need to read SAP table or structure and get data to .NET) any one can help for this.

Thanks

kanishka

2 REPLIES 2
Read only

Former Member
0 Likes
373

Hi can u tell me tht how to connect .net to sap...I want to know tht..and its urgent for me..Please..

Thanks.

Read only

0 Likes
373

Hi Please find the code follows

R3 = CreateObject("SAP.Functions")

R3.Connection.Client = "200"

R3.Connection.System = "RDV"

R3.Connection.ApplicationServer = "ip"

R3.Connection.SystemNumber = "01"

R3.Connection.Language = "E"

R3.Connection.User = "usercode"

R3.Connection.Password = "password"

R3.Connection.Logon(0, True)

If R3.Connection.IsConnected Then

'FBFunc = R3.add("bapi name")

'FBFunc.exports("KUNNR") =

returnFunc = FBFunc.Call()

End If