cancel
Showing results for 
Search instead for 
Did you mean: 

Auto logon with VBA Coding

Former Member
0 Kudos

Hello all,

our targe is to logon via VBA after opening a workbook (by using a tasker).

Therefor I used this VBA code:

Sub Workbook_open()

Iret = Application.Run("SAPLogon", "DS_1", "100", "USERNAME", "PASSWORD")

End Sub

The problem is, that we have to enter the "OK-Button" manually.


But we don't want to press the OK Button --> The VBA code should do that for us.

Can you help me please?

Thank you.

Best

Steffen

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Steffen,

I have not checked this on version 2.1 but I know in version 1.4 this is not supported by the API
.

I do think this should be added to the API

Former Member
0 Kudos

Hi Steffen,

I'm not sure, but maybe you find here, what you are looking for:

http://scn.sap.com/docs/DOC-53317

I have not yet tested it, so I cannot give you any advice.

Best regards,

Martin