09-23-2005 8:37 PM
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
09-23-2005 10:57 PM
If you have a rcent SAPGui (6.20 at least I think), try the External Debugging (Utilities -> Settings -> Debugging) and set a breakpoint (select External).
Good luck!