Hi,
I am tryig to dwnload at least one thng from SAP. The code I am using to connect you can see below. The target is to download something to excel workbook from MM03, for instance weight or base uint of measure for the materil number 1234567. I need support.
I am tryig to dwnload at least one thng from SAP. The code I am using to connect you can see below. The target is to download something to excel workbook from MM03, for instance weight or base uint of measure for the materil number 1234567. I need support.
Code:
Dim Logon As Object 'Logon control
Dim R3conn As Object
Set Logon = CreateObject("SAP.LogonControl.1") 'Create ActiveX object
Set R3conn = Logon.NewConnection
If R3conn.Logon(0, False) <> True Then 'Try Logon
MsgBox "Cannot log on toSAP"
End If