Skip to Content
0
Former Member
Jan 05, 2008 at 09:08 AM

Connecting SAP Via VB

40 Views

Hi, Experts,

I am connecting SAP through VB and it is connecting successfully. but i don't want logon popup which pop when I execute program. Is there any way to hide it.

I am using vb code as below.

'Define varriables

'----


Dim R3, MyFunc, App As Object

Dim SEL_TAB, NAMETAB, TABENTRY, ROW As Object

Dim Result As Boolean

' Dim iRow, iColumn, iStart, iStartRow As Integer

'Logon with SAP

'----


Set R3 = CreateObject("SAP.Functions")

R3.Connection.System = "RTD"

R3.Connection.client = "300"

R3.Connection.user = "ABAP2"

R3.Connection.password = "PASS"

R3.Connection.language = "EN"

If R3.Connection.logon(1, False) <> True Then

Exit Sub

End If

*----


ANY HELP WILL BE APPRECIATABLE WITH POINTS.

Regards

Rajiv singh.