The following code runs under SAP GUI 7.3 but the following code fails under SAP GUI 7.4
MsgBox iParam1("RFCPROTO")
while this line works
MsgBox iParam1(1)
with error
Runtime error '1006'
Structure member not found "RFCPROTO"
Sub Test_RFC_SYSTEM_INFO()
Dim Functions As Object
Dim RFC As Object
Dim result As Boolean
Dim iParam1 As Object
' CONNECT
Set Functions = CreateObject("SAP.Functions")
If Functions.Connection.Logon(0, False) <> True Then
MsgBox ("System could not log you on. Please check user name and password and try again.")
Exit Sub
End If
' EXEC
Set RFC = Functions.Add("RFC_SYSTEM_INFO")
Set iParam1 = RFC.imports("RFCSI_EXPORT")
result = RFC.Call
' PULL DATA
MsgBox iParam1("RFCPROTO")
MsgBox iParam1(1)
' LOGOUT
Functions.Connection.Logoff
End Sub