Skip to Content
0
Former Member
Sep 23, 2005 at 07:37 PM

Problems at calling RFC through Visual Basic

26 Views

Hello, I'm connecting to SAP in Visual Basic and i calling a RFC with this code:

Private Sub cmdFunction_Click()

Set dieFunc = FunctionCtrl.Add("KNA1_READ")

dieFunc.Exports("PI_CUSTOMER") = txtcliente.Text

If dieFunc.Call = True Then

'Mostrar resutado

lblSalida.Caption = dieFunc.Imports("PE_KNA1")

Else

MsgBox "Error when accessing function in R/3!"

Screen.MousePointer = vbDefault

Exit Sub

End If

end sub

and diefunc.call always is false.

can somebody help me?

thanks.

Laura Zaragoza