Question:
Hi guy,
I can't manage using a bapi like RSDRI_ODSO_INSERT_RFC to
insert or mofify or update a transactional ODS.
The connexion works fine but the system seems not to recogniez the BAPI : I get a "SAP data type not supported" and OFcn is empty.
This is my coding :
Sub Connexion()
Dim BW As Object
Set BW = CreateObject("SAP.Functions")
Dim oConnection As Object
Set oConnection = BW.Connection
' Enter you app-server and login info, or comment
' lines and fill in dialog.
oConnection.ApplicationServer = my_IP_adress
oConnection.systemnumber = "00"
oConnection.user = my_user
oConnection.Client = "001"
oConnection.Language = "EN"
oConnection.Password = my_password
If oConnection.logon(0, True) <> True Then
MsgBox "Cannot logon!."
Exit Sub
Else
MsgBox "Logged"
End If
Dim OFnc As Object
Set OFnc = BW.Add("RSDRI_ODSO_INSERT_RFC")
Set par = OFnc.Exports("ODSOBJECT")
End Sub
Can anyboy explain to me why this error ? Could you give me an example
of a corect code for unsing BAPI with VB.
Thank you
Loris
Answer:
Ask this in abap forum.
Ch