Skip to Content
0
Former Member
Feb 28, 2008 at 06:43 AM

Creat RFC Connection

89 Views

Hi I am trying to connect .NET plat form to sap as follows

R3 = CreateObject("SAP.Functions")

R3.Connection.Client = "200"

R3.Connection.System = "RDV"

R3.Connection.ApplicationServer = "172.21.1.46"

R3.Connection.SystemNumber = 1

R3.Connection.Language = "E"

R3.Connection.User = "KANISHKA"

R3.Connection.Password = "LOG"

R3.Connection.Logon(0, True)

If R3.Connection.IsConnected Then

FBFunc = R3.add("ZCALL_DATA") ' RFC IN ABAP

' ' BELOW ALL ARE IMPORTING PARAMETERS OF RFC

FBFunc.exports("MANDT") = "200"

FBFunc.exports("COMPANY") = "1000"

FBFunc.exports("FMONTH") = "12"

returnFunc = FBFunc.Call()

MsgBox("Connected")

End If

can any one tell me how to create a RFC function for it??

thanks

kanishka