‎2007 Dec 05 1:50 PM
sir,
I was created BAPI Object and now try to establish with VB. Plz, give me the name of ActiveXcontrol / component which should be used in VB for SAP connectivity and if anybody have full program then give me the link or explain the program after the creation of bapi object and how to implement in BAPI to establish connectivity with VB form with SAP.
plz, its urgent.
‎2007 Dec 05 1:55 PM
Hello Sandeep
You have to look the connector for vb ....in case you are using .NET look for .Net connector on the donwload area....and dont forget to create a FM with RFC functionality activated.
Hope this helps
Garbriel
‎2007 Dec 05 2:16 PM
sir, i m using VB6 and know details how to establish connection in VB with SAP. plz ,reply me.
‎2007 Dec 05 6:46 PM
Hello,
I guess you have to use DCOM Connector....
and try something like
Option Explicit
Private Sesion As DESdcom1Lib.Dcom1SessionComponent
Private Funcion As DESdcom1Lib.Prueba
Private Sub Form_Load()
On Error GoTo errSAP
Set Sesion = CreateObject("SAP.DCOM1SessionComponent.1")
Sesion.Destination = "DES" servidor
Sesion.UserID = "usuario"
Sesion.Password = "password"
Sesion.Client = "100" mandante
Exit Sub
errSAP:
MsgBox Err.Number & " " & Err.Description
End Sub
Private Sub Command1_Click()
Dim stNombre As String
Set Funcion = Sesion.CreateInstance("DES.Prueba.1")
Funcion.Z_Rfc_Prueba stNombre, Text1(0).Text
Text1(1).Text = stNombre
End Sub
Also you may look on the web for some info.
Bye
Gabriel