Hi experts,
Our developers write "SAP Automation GUI" in 3.1I and it does not
work on ECC 6. Please see attachment. It return 'FALSE' when calling SAP.logon. Does this mean SAP no longer support it? From note 423522. "BC-FES-AIT-GLB: - SAP Automation GUI: No replacement". But many guys in SDN say it is replaced. How to I solve it if it is not?
--
--
--
Sub SAPLogon()
Dim iCtrl As Integer
Dim bOK As Boolean
' Uncomment following 2 lines if Sap is not declared globally
Set Sap = CreateObject("SapAutoGui.Event")
bOK = Sap.Connect("QCAPRD3", "00", SapGuiMerlin Or SapGuiFullMenu)
OKCheck bOK, "Error in opening connection"
Sap.RowDimension = 24
Sap.RowListDimension = 24
Sap.ColumnDimension = 80
Sap.ColumnListDimension = 80
Sap.SetSizeFlag = True
OKCheck bOK, "Error in opening connection"
' Replace txtPassword with an actual password or password variable
bOK = Sap.Logon("318", "user", "password", "")
OKCheck bOK, "Error in logon"
ScreenCheck "SAPMSYST", "0040"
End Sub
--
--
--