sap-gui

Suppress SAP Information popup while executing VBA script


I have an scripting code with vba that is working fine for some transactions, however for ZM52 transaction I am receiving a pop up information window when executing the report and for that reason is not working.

The problem is that is a big report, which takes time to download and this pop up is showing more than once.

Is there any option to "say" to SAP to avoid/omit/suppress this kind of information?

Pop up message

Any help will be very appreciated!

Thank you all


Solution

  • I have found out a solution by using the following code:

    While objSess.ActiveWindow.Text = "Information" 
    objSess.findById("wnd[1]/tbar[0]/btn[0]").press 
    Wend