Skip to Content
avatar image
Former Member

Auto logon with VBA Coding

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

OK_Button.PNG (23.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 19, 2015 at 01:56 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2015 at 06:27 AM

    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

    Add comment
    10|10000 characters needed characters exceeded