LCC Connection and RFC in Sap?

Hi,

What is the basic difference betweein LCC Connection and RFC , while connecting to Sap from lotus notes…

in following i am sending two codes one for LCC and another for RFC —>

RFC is working fine but LCC Connection is not working

is there any exe file needs to be installed specially for LCC connection

code for RFC (its working fine)


Sub Initialize

Dim session As New NotesSession

Dim currdoc As NotesDocument

Set currdoc=session.DocumentContext

Dim erc As Integer

If rfc_srv Is Nothing Then

	

	

	Set    rfc_srv = New RFCServer

	

	rfc_srv.Destination = "PRD"

	rfc_srv.HostName = "176.0.0.117"

	rfc_srv.System = 00

	rfc_srv.Client = "600"

	rfc_srv.User = "147984"

	rfc_srv.password = "123"

	rfc_srv.Language  = "E"

	rfc_srv.EnableSapGui = 0             

	

	If rfc_srv.Logon() <> True Then

Msgbox "Error in Connection"

	Else

	Msgbox "successfully Connected"

	End If

End If	

End Sub

Code of LCC Connection (its not working)


Sub Initialize

On Error Goto errorhandler

Dim session As New LCSession

Dim source As New LCConnection("SAP")

Dim sourcefieldlist As New LCFieldlist

Dim field1 As LCField

Dim field2 As LCField

Dim field3 As LCField

Dim counter As Integer

Dim selectstatement As String





source.Destination = "prd"

source.HostName = "156.0.0.111"

source.System = 00

source.Client = "600"

source.User = "p00101811"

source.password = "654321"

source.Language  = "E"

source.EnableSapGui = 0       





If source.Logon() <> True Then

	Msgbox "Error in Connection"

Else

	Msgbox "successfully Connected"

End If

end sub

Please let me know 1st the basic difference then say about code.

Thanks

Rupesh