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

ActiveXcontrol in vB

Former Member
0 Likes
390

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.

3 REPLIES 3
Read only

Former Member
0 Likes
374

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

Read only

0 Likes
374

sir, i m using VB6 and know details how to establish connection in VB with SAP. plz ,reply me.

Read only

0 Likes
374

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