cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Script popup validation

0 Likes
253

I am trying to create a script to add comments on Export Tab for products in GTS. The problem I am facing is that some products already have comments so when the script clicks on create new comment it throws message

The text already exists in language XX

This stops the script.

I am using excel macro so I would like to know if there is any way to create a validation in vbs to ask if the popup is active then press enter, if not continue as normal.


I tried using below code but once wnd2 is detected the script is stop and nothing else happens

If session.ActiveWindow.Name = "wnd[2]" Then
session.findById("wnd[2]/tbar[0]/btn[0]").press

.... -> code to add new text/comment

End If

Accepted Solutions (0)

Answers (0)